From 6b38ef29ea8e43bdf8461b2444d01c056a62c2b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Uwe=20St=C3=B6hr?= Date: Tue, 9 Jan 2007 02:26:57 +0000 Subject: [PATCH] Updated Extended manual: delete the stuff that is now described much better in the Extended-Insets manual git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16621 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/doc/Extended.lyx | 4622 +----------------------------------------- 1 file changed, 92 insertions(+), 4530 deletions(-) diff --git a/lib/doc/Extended.lyx b/lib/doc/Extended.lyx index 4b6c6d204f..78439c9649 100644 --- a/lib/doc/Extended.lyx +++ b/lib/doc/Extended.lyx @@ -1,4 +1,4 @@ -#LyX 1.4.2svn created this file. For more info see http://www.lyx.org/ +#LyX 1.4.3-5 created this file. For more info see http://www.lyx.org/ \lyxformat 245 \begin_document \begin_header @@ -360,7 +360,7 @@ Run \family typewriter dvips \family default - to convert the DVI file to PostScript®: + to convert the Dvi file to PostScript®: \end_layout \begin_deeper @@ -482,9 +482,9 @@ L aTeX \family default command in LyX. - This will call a Perl script named + This will call a program named \family typewriter -reLyX +tex2lyx \family default ---which will create a file \family typewriter @@ -495,48 +495,24 @@ foo.lyx foo.tex \family default ---and then open that file. - If the translation doesn't work, you can try calling -\family typewriter -reLyX -\family default - from the command line, possibly using fancier options. \end_layout \begin_layout Standard \family typewriter -reLyX +tex2lyx \family default will translate most legal LaTeX, but not everything. It will leave things it doesn't understand in TeX mode, so after translating a file with \family typewriter -reLyX +tex2lyx \family default , you can look for red text and hand-edit it to look right. \end_layout \begin_layout Standard - -\family typewriter -reLyX -\family default - has its own section in the -\emph on -Extended Features -\emph default - manual (as well as a Unix manpage equivalent), which you should read to - find out about what LaTeX isn't supported, bugs (and how to get around - them), and how to use the various options. -\end_layout - -\begin_layout Standard -If you can't get -\family typewriter -reLyX -\family default - to work, or you just want to put a piece of LaTeX code into a LyX file, - see Section +If you just want to put a piece of LaTeX code into a LyX file, see Section \begin_inset LatexCommand \ref{sec:latexcodes} \end_inset @@ -1860,7 +1836,7 @@ All right, you didn't use any of the fine-tuning options, you played by Do you have long sections of text where LaTeX cannot find a place to break a line? By default, LaTeX is rather strict about how much extra inter-word spacing it will add in order to break a line. - Preferably, you should rework the paragraph to avoid the problem. + Preferrably, you should rework the paragraph to avoid the problem. If this isn't an option, you can wrap your text in \family typewriter @@ -2081,7 +2057,7 @@ D \bar default VI \family default -, for example, you should see that BibTeX and LaTeX are invoked as needed, +, for example, you should see that BibTex and LaTeX are invoked as needed, including multiple invocations of LaTeX. \end_layout @@ -2875,35 +2851,6 @@ buffer to use. \end_layout -\begin_layout Section -Algorithms -\end_layout - -\begin_layout Standard -The package -\family sans -algorithm -\family default - is needed by LyX to be able to output algorithm floats. - These are useful in placing short algorithms across page breaks and support - an index of algorithms too. -\end_layout - -\begin_layout Section -Subfigures -\end_layout - -\begin_layout Standard -The package -\family sans - subfigure -\family default -is used by LyX when you select ``subfigure'' in the graphics dialog and - enter the subfigure caption. - Several figures marked in this way can be packed into a single float with - individual sub-captions. -\end_layout - \begin_layout Section Fancy Headers and Footers \end_layout @@ -3203,1289 +3150,6 @@ usepackage{graphics} if you don't include EPS files elsewhere in your document). \end_layout -\begin_layout Section -Minipages -\end_layout - -\begin_layout Standard -LaTeX provides a mechanism to produce essentially a page within a page, - called minipages. - Within a minipage, all the usual rules of indentation, line wrapping, etc.\InsetSpace ~ -apply. - LyX also provides some of the minipage capability. -\end_layout - -\begin_layout Standard -Minipages in LyX have their own collapsable box; insert one via -\family sans -\bar under -I -\bar default -nsert\SpecialChar \menuseparator -Mini -\bar under -p -\bar default -age -\family default -. - Right-clicking on the box allows you to alter the minipage's width and - alignment within the page. - Warning: if the minipage is too long to fit on a page, it is truncated, - not wrapped onto the next page. -\end_layout - -\begin_layout Standard -If you place two minipages side-by-side, you can use -\family sans -\bar under -I -\bar default -nsert\SpecialChar \menuseparator - -\bar under -S -\bar default -pecial\InsetSpace ~ -Character -\family default - to insert a special instruction known in the LaTeX world as an -\family typewriter -hfill -\family default - to put a maximum amount of space between them; it forces one minipage to - the left edge, the other to the right edge. - The examples below show the difference. -\end_layout - -\begin_layout Standard -\begin_inset Box Frameless -position "t" -hor_pos "c" -has_inner_box 1 -inner_pos "c" -use_parbox 0 -width "1.5in" -special "none" -height "1pt" -height_special "totalheight" -status open - -\begin_layout Standard -This is a minipage which does not use hfill. - This is the second sentence of a minipage which does not use hfill. -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -\begin_inset Box Frameless -position "t" -hor_pos "c" -has_inner_box 1 -inner_pos "c" -use_parbox 0 -width "1.5in" -special "none" -height "1pt" -height_special "totalheight" -status open - -\begin_layout Standard -This is a second minipage which does not use hfill. - This is the second sentence of a second minipage which does not use hfill. -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -\begin_inset VSpace medskip -\end_inset - - -\end_layout - -\begin_layout Standard -Here is some normal text to separate the two examples. -\end_layout - -\begin_layout Standard -\begin_inset VSpace medskip -\end_inset - - -\end_layout - -\begin_layout Standard -\begin_inset Box Frameless -position "t" -hor_pos "c" -has_inner_box 1 -inner_pos "c" -use_parbox 0 -width "1.5in" -special "none" -height "1pt" -height_special "totalheight" -status open - -\begin_layout Standard -This is a minipage which does use hfill. - This is the second sentence of a minipage which does use hfill. -\end_layout - -\end_inset - - -\hfill - -\begin_inset Box Frameless -position "t" -hor_pos "c" -has_inner_box 1 -inner_pos "c" -use_parbox 0 -width "1.5in" -special "none" -height "1pt" -height_special "totalheight" -status open - -\begin_layout Standard -This is a second minipage which does use hfill. - This is the second sentence of a second minipage which does use hfill. -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Section -Wrapping Text Around Figures -\begin_inset LatexCommand \label{sec:floatflt} - -\end_inset - - -\end_layout - -\begin_layout Standard -\begin_inset Wrap figure -placement r -width "6cm" -status open - -\begin_layout Standard -\begin_inset Graphics - filename mobius.eps - display color - width 40col% - rotateOrigin center - -\end_inset - - -\end_layout - -\begin_layout Caption -This is a wrapped figure, and this is the brilliant caption that describes - it -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -A very frequently asked question is whether text can be made to -\begin_inset Quotes eld -\end_inset - -wrap -\begin_inset Quotes erd -\end_inset - - around figures so that a figure occupies some fraction of the column width - and text fills the rest. - If you have the LaTeX package -\family typewriter -floatflt -\family default - installed (you can find out about it in the -\emph on -LaTeX Configuration -\emph default - manual) you can do this. -\end_layout - -\begin_layout Standard -At the right is a figure of a mobius strip---you should have already seen - this in the -\emph on -User's Guide -\emph default -. - To wrap the text like this insert a wrap box via -\family sans -\bar under -I -\bar default -nsert\SpecialChar \menuseparator -Flo -\bar under -a -\bar default -ts\SpecialChar \menuseparator -Floatflt Figure -\family default -. -\end_layout - -\begin_layout Standard -Note: this package is very fragile! For example, having a figure too close - to the bottom of the page will mess things up, as will having two figures - close together. - Use this package sparingly and do read the documentation that came with - it (which will also tell you how to wrap text around tables). -\end_layout - -\begin_layout Section -Extra Table Options -\end_layout - -\begin_layout Standard -While the standard table layout will suffice in 99% of all tables you generate, - occasionally you will run into one which requires a bit of extra tweaking. - The table dialog which appears on a right-click of a table allows these - tweaks to be made. - It will give you access to some extra column alignment parameters. - A little bit of LaTeX background is useful here: when you set up a table - in LaTeX, each column is given an alignment type. - For example, you would give it -\begin_inset Quotes eld -\end_inset - - -\family typewriter -l -\family default - -\begin_inset Quotes erd -\end_inset - -, -\begin_inset Quotes eld -\end_inset - - -\family typewriter -c -\family default - -\begin_inset Quotes erd -\end_inset - -, or -\begin_inset Quotes eld -\end_inset - - -\family typewriter -r -\family default - -\begin_inset Quotes erd -\end_inset - - for left-aligned, centered, and right-aligned columns respectively (which - appear as the left/center/right radio buttons in LyX). - A fourth type is -\begin_inset Quotes eld -\end_inset - - -\family typewriter -p -\family default - -\begin_inset Quotes erd -\end_inset - -, which will make a column of a specified width (the width box in LyX), - and will wrap text within that box. - A fifth type is -\begin_inset Quotes eld -\end_inset - - -\family typewriter -| -\family default - -\begin_inset Quotes erd -\end_inset - - (vertical bar) which rather than making a column will make a vertical rule - at that point; this manifests itself in LyX as the -\begin_inset Quotes eld -\end_inset - -borders -\begin_inset Quotes erd -\end_inset - - buttons. - Finally, there is a type -\begin_inset Quotes eld -\end_inset - - -\family typewriter -@ -\family default - -\begin_inset Quotes erd -\end_inset - -, which allows you to use whatever is enclosed in the accompanying braces - as the column separator, including a null argument. - The reasons for doing this may not be obvious, but they can be very powerful. - They are best demonstrated by example. -\end_layout - -\begin_layout Subsection -Removing Extra Column Space -\end_layout - -\begin_layout Standard -Here is a standard table: -\end_layout - -\begin_layout Standard -\align center -\begin_inset Tabular - - - - - - -\begin_inset Text - -\begin_layout Standard - -\family roman -\series medium -\shape up -\size normal -\emph off -\bar no -\noun off -\color none -Type -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Standard - -\family roman -\series medium -\shape up -\size normal -\emph off -\bar no -\noun off -\color none -Example -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Standard - -\family roman -\series medium -\shape up -\size normal -\emph off -\bar no -\noun off -\color none -Rock -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Standard - -\family roman -\series medium -\shape up -\size normal -\emph off -\bar no -\noun off -\color none -Granite -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Standard - -\family roman -\series medium -\shape up -\size normal -\emph off -\bar no -\noun off -\color none -Mineral -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Standard - -\family roman -\series medium -\shape up -\size normal -\emph off -\bar no -\noun off -\color none -Quartz -\end_layout - -\end_inset - - - - -\end_inset - - -\end_layout - -\begin_layout Standard -Notice that the horizontal rule extends a bit past the text on both sides. - If you wanted the line to end even with the text, we can put a null separator - on the ends to get rid of the bit of extra space LaTeX adds by default. - Here is the example: -\end_layout - -\begin_layout Standard -\align center -\begin_inset Tabular - - - - - - -\begin_inset Text - -\begin_layout Standard - -\family roman -\series medium -\shape up -\size normal -\emph off -\bar no -\noun off -\color none -Type -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Standard - -\family roman -\series medium -\shape up -\size normal -\emph off -\bar no -\noun off -\color none -Example -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Standard - -\family roman -\series medium -\shape up -\size normal -\emph off -\bar no -\noun off -\color none -Rock -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Standard - -\family roman -\series medium -\shape up -\size normal -\emph off -\bar no -\noun off -\color none -Granite -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Standard - -\family roman -\series medium -\shape up -\size normal -\emph off -\bar no -\noun off -\color none -Mineral -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Standard - -\family roman -\series medium -\shape up -\size normal -\emph off -\bar no -\noun off -\color none -Quartz -\end_layout - -\end_inset - - - - -\end_inset - - -\end_layout - -\begin_layout Standard -In this case, the column specifier for the left column was set to -\begin_inset Quotes eld -\end_inset - - -\family typewriter -@{} l -\family default - -\begin_inset Quotes erd -\end_inset - -, while the right column was set to -\begin_inset Quotes eld -\end_inset - - -\family typewriter -l @{} -\family default - -\begin_inset Quotes erd -\end_inset - -, in order to put the null characters on the edges. - -\end_layout - -\begin_layout Subsection -Changing the Column Separator Character -\end_layout - -\begin_layout Standard -Now suppose you really wanted, for reasons that are completely opaque, to - use -\begin_inset Formula $\sqrt{\pi}$ -\end_inset - - with some space around it for the column separator. - Simply turn off the vertical border, then set the right column specifier - to -\begin_inset Quotes eld -\end_inset - - -\family typewriter -@{~$ -\backslash -sqrt{ -\backslash -pi}$~} l -\family default - -\begin_inset Quotes erd -\end_inset - -. - You could now make a table like this: -\end_layout - -\begin_layout Standard -\align center -\begin_inset Tabular - - - - - - -\begin_inset Text - -\begin_layout Standard - -\family roman -\series medium -\shape up -\size normal -\emph off -\bar no -\noun off -\color none -Type -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Standard - -\family roman -\series medium -\shape up -\size normal -\emph off -\bar no -\noun off -\color none -Example -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Standard - -\family roman -\series medium -\shape up -\size normal -\emph off -\bar no -\noun off -\color none -Rock -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Standard - -\family roman -\series medium -\shape up -\size normal -\emph off -\bar no -\noun off -\color none -Granite -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Standard - -\family roman -\series medium -\shape up -\size normal -\emph off -\bar no -\noun off -\color none -Mineral -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Standard - -\family roman -\series medium -\shape up -\size normal -\emph off -\bar no -\noun off -\color none -Quartz -\end_layout - -\end_inset - - - - -\end_inset - - -\end_layout - -\begin_layout Subsection -Making a Decimal Point Aligned Column -\end_layout - -\begin_layout Standard -Okay, that last example was very silly, but here is one that is not. - Suppose you want to make a table that has a column which is aligned on - a decimal point. - A standard LaTeX trick to do this is to set the whole number part in a - right-aligned column, use a decimal point for the column separator, then - set the fractional part as a left-aligned column. - A variation on this is to include the decimal point explicitly with the - whole part, then use just a null separator in between. - The latter variation is demonstrated here: -\end_layout - -\begin_layout Standard -\align center -\begin_inset Tabular - - - - - - - -\begin_inset Text - -\begin_layout Standard - -\family roman -\series medium -\shape up -\size normal -\emph off -\bar no -\noun off -\color none -Expression -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Standard - -\family roman -\series medium -\shape up -\size normal -\emph off -\bar no -\noun off -\color none -Value -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Standard - -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Standard - -\family roman -\series medium -\shape up -\size normal -\emph off -\bar no -\noun off -\color none -\begin_inset Formula $\pi$ -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Standard - -\family roman -\series medium -\shape up -\size normal -\emph off -\bar no -\noun off -\color none -3. -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Standard - -\family roman -\series medium -\shape up -\size normal -\emph off -\bar no -\noun off -\color none -1416 -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Standard - -\family roman -\series medium -\shape up -\size normal -\emph off -\bar no -\noun off -\color none -\begin_inset Formula $\pi^{\pi}$ -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Standard - -\family roman -\series medium -\shape up -\size normal -\emph off -\bar no -\noun off -\color none -36. -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Standard - -\family roman -\series medium -\shape up -\size normal -\emph off -\bar no -\noun off -\color none -462 -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Standard - -\family roman -\series medium -\shape up -\size normal -\emph off -\bar no -\noun off -\color none -\begin_inset Formula $(\pi^{\pi})^{\pi}$ -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Standard - -\family roman -\series medium -\shape up -\size normal -\emph off -\bar no -\noun off -\color none -80663. -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Standard - -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Standard - -\family roman -\series medium -\shape up -\size normal -\emph off -\bar no -\noun off -\color none -\begin_inset Formula $\pi^{\pi^{\pi}}$ -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Standard - -\family roman -\series medium -\shape up -\size normal -\emph off -\bar no -\noun off -\color none -1. -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Standard - -\family roman -\series medium -\shape up -\size normal -\emph off -\bar no -\noun off -\color none -3402 -\begin_inset Formula $\times10^{18}$ -\end_inset - - -\end_layout - -\end_inset - - - - -\end_inset - - -\end_layout - -\begin_layout Standard -Though it appears a bit funny in LyX, on paper it will produce what appears - to be a 2-column table in which the right column is aligned on the decimal - point and the header appears to be centered over it. -\end_layout - -\begin_layout Standard -Perhaps it is best if I described just what I did: first, create a 3 -\begin_inset Formula $\times$ -\end_inset - -3 table and remove all the borders. - Then re-add a bottom border to the top row, and a right border to the first - column. - Type in the values for the first column and set its alignment to -\family sans -center -\family default -. - Type in the -\family typewriter -3. -\family default -, -\family typewriter -36. -\family default -, -\family typewriter -80663. -\family default -, and -\family typewriter -1. - -\family default - and set that column's alignment to -\family sans -right -\family default -. - Type in the -\family typewriter -1416 -\family default -, -\family typewriter -462 -\family default -, and -\family typewriter -3402 -\begin_inset Formula $\times10^{18}$ -\end_inset - - -\family default - and set the extra column alignment to -\family typewriter -@{} l -\family default -. - Finally type in the word -\family typewriter -Value -\family default - in the middle column, highlight it and the blank entry to its right, and - check the -\family sans -Special Cell -\family default - entry -\family sans -multicolumn -\family default -. - Easy, right? -\end_layout - -\begin_layout Subsection -A Better Decimal-Alignment Solution -\end_layout - -\begin_layout Standard -An alternative way to have decimal alignment in tables is through the -\family typewriter -dcolumn -\family default - package. - Add the following to the LaTeX preamble: -\end_layout - -\begin_layout LyX-Code - -\backslash -usepackage{dcolumn} -\end_layout - -\begin_layout LyX-Code - -\backslash -newcolumntype{d}[1]{D{.}{.}{#1}} -\end_layout - -\begin_layout Standard -To have a column decimally aligned, enter in the -\family sans -Special Column Alignment -\family default - box of the -\family sans -Table -\family default - dialog the following: -\end_layout - -\begin_layout LyX-Code -d{number of decimals of the data} -\end_layout - -\begin_layout Standard -To create extra column space just increase the number of decimals in -\family typewriter -d{} -\family default -. - Setting the multicolumn attribute for a single cell makes it insensitive - to the decimal alignment which comes in handy as well. - A drawback of this method is that math mode is not allowed in a column - with decimal alignment except if the multicolumn attribute is set. -\end_layout - -\begin_layout Standard -This method offers the same flexibility as the -\family typewriter -dcolumn -\family default - package. - One could, for example, change the alignment separator, and have different - alignment separators for different columns by defining multiple column - types in the preamble. - The syntax is as follows: -\end_layout - -\begin_layout LyX-Code -D{inputsep}{outputsep}{decimal places} -\end_layout - -\begin_layout Standard -The interested reader is directed towards the -\family typewriter -dcolumn -\family default - package documentation for more details. -\end_layout - \begin_layout Section Itemize Bullet Selection \begin_inset LatexCommand \label{sec:bullet} @@ -5707,7 +4371,7 @@ email{address} \end_layout \begin_layout Standard -In all cases, the appropriate command has to be entered in LyX and marked +In all cases, the appropriate command has to be entered in LyX an marked as LaTeX code. See the examples. @@ -7721,22 +6385,9 @@ xport\SpecialChar \menuseparator \bar under L \bar default -aTeX +ateX \family default -) -\begin_inset Foot -status open - -\begin_layout Standard -Actually you have the choice between LaTeX (plain) and pdflatex. - If you intend to use pdflatex to prepare the paper, you should use the - pdflatex option so that included graphics are converted to PDF format, - ready for use by pdflatex. -\end_layout - -\end_inset - -, then make the following changes to the resulting +), then make the following changes to the resulting \family typewriter .tex \family default @@ -7941,9 +6592,9 @@ xport\SpecialChar \menuseparator \bar under L \bar default -aTeX +ateX \family default - (plain). +. \end_layout @@ -8008,7 +6659,7 @@ View the resulting \family sans xdvi \family default -, and check if everything is OK (it should, if you didn't make any mistakes). +, and check if everything is ok (it should, if you didn't make any mistake). \end_layout \begin_layout Subsection @@ -8101,9 +6752,8 @@ opening \end_inset . - This is not implemented in LyX, so you must enter title, subtitle etc.\InsetSpace \space{} -between - two ERT lines ( + This is not implemented in LyX, so you must enter title, subtitle etc. + between two ERT lines ( \family typewriter \backslash @@ -9113,8 +7763,8 @@ L \shape italic O \shape default -, resp.\InsetSpace \space{} -in the left margin. +, resp. + in the left margin. It is possible to write any number of letters in one file. An \family sans @@ -9242,7 +7892,7 @@ Subject status collapsed \begin_layout Standard -It could be seen as inconsequential, that the types +It could be seen as a matter of inconsequence, that the types \family sans Letter \family default @@ -9300,8 +7950,8 @@ Telephone \begin_layout Standard The input types can also be used as empty paragraphs. This makes sense e.\InsetSpace ~ -g.\InsetSpace \space{} -for the +g. + for the \family sans Signature \family default @@ -9642,7 +8292,7 @@ Koma-Script version 2.8 has introduced a new letter class \family typewriter scrlttr2 \family default - which supersedes the now unsupported + which superceeds the now unsupported \family typewriter scrlettr \family default @@ -11728,8 +10378,8 @@ invisible visible \family default command]. - If you don't know how to mark text as TeX, see the appropriate section - of the + If you don't know how to mark text as TeX, see the apprpriate section of + the \emph on User's Guide \emph default @@ -14152,8 +12802,8 @@ M-z t \newline \family default -Camera movement instruction.\InsetSpace \space{} -e.g. +Camera movement instruction. + e.g. CUT TO: \end_layout @@ -14506,7 +13156,7 @@ Installation \begin_layout Standard All you need to do is install RevTeX 4, as described in the package's README file. - The package can be found at + the package can be found at \begin_inset LatexCommand \url[The RevTeX 4 Web Site]{http://publish.aps.org/revtex4/} \end_inset @@ -14585,8 +13235,8 @@ Other preamble matter, like \backslash draft \family default - etc.\InsetSpace \space{} -goes in the + etc. + goes in the \family sans Latex\InsetSpace ~ Preamble @@ -15381,7 +14031,7 @@ Abstract: You may wonder why an abstract is an extra feature. Well, it is in book class. Usually books don't have abstracts. Memoir, however, has. - You can use it wherever and how often you like. + You can use it whereever and how often you like. \end_layout \begin_layout Description @@ -15447,7 +14097,7 @@ Epigraph: An epigraph is a smart slogan or motto at the beginning of a chapter. \begin_layout Description Poemtitle: Memoir has lots of possibilities to typeset poetry (up to very complex figurative poems). - LyX can only support a few of them. + Lyx can only support a few of them. One is poemtitle, which is a centered title for poems, which will also be added to the table of contents (verse is the standard environment for poems. @@ -15580,6 +14230,15 @@ Noweb Exporting Other Formats \end_layout +\begin_layout Standard +The output formats listed here in the following are also explained concerning + possible graphics formats in the +\emph on +Extended-Insets +\emph default + manual. +\end_layout + \begin_layout Subsection LaTeX \end_layout @@ -15810,15 +14469,9 @@ Use pdfLaTeX \end_layout \begin_layout Standard -With pdfLaTeX you need to convert your eps figures to PDF (see Section\InsetSpace ~ - -\begin_inset LatexCommand \ref{sec:pdfeps} - -\end_inset - -), and you cannot use pstricks. +With pdfLaTeX you cannot use pstricks. On the other hand, with pdfLaTeX it is possible to insert directly images - in JPEG or PNG format, use TrueType fonts, and more. + in JPEG, PDF or PNG format, use TrueType fonts, and more. \end_layout \begin_layout Subsubsection @@ -16005,7 +14658,7 @@ in the preamble. \end_layout \begin_layout Subsubsection -Is it possible to do write LaTeX code which is processed only when running +Is it possible to do write latex code which is processed only when running pdfLaTeX? \begin_inset OptArg status collapsed @@ -16020,42 +14673,54 @@ Conditionals with pdfLaTeX \end_layout \begin_layout Standard -Yes, you can do this with the -\family typewriter -ifpdf.sty -\family default - package. +Yes. Here is an example: \end_layout \begin_layout LyX-Code +\backslash +newif +\backslash +ifpdf \end_layout \begin_layout LyX-Code - + +\backslash +ifx +\backslash +pdfoutput +\backslash +undefined \end_layout \begin_layout LyX-Code - + +\backslash +pdffalse \end_layout \begin_layout LyX-Code - + +\backslash +else \end_layout \begin_layout LyX-Code - -\end_layout - -\begin_layout LyX-Code - + +\backslash +pdftrue \end_layout \begin_layout LyX-Code \backslash -usepackage{ifpdf} +fi +\end_layout + +\begin_layout LyX-Code + \end_layout \begin_layout LyX-Code @@ -16120,16 +14785,12 @@ usepackage[ps2pdf]{hyperref} fi \end_layout -\begin_layout LyX-Code - -\end_layout - \begin_layout Subsubsection -How can I make URLs clickable? +How can I make URLs clickable ? \end_layout \begin_layout Standard -See the references here: +See the references here : \end_layout \begin_layout Standard @@ -16175,9 +14836,8 @@ dialog; LyX will automatically convert the file to this point, then feed \end_layout \begin_layout Standard -The converter command is also specified in the dialog. - It should be a completely qualified command line which uses the variable - +The converter command is also specified in the dialog.It should be a completely + qualified command line which uses the variable \family typewriter $$FName \family default @@ -16207,2268 +14867,6 @@ dialog, you can manually edit your custom_export_command "mycommand $$FName" \end_layout -\begin_layout Section -The Complete reLyX Description -\begin_inset LatexCommand \label{sec:reLyX} - -\end_inset - - -\end_layout - -\begin_layout Subsection -Synopsis -\end_layout - -\begin_layout Standard -The simplest way to use reLyX is via the -\family sans -\bar under -F -\bar default -ile\SpecialChar \menuseparator - -\bar under -I -\bar default -mport -\family default - command in LyX. - That runs reLyX on the given file and loads the resulting file into LyX. - You should try that first, and call it from the command line only if you - need to use more complicated options. -\end_layout - -\begin_layout Standard - -\series bold -reLyX -\series default - [ -\series bold --c -\series default - -\shape italic -textclass -\shape default - ] [ -\series bold --df -\series default - ] [ -\series bold --o -\series default - -\shape italic -outputdir -\shape default - ] [ -\series bold - -r -\series default -\shape italic - renv1 -\shape default -[, -\shape italic -renv2 -\shape default -...]] [ -\series bold - -s -\series default -\shape italic - sfile1 -\shape default -[, -\shape italic -sfile2 -\shape default -...]] -\emph on -inputfile -\end_layout - -\begin_layout Standard - -\series bold -reLyX -\series default - -\series bold --p -\series default - -\series bold --c -\series default - -\shape italic -textclass -\shape default - [ -\series bold --df -\series default - ] [ -\series bold --o -\series default - -\shape italic -outputdir -\shape default - ] [ -\series bold - -r -\series default -\shape italic - renv1 -\shape default -[, -\shape italic -renv2 -\shape default -...]] [ -\series bold - -s -\series default -\shape italic - sfile1 -\shape default -[, -\shape italic -sfile2 -\shape default -...]] -\emph on -inputfiles -\end_layout - -\begin_layout Standard - -\series bold -reLyX -\series default - -\series bold --h -\end_layout - -\begin_layout Subsection -Options -\end_layout - -\begin_layout Description - -\series bold --c -\series default - Class. - By default, when reLyX sees a -\family typewriter - -\backslash -documentclass{foo} -\family default - command, it creates a file of textclass -\begin_inset Quotes eld -\end_inset - -foo -\begin_inset Quotes erd -\end_inset - - and reads the LyX layout file for that class. - Use -\series bold --c -\series default - to declare a different textclass (and read a different layout file). -\end_layout - -\begin_layout Description - -\series bold --d -\series default - Debug. - By default, reLyX gives sparse output and deletes the temporary files which - were created during translation. - Using the -\series bold --d -\series default - flag will create much more output (both to stdout and stderr) and leave - the temporary files around. -\end_layout - -\begin_layout Description - -\series bold --f -\series default - Force. - reLyX will not run if the -\family typewriter -.lyx -\family default - file it would generate already exists Use the -\series bold --f -\series default - option (carefully) to clobber any existing files. -\end_layout - -\begin_layout Description - -\series bold --h -\series default - Help. - Print out usage information and quit -\end_layout - -\begin_layout Description - -\series bold --o -\series default - Output directory. - With this option, all temporary files and LyX output files (for the given - input file, for any included files, or for any file fragments given with - the -\series bold --p -\series default - option) will be put into -\shape italic -outputdir -\shape default -. - Otherwise, for each file -\emph on -dir/foo.tex -\emph default -, the temporary files and the LyX output file will be created in -\emph on -dir -\emph default -. - This can be useful if a file includes files from other directories which - you want to consolidate in one directory, or if you don't have write permission - on the directory the LaTeX files are in. -\end_layout - -\begin_layout Description - -\series bold --p -\series default - Partial file. - The input files are LaTeX fragments, with no preamble matter or -\family typewriter - -\backslash -begin{document} -\family default - commands. - This option requires the -\series bold --c -\series default - option, since there are no -\family typewriter - -\backslash -documentclass -\family default - commands in the files reLyX is translating. - When using this option, you can translate more than one file, as long as - all files are the same class. - The LyX file created by reLyX can be included in an existing LyX file using - -\family sans -\bar under -I -\bar default -nsert\SpecialChar \menuseparator -Fil -\bar under -e -\bar default -\SpecialChar \menuseparator -Ly -\bar under -X -\bar default -\InsetSpace ~ -Document -\family default -. -\end_layout - -\begin_layout Description - -\series bold --r -\series default - Regular environments (see the Section\InsetSpace ~ - -\begin_inset LatexCommand \ref{sub:relyx-syntax} - -\end_inset - -). - If you give more than one environment, separate them with commas (not - spaces). - You'll probably need to quote the environment list, especially if it has - asterisk environments (foo*) in it. - If you use this command often, considering creating a personal syntax file. -\end_layout - -\begin_layout Description - -\series bold --s -\series default - Syntax files. - Input (one or more quoted, comma-separated) syntax files to read in addition - to the default. - (see Section\InsetSpace ~ - -\begin_inset LatexCommand \ref{sub:relyx-syntax} - -\end_inset - - for details). -\end_layout - -\begin_layout Subsection -Description -\end_layout - -\begin_layout Subsubsection -Introduction -\end_layout - -\begin_layout Standard -reLyX will create a LyX file -\emph on -dir/foo.lyx -\emph default - from the LaTeX file -\emph on -dir/foo.tex -\emph default - (unless the -\series bold --o -\series default - option is used). -\end_layout - -\begin_layout Standard -Suffixes -\family typewriter -.tex -\family default -, -\family typewriter -.ltx -\family default - and -\family typewriter -.latex -\family default - are supported. - If -\emph on -inputfile -\emph default - does not exist and does not have one of these suffixes, reLyX will try - to translate -\emph on -inputfile.tex -\emph default -. - (This is similar to the behavior of LaTeX.) -\end_layout - -\begin_layout Standard -The purpose of reLyX is to translate -\shape italic -well-behaved -\shape default - LaTeX2e into LyX. - If your LaTeX file doesn't compile---or if you do weird things, like redefining - standard LaTeX commands---it may choke. - LaTeX209 will often be translated correctly, but it's not guaranteed. -\end_layout - -\begin_layout Standard -reLyX has some bugs and lacks a few features. - However, its main goals are: -\end_layout - -\begin_layout Itemize -Get through a well-behaved LaTeX2e file without crashing -\end_layout - -\begin_layout Itemize -Translate a lot of that file. -\end_layout - -\begin_layout Itemize -Localize the parts that can't be translated and copy them in TeX mode -\end_layout - -\begin_layout Standard -It achieves these main goals pretty well on most files. -\end_layout - -\begin_layout Standard -There are many improvements that can and will be made to reLyX in the future. - However, we wanted to get reLyX out there early on, to make it easier for - new LyX users to read in their existing LaTeX files. -\end_layout - -\begin_layout Subsubsection -Usage -\end_layout - -\begin_layout Standard -Here's a more lengthy description of what you should do to translate a LaTeX - document into LyX. -\end_layout - -\begin_layout Itemize -Run reLyX. -\end_layout - -\begin_deeper -\begin_layout Standard -reLyX will inform you of its progress and give any warnings to stderr, so - if you don't want any output at all, try (in csh) -\begin_inset Quotes eld -\end_inset - - -\family typewriter -reLyX foo.tex >& /dev/null -\family default - -\begin_inset Quotes erd -\end_inset - - or (in bash) -\begin_inset Quotes eld -\end_inset - - -\family typewriter -reLyX foo.tex -\family default - -\family typewriter -2>&1 >/dev/null -\family default - -\begin_inset Quotes erd -\end_inset - -. - You should NOT redirect standard output to -\family typewriter -foo.lyx -\family default -. - -\end_layout - -\end_deeper -\begin_layout Itemize -Run LyX on the resulting .lyx file. -\end_layout - -\begin_deeper -\begin_layout Standard -In theory, most of the file will have been translated, and anything that's - untranslatable will be highlighted in red (TeX mode). - In theory, LyX will be able to read in the file, and to create printed - documents from it, because all that untranslated red stuff will be passed - directly back to LaTeX, which LyX uses as a backend. - Unfortunately, reality doesn't always reflect theory. - If reLyX crashes, or LyX cannot read the generated LyX file, see Section\InsetSpace ~ - -\begin_inset LatexCommand \ref{sub:relyx-bugs} - -\end_inset - - or the -\family typewriter -BUGS -\family default - file. -\end_layout - -\end_deeper -\begin_layout Itemize -Change things that are in ERT boxes (TeX code) by hand in LyX. -\end_layout - -\begin_deeper -\begin_layout Standard -As mentioned above, you should be able to print out the LyX file even without - doing this. - However, changing a command in TeX mode to the corresponding LyX object - will allow you to take advantage of LyX's WYSIWYM editing. -\end_layout - -\begin_layout Standard -reLyX is not guaranteed to create a LyX file which generates exactly the - same output as the LaTeX file, but it should come close. - reLyX will generally err on the side of translating less to ensure that - DVI or PostScript® files are accurate, even though this leads to more -\begin_inset Quotes eld -\end_inset - -evil red text -\begin_inset Quotes erd -\end_inset - - and less WYSIWYM. -\end_layout - -\end_deeper -\begin_layout Itemize -PROOFREAD THE DOCUMENT!! -\end_layout - -\begin_deeper -\begin_layout Standard -I'm sure you were planning on doing this anyway, but it's particularly important - after translating a LaTeX document. - reLyX is, at least now, better at -\begin_inset Quotes eld -\end_inset - -macro-translating -\begin_inset Quotes erd -\end_inset - - (translating the whole document) than -\begin_inset Quotes eld -\end_inset - -micro-translating -\begin_inset Quotes erd -\end_inset - - (translating every little detail). - For example, you may see extra spaces or deleted spaces. - Space handling has improved, but it's not perfect. -\end_layout - -\end_deeper -\begin_layout Subsubsection -What reLyX Can Handle -\end_layout - -\begin_layout Standard -reLyX understands many LaTeX commands. - It will translate: -\end_layout - -\begin_layout Itemize -regular text, including mini-commands like ~, '', -\family typewriter - -\backslash -@ -\family default -, -\family typewriter - -\backslash -TeX -\family default -, as well as accented characters like -\family typewriter - -\backslash -'{a} -\family default -, and the special cases ?` and !` -\end_layout - -\begin_layout Itemize -title commands like -\family typewriter - -\backslash -author -\family default -, -\family typewriter - -\backslash -date -\family default -, -\family typewriter - -\backslash -title -\family default -, -\family typewriter - -\backslash -thanks -\family default - and the abstract environment -\end_layout - -\begin_layout Itemize -heading commands like -\family typewriter - -\backslash -section -\family default - including starred commands ( -\family typewriter - -\backslash -section* -\family default -) -\end_layout - -\begin_layout Itemize -Environments: -\family typewriter -quote -\family default -, -\family typewriter -quotation -\family default -, and -\family typewriter -verse -\family default -; -\family typewriter -center -\family default -, -\family typewriter -flushright -\family default -, and -\family typewriter -flushleft -\end_layout - -\begin_layout Itemize - -\family typewriter -itemize -\family default -, -\family typewriter -enumerate -\family default -, and -\family typewriter -description -\family default - environments, and their -\family typewriter - -\backslash -item -\family default - commands. - Also, well-behaved nested lists -\end_layout - -\begin_layout Itemize -cross-referencing commands: -\family typewriter - -\backslash -ref -\family default -, -\family typewriter - -\backslash -pageref -\family default -, -\family typewriter - -\backslash -label -\family default -, and -\family typewriter - -\backslash -cite -\end_layout - -\begin_layout Itemize - -\family typewriter - -\backslash -footnote -\family default - and -\family typewriter - -\backslash -margin -\end_layout - -\begin_layout Itemize -font-changing commands including -\family typewriter - -\backslash -em -\family default -, -\family typewriter - -\backslash -emph -\family default -, -\family typewriter - -\backslash -textit -\family default -, and corresponding commands to change family, size, series, and shape -\end_layout - -\begin_layout Itemize - -\family typewriter - -\backslash -input{foo} -\family default - (or -\family typewriter - -\backslash -input{foo.blah} -\family default -) and -\family typewriter - -\backslash -include{foo} -\family default -. - Plain TeX -\family typewriter - -\backslash -input -\family default - command `` -\family typewriter - -\backslash -input foo.tex -\family default - -\begin_inset Quotes erd -\end_inset - - is also supported. -\end_layout - -\begin_layout Itemize - -\family typewriter -tabular -\family default - environment, and commands that go inside it like -\family typewriter - -\backslash -hline -\family default -, -\family typewriter - -\backslash -cline -\family default -, and -\family typewriter - -\backslash -multicolumn -\family default - (but see below) -\end_layout - -\begin_layout Itemize -float environments -\family typewriter -table -\family default - and -\family typewriter -table* -\family default -, as well as -\family typewriter - -\backslash -caption -\family default - commands within them -\end_layout - -\begin_layout Itemize - -\family typewriter -thebibliography -\family default - environment and -\family typewriter - -\backslash -bibitem -\family default - command, as well as BibTeX's -\family typewriter - -\backslash -bibliography -\family default - and -\family typewriter - -\backslash -bibliographystyle -\family default - commands -\end_layout - -\begin_layout Itemize -miscellaneous commands: -\family typewriter - -\backslash -hfill -\family default -, -\family typewriter - -\backslash - -\backslash - -\family default -, -\family typewriter - -\backslash -noindent -\family default -, -\family typewriter - -\backslash -ldots -\family default -... -\end_layout - -\begin_layout Itemize -documentclass-specific environments (and some commands) which can be translated - to LyX layouts -\end_layout - -\begin_layout Itemize -arguments to certain untranslatable commands (e.g. - -\family typewriter - -\backslash -mbox -\family default -) -\end_layout - -\begin_layout Standard -Some of this support may not be 100% yet. - See below for details -\end_layout - -\begin_layout Standard -reLyX copies math (almost) verbatim from your LaTeX file. - Luckily, LyX reads in LaTeX math, so (almost) any math which is supported - by LyX should work just fine. - A few math commands which are not supported by LyX will be replaced with - their equivalents, e.g., -\family typewriter - -\backslash -to -\family default - is converted to -\family typewriter - -\backslash -rightarrow -\family default -. - See the section on -\shape italic -Syntax Files -\shape default - for more details. -\end_layout - -\begin_layout Standard -reLyX will also copy any preamble commands (i.e., anything before -\family typewriter - -\backslash -begin{document} -\family default -) verbatim, so fancy stuff you've got in your preamble should be conserved - in DVI and printed documents, although it will not of course show up in - the LyX window. - Check the preamble to make sure. -\end_layout - -\begin_layout Subsubsection -What reLyX Can't Handle --- But it's OK -\end_layout - -\begin_layout Itemize -figures and -\family typewriter -tabular* -\family default - tables -\end_layout - -\begin_layout Itemize -minipages -\end_layout - -\begin_layout Itemize -spacing commands ( -\family typewriter - -\backslash -vspace -\family default -, -\family typewriter - -\backslash -pagebreak -\family default -, -\family typewriter - -\backslash -par -\family default -) -\end_layout - -\begin_layout Itemize - -\family typewriter - -\backslash -centering -\family default -, -\family typewriter - -\backslash -raggedleft -\family default -, -\family typewriter - -\backslash -raggedright -\end_layout - -\begin_layout Itemize - -\family typewriter - -\backslash -verb -\family default - and -\family typewriter -verbatim -\family default - environment. - reLyX is careful to copy -\shape italic -exactly -\shape default - in this case, including comments and whitespace. -\end_layout - -\begin_layout Itemize -some unknown (e.g., user-defined) environments and commands -\end_layout - -\begin_layout Standard -reLyX copies unknown commands, along with their arguments, verbatim into - the LyX file. - Also, if it sees a -\family typewriter - -\backslash -begin{foo} -\family default - where it doesn't recognize the -\begin_inset Quotes eld -\end_inset - -foo -\begin_inset Quotes erd -\end_inset - - environment, it will copy verbatim until it sees -\family typewriter - -\backslash -end{foo} -\family default - (unless you use the -\series bold --r -\series default - option). - Hopefully, then, most of these unknown commands won't cause reLyX to break; - they'll merely require you to do some editing once you've loaded the file - up in LyX. - That should be less painful than editing either the -\family typewriter -.tex -\family default - or the -\family typewriter -.lyx -\family default - file using a text editor. -\end_layout - -\begin_layout Subsubsection -What reLyX Handles Badly --- a.\InsetSpace ~ -k.\InsetSpace ~ -a. - BUGS -\begin_inset LatexCommand \label{sub:relyx-bugs} - -\end_inset - - -\end_layout - -\begin_layout Standard -Since reLyX is relatively new, it's got a number of problems. - As it matures, these bugs will be squished. - A number of bugs and missing features can be found listed on the LyX bug - tracker, -\begin_inset LatexCommand \url[LyX Bugzilla]{http://bugzilla.lyx.org/} - -\end_inset - -. -\end_layout - -\begin_layout Standard -If reLyX is choking on something, or LyX can't read it after reLyX translates - it, the best thing to do is to put -\family typewriter - -\backslash -begin{reLyXskip} -\family default - before the offending text, and -\family typewriter - -\backslash -end{reLyXskip} -\family default - after it. - I call this a -\begin_inset Quotes eld -\end_inset - -skip -\begin_inset Quotes erd -\end_inset - - block. - reLyX will copy this block exactly, in TeX mode. - Then edit the resulting LyX file, and translate the unknown stuff by hand. - The -\family typewriter -reLyXskip -\family default - environment is magical; the -\family typewriter - -\backslash -begin -\family default - and -\family typewriter - -\backslash -end -\family default - commands will not be put into the LyX file. -\end_layout - -\begin_layout Itemize -\begin_inset Quotes eld -\end_inset - -Exact -\begin_inset Quotes erd -\end_inset - - copying of unknown environments and commands isn't quite exact. - Specifically, newlines and comments may be lost. - This will yield ugly LyX, but in almost all cases the output will be the - same. - However, certain parts of the file will be copied perfectly, including - whitespace and comments. - This includes: the LaTeX preamble, -\family typewriter -verbatim -\family default - environments and -\family typewriter - -\backslash -verb -\family default - commands, and skip blocks. -\end_layout - -\begin_layout Itemize -reLyX translates only a few options to the -\family typewriter - -\backslash -documentclass -\family default - command. - (Specifically 1[012]pt, [letter|legal|executive|a4|a5|b5]paper, [one|two]side, - landscape, and [one|two]column.) Other options are placed in the extra class - options field in the -\family sans -\bar under -D -\bar default -ocument\SpecialChar \menuseparator - -\bar under -S -\bar default -ettings -\family default - dialog. -\end_layout - -\begin_deeper -\begin_layout Standard -More importantly, reLyX doesn't translate -\family typewriter - -\backslash -usepackage -\family default - commands, margin commands, -\family typewriter - -\backslash -newcommand -\family default -s, or, in fact, anything else from the preamble. - It simply copies them into the LaTeX preamble. - If you have margin commands in your preamble, then the LyX file will generate - the right margins. - However, these margins will override any margins you set in the LyX -\family sans -\bar under -D -\bar default -ocument -\bar under -\SpecialChar \menuseparator -S -\bar default -ettings -\family default - dialog. - So you should remove the options from the preamble to be safe. - The same goes for setting your language with babel, -\family typewriter - -\backslash -inputencoding -\family default -, -\family typewriter - -\backslash -pagestyle -\family default -, etc. -\end_layout - -\end_deeper -\begin_layout Itemize -The foil class has a couple bugs. - reLyX may do weird things with optional arguments to -\family typewriter - -\backslash -foilhead -\family default - commands. - Also, it may handle -\family typewriter - -\backslash -begin{dinglist} -\family default - incorrectly (although the stuff in the environment should translate normally). -\end_layout - -\begin_layout Standard -reLyX is hopefully rather robust. - As mentioned above, it may not translate your file perfectly, but it shouldn't - crash. - If it does crash---and the problem is not one of those mentioned above - or in the -\emph on -BUGS -\emph default - file---see Section\InsetSpace ~ - -\begin_inset LatexCommand \ref{sub:relyx-bug-reports} - -\end_inset - -. -\end_layout - -\begin_layout Subsubsection -What LyX Can't Handle -\end_layout - -\begin_layout Standard -LyX itself is missing a couple features, such that even if reLyX translates - things perfectly, LyX may still have trouble reading it. - If you really need these features, you can export your final document as - LaTeX, and put them back in. - See -\emph on -BUGS -\emph default - for more details on these bugs. -\end_layout - -\begin_layout Itemize -For a number of commands, LyX does not support the optional argument. - Examples include -\family typewriter - -\backslash -sqrt -\family default -, -\family typewriter - -\backslash -chapter -\family default - (and other sectioning commands), and -\family typewriter - -\backslash - -\backslash - -\family default -. - reLyX will automatically discard the optional arguments with a warning - to stdout. - LyX also ignores the width argument for the -\family typewriter -thebibliography -\family default - environment. -\end_layout - -\begin_layout Itemize -Centering (or right or left justifying) works on full paragraphs. -\end_layout - -\begin_layout Itemize -LyX support for tables isn't perfect. - For complicated tables, use a -\begin_inset Quotes eld -\end_inset - -skip -\begin_inset Quotes erd -\end_inset - - block, so that they will be copied in TeX mode. -\end_layout - -\begin_layout Itemize -The LyX math editor can't handle the AMS-LaTeX math environments align, - split, etc. - So those environments will be copied in TeX mode. - You can change -\family typewriter -equation* -\family default - environments to the exactly equivalent displaymath, and then they will - be translated correctly. -\end_layout - -\begin_layout Subsection -Examples -\end_layout - -\begin_layout Standard - -\family typewriter -reLyX -df -o -\begin_inset Quotes eld -\end_inset - -my/dir -\begin_inset Quotes erd -\end_inset - - -r -\begin_inset Quotes eld -\end_inset - -myenv -\begin_inset Quotes erd -\end_inset - - foo.tex > foo.debug -\end_layout - -\begin_layout Standard -The above will create a file my/dir/foo.lyx from foo.tex, overwriting if necessary. - When it finds a -\family typewriter - -\backslash -begin{myenv} ... - -\backslash -end{myenv} -\family default - block, it will translate the stuff within the block, but copy the -\family typewriter - -\backslash -begin -\family default - and -\family typewriter - -\backslash -end -\family default - commands in TeX mode. - Finally, I'm going to keep the temporary files around (they will also - be in my/dir/) and output lots of debugging information into the file foo.debug. -\end_layout - -\begin_layout Subsection -Notes -\end_layout - -\begin_layout Subsubsection -Bug Reports -\begin_inset LatexCommand \label{sub:relyx-bug-reports} - -\end_inset - - -\end_layout - -\begin_layout Standard -If reLyX is crashing or otherwise acting strangely---in ways other than - those described in Section\InsetSpace ~ - -\begin_inset LatexCommand \ref{sub:relyx-bugs} - -\end_inset - - or the bug tracker---then please run reLyX -\series bold - -d -\series default -. - That will allow you to figure out where in the reLyXing process it crashed. - That, in turn, will allow you to write a better bug report, which will - allow the developers to fix it more quickly and easily. -\end_layout - -\begin_layout Standard -Bug reports should be sent to the LyX developers' mailing list. - Its address is currently -\family typewriter -lyx-devel@lists.lyx.org -\family default -. - If you are running reLyX on a huge file, please do not send all of the - output in your bug report. - Just include the last ten or twenty lines of output, along with the piece - of the LaTeX file it crashed on. - Or, even better, attach a small but complete file which causes the same - problem as your original file. -\end_layout - -\begin_layout Subsubsection -Implementation Details: -\end_layout - -\begin_layout Standard -reLyX makes several -\begin_inset Quotes eld -\end_inset - -passes -\begin_inset Quotes erd -\end_inset - - in order to translate a TeX file. - On each pass, it creates one or two files. -\end_layout - -\begin_layout Description -Pass\InsetSpace ~ -0 \InsetSpace ~ - -\newline -Before doing anything, read the syntax file (or files). -\end_layout - -\begin_layout Description -Pass\InsetSpace ~ -1a \InsetSpace ~ - -\newline -Split preamble (anything before a -\family typewriter - -\backslash -begin{document} -\family default - command) off the rest of the file. - It saves the two pieces in separate files. - This is necessary because there may be very strange stuff in a preamble. - It also ignores anything after the -\family typewriter - -\backslash -end{document} -\family default -, on the assumption that it isn't LaTeX. -\end_layout - -\begin_layout Description -Pass\InsetSpace ~ -1b \InsetSpace ~ - -\newline -Translate the preamble. - Currently, that just means translating the -\family typewriter - -\backslash -documentclass -\family default - command and copying the rest exactly into the LyX preamble. -\end_layout - -\begin_deeper -\begin_layout Standard -Once you know what class the document is, read the LyX layout file for that - class. -\end_layout - -\end_deeper -\begin_layout Description -Pass\InsetSpace ~ -2 \InsetSpace ~ - -\newline - -\begin_inset Quotes eld -\end_inset - -Clean -\begin_inset Quotes erd -\end_inset - - the TeX file, generating slightly stricter LaTeX. - This includes: -\end_layout - -\begin_deeper -\begin_layout Itemize -Change, e.g., -\family typewriter -x^2 -\family default - to the equivalent but clearer -\family typewriter -x^{2} -\end_layout - -\begin_layout Itemize -Removing optional arguments that LyX can't handle (e.g., from -\family typewriter - -\backslash -sqrt -\family default -) -\end_layout - -\begin_layout Itemize -Changing -\family typewriter -{ -\backslash -em foo} -\family default - to -\family typewriter - -\backslash -emph{foo} -\family default -, etc. - This is necessary because LyX always writes out the non-local forms anyway. - This should very rarely make a difference. -\end_layout - -\end_deeper -\begin_layout Description -Pass\InsetSpace ~ -3 \InsetSpace ~ - -\newline -Translate LaTeX text, commands, and environments to LyX. -\end_layout - -\begin_layout Description -Pass\InsetSpace ~ -4 \InsetSpace ~ - -\newline -Put the two pieces back together, and do some final tweaking, to generate - the LyX file -\end_layout - -\begin_layout Standard -If there are any -\family typewriter - -\backslash -input -\family default - or -\family typewriter - -\backslash -include -\family default - commands, reLyX will loop back to the beginning and translate those. - It assumes that the included files are the same class as the main file, - and that they have no preamble matter. - (If you have an -\family typewriter - -\backslash -input -\family default - command in the preamble of a file, the command will be copied exactly into - the LaTeX preamble portion of the LyX file, so the included file won't - be translated.) So when translating included files, it skips passes 0 and - 1. -\end_layout - -\begin_layout Standard -If reLyX doesn't find a file you wanted to include, it will give a warning, - but will continue to translate any files it does find. -\end_layout - -\begin_layout Subsubsection -Layout Files -\end_layout - -\begin_layout Standard -reLyX reads a LyX layout file to know how to handle LaTeX environments and - commands which get translated to LyX layouts. - This file will include all -\begin_inset Quotes eld -\end_inset - -normal -\begin_inset Quotes erd -\end_inset - - non-math environments (i.e., including quote and itemize, but not tabular, - minipage, and some other fancy environments), and commands like -\family typewriter - -\backslash -section -\family default - and -\family typewriter - -\backslash -title -\family default -. - If you want to reLyX a class that doesn't have an existing layout file, - then you'll have to create a layout file. - But you have to do this anyway, in order to LyX the file, since LyX depends - on layout files to know how to display and process its files. - Check the LyX documentation for help with this task (which can be hard - or easy, depending on the class you want to create a layout file for.) If - your class is quite similar to a class that has a layout file, then consider - using the -\series bold --c -\series default - option. -\end_layout - -\begin_layout Subsubsection -Syntax Files -\begin_inset LatexCommand \label{sub:relyx-syntax} - -\end_inset - - -\end_layout - -\begin_layout Standard -reLyX always reads at least one syntax file, called the default syntax file. - reLyX will read your personal syntax file if it exists; otherwise it will - read the system-wide file. - reLyX will read additional syntax files if you specify them with the -\series bold --s -\series default - option. - (These extra files should have the same format as the default file, but - will tend to be shorter, since they only have to specify extra commands - not found in the default file.) A syntax file tells reLyX a few things. -\end_layout - -\begin_layout Standard -First, it describes the syntax of each command, that is, how many required - arguments and how many optional arguments the command takes. - Knowing this makes it easier for reLyX to copy (in TeX mode) commands that - it doesn't know how to translate. - The syntax file simply has a command, followed by braces or brackets describing - its arguments in the correct order. - For example, a syntax file entry -\family typewriter - -\backslash -bibitem[]{} -\family default - means that the -\family typewriter - -\backslash -bibitem -\family default - command takes an optional argument followed by a required one, while the - entry -\family typewriter - -\backslash -bf -\family default - means that the -\family typewriter - -\backslash -bf -\family default - command takes no arguments at all. - When reLyX encounters a token that it doesn't know how to translate into - LyX, it will copy the token---along with the correct number of arguments---exac -tly. - If the token is not in the syntax file, then reLyX just copies as many - arguments as it finds. - This means that it may copy too much. - But since the user can specify additional syntax files, that shouldn't - happen often. -\end_layout - -\begin_layout Standard -Some commands that cannot be translated to LyX, like -\family typewriter - -\backslash -mbox -\family default -, have as one of their arguments regular LaTeX text. - If the string -\begin_inset Quotes eld -\end_inset - -translate -\begin_inset Quotes erd -\end_inset - - is put into an argument of an (untranslatable) command in the syntax file, - then reLyX will translate that argument instead of copying it verbatim. - So, for example, the default syntax file has -\family typewriter - -\backslash -raisebox{}[][]{translate} -\family default -. - This means that the -\family typewriter - -\backslash -raisebox -\family default - command and the first argument (and optional arguments if they exist) are - copied in TeX mode, but the last argument (which may contain math, complicated - LaTeX, other untranslatable commands, etc.) will be translated into LyX. - You can't use -\begin_inset Quotes eld -\end_inset - -translate -\begin_inset Quotes erd -\end_inset - - on optional arguments. -\end_layout - -\begin_layout Standard -User-defined syntax files are allowed to define new commands and their syntax, - or override the number of arguments for a command given in the default - syntax file. - (E.g., if you're using a style that gives an extra argument to some command...) - However, this will only be useful for commands copied in TeX mode. - Commands which are actually translated by reLyX (like -\family typewriter - -\backslash -item -\family default -) have their argument syntax hard-coded. - The hard-coded commands are identified in the default syntax file. -\end_layout - -\begin_layout Standard -Second, the syntax file describes any -\begin_inset Quotes eld -\end_inset - -regular environments -\begin_inset Quotes erd -\end_inset - -. - Usually, an entire unknown environment will be copied in TeX mode. - If you define a regular environment -\begin_inset Quotes eld -\end_inset - -foo -\begin_inset Quotes erd -\end_inset - -, though, then only the -\family typewriter - -\backslash -begin{foo} -\family default - and -\family typewriter - -\backslash -end{foo} -\family default - commands will be copied in TeX mode; the text within the environment will - be treated (i.e., translated) by reLyX as regular LaTeX, rather than being - copied into TeX mode. - Don't try to declare -\family typewriter -tabbing -\family default - and -\family typewriter -picture -\family default - as regular environments, as the text within those environments will confuse - reLyX; use this capability for new environments you create that have plain - text or math or simple commands in them. - You also can't declare unknown math environments (like -\family typewriter -equation* -\family default -) as regular environments, either, since the LyX math editor won't understand - them. - The names of regular environments appear, whitespace-separated, between - -\family typewriter - -\backslash -begin{reLyXre} -\family default - and -\family typewriter - -\backslash -end{reLyXre} -\family default - statements in the syntax file. - (If you have a regular environment which you won't use very often, you - can use the -\series bold --r -\series default - option rather than writing a syntax file.) -\end_layout - -\begin_layout Standard -Third, the syntax file describes a math translation table. - The LyX math editor doesn't support a few commands. - For example, -\family typewriter -_ -\family default - is supported, but the equivalent -\family typewriter - -\backslash -sb -\family default - is not. - Put any commands you'd like translate between -\family typewriter - -\backslash -begin{reLyXmt} -\family default - and -\family typewriter - -\backslash -end{reLyXmt} -\family default - statements. - The statement -\begin_inset Quotes eld -\end_inset - - -\family typewriter - -\backslash -| { -\backslash -Vert} -\family default - -\begin_inset Quotes erd -\end_inset - - means that any -\family typewriter - -\backslash -| -\family default - in math mode will be converted to -\begin_inset Quotes eld -\end_inset - - -\family typewriter - -\backslash -Vert -\family default - -\begin_inset Quotes erd -\end_inset - - -\family typewriter - -\family default -(in cases where a token made up of a backslash and a non-letter is translated - to something with letters at the end, a space is added by reLyX. - That way, -\begin_inset Quotes eld -\end_inset - - -\family typewriter - -\backslash -|a -\family default - -\begin_inset Quotes erd -\end_inset - - is correctly translated to -\begin_inset Quotes eld -\end_inset - - -\family typewriter - -\backslash -Vert a -\family default - -\begin_inset Quotes erd -\end_inset - -). -\end_layout - -\begin_layout Subsubsection -Miscellaneous -\end_layout - -\begin_layout Standard -You need Perl version 5.002 or later to run reLyX. - If you don't have Perl, you should get it anyway (at -\begin_inset LatexCommand \url[Perl]{http://www.perl.com/} - -\end_inset - -), because it's a really useful tool for pretty much anything. - -\end_layout - -\begin_layout Subsection -Diagnostics -\end_layout - -\begin_layout Standard -reLyX should always explain why it crashes, if it crashes. - Some diagnostics may be very technical, though, if they come from the guts - of the code. - reLyX gives much more information while running if you use the -\series bold --d -\series default - option, but you shouldn't need that unless something goes wrong. -\end_layout - -\begin_layout Standard -When it's finished, reLyX will tell you if it finished successfully or died - due to some error. -\end_layout - -\begin_layout Subsection -Warnings -\end_layout - -\begin_layout Standard -Always keep a copy of your original LaTeX files either under a different - name or in a different directory. - There are a couple ways in which using LyX could lead to overwriting the - original LaTeX file. -\end_layout - -\begin_layout Standard -If you import -\family typewriter -foo.tex -\family default - to create -\family typewriter -foo.lyx -\family default -, then edit -\family typewriter -foo.lyx -\family default - and want to re-export it, note that it will overwrite the original -\family typewriter -foo.tex -\family default -. - (LyX will -\emph on -not -\emph default - ask you if you want to overwrite it.) -\end_layout - -\begin_layout Standard -If you have chosen not to use a temporary directory in the preferences, - then LyX will create its temporary files in your current directory, which - means your LaTeX original may be overwritten (without a warning from LyX) - when you -\begin_inset Quotes eld -\end_inset - -View DVI -\begin_inset Quotes erd -\end_inset - - or print the LyX document. -\end_layout - -\begin_layout Subsection -Files -\end_layout - -\begin_layout Description - -\family typewriter -\series medium -MY_LYXDIR/layouts/*.layout -\family default -\series default - \InsetSpace ~ - -\newline -User's personal layout files for document classes -\end_layout - -\begin_layout Description - -\family typewriter -\series medium -MY_LYXDIR/reLyX/syntax.default -\family default -\series default - \InsetSpace ~ - -\newline -User's personal syntax file -\end_layout - -\begin_layout Description - -\family typewriter -\series medium -LIBDIR/layouts/*.layout -\family default -\series default - \InsetSpace ~ - -\newline -System-wide layout files for document classes -\end_layout - -\begin_layout Description - -\family typewriter -\series medium -LIBDIR/reLyX/syntax.default -\family default -\series default - \InsetSpace ~ - -\newline -System-wide LaTeX syntax file -\end_layout - -\begin_layout Standard - -\family typewriter -LIBDIR -\family default - is the system-wide LyX directory, usually something like -\family typewriter -/usr/local/share/lyx/ -\family default -. - -\family typewriter -MY_LYXDIR -\family default - is your personal LyX directory, something like -\family typewriter -.lyx/ -\family default - in your home directory. - You can see their actual values in the -\family sans -\bar under -H -\bar default -elp\SpecialChar \menuseparator -About\InsetSpace ~ -Ly -\bar under -X -\family default -\bar default - dialog. -\end_layout - -\begin_layout Subsection -See also -\end_layout - -\begin_layout Standard - -\shape italic -lyx -\shape default -(1), -\shape italic -latex -\shape default -(1) -\end_layout - -\begin_layout Subsection -Authors -\end_layout - -\begin_layout Standard -Copyright (c) 1998--9 -\noun on -Amir Karger -\noun default - ( -\family typewriter -karger@voth.chem.utah.edu -\family default -) -\end_layout - -\begin_layout Standard -Code contributors: -\end_layout - -\begin_layout Itemize - -\noun on -John Weiss -\noun default - wrote the original CleanTeX pass. -\end_layout - -\begin_layout Itemize - -\noun on -Etienne Grossmann -\end_layout - -\begin_layout Itemize - -\noun on -Jos\i \'{e} - Ab\i \'{\i} -lio Oliveira Matos -\end_layout - -\begin_layout Itemize - -\noun on -David Suarez de Lis -\end_layout - -\begin_layout Standard -Other contributors: -\end_layout - -\begin_layout Itemize - -\noun on -Jean-Marc Lasgouttes -\noun default - worked on the wrapper script and offered lots of bug reports, advice, and - feature suggestions. -\end_layout - -\begin_layout Itemize - -\noun on -Asger K. - Alstrup Nielsen -\noun default - and -\noun on -Marc Pavese -\noun default - provided advice. -\end_layout - -\begin_layout Itemize -Various members of the LyX developers' and users' lists provided bug reports - and feature suggestions. -\end_layout - -\begin_layout Standard -reLyX uses a modified version the Perl TeX parser -\family typewriter -Text::TeX -\family default - package written by -\noun on -Ilya Zakharevich -\noun default - ( -\family typewriter -ilya@math.ohio-state.edu -\family default -), available on CPAN. -\end_layout - \begin_layout Chapter LyX Features needing Extra Software \end_layout @@ -18501,7 +14899,7 @@ n Project. \family typewriter sgml-tools \family default - package of scripts and programs (to produce other formats, including LaTeX, + package of scripts and programs (to produce other formats, including Latex, HTML, plain text, man pages and\SpecialChar \ldots{} ). You may therefore prefer to use this document class if you want to write @@ -18772,7 +15170,7 @@ As usual. \begin_layout Itemize \family sans -Code: similar to the LyX-Code +Code: similar to the Lyx-Code \family roman environment \end_layout @@ -18795,8 +15193,8 @@ Date: the rule. You do not have to make this a date. Any text can be entered, e.\InsetSpace ~ -g.\InsetSpace \space{} -a version number. +g. + a version number. \end_layout \begin_layout Itemize @@ -18866,9 +15264,9 @@ menu to set fonts or to emphasis words. User's Guide \emph default . - Although you will find some other features on the menus e.\InsetSpace ~ -g.\InsetSpace \space{} -inserting footnotes. + Although you will find some some other features on the menus e.\InsetSpace ~ +g. + inserting footnotes. There is some doubt about whether these will work correctly. \begin_inset Foot status collapsed @@ -19235,8 +15633,8 @@ No space in front of/after parenthesis: Enforcement of normal space after common abbreviations: \newline e. - g.\InsetSpace \space{} -is too wide spacing. + g. + is too wide spacing. \end_layout \begin_layout Itemize @@ -20593,17 +16991,17 @@ Noweb \end_layout \begin_layout Itemize -It can generate the documentation either in LaTeX or HTML. +It can generate the documentation either in latex or html. \end_layout \begin_layout Itemize -It has an open architecture, i.e., it is easy to plug in new filters and to +It has a open architecture, i.e., it is easy to plug in new filters and to perform special processing that you may need. \end_layout \begin_layout Itemize -There is a good selection of filters available already (the HTML is one +There is a good selection of filters available already (the html is one of them). \end_layout @@ -20904,7 +17302,7 @@ D \bar default VI \family default -menu option is chosen, a LaTeX file is generated. +menu option is chosen, a latex file is generated. \end_layout @@ -21000,7 +17398,7 @@ Generating the code \begin_layout Standard When the build menu option is chosen or the corresponding button in the - toolbar is pressed, a LaTeX file is generated just like step 1 above. + toolbar is pressed, a latex file is generated just like step 1 above. Next, LyX invokes the \family typewriter Noweb->Program @@ -21723,291 +18121,6 @@ Most ideas in this section require less common files in your LaTeX installation. Put on your wizard hat, keep an eye out for dragons, and let us begin. \end_layout -\begin_layout Section -Tricks for Footnotes and Margin Notes -\end_layout - -\begin_layout Standard -suggested by -\noun on -Robin Socha -\end_layout - -\begin_layout Subsection -Footnotes -\end_layout - -\begin_layout Standard -LyX cannot yet take care of setting the footnote numbering back to 1 after - each section in the -\begin_inset Quotes eld -\end_inset - - -\family sans -article -\family default - -\begin_inset Quotes erd -\end_inset - - -\family roman - document class or changing the counter style. - You'll need to insert LaTeX commands like the following to achieve that: -\end_layout - -\begin_layout Standard -\begin_inset ERT -status inlined - -\begin_layout Standard - - -\backslash -setcounter{footnote}{0} -\end_layout - -\end_inset - - Using -\family typewriter - -\backslash -setcounter{footnote}{0} -\family roman - will set the counter back to 1 -\begin_inset Foot -status collapsed - -\begin_layout Standard -The counter has been set back to 1. -\end_layout - -\end_inset - -. -\end_layout - -\begin_layout Standard -The following command will change the numbering to small letters. - Take a look at the next footnote in your xdvi or ghostview -\begin_inset ERT -status inlined - -\begin_layout Standard - - -\backslash -renewcommand{ -\backslash -thefootnote}{ -\backslash -alph{footnote}} -\end_layout - -\end_inset - -: -\begin_inset Foot -status collapsed - -\begin_layout Standard -This is an example for a footnote with alphabetic numbering. -\newline -Use -\family typewriter - -\backslash -renewcommand{ -\backslash -thefootnote { -\backslash -alph{footnote}} -\family roman -to get this. -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -The next command sets the counter style back to default, i.e. - -\family typewriter - -\backslash -arabic -\family default - -\begin_inset Foot -status collapsed - -\begin_layout Standard -Use -\family typewriter - -\backslash -renewcommand{ -\backslash -thefootnote}{ -\backslash -arabic{footnote}} -\family roman - to set the counter--style back to LyX's default, i.e. - -\backslash -arabic. -\family default - -\begin_inset ERT -status collapsed - -\begin_layout Standard - - -\backslash -renewcommand { -\backslash -thefootnote} { -\backslash -arabic{footnote}} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - -. -\end_layout - -\begin_layout Standard -You can use -\family typewriter - -\backslash -arabic -\family default -, -\family typewriter - -\backslash -roman -\family default -, -\family typewriter - -\backslash -Roman -\family default -, -\family typewriter - -\backslash -alph -\family default - or -\family typewriter - -\backslash -Alph -\family default - and others as counter styles. - Just replace the LaTeX command in the above example and rerun TeX to see - what those styles can do. - -\end_layout - -\begin_layout Subsection -Margin Notes -\end_layout - -\begin_layout Standard -Here are two examples of neat things you can do to margin notes using LaTeX - commands. -\end_layout - -\begin_layout Standard -The following command will make a vertical line appear alongside your text---gre -at for -\begin_inset Quotes eld -\end_inset - -thumbing -\begin_inset Quotes erd -\end_inset - -: -\family typewriter - -\backslash -marginpar{ -\backslash -rule[-10mm]{30mm}{5mm}} -\family roman -. -\family default - -\begin_inset ERT -status inlined - -\begin_layout Standard - - -\backslash -marginpar{ -\backslash -rule[-10mm]{30mm}{5mm}} -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -Check your dvi- or ghostview-output to see what the -\family typewriter - -\backslash -reversemarginpar -\family default -command does to the following margin note. -\end_layout - -\begin_layout Standard -\begin_inset ERT -status inlined - -\begin_layout Standard - - -\backslash -reversemarginpar -\end_layout - -\end_inset - - -\begin_inset Marginal -status collapsed - -\begin_layout Standard -This is a -\newline -margin note. -\end_layout - -\end_inset - - -\end_layout - \begin_layout Section Multiple Columns \end_layout @@ -22242,8 +18355,8 @@ end{multicols} \end_layout \begin_layout Standard -You can have more than 3 columns if you want to, but that might not be very - pleasant for the eye. +You can have have more than 3 columns if you want to, but that might not + be very pleasant for the eye. \end_layout \begin_layout Subsubsection @@ -22679,559 +18792,8 @@ a+ \end_layout -\begin_layout Section -Extra Space Between Table Rows -\end_layout - -\begin_layout Standard -by -\noun on -Mike Ressler -\end_layout - -\begin_layout Standard -\begin_inset VSpace bigskip -\end_inset - - -\end_layout - -\begin_layout Standard -\noindent -LaTeX allows you to put a bit of extra space between rows in a table by - giving an optional argument to the end-of-row specifier ( -\family typewriter - -\backslash - -\backslash - -\family default -). - LyX has not yet implemented this in a formal way, so here are two dirty - little tricks to do the same job. - -\end_layout - -\begin_layout Standard -The first is the more formal, but longwinded way to do it. - In the LaTeX preamble, add the following command definition: -\end_layout - \begin_layout Standard -\family typewriter - -\backslash -newcommand{ -\backslash -extratablespace}[1]{ -\backslash -noalign{vskip#1}} -\family default - This command takes a single argument---the amount of space you would like - to insert. - Insert the command in the first column of the row -\emph on -after -\emph default - where you would like the space to appear. - Here is an example (I've removed all the borders using -\family sans -\bar under -L -\bar default -ayout\SpecialChar \menuseparator -Tabl -\bar under -e -\family default -\bar default -): -\end_layout - -\begin_layout Standard -\align center -\begin_inset Tabular - - - - - - - -\begin_inset Text - -\begin_layout Standard - -\family roman -\series medium -\shape up -\size normal -\emph off -\bar no -\noun off -\color none -Minerals -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Standard - -\family roman -\series medium -\shape up -\size normal -\emph off -\bar no -\noun off -\color none -Calcite -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Standard - -\family roman -\series medium -\shape up -\size normal -\emph off -\bar no -\noun off -\color none -Dolomite -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Standard - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Standard - -\family roman -\series medium -\shape up -\size normal -\emph off -\bar no -\noun off -\color none -Quartz -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Standard - -\family roman -\series medium -\shape up -\size normal -\emph off -\bar no -\noun off -\color none -Graphite -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Standard - -\family roman -\series medium -\shape up -\size normal -\emph off -\bar no -\noun off -\color none -\begin_inset ERT -status collapsed - -\begin_layout Standard - - -\backslash -extratablespace{2ex} -\end_layout - -\end_inset - -Rocks -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Standard - -\family roman -\series medium -\shape up -\size normal -\emph off -\bar no -\noun off -\color none -Limestone -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Standard - -\family roman -\series medium -\shape up -\size normal -\emph off -\bar no -\noun off -\color none -Sandstone -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Standard - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Standard - -\family roman -\series medium -\shape up -\size normal -\emph off -\bar no -\noun off -\color none -Granite -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Standard - -\family roman -\series medium -\shape up -\size normal -\emph off -\bar no -\noun off -\color none -Andesite -\end_layout - -\end_inset - - - - -\end_inset - - -\end_layout - -\begin_layout Standard -The second method is faster, but will make typographers and TeXperts all - over the world groan. - Simply put an end of row specifier with optional argument at the same spot. - No fancy definitions are needed as in the above example, but there will - be more space inserted than you specified because you essentially added - a blank row plus the extra space. - If the space added is too much, simply use a negative number, like so: -\end_layout - -\begin_layout Standard -\align center -\begin_inset Tabular - - - - - - - -\begin_inset Text - -\begin_layout Standard - -\family roman -\series medium -\shape up -\size normal -\emph off -\bar no -\noun off -\color none -Minerals -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Standard - -\family roman -\series medium -\shape up -\size normal -\emph off -\bar no -\noun off -\color none -Calcite -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Standard - -\family roman -\series medium -\shape up -\size normal -\emph off -\bar no -\noun off -\color none -Dolomite -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Standard - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Standard - -\family roman -\series medium -\shape up -\size normal -\emph off -\bar no -\noun off -\color none -Quartz -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Standard - -\family roman -\series medium -\shape up -\size normal -\emph off -\bar no -\noun off -\color none -Graphite -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Standard - -\family roman -\series medium -\shape up -\size normal -\emph off -\bar no -\noun off -\color none -\begin_inset ERT -status collapsed - -\begin_layout Standard - - -\backslash - -\backslash -[-1ex] -\end_layout - -\end_inset - - Rocks -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Standard - -\family roman -\series medium -\shape up -\size normal -\emph off -\bar no -\noun off -\color none -Limestone -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Standard - -\family roman -\series medium -\shape up -\size normal -\emph off -\bar no -\noun off -\color none -Sandstone -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Standard - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Standard - -\family roman -\series medium -\shape up -\size normal -\emph off -\bar no -\noun off -\color none -Granite -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Standard - -\family roman -\series medium -\shape up -\size normal -\emph off -\bar no -\noun off -\color none -Andesite -\end_layout - -\end_inset - - - - -\end_inset - - -\end_layout - -\begin_layout Standard -It's short, sweet, and gets the job done quickly, even if it is really ugly. - You may put away the rotten vegetables now! I promise I won't suggest anything - else like that! \end_layout \begin_layout Section @@ -23673,8 +19235,8 @@ parshape set of linelength definitions. While this parshape may look a bit silly and useless, one could conceive of situations such as finely tuned dropped capitals, word wrapping around - non-rectangular graphics, etc.\InsetSpace \space{} -which will benefit from such handcrafting. + non-rectangular graphics, etc. + which will benefit from such handcrafting. \end_layout \begin_layout Standard