On Wed, Nov 14, 2001 at 02:52:59PM -0700, John Boik wrote:
> Hello:
> Thanks to Matej, Thomas, and Herbert and others for answering my questions.
> However, I am still struggling with some of my original problems.  Any other
> suggestions or remarks?
> 
> Concerning my second question: I would like to get rid of the default
> justification for text in a table column.  Is there a way to do this without
> having to enter the \rightragged tex command in every single cell of the
> table?  I would like to have my text \rightragged, but I cannot find a way
> to set the whole table (or even whole column) that way at once.  Is there a
> global solution?,

Yes. Put the following lines in the preamble:

\usepackage{array}
\def\PBS#1{\let\temp=\\#1\let\\=\temp}
\newcolumntype{P}[1]{>{\PBS\raggedright}p{#1}}

Then, for each column in the table, after entering the width in the width
field, (e.g. 2in), put the text P{2in} in the special alignment field.

> Concerning my third question: Some rows of my table are intended to fall on
> two lines.  One solution in the Lyx guide is to actually use two rows, but I
> don't want to do that.  The other solution listed doesn't seem to work for
> me.  It says to enter a "\\" at the needed text break and then check the
> "linebreaks" button on the table format popup.  I cant find any "linebreaks"
> button.  If I just type in "\\", it starts an entire new row from scratch,
> and does not just move the intended second line down below the intended
> first line in the column. Where is the linebreaks button, or what else am I
> doing wrong?

The Userguide is somewhat obsolete. If you want a linebreak just press
ctrl+enter.

> Concerning my fourth question: Is there an easy way to select text and then
> format it all in caps (not small caps, or whatever is listed in the
> character popup), or as title caps (first word capitalized)?
> 
> Matej wrote:
> 
> >Alt-C,<arrow-up><
> 
> That seems to work, but only for one word at a time.

This will work in lyx 1.2.0. You will have to wait.

> Concerning my fifth question: Is there any easy way to automatically have a
> table span exactly the width of the paper?  I understand the tabularx
> package does not work with Lyx (or if it does I do not know how to use it).
> I would like to have the table fit the page, and then have certain columns
> larger or smaller than others.
> 
> Matej wrote:
> 
> >You can use \linewidth as a unit (so, .55\linewidth is a legal
> expression for the column width).<
> 
> This did not seem to work for me.  If I type in ".55\linewidth" in the width
> box of the table popup, it tells me that it is an invalid format.  Herbert
> says it must be done manually by specifying the width in mm or similar
> units.

This is a problem in LyX as latex accepts it. The solution:
Write a dummy length in the width field, e.g. 1in, and then in the special
column alignment put P{0.5\linewidth}.
In fact, you can use
  \newcolumntype{P}[1]{>{\PBS\raggedright}p{#1\linewidth}}
in the preamble, and then use 0.

Reply via email to