Re: Multiple Lines in Table Cell

2016-06-08 Thread Rich Shepard

On Wed, 8 Jun 2016, Paul A. Rubin wrote:


   This makes the two columns into a single column for that row. That's a
horse of a different garage.


Um, no, it makes two rows into a single row for that column, which is a mule
of a different stable.


Paul,

  Two ways of describing the same thing. :-)


Seems straightforward, but what's the problem with using two rows for the
heading, with "Standard" in columns 2 and 3 of row 1 and the other four
words distributed across row 2.


  That will do it; this did not occur to me.

Thanks,

Rich



Re: Multiple Lines in Table Cell

2016-06-08 Thread Paul A . Rubin
Rich Shepard  appl-ecosys.com> writes:


> 
>That's correct. By setting the column width of the cell I want to span two
> lines to a length that accommodates the text on each line then I have a
> narrow cell with two lines of column heading text.
> 
> > Let's say I have two columns and join the top two cells in the
> > right column to make a single header cell.
> 
>This makes the two columns into a single column for that row. That's a
> horse of a different garage.

Um, no, it makes two rows into a single row for that column, which is a mule
of a different stable.
> 
> > Is that what you want, or am I missing something?
> 
>Consider this set of column headers in a table:
> 
>Mean   Standard   Standard   Median
>  Deviation   Error
> 
> That's what I can do by setting the widths of the two middle columns.
> 
>What I want is this:
> 
>  Standard  Standard
>Mean  Deviation  ErrorMedian
> 

Seems straightforward, but what's the problem with using two rows for the
heading, with "Standard" in columns 2 and 3 of row 1 and the other four
words distributed across row 2. I did a side-by-side comparison of that with
my suggestion (combining the two heading rows into one for just the middle
two columns), and vertical spacing (in the PDF) looked identical to my
undiscerning eye.

Another version that worked for me (and looked identical to the
aforementioned) was to use a single row for the heading. Using the cell
settings dialog in LyX, I set the middle two heading cells to width 10ex and
set the "Vertical alignment in row" to bottom (along with centering the
cells horizontally, which IIRC was the default). The first and fourth
heading cells required no adjustments.

Paul







Re: Multiple Lines in Table Cell

2016-06-07 Thread Rich Shepard

On Tue, 7 Jun 2016, Paul A. Rubin wrote:


I may not be understanding what you want. If you make the headings of some
columns span multiple rows, that does not affect the headings of other
columns.


Paul,

  That's correct. By setting the column width of the cell I want to span two
lines to a length that accommodates the text on each line then I have a
narrow cell with two lines of column heading text.



Let's say I have two columns and join the top two cells in the
right column to make a single header cell.


  This makes the two columns into a single column for that row. That's a
horse of a different garage.


Is that what you want, or am I missing something?


  Consider this set of column headers in a table:

  Mean  Standard   Standard   Median
Deviation   Error

That's what I can do by setting the widths of the two middle columns.

  What I want is this:

Standard  Standard
  Mean  Deviation  ErrorMedian

Rich


Re: Multiple Lines in Table Cell

2016-06-07 Thread Paul A . Rubin
Rich Shepard  appl-ecosys.com> writes:

> 
>The pattern I used to use back in the early Pleistocene was to place
> single column headings on the bottom row when other columns had multiple
> rows. Doing this in LyX using the embedded \linebreak is not working.
> 
>Has table typesetting changed so that single-row cell headings are aligned
> on the top when other columns have multiple row headings? If not, please
> pass me a clue stick on how to move those single rows down.
> 

Rich,

I may not be understanding what you want. If you make the headings of some
columns span multiple rows, that does not affect the headings of other
columns. Let's say I have two columns and join the top two cells in the
right column to make a single header cell. The left column still has
separate cells in those rows; so I can just stick heading content in row 2,
column 1. No line break is required. Is that what you want, or am I missing
something?

Paul



Multiple Lines in Table Cell

2016-06-07 Thread Rich Shepard

  I'm running lyx-2.2.0 on Slackware and have a question on multiple lines
in a table cell that was not answered in the wiki's page on tables.

  The pattern I used to use back in the early Pleistocene was to place
single column headings on the bottom row when other columns had multiple
rows. Doing this in LyX using the embedded \linebreak is not working.

  Has table typesetting changed so that single-row cell headings are aligned
on the top when other columns have multiple row headings? If not, please
pass me a clue stick on how to move those single rows down.

TIA,

Rich