X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fdoc%2FEmbeddedObjects.lyx;h=b24a5aecfd780be390111a39e115b4e0d8a22b72;hb=0f30a858f868a2cd7d9412894feed2835865743f;hp=bd0e72baeaeb3e1721b7f6471c147a6584bb44f3;hpb=f679b658d858c2daf14420b36d1761f23cd8d176;p=lyx.git diff --git a/lib/doc/EmbeddedObjects.lyx b/lib/doc/EmbeddedObjects.lyx index bd0e72baea..b24a5aecfd 100644 --- a/lib/doc/EmbeddedObjects.lyx +++ b/lib/doc/EmbeddedObjects.lyx @@ -33,21 +33,19 @@ % provides commands to set caption % beside tables/images -\usepackage{sidecap} - -\newcommand{\TabBesBeg}{% +\newcommand{\TabBesBeg}[1][1.0]{% \let\MyTable\table \let\MyEndtable\endtable - \renewenvironment{table}{\begin{SCtable}}{\end{SCtable}}} + \renewenvironment{table}[1]{\begin{SCtable}[#1]##1}{\end{SCtable}}} \newcommand{\TabBesEnd}{% \let\table\MyTable \let\endtable\MyEndtable} -\newcommand{\FigBesBeg}{% +\newcommand{\FigBesBeg}[1][1.0]{% \let\MyFigure\figure \let\MyEndfigure\endfigure - \renewenvironment{figure}{\begin{SCfigure}}{\end{SCfigure}}} + \renewenvironment{figure}[1]{\begin{SCfigure}[#1]##1}{\end{SCfigure}}} \newcommand{\FigBesEnd}{% \let\figure\MyFigure @@ -83,9 +81,6 @@ \setboolean{colortbl}{true}} {\setboolean{colortbl}{false}} -% used for book-style tables -\usepackage{booktabs} - % used to have extra space in table cells \@ifundefined{extrarowheight} {\usepackage{array}}{} @@ -152,12 +147,21 @@ \setboolean{picinpar}{true}} {\setboolean{picinpar}{false}} -% redefine the \LyX macro for PDF bookmarks -\def\LyX{\texorpdfstring{% - L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@} - {LyX}} +% check for lettrine +\newboolean{lettrine} +\IfFileExists{lettrine.sty} + {\usepackage{lettrine} + \setboolean{lettrine}{true}} + {\setboolean{lettrine}{false}} + +% check for diagbox +\newboolean{diagbox} +\IfFileExists{diagbox.sty} + {\usepackage{diagbox} + \setboolean{diagbox}{true}} + {\setboolean{diagbox}{false}} \end_preamble -\options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading +\options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading,usenames,dvipsnames \use_default_options false \begin_modules initials @@ -311,9 +315,9 @@ colortbl \series default , \series bold -marginnote +diagbox, lettrine, marginnote, picinpar \series default -, and + and \series bold sidecap \series default @@ -407,13 +411,15 @@ name "sec:Graphics-Dialog" \begin_layout Standard To insert an image into your document, place the cursor at the text position you want and click on the toolbar icon -\begin_inset Graphics - filename ../images/dialog-show-new-inset_graphics.png - scale 85 - scaleBeforeRotation +\family sans +\begin_inset Info +type "icon" +arg "dialog-show-new-inset graphics" \end_inset + +\family default or use the menu \family sans Insert\SpecialChar \menuseparator @@ -664,19 +670,15 @@ x.eps.bb \begin_inset Newline newline \end_inset -The field +In the section \family sans -Initialize +Graphics \begin_inset space ~ \end_inset Group -\begin_inset space ~ -\end_inset - -Name \family default - allows you define or join an image settings group. + you can define or join an image settings group. \begin_inset Index idx status collapsed @@ -813,13 +815,15 @@ reference "sec:FloatIntroduction" \begin_layout Standard The toolbar button -\begin_inset Graphics - filename ../images/float-insert_figure.png - scale 85 - scaleBeforeRotation +\family sans +\begin_inset Info +type "icon" +arg "float-insert figure" \end_inset + +\family default and the menu \family sans Insert\SpecialChar \menuseparator @@ -997,13 +1001,15 @@ Insert\SpecialChar \menuseparator Label \family default or the toolbar button -\begin_inset Graphics - filename ../images/label-insert.png - scale 85 - scaleBeforeRotation +\family sans +\begin_inset Info +type "icon" +arg "label-insert" \end_inset + +\family default . You can now refer to the label using the menu \family sans @@ -1015,13 +1021,15 @@ Cross reference \family default or the toolbar button -\begin_inset Graphics - filename ../images/dialog-show-new-inset_ref.png - scale 85 - scaleBeforeRotation +\family sans +\begin_inset Info +type "icon" +arg "dialog-show-new-inset ref" \end_inset + +\family default . It is important to use references to floats, rather than using vague references like @@ -1762,11 +1770,9 @@ Table ! Introduction \begin_layout Standard You can insert a table using either the toolbar button -\begin_inset Graphics - filename ../images/tabular-insert.png - scale 85 - scaleBeforeRotation - +\begin_inset Info +type "icon" +arg "tabular-insert" \end_inset or the menu @@ -2503,234 +2509,297 @@ The toolbar has the following icons: \begin_layout Labeling \labelwidthstring 00.00.0000 -\begin_inset Graphics - filename ../images/tabular-feature_append-row.png - scaleBeforeRotation +\family sans +\begin_inset Info +type "icon" +arg "inset-modify tabular append-row" \end_inset + +\family default adds a row below the current cell or selection \end_layout \begin_layout Labeling \labelwidthstring 00.00.0000 -\begin_inset Graphics - filename ../images/tabular-feature_append-column.png - scaleBeforeRotation +\family sans +\begin_inset Info +type "icon" +arg "inset-modify tabular append-column" \end_inset + +\family default adds a column right beside the current cell or selection \end_layout \begin_layout Labeling \labelwidthstring 00.00.0000 -\begin_inset Graphics - filename ../images/tabular-feature_delete-row.png - scaleBeforeRotation +\family sans +\begin_inset Info +type "icon" +arg "inset-modify tabular delete-row" \end_inset + +\family default deletes the current row or selection \end_layout \begin_layout Labeling \labelwidthstring 00.00.0000 -\begin_inset Graphics - filename ../images/tabular-feature_delete-column.png - scaleBeforeRotation +\family sans +\begin_inset Info +type "icon" +arg "inset-modify tabular delete-column" \end_inset + +\family default deletes the current column or selection \end_layout \begin_layout Labeling \labelwidthstring 00.00.0000 -\begin_inset Graphics - filename ../images/tabular-feature_toggle-line-top.png - scaleBeforeRotation +\family sans +\begin_inset Info +type "icon" +arg "inset-modify tabular toggle-line-top" \end_inset + +\family default adds a line at the top of the current cell / row or of a selection \end_layout \begin_layout Labeling \labelwidthstring 00.00.0000 -\begin_inset Graphics - filename ../images/tabular-feature_toggle-line-bottom.png - scaleBeforeRotation +\family sans +\begin_inset Info +type "icon" +arg "inset-modify tabular toggle-line-bottom" \end_inset + +\family default adds a line at the bottom of the current cell / row or of a selection \end_layout \begin_layout Labeling \labelwidthstring 00.00.0000 -\begin_inset Graphics - filename ../images/tabular-feature_toggle-line-left.png - scaleBeforeRotation +\family sans +\begin_inset Info +type "icon" +arg "inset-modify tabular toggle-line-left" \end_inset + +\family default adds a line at the left side of the current cell / row or of a selection \end_layout \begin_layout Labeling \labelwidthstring 00.00.0000 -\begin_inset Graphics - filename ../images/tabular-feature_toggle-line-right.png - scaleBeforeRotation +\family sans +\begin_inset Info +type "icon" +arg "inset-modify tabular toggle-line-right" \end_inset + +\family default adds a line at the right side of the current cell / row or of a selection \end_layout \begin_layout Labeling \labelwidthstring 00.00.0000 -\begin_inset Graphics - filename ../images/tabular-feature_set-all-lines.png - scaleBeforeRotation +\family sans +\begin_inset Info +type "icon" +arg "inset-modify tabular set-all-lines" \end_inset + +\family default adds lines around the current or selected cells - if the current cell no multicolumn cell this also affects the current row and column \end_layout \begin_layout Labeling \labelwidthstring 00.00.0000 -\begin_inset Graphics - filename ../images/tabular-feature_unset-all-lines.png - scaleBeforeRotation +\family sans +\begin_inset Info +type "icon" +arg "inset-modify tabular unset-all-lines" \end_inset + +\family default deletes all lines of the current or selected cells - if the current cell no multicolumn cell this also affects the current row and column \end_layout \begin_layout Labeling \labelwidthstring 00.00.0000 -\begin_inset Graphics - filename ../images/tabular-feature_m-align-left.png - scaleBeforeRotation +\family sans +\begin_inset Info +type "icon" +arg "inset-modify tabular m-align-left" \end_inset + +\family default left-aligns the content of the current cell / column \end_layout \begin_layout Labeling \labelwidthstring 00.00.0000 -\begin_inset Graphics - filename ../images/tabular-feature_m-align-center.png - scaleBeforeRotation +\family sans +\begin_inset Info +type "icon" +arg "inset-modify tabular m-align-center" \end_inset + +\family default centers the content of the current cell / column horizontally \end_layout \begin_layout Labeling \labelwidthstring 00.00.0000 -\begin_inset Graphics - filename ../images/tabular-feature_m-align-right.png - scaleBeforeRotation +\family sans +\begin_inset Info +type "icon" +arg "inset-modify tabular m-align-right" \end_inset + +\family default right-aligns the content of the current cell / column \end_layout \begin_layout Labeling \labelwidthstring 00.00.0000 -\begin_inset Graphics - filename ../images/tabular-feature_align-decimal.png - scaleBeforeRotation +\family sans +\begin_inset Info +type "icon" +arg "inset-modify tabular align-decimal" \end_inset + +\family default aligns the content of the current column at a character \end_layout \begin_layout Labeling \labelwidthstring 00.00.0000 -\begin_inset Graphics - filename ../images/tabular-feature_m-valign-top.png - scaleBeforeRotation +\family sans +\begin_inset Info +type "icon" +arg "inset-modify tabular m-valign-top" \end_inset + +\family default aligns the content of the current cell vertically to the top \end_layout \begin_layout Labeling \labelwidthstring 00.00.0000 -\begin_inset Graphics - filename ../images/tabular-feature_m-valign-middle.png - scaleBeforeRotation +\family sans +\begin_inset Info +type "icon" +arg "inset-modify tabular m-valign-middle" \end_inset + +\family default centers the content of the current cell vertically \end_layout \begin_layout Labeling \labelwidthstring 00.00.0000 -\begin_inset Graphics - filename ../images/tabular-feature_m-valign-bottom.png - scaleBeforeRotation +\family sans +\begin_inset Info +type "icon" +arg "inset-modify tabular m-valign-bottom" \end_inset + +\family default aligns the content of the current cell vertically to the bottom \end_layout \begin_layout Labeling \labelwidthstring 00.00.0000 -\begin_inset Graphics - filename ../images/tabular-feature_set-rotate-cell.png - scaleBeforeRotation +\family sans +\begin_inset Info +type "icon" +arg "inset-modify tabular set-rotate-cell" \end_inset + +\family default rotates the current cell or selection counter-clockwise by 90° \end_layout \begin_layout Labeling \labelwidthstring 00.00.0000 -\begin_inset Graphics - filename ../images/tabular-feature_set-rotate-tabular.png - scaleBeforeRotation +\family sans +\begin_inset Info +type "icon" +arg "inset-modify tabular set-rotate-tabular" \end_inset + +\family default rotates the whole table counter-clockwise by 90° \end_layout \begin_layout Labeling \labelwidthstring 00.00.0000 -\begin_inset Graphics - filename ../images/tabular-feature_multicolumn.png - scaleBeforeRotation +\family sans +\begin_inset Info +type "icon" +arg "inset-modify tabular multicolumn" \end_inset + +\family default sets the current cell or selection as a multicolumn \end_layout \begin_layout Labeling \labelwidthstring 00.00.0000 -\begin_inset Graphics - filename ../images/tabular-feature_multirow.png - scaleBeforeRotation +\family sans +\begin_inset Info +type "icon" +arg "inset-modify tabular multirow" \end_inset + +\family default sets the current cell or selection as a multirow \end_layout @@ -3056,13 +3125,15 @@ Float\SpecialChar \menuseparator Table \family default or the toolbar button -\begin_inset Graphics - filename ../images/float-insert_table.png - scale 85 - scaleBeforeRotation +\family sans +\begin_inset Info +type "icon" +arg "float-insert table" \end_inset + +\family default . \end_layout @@ -3200,13 +3271,15 @@ Insert\SpecialChar \menuseparator Label \family default or the toolbar button -\begin_inset Graphics - filename ../images/label-insert.png - scale 85 - scaleBeforeRotation +\family sans +\begin_inset Info +type "icon" +arg "label-insert" \end_inset + +\family default . You can now refer to the label using the menu \family sans @@ -3218,13 +3291,15 @@ Cross reference \family default or the toolbar button -\begin_inset Graphics - filename ../images/dialog-show-new-inset_ref.png - scale 85 - scaleBeforeRotation +\family sans +\begin_inset Info +type "icon" +arg "dialog-show-new-inset ref" \end_inset + +\family default . \begin_inset Newline newline \end_inset @@ -7707,7 +7782,7 @@ Longtables ! Different Captions for Pages \begin_layout Standard When the table captions for the following pages should differ from the one - of the first table page, insert a caption with the TeX code command + of the first table page, insert a caption with the TeX-Code command \end_layout \begin_layout Standard @@ -11166,7 +11241,7 @@ Franz \end_layout \begin_layout Section -Multiple Lines Columns and Rows +Multiple Lines, Columns and Rows \end_layout \begin_layout Subsection @@ -11685,13 +11760,15 @@ Multicolumn Basics \begin_layout Standard To merge cells over multiple columns, select as many cells within a row as you want to merge and use either the table-toolbar button -\begin_inset Graphics - filename ../images/tabular-feature_multicolumn.png - scale 85 - scaleBeforeRotation +\family sans +\begin_inset Info +type "icon" +arg "inset-modify tabular multicolumn" \end_inset + +\family default , or the menu \family sans Edit\SpecialChar \menuseparator @@ -12233,7 +12310,7 @@ You can see that the first column is not half the width of the multicolumn \begin_inset CommandInset ref -LatexCommand eqref +LatexCommand ref reference "cha:Explanation-of-Equation" \end_inset @@ -12453,13 +12530,15 @@ Table ! Multirows \begin_layout Standard To merge cells over multiple rows, select as many cells within a column as you want to merge and use either the table-toolbar button -\begin_inset Graphics - filename ../images/tabular-feature_multirow.png - scale 85 - scaleBeforeRotation +\family sans +\begin_inset Info +type "icon" +arg "inset-modify tabular multirow" \end_inset + +\family default , or the menu \family sans Edit\SpecialChar \menuseparator @@ -12820,146 +12899,221 @@ raggedright} \end_layout -\begin_layout Section -Formal Tables -\begin_inset CommandInset label -LatexCommand label -name "sec:Formal-Tables" +\begin_layout Standard +To start a new line in a multirow you can use a forced line break (shortcut + +\begin_inset Info +type "shortcut" +arg "newline-insert newline" +\end_inset + +) but this will not respect the cell lines as demonstrated in this table: +\end_layout + +\begin_layout Standard +\noindent +\align center +\begin_inset Tabular + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +aaa +\begin_inset Newline newline +\end_inset +aaa +\begin_inset Newline newline \end_inset +wrong cell +\end_layout -\begin_inset Index idx -status collapsed +\end_inset + + +\begin_inset Text \begin_layout Plain Layout -Table ! Formal +ccc \end_layout \end_inset + + + + +\begin_inset Text +\begin_layout Plain Layout \end_layout -\begin_layout Standard -Tables are often typeset in books similar to Table -\begin_inset space ~ \end_inset + + +\begin_inset Text - -\begin_inset CommandInset ref -LatexCommand ref -reference "tab:Example-booktabs-table" +\begin_layout Plain Layout +ddd +\end_layout \end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +bbb +\end_layout -. - This kind of tables is called -\begin_inset Quotes eld \end_inset + + +\begin_inset Text +\begin_layout Plain Layout +eee +\end_layout -\emph on -formal -\emph default +\end_inset + + + -\begin_inset Quotes erd \end_inset -. - To make a table a formal table use the option -\family sans -Formal -\family default - in the -\family sans -Borders -\family default - tab of the table dialog. + \end_layout \begin_layout Standard -\begin_inset Float table -placement h -wide false -sideways false -status open +Therefore be careful with forced line breaks. +\end_layout -\begin_layout Plain Layout -\begin_inset Caption +\begin_layout Subsection +Cells with diagonal line(s) +\end_layout + +\begin_layout Standard +To tell the reader what is meant by column and row headings in a table, + it is helpful to split the first cell of the table by one or two diagonal + lines. + This can be achieved by loading the LaTeX-package +\series bold +diagbox +\series default + +\begin_inset Index idx +status collapsed \begin_layout Plain Layout -\begin_inset CommandInset label -LatexCommand label -name "tab:Example-booktabs-table" +LaTeX-packages ! picinpar +\end_layout \end_inset -Example booktabs-table -\end_layout + in the document preamble. + The package provides the command +\series bold +\backslash +diagbox +\series default + that is inserted as TeX-Code and that can take 2 or 3 +\begin_inset space ~ \end_inset +arguments: +\end_layout + +\begin_layout Standard + +\series bold +\backslash +diagbox[options]{lower left}{upper right} \end_layout -\begin_layout Plain Layout -\align center -\begin_inset Tabular - - - - - - - - -\begin_inset Text +\begin_layout Standard -\begin_layout Plain Layout -System +\series bold + +\backslash +diagbox[options]{lower left}{upper left}{upper right} \end_layout +\begin_layout Standard +The first scheme divides the cell by a single diagonal line and the arguments + are placed below and above this line. + The second scheme divides the cell by 2 +\begin_inset space ~ \end_inset - - -\begin_inset Text + +lines. +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed \begin_layout Plain Layout -Chip -\begin_inset space \thinspace{} -\end_inset -1 + +\backslash +ifdiagbox \end_layout \end_inset - - -\begin_inset Text + + +\begin_inset Note Note +status open \begin_layout Plain Layout -Chip -\begin_inset space \thinspace{} +The following section will only be displayed when the LaTeX-package +\series bold +diagbox +\series default + is installed. +\end_layout + \end_inset -2 + \end_layout +\begin_layout Standard +Here is an example table where +\series bold + +\backslash +diagbox +\series default +is used in the 2-argument scheme in the first cell: +\begin_inset VSpace medskip \end_inset - - -\begin_inset Text -\begin_layout Plain Layout \end_layout -\end_inset - - +\begin_layout Standard +\noindent +\begin_inset Tabular + + + + + + - + \begin_inset Text \begin_layout Plain Layout @@ -12970,177 +13124,208 @@ status collapsed \backslash -cmidrule(r){2-2} +diagbox{ \end_layout \end_inset - +Name \begin_inset ERT status collapsed \begin_layout Plain Layout +}{ +\end_layout -\backslash -cmidrule(l){3-4} +\end_inset + +Parameter +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} \end_layout \end_inset -Detector thickness in µm + \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -300 +Thickness in nm \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -300 +Transparency in % \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -700 +Hardness in MPa \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -Edge angle in ° +Perfect Green \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -3.55 +45 \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -2.71 +80 \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -7.99 +504 \end_layout \end_inset - - + + \begin_inset Text \begin_layout Plain Layout -Spatial resolution in µm +Dark Multi-P \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -4.26 +60 \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -10.17 +72 \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -10.56 +982 \end_layout \end_inset - - + + \begin_inset Text \begin_layout Plain Layout -MTF at -\begin_inset Formula $f_{\mathrm{max}}$ -\end_inset - - +Crystal Clear Pro \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -0.53 +18 \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -0.37 +86 \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -0.39 +374 \end_layout \end_inset - - + + +\end_inset + + +\begin_inset VSpace medskip +\end_inset + + +\end_layout + +\begin_layout Standard +The 3-argument scheme is for example useful for cross-tables of sports leagues + or distances: +\end_layout + +\begin_layout Standard +\noindent +\align center +\begin_inset Tabular + + + + + + + + \begin_inset Text \begin_layout Plain Layout @@ -13151,502 +13336,260 @@ status collapsed \backslash -cmidrule(l{10pt}){1-1} +diagbox{ \end_layout \end_inset -LSF-spatial resolution -\end_layout - -\end_inset - - -\begin_inset Text +Team home +\begin_inset ERT +status collapsed \begin_layout Plain Layout +}{ \end_layout \end_inset - - -\begin_inset Text + +Result +\begin_inset ERT +status collapsed \begin_layout Plain Layout +}{ \end_layout \end_inset - - -\begin_inset Text + +Team away +\begin_inset ERT +status collapsed \begin_layout Plain Layout +} \end_layout \end_inset - - - - -\begin_inset Text -\begin_layout Plain Layout -in µm + \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -129.7 +Tigers \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -52.75 +Panthers \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -50.78 +Falcons \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -in % of pixel size +Tigers \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -76.3 +--- \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -95.9 +1:3 \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -92.3 +0:1 \end_layout \end_inset - - -\end_inset - - -\end_layout - -\end_inset - + + +\begin_inset Text +\begin_layout Plain Layout +Panthers \end_layout -\begin_layout Standard -Spaces to table rows can be added using the -\family sans -Borders -\family default - tab of the table dialog as described in section -\begin_inset space ~ -\end_inset - - -\begin_inset CommandInset ref -LatexCommand ref -reference "sub:Row-Spacing" - \end_inset + + +\begin_inset Text -. +\begin_layout Plain Layout +3:1 \end_layout -\begin_layout Standard -Unlike normal tables, formal tables have no vertical table lines. - The horizontal table lines can be set as for normal tables but they appear - with different widths in the output: -\begin_inset Newline newline -\end_inset - -The first and the last table line have a default width of 0.08 -\begin_inset space \thinspace{} -\end_inset - -em while the other lines have a default width of 0.05 -\begin_inset space \thinspace{} \end_inset + + +\begin_inset Text -em. -\end_layout - -\begin_layout Standard -The default widths can be changed with the following preamble lines +\begin_layout Plain Layout +--- \end_layout -\begin_layout Standard - -\series bold - -\backslash -let -\backslash -mytoprule -\backslash -toprule -\begin_inset Newline newline \end_inset + + +\begin_inset Text - -\backslash -renewcommand{ -\backslash -toprule}{ -\backslash -mytoprule[width]} +\begin_layout Plain Layout +0:0 \end_layout -\begin_layout Standard -This example is for the first line, the so called -\series bold -toprule -\series default -. - If you want to change the width for the last line, replace -\series bold -toprule -\series default - by -\series bold -bottomrule -\series default -. - To change the width for the other lines replace -\series bold -toprule -\series default - by -\series bold -midrule -\series default -. - You can use all units listed in appendix -\begin_inset space ~ -\end_inset - - -\begin_inset CommandInset ref -LatexCommand ref -reference "cha:Units-available-in" - \end_inset + + + + +\begin_inset Text - to set the width. -\end_layout - -\begin_layout Standard -Lines that do not span all table columns can be created by setting a table - line for multicolumn cells. - LyX will then internally use the command -\series bold - -\backslash -cmidrule -\series default - to create this line. - Its full scheme is -\end_layout - -\begin_layout Standard - -\series bold - -\backslash -cmidrule[width](trim){startcol-endcol} -\end_layout - -\begin_layout Standard -The options of -\series bold - -\backslash -cmidrule -\series default - are currently not supported by LyX so you have to use TeX-Code to be able - to use them. - -\series bold - -\backslash -cmidrule -\series default -s can manually be created by inserting the command as TeX-Code as the first - cell entry of the first cell of a row. - The line is then drawn in the output above the current row. +\begin_layout Plain Layout +Falcons \end_layout -\begin_layout Standard -The default for the width is 0.03 -\begin_inset space \thinspace{} -\end_inset - -em. - Startcol is the number of the column where the line starts and endcol the - column number where the line ends. - The endcol always needs to be specified, also when the line should span - only one column. - The optional parameter trim could be either -\emph on -l{trimwidth} -\emph default -, or -\emph on -r{trimwidth} -\emph default - where the trimwidth is also optional. - Using for example the parameter -\emph on -l{2pt} -\emph default - means that the line is trimmed from its left end by 2 -\begin_inset space \thinspace{} -\end_inset - -pt. - If you don't specify the trimwidth the lines are trimmed by the default - of 0.5 -\begin_inset space \thinspace{} \end_inset + + +\begin_inset Text -em. +\begin_layout Plain Layout +1:0 \end_layout -\begin_layout Standard -\begin_inset VSpace bigskip -\end_inset - -Table -\begin_inset space ~ -\end_inset - - -\begin_inset CommandInset ref -LatexCommand ref -reference "tab:Example-booktabs-table" - \end_inset + + +\begin_inset Text - was created using the commands -\end_layout - -\begin_layout Standard - -\series bold - -\backslash -cmidrule(r){2-2} -\backslash -cmidrule(l){3-4} -\end_layout - -\begin_layout Standard -at the beginning of the second row and -\end_layout - -\begin_layout Standard - -\series bold - -\backslash -cmidrule(l{10pt}){1-1} -\end_layout - -\begin_layout Standard -in the sixth row. +\begin_layout Plain Layout +0:0 \end_layout -\begin_layout Standard -\begin_inset VSpace bigskip \end_inset + + +\begin_inset Text - +\begin_layout Plain Layout +--- \end_layout -\begin_layout Standard -You might want to have overlapping -\series bold - -\backslash -cmidrule -\series default -s as in in Table -\begin_inset space ~ \end_inset - - -\begin_inset CommandInset ref -LatexCommand ref -reference "tab:Special-booktabs-table" + + + \end_inset -. - This can be achieved with the TeX-Code command -\end_layout - -\begin_layout Standard - -\series bold -\backslash -morecmidrules \end_layout \begin_layout Standard -The command that was used for the second row of Table -\begin_inset space ~ -\end_inset - - -\begin_inset CommandInset ref -LatexCommand ref -reference "tab:Special-booktabs-table" - -\end_inset - - is +For larger cross-tables one might use split cells in 2 or every corner of + the table like in this example: \end_layout \begin_layout Standard +\noindent +\align center +\begin_inset Tabular + + + + + + + + + +\begin_inset Text -\series bold - -\backslash -cmidrule(r){2-2} -\backslash -cmidrule(l){3-4} -\backslash -morecmidrules -\backslash -cmidrule{2-4} -\end_layout - -\begin_layout Standard -The command for the sixth row is -\end_layout +\begin_layout Plain Layout +\begin_inset ERT +status open -\begin_layout Standard +\begin_layout Plain Layout -\series bold \backslash -midrule -\backslash -morecmidrules -\backslash -cmidrule{3-4} +diagbox{ \end_layout -\begin_layout Standard -\begin_inset VSpace bigskip \end_inset +Team home +\begin_inset ERT +status collapsed -\end_layout - -\begin_layout Standard -If you are anyway not satisfied with the border line spacing, you can use - the following command to produce lines that span over all table columns -\series bold -: -\end_layout - -\begin_layout Standard - -\series bold +\begin_layout Plain Layout -\backslash -specialrule{width}{space above}{space below} +}{ \end_layout -\begin_layout Standard -For more information about these features, refer to the manual of the LaTeX-pack -age -\series bold -booktabs -\series default - -\begin_inset CommandInset citation -LatexCommand cite -key "booktabs" - \end_inset -. -\begin_inset Index idx +Result +\begin_inset ERT status collapsed \begin_layout Plain Layout -LaTeX-packages ! booktabs -\end_layout - -\end_inset - +}{ \end_layout -\begin_layout Standard -\begin_inset Float table -placement h -wide false -sideways false -status open +\end_inset -\begin_layout Plain Layout -\begin_inset Caption +Team away +\begin_inset ERT +status collapsed \begin_layout Plain Layout -\begin_inset CommandInset label -LatexCommand label -name "tab:Special-booktabs-table" - -\end_inset -Special booktabs-table +} \end_layout \end_inset @@ -13654,426 +13597,358 @@ Special booktabs-table \end_layout -\begin_layout Plain Layout -\align center -\begin_inset Tabular - - - - - - - - -\begin_inset Text - -\begin_layout Plain Layout -System -\end_layout - \end_inset - + \begin_inset Text \begin_layout Plain Layout -Chip -\begin_inset space \thinspace{} -\end_inset - -1 +Tigers \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -Chip -\begin_inset space \thinspace{} -\end_inset - -2 +Panthers \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout - +Falcons \end_layout \end_inset - - - + \begin_inset Text \begin_layout Plain Layout \begin_inset ERT -status collapsed +status open \begin_layout Plain Layout \backslash -cmidrule(r){2-2} +diagbox[dir=NE]{ \end_layout \end_inset - +Team home \begin_inset ERT status collapsed \begin_layout Plain Layout - -\backslash -cmidrule(l){3-4} +}{ \end_layout \end_inset - +Result \begin_inset ERT status collapsed \begin_layout Plain Layout - -\backslash -morecmidrules +}{ \end_layout \end_inset - +Team away \begin_inset ERT status collapsed \begin_layout Plain Layout - -\backslash -cmidrule{2-4} +} \end_layout \end_inset -Detector thickness in µm + \end_layout \end_inset - + + + \begin_inset Text \begin_layout Plain Layout -300 +Tigers \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -300 +--- \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -700 +1:3 \end_layout \end_inset - - - + \begin_inset Text \begin_layout Plain Layout -Edge angle in ° +0:1 \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -3.55 +Tigers \end_layout \end_inset - + + + \begin_inset Text \begin_layout Plain Layout -2.71 +Panthers \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -7.99 +3:1 \end_layout \end_inset - - - + \begin_inset Text \begin_layout Plain Layout -Spatial resolution in µm +--- \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -4.26 +0:0 \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -10.17 +Panthers \end_layout \end_inset - + + + \begin_inset Text \begin_layout Plain Layout -10.56 +Falcons \end_layout \end_inset - - - + \begin_inset Text \begin_layout Plain Layout -MTF at -\begin_inset Formula $f_{\mathrm{max}}$ -\end_inset - - +1:0 \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -0.53 +0:0 \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -0.37 +--- \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -0.39 +Falcons \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout \begin_inset ERT -status collapsed +status open \begin_layout Plain Layout \backslash -morecmidrules +diagbox[dir=SW]{ \end_layout \end_inset - +Team home \begin_inset ERT status collapsed \begin_layout Plain Layout - -\backslash -cmidrule{3-4} +}{ \end_layout \end_inset -LSF-spatial resolution -\end_layout - -\end_inset - - -\begin_inset Text +Result +\begin_inset ERT +status collapsed \begin_layout Plain Layout +}{ \end_layout \end_inset - - -\begin_inset Text + +Team away +\begin_inset ERT +status collapsed \begin_layout Plain Layout +} \end_layout \end_inset - - -\begin_inset Text -\begin_layout Plain Layout \end_layout \end_inset - - - + \begin_inset Text \begin_layout Plain Layout -in µm +Tigers \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -129.7 +Panthers \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -52.75 +Falcons \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -50.78 -\end_layout - -\end_inset - - - - -\begin_inset Text +\begin_inset ERT +status open \begin_layout Plain Layout -in % of pixel size -\end_layout -\end_inset - - -\begin_inset Text -\begin_layout Plain Layout -76.3 +\backslash +diagbox[dir=SE]{ \end_layout \end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -95.9 -\end_layout -\end_inset - - -\begin_inset Text +Team home +\begin_inset ERT +status collapsed \begin_layout Plain Layout -92.3 + +}{ \end_layout \end_inset - - - -\end_inset +Result +\begin_inset ERT +status collapsed +\begin_layout Plain Layout +}{ \end_layout \end_inset - -\end_layout - -\begin_layout Section -Vertical Table Alignment -\begin_inset Index idx +Team away +\begin_inset ERT status collapsed \begin_layout Plain Layout -Table ! Alignment + +} \end_layout \end_inset @@ -14081,117 +13956,118 @@ Table ! Alignment \end_layout -\begin_layout Standard -To align tables vertically in a text line the table must be inside a box. - The box can then be vertically aligned as described in section -\begin_inset space ~ \end_inset - - -\begin_inset CommandInset ref -LatexCommand ref -reference "sec:Box-Dialog" + + + \end_inset -. + \end_layout \begin_layout Standard -In the following example the tables are inside a minipage -\begin_inset Foot -status collapsed - -\begin_layout Plain Layout -Minipages are described in section -\begin_inset space ~ -\end_inset - +To rotate the diagonal lines, the command option +\series bold +dir=direction +\series default + is used. + +\emph on +direction +\emph default + is either +\series bold +NE +\series default +, +\series bold +DE +\series default +, +\series bold +SW +\series default + or +\series bold +NW +\series default + and represent a point of a compass. + +\series bold +SW +\series default + is for example the south-west corner. + Thus in the lower left cell of the above table the command +\end_layout -\begin_inset CommandInset ref -LatexCommand ref -reference "sec:Minipages" +\begin_layout Standard -\end_inset +\series bold -. +\backslash +diagbox[dir=SW]{Team home}{Result}{Team away} \end_layout -\end_inset - - box that has a width of 15 -\begin_inset space \thinspace{} -\end_inset - -col%: +\begin_layout Standard +is used. + If no direction is given, it will be NW. \end_layout -\begin_layout Itemize -test -\begin_inset Box Frameless -position "t" -hor_pos "c" -has_inner_box 1 -inner_pos "c" -use_parbox 0 -use_makebox 0 -width "15col%" -special "none" -height "1in" -height_special "totalheight" -status collapsed +\begin_layout Standard +The necessary width of split cells is automatically calculated. + Thus if you set a fixed column width smaller than the calculated one, the + cell's content will protrude the cell borders: +\end_layout -\begin_layout Plain Layout +\begin_layout Standard +\noindent +\align center \begin_inset Tabular - + - - + - + \begin_inset Text \begin_layout Plain Layout -a -\end_layout - -\end_inset - - -\begin_inset Text +\begin_inset ERT +status collapsed \begin_layout Plain Layout -d + + +\backslash +diagbox{ \end_layout \end_inset - - -\begin_inset Text + +Name +\begin_inset ERT +status collapsed \begin_layout Plain Layout -g + +}{ \end_layout \end_inset - - - - -\begin_inset Text + +Parameter +\begin_inset ERT +status collapsed \begin_layout Plain Layout -b + +} \end_layout \end_inset - - -\begin_inset Text -\begin_layout Plain Layout -e + \end_layout \end_inset @@ -14200,7 +14076,7 @@ e \begin_inset Text \begin_layout Plain Layout -h +Thickness in nm \end_layout \end_inset @@ -14211,40 +14087,93 @@ h \begin_inset Text \begin_layout Plain Layout -c +Perfect Green \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -f +45 \end_layout \end_inset - -\begin_inset Text + + + +\end_inset + -\begin_layout Plain Layout -i \end_layout +\begin_layout Standard +If you need a certain width for columns with a split cell, use the command + option +\series bold +width=3cm +\series default + (replace '3cm' by the width you need). + In the following table the width of the first column is set to 4 +\begin_inset space \thinspace{} +\end_inset + +cm. + For +\series bold + +\backslash +diagbox +\series default + a width of 4 +\begin_inset space \thinspace{} +\end_inset + +cm + 2 +\begin_inset space \thinspace{} \end_inset - - - + +\backslash +tabcolsep is necessary because the overall width is the width for the text + (in this case the 4 +\begin_inset space \thinspace{} \end_inset +cm) plus two times the separation of the text and the cell border. + The calculation of the width cannot be done in the command option of +\series bold +\backslash +diagbox +\series default + so one needs to create a new length which can be used later. + This is done with the TeX-Code commands \end_layout +\begin_layout Standard + +\series bold + +\backslash +newlength{ +\backslash +diagtest} +\begin_inset Newline newline \end_inset - test + +\backslash +setlength{ +\backslash +diagtest}{4cm+2 +\backslash +tabcolsep} +\end_layout + +\begin_layout Standard \begin_inset ERT status collapsed @@ -14252,78 +14181,113 @@ status collapsed \backslash -raisebox{0.85 +newlength{ \backslash -baselineskip}{ +diagtest} +\end_layout + +\begin_layout Plain Layout + + +\backslash +setlength{ +\backslash +diagtest}{4cm+2 +\backslash +tabcolsep} \end_layout \end_inset -\begin_inset Box Frameless -position "t" -hor_pos "c" -has_inner_box 1 -inner_pos "c" -use_parbox 0 -use_makebox 0 -width "15col%" -special "none" -height "1in" -height_special "totalheight" +\end_layout + +\begin_layout Standard +To enable calculations in LaTeX one needs to load the package +\series bold +calc +\series default + +\begin_inset Index idx status collapsed \begin_layout Plain Layout +LaTeX-packages ! calc +\end_layout + +\end_inset + + in the document preamble. +\end_layout + +\begin_layout Standard +In this table you can now use the command +\end_layout + +\begin_layout Standard + +\series bold + +\backslash +diagbox[width= +\backslash +diagtest]{A}{B} +\end_layout + +\begin_layout Standard +in the first cell: +\end_layout + +\begin_layout Standard +\noindent +\align center \begin_inset Tabular - + - - + \begin_inset Text \begin_layout Plain Layout -a -\end_layout - -\end_inset - - -\begin_inset Text +\begin_inset ERT +status open \begin_layout Plain Layout -d + + +\backslash +diagbox[width= +\backslash +diagtest]{ \end_layout \end_inset - - -\begin_inset Text + +A +\begin_inset ERT +status collapsed \begin_layout Plain Layout -g + +}{ \end_layout \end_inset - - - - -\begin_inset Text + +B +\begin_inset ERT +status collapsed \begin_layout Plain Layout -b + +} \end_layout \end_inset - - -\begin_inset Text -\begin_layout Plain Layout -e + \end_layout \end_inset @@ -14332,7 +14296,7 @@ e \begin_inset Text \begin_layout Plain Layout -h +Thickness in nm \end_layout \end_inset @@ -14343,16 +14307,7 @@ h \begin_inset Text \begin_layout Plain Layout -c -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -f +Perfect Green \end_layout \end_inset @@ -14361,7 +14316,7 @@ f \begin_inset Text \begin_layout Plain Layout -i +45 \end_layout \end_inset @@ -14374,88 +14329,60 @@ i \end_layout -\end_inset - - -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - -} -\end_layout - -\end_inset - - +\begin_layout Standard +Note that the split cell needs to be the widest one in the column. + Otherwise the length of the diagonal line cannot be calculated correctly + like in this table: \end_layout -\begin_layout Itemize -test -\begin_inset Box Frameless -position "c" -hor_pos "c" -has_inner_box 1 -inner_pos "c" -use_parbox 0 -use_makebox 0 -width "15col%" -special "none" -height "1in" -height_special "totalheight" -status collapsed - -\begin_layout Plain Layout +\begin_layout Standard +\noindent +\align center \begin_inset Tabular - + - - + \begin_inset Text \begin_layout Plain Layout -a -\end_layout - -\end_inset - - -\begin_inset Text +\begin_inset ERT +status collapsed \begin_layout Plain Layout -d + + +\backslash +diagbox{ \end_layout \end_inset - - -\begin_inset Text + +A +\begin_inset ERT +status collapsed \begin_layout Plain Layout -g + +}{ \end_layout \end_inset - - - - -\begin_inset Text + +B +\begin_inset ERT +status collapsed \begin_layout Plain Layout -b + +} \end_layout \end_inset - - -\begin_inset Text -\begin_layout Plain Layout -e + \end_layout \end_inset @@ -14464,7 +14391,7 @@ e \begin_inset Text \begin_layout Plain Layout -h +Thickness in nm \end_layout \end_inset @@ -14475,16 +14402,7 @@ h \begin_inset Text \begin_layout Plain Layout -c -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -f +Perfect Green \end_layout \end_inset @@ -14493,7 +14411,7 @@ f \begin_inset Text \begin_layout Plain Layout -i +45 \end_layout \end_inset @@ -14506,77 +14424,76 @@ i \end_layout -\end_inset +\begin_layout Standard +In this case use the +\series bold +width +\series default + option of the +\series bold +\backslash +diagbox +\series default + command. + It is then not necessary to add 2 +\backslash +tabcolsep because the cell width is now the width of the column. + In this table a width of 3 +\begin_inset space \thinspace{} +\end_inset +cm is used: \end_layout -\begin_layout Itemize -test -\begin_inset Box Frameless -position "b" -hor_pos "c" -has_inner_box 1 -inner_pos "c" -use_parbox 0 -use_makebox 0 -width "15col%" -special "none" -height "1in" -height_special "totalheight" -status collapsed - -\begin_layout Plain Layout +\begin_layout Standard +\noindent +\align center \begin_inset Tabular - + - - + \begin_inset Text \begin_layout Plain Layout -a -\end_layout - -\end_inset - - -\begin_inset Text +\begin_inset ERT +status open \begin_layout Plain Layout -d + + +\backslash +diagbox[width=3cm]{ \end_layout \end_inset - - -\begin_inset Text + +A +\begin_inset ERT +status collapsed \begin_layout Plain Layout -g + +}{ \end_layout \end_inset - - - - -\begin_inset Text + +B +\begin_inset ERT +status collapsed \begin_layout Plain Layout -b + +} \end_layout \end_inset - - -\begin_inset Text -\begin_layout Plain Layout -e + \end_layout \end_inset @@ -14585,7 +14502,7 @@ e \begin_inset Text \begin_layout Plain Layout -h +Thickness in nm \end_layout \end_inset @@ -14596,16 +14513,7 @@ h \begin_inset Text \begin_layout Plain Layout -c -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -f +Perfect Green \end_layout \end_inset @@ -14614,7 +14522,7 @@ f \begin_inset Text \begin_layout Plain Layout -i +45 \end_layout \end_inset @@ -14627,117 +14535,164 @@ i \end_layout -\end_inset +\begin_layout Standard +For multiple text lines in split cells one needs some extra height to fit + the text to the cell. + This can be achieved with the +\series bold - test -\begin_inset ERT -status collapsed +\backslash +diagbox +\series default + option +\series bold +height=3cm +\series default + (replace '3cm' by the height you need). + In the following table the command +\end_layout -\begin_layout Plain Layout +\begin_layout Standard +\series bold \backslash -raisebox{-0.32 +diagbox[width=3cm,height=1.4cm]{A \backslash -baselineskip}{ + +\backslash +B}{C +\backslash + +\backslash +D} \end_layout -\end_inset +\begin_layout Standard +is used in the first cell. + The command +\series bold +\backslash -\begin_inset Box Frameless -position "b" -hor_pos "c" -has_inner_box 1 -inner_pos "c" -use_parbox 0 -use_makebox 0 -width "15col%" -special "none" -height "1in" -height_special "totalheight" +\backslash + +\series default + creates hereby the line break. +\begin_inset Foot status collapsed \begin_layout Plain Layout +Breaking lines with +\family sans +Ctrl+Return +\family default + is only possible when the column has a fixed width. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\noindent +\align center \begin_inset Tabular - + - \begin_inset Text \begin_layout Plain Layout -a +\begin_inset ERT +status open + +\begin_layout Plain Layout + + +\backslash +diagbox[width=3cm,height=1.4cm]{ \end_layout \end_inset - - -\begin_inset Text + +A +\begin_inset ERT +status collapsed \begin_layout Plain Layout -d + + +\backslash + +\backslash + \end_layout \end_inset - - -\begin_inset Text + +B +\begin_inset ERT +status collapsed \begin_layout Plain Layout -g + +}{ \end_layout \end_inset - - - - -\begin_inset Text + +C +\begin_inset ERT +status collapsed \begin_layout Plain Layout -b + + +\backslash + +\backslash + \end_layout \end_inset - - -\begin_inset Text + +D +\begin_inset ERT +status collapsed \begin_layout Plain Layout -e + +} \end_layout \end_inset - - -\begin_inset Text -\begin_layout Plain Layout -h + \end_layout \end_inset - - - + \begin_inset Text \begin_layout Plain Layout -c +Thickness in nm \end_layout \end_inset + + \begin_inset Text \begin_layout Plain Layout -f +Perfect Green \end_layout \end_inset @@ -14746,7 +14701,7 @@ f \begin_inset Text \begin_layout Plain Layout -i +45 \end_layout \end_inset @@ -14759,116 +14714,80 @@ i \end_layout -\end_inset - - +\begin_layout Standard \begin_inset ERT status collapsed \begin_layout Plain Layout -} -\end_layout - -\end_inset - +\backslash +else \end_layout -\begin_layout Standard -As you will see, the content of the first and last table row is not correctly - aligned. - To get this alignment, the minipage box must be set into a raisebox -\begin_inset Foot -status collapsed - -\begin_layout Plain Layout -Raiseboxes are described in section -\begin_inset space ~ \end_inset -\begin_inset CommandInset ref -LatexCommand ref -reference "sub:Vertical-Alignment" - -\end_inset +\begin_inset Note Note +status open -. +\begin_layout Plain Layout +The following will be displayed when the LaTeX-package +\series bold +diagbox +\series default + is not installed: \end_layout \end_inset -. - In the example above the second table in the first item is aligned using - the TeX-Code-command -\end_layout - -\begin_layout Standard - -\series bold -\backslash -raisebox{0.85 -\backslash -baselineskip}{ \end_layout \begin_layout Standard -before the box. - After the box the closing brace +You need to install the LaTeX-package \series bold -} +diagbox \series default - is inserted as TeX-Code. - For the second table in the last item the command + to see the following part of this section in the output. \end_layout \begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout -\series bold \backslash -raisebox{-0.32 -\backslash -baselineskip}{ +fi \end_layout -\begin_layout Standard -is used. -\end_layout +\end_inset -\begin_layout Standard -\begin_inset Note Greyedout -status open -\begin_layout Plain Layout +\end_layout +\begin_layout Standard +For more info about the LaTeX-package \series bold -Note: -\series default - The alignment of the table row content to the surrounding text line is - not exact. - The required value for the -\series bold - -\backslash -raisebox +diagbox \series default - command for this alignment depends on the document font, the font size, - and the table line thickness. -\end_layout +, see its documentation, +\begin_inset CommandInset citation +LatexCommand cite +key "diagbox" \end_inset - +. \end_layout \begin_layout Section -Colored Tables +Formal Tables \begin_inset CommandInset label LatexCommand label -name "sec:Colored-Tables" +name "sec:Formal-Tables" \end_inset @@ -14877,7 +14796,7 @@ name "sec:Colored-Tables" status collapsed \begin_layout Plain Layout -Table ! Color +Table ! Formal \end_layout \end_inset @@ -14885,28 +14804,41 @@ Table ! Color \end_layout -\begin_layout Subsection -Colored Cells -\begin_inset Index idx -status collapsed +\begin_layout Standard +Tables are often typeset in books similar to Table +\begin_inset space ~ +\end_inset -\begin_layout Plain Layout -Table Color ! for Cells -\end_layout + +\begin_inset CommandInset ref +LatexCommand ref +reference "tab:Example-booktabs-table" \end_inset +. + This kind of tables is called +\begin_inset Quotes eld +\end_inset -\begin_inset Index idx -status collapsed -\begin_layout Plain Layout -Color ! for Table Cells -\end_layout +\emph on +formal +\emph default +\begin_inset Quotes erd \end_inset - +. + To make a table a formal table use the option +\family sans +Formal +\family default + in the +\family sans +Borders +\family default + tab of the table dialog. \end_layout \begin_layout Standard @@ -14922,25 +14854,11 @@ status open \begin_layout Plain Layout \begin_inset CommandInset label LatexCommand label -name "tab:Table-colored-without" - -\end_inset - -Table colored without using the package -\series bold -colortbl -\series default - -\begin_inset Argument -status collapsed - -\begin_layout Plain Layout -Table without colortbl -\end_layout +name "tab:Example-booktabs-table" \end_inset - +Example booktabs-table \end_layout \end_inset @@ -14951,382 +14869,416 @@ Table without colortbl \begin_layout Plain Layout \align center \begin_inset Tabular - - + + + - + \begin_inset Text \begin_layout Plain Layout - -\color green -a +System \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout +Chip +\begin_inset space \thinspace{} +\end_inset -\color red -b +1 \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout +Chip +\begin_inset space \thinspace{} +\end_inset -\color red -c +2 \end_layout \end_inset - - - + \begin_inset Text \begin_layout Plain Layout -\color green -d \end_layout \end_inset - + + + \begin_inset Text \begin_layout Plain Layout +\begin_inset ERT +status collapsed -\color blue -e +\begin_layout Plain Layout + + +\backslash +cmidrule(r){2-2} \end_layout \end_inset - - -\begin_inset Text + + +\begin_inset ERT +status collapsed \begin_layout Plain Layout -\color blue -f + +\backslash +cmidrule(l){3-4} +\end_layout + +\end_inset + +Detector thickness in µm \end_layout \end_inset - - - + \begin_inset Text \begin_layout Plain Layout - -\color green -g +300 \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout - -\color blue -h +300 \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout - -\color blue -i +700 \end_layout \end_inset - - -\end_inset - + + +\begin_inset Text +\begin_layout Plain Layout +Edge angle in ° \end_layout \end_inset + + +\begin_inset Text - +\begin_layout Plain Layout +3.55 \end_layout -\begin_layout Standard -If you only need colored text, mark the cells and choose a color in the - menu -\family sans -Edit\SpecialChar \menuseparator -Text -\begin_inset space ~ -\end_inset - -Style -\family default -. - This was used to create Table -\begin_inset space ~ \end_inset + + +\begin_inset Text - -\begin_inset CommandInset ref -LatexCommand ref -reference "tab:Table-colored-without" +\begin_layout Plain Layout +2.71 +\end_layout \end_inset - -. - In any other case you have to use the LaTeX-package -\series bold -colortbl -\series default -. -\begin_inset Index idx -status collapsed + + +\begin_inset Text \begin_layout Plain Layout -LaTeX-packages ! colortbl +7.99 \end_layout \end_inset + + + + +\begin_inset Text - +\begin_layout Plain Layout +Spatial resolution in µm \end_layout -\begin_layout Standard -\begin_inset ERT -status collapsed +\end_inset + + +\begin_inset Text \begin_layout Plain Layout - - -\backslash -ifcolortbl +4.26 \end_layout \end_inset + + +\begin_inset Text +\begin_layout Plain Layout +10.17 +\end_layout + +\end_inset + + +\begin_inset Text -\begin_inset Note Note -status open - \begin_layout Plain Layout -The following section part will only be displayed when the LaTeX-package - -\series bold -colortbl -\series default - is installed. +10.56 \end_layout \end_inset + + + + +\begin_inset Text +\begin_layout Plain Layout +MTF at +\begin_inset Formula $f_{\mathrm{max}}$ +\end_inset -\end_layout -\begin_layout Standard -To create colored tables, -\series bold -colortbl -\series default - must be loaded in the preamble with the line \end_layout -\begin_layout Standard +\end_inset + + +\begin_inset Text -\series bold +\begin_layout Plain Layout +0.53 +\end_layout -\backslash -usepackage{colortbl} +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +0.37 \end_layout -\begin_layout Standard -The color of a column is adjusted with the command +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +0.39 \end_layout -\begin_layout Standard +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout -\series bold \backslash -columncolor{name of color} +cmidrule(l{10pt}){1-1} \end_layout -\begin_layout Standard -inside the command -\series bold ->{ } -\series default -. - More about the command -\series bold ->{} -\series default - is contained in section -\begin_inset space ~ \end_inset - -\begin_inset CommandInset ref -LatexCommand ref -reference "sub:Multicolumn-Calculations" +LSF-spatial resolution +\end_layout \end_inset + + +\begin_inset Text -. -\end_layout +\begin_layout Plain Layout -\begin_layout Standard -The following color names are predefined: \end_layout -\begin_layout Standard +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout -\family sans -red -\family default -, -\family sans -green -\family default -, -\family sans -yellow -\family default -, -\family sans -blue -\family default -, -\family sans -cyan -\family default -, -\family sans -magenta -\family default -, -\family sans -black -\family default - and -\family sans -white \end_layout -\begin_layout Standard -\begin_inset VSpace medskip \end_inset + + +\begin_inset Text +\begin_layout Plain Layout \end_layout -\begin_layout Standard -You can also define your own color with the command +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +in µm \end_layout -\begin_layout Standard +\end_inset + + +\begin_inset Text -\series bold +\begin_layout Plain Layout +129.7 +\end_layout -\backslash -definecolor{color name}{color model}{color values} +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +52.75 \end_layout -\begin_layout Standard -The color model can be +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +50.78 \end_layout -\begin_layout Labeling -\labelwidthstring 00.00.0000 -cmyk: cyan, magenta, yellow, black +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +in % of pixel size \end_layout -\begin_layout Labeling -\labelwidthstring 00.00.0000 -rgb: red, green blue +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +76.3 \end_layout -\begin_layout Labeling -\labelwidthstring 00.00.0000 -gray gray +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +95.9 \end_layout -\begin_layout Standard -and the color values are comma separated numbers between 0 and 1 describing - the factor for the corresponding color of the color model. +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +92.3 \end_layout -\begin_layout Standard -You can e. -\begin_inset space \thinspace{} \end_inset + + + -g. -\begin_inset space \space{} \end_inset -define the color " -\emph on -darkgreen -\emph default -" in the preamble with + \end_layout -\begin_layout Standard +\end_inset -\series bold -\backslash -definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5} \end_layout \begin_layout Standard -and the color " -\emph on -lightgray -\emph default -" with -\end_layout +Spaces to table rows can be added using the +\family sans +Borders +\family default + tab of the table dialog as described in section +\begin_inset space ~ +\end_inset -\begin_layout Standard -\series bold +\begin_inset CommandInset ref +LatexCommand ref +reference "sub:Row-Spacing" -\backslash -definecolor{lightgray}{gray}{0.8} +\end_inset + +. \end_layout \begin_layout Standard -\begin_inset VSpace medskip +Unlike normal tables, formal tables have no vertical table lines. + The horizontal table lines can be set as for normal tables but they appear + with different widths in the output: +\begin_inset Newline newline +\end_inset + +The first and the last table line have a default width of 0.08 +\begin_inset space \thinspace{} \end_inset +em while the other lines have a default width of 0.05 +\begin_inset space \thinspace{} +\end_inset +em. \end_layout \begin_layout Standard -Lines are colored with the command +The default widths can be changed with the following preamble lines \end_layout \begin_layout Standard @@ -15334,97 +15286,168 @@ Lines are colored with the command \series bold \backslash -rowcolor{name of color} +let +\backslash +mytoprule +\backslash +toprule +\begin_inset Newline newline +\end_inset + + +\backslash +renewcommand{ +\backslash +toprule}{ +\backslash +mytoprule[width]} \end_layout \begin_layout Standard -and cells are colored with the command +This example is for the first line, the so called +\series bold +toprule +\series default +. + If you want to change the width for the last line, replace +\series bold +toprule +\series default + by +\series bold +bottomrule +\series default +. + To change the width for the other lines replace +\series bold +toprule +\series default + by +\series bold +midrule +\series default +. + You can use all units listed in appendix +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "cha:Units-available-in" + +\end_inset + + to set the width. \end_layout \begin_layout Standard - +Lines that do not span all table columns can be created by setting a table + line for multicolumn cells. + LyX will then internally use the command \series bold \backslash -cellcolor{name of color} +cmidrule +\series default + to create this line. + Its full scheme is \end_layout \begin_layout Standard -Both commands are inserted at the beginning of a cell as TeX-Code. -\end_layout -\begin_layout Standard -To color characters in the table, mark the cells and use the LyX menu -\family sans -Edit\SpecialChar \menuseparator -Text -\begin_inset space ~ -\end_inset +\series bold -Style -\family default -. - If a cell contains TeX-Code mark only the characters, otherwise the colored - TeX-Code will cause LaTeX-errors. +\backslash +cmidrule[width](trim){startcol-endcol} \end_layout \begin_layout Standard -\begin_inset Note Greyedout -status open - -\begin_layout Plain Layout +The options of +\series bold +\backslash +cmidrule +\series default + are currently not supported by LyX so you have to use TeX-Code to be able + to use them. + \series bold -Note: + +\backslash +cmidrule \series default - Not all DVI-viewers are able to display self-defined colors. +s can manually be created by inserting the command as TeX-Code as the first + cell entry of the first cell of a row. + The line is then drawn in the output above the current row. \end_layout +\begin_layout Standard +The default for the width is 0.03 +\begin_inset space \thinspace{} +\end_inset + +em. + Startcol is the number of the column where the line starts and endcol the + column number where the line ends. + The endcol always needs to be specified, also when the line should span + only one column. + The optional parameter trim could be either +\emph on +l{trimwidth} +\emph default +, or +\emph on +r{trimwidth} +\emph default + where the trimwidth is also optional. + Using for example the parameter +\emph on +l{2pt} +\emph default + means that the line is trimmed from its left end by 2 +\begin_inset space \thinspace{} \end_inset +pt. + If you don't specify the trimwidth the lines are trimmed by the default + of 0.5 +\begin_inset space \thinspace{} +\end_inset +em. \end_layout \begin_layout Standard \begin_inset VSpace bigskip \end_inset - -\end_layout - -\begin_layout Standard -To create Table +Table \begin_inset space ~ \end_inset \begin_inset CommandInset ref LatexCommand ref -reference "tab:Table-colored-using" +reference "tab:Example-booktabs-table" \end_inset - do the following: The color of the first column should be -\emph on -darkgreen -\emph default -. - So insert + was created using the commands \end_layout \begin_layout Standard \series bold ->{ + \backslash -columncolor{darkgreen} +cmidrule(r){2-2} \backslash -centering}c +cmidrule(l){3-4} \end_layout \begin_layout Standard -as LaTeX-argument for this column. - The first row should be blue, therefore the TeX-Code command +at the beginning of the second row and \end_layout \begin_layout Standard @@ -15432,189 +15455,224 @@ as LaTeX-argument for this column. \series bold \backslash -rowcolor{cyan} +cmidrule(l{10pt}){1-1} \end_layout \begin_layout Standard -is inserted to the first cell of this row. - Note that this overwrites the column color for the first cell. - The last cell of the last row is colored magenta by inserting the TeX-Code - command +in the sixth row. \end_layout \begin_layout Standard +\begin_inset VSpace bigskip +\end_inset -\series bold -\backslash -cellcolor{magenta} \end_layout \begin_layout Standard -The characters could now be colored using the menu -\family sans -Edit\SpecialChar \menuseparator -Text +You might want to have overlapping +\series bold + +\backslash +cmidrule +\series default +s as in in Table \begin_inset space ~ \end_inset -Style -\family default + +\begin_inset CommandInset ref +LatexCommand ref +reference "tab:Special-booktabs-table" + +\end_inset + . + This can be achieved with the TeX-Code command \end_layout \begin_layout Standard -\begin_inset Float table -placement h -wide false -sideways false -status open -\begin_layout Plain Layout -\begin_inset Caption +\series bold -\begin_layout Plain Layout -\begin_inset CommandInset label -LatexCommand label -name "tab:Table-colored-using" +\backslash +morecmidrules +\end_layout +\begin_layout Standard +The command that was used for the second row of Table +\begin_inset space ~ \end_inset -Table colored using the package -\series bold -colortbl -\series default - -\begin_inset Argument -status collapsed -\begin_layout Plain Layout -Table with colortbl -\end_layout +\begin_inset CommandInset ref +LatexCommand ref +reference "tab:Special-booktabs-table" \end_inset - + is \end_layout -\end_inset +\begin_layout Standard +\series bold +\backslash +cmidrule(r){2-2} +\backslash +cmidrule(l){3-4} +\backslash +morecmidrules +\backslash +cmidrule{2-4} \end_layout -\begin_layout Plain Layout -\align center -\begin_inset Tabular - - - - - - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed +\begin_layout Standard +The command for the sixth row is +\end_layout -\begin_layout Plain Layout +\begin_layout Standard +\series bold \backslash -rowcolor{cyan} +midrule +\backslash +morecmidrules +\backslash +cmidrule{3-4} \end_layout +\begin_layout Standard +\begin_inset VSpace bigskip \end_inset -\color magenta -a \end_layout -\end_inset - - -\begin_inset Text +\begin_layout Standard +If you are anyway not satisfied with the border line spacing, you can use + the following command to produce lines that span over all table columns +\series bold +: +\end_layout -\begin_layout Plain Layout +\begin_layout Standard -\color red -b +\series bold + +\backslash +specialrule{width}{space above}{space below} \end_layout +\begin_layout Standard +For more information about these features, refer to the manual of the LaTeX-pack +age +\series bold +booktabs +\series default + +\begin_inset CommandInset citation +LatexCommand cite +key "booktabs" + \end_inset - - -\begin_inset Text -\begin_layout Plain Layout +. +\begin_inset Index idx +status collapsed -\color red -c +\begin_layout Plain Layout +LaTeX-packages ! booktabs \end_layout \end_inset - - - - -\begin_inset Text + + +\end_layout + +\begin_layout Standard +\begin_inset Float table +placement h +wide false +sideways false +status open \begin_layout Plain Layout +\begin_inset Caption -\color yellow -d +\begin_layout Plain Layout +\begin_inset CommandInset label +LatexCommand label +name "tab:Special-booktabs-table" + +\end_inset + +Special booktabs-table \end_layout \end_inset - - -\begin_inset Text + + +\end_layout \begin_layout Plain Layout +\align center +\begin_inset Tabular + + + + + + + + +\begin_inset Text -\color blue -e +\begin_layout Plain Layout +System \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout +Chip +\begin_inset space \thinspace{} +\end_inset -\color blue -f +1 \end_layout \end_inset - - - + \begin_inset Text \begin_layout Plain Layout +Chip +\begin_inset space \thinspace{} +\end_inset -\color yellow -g +2 \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -\color blue -h \end_layout \end_inset + + \begin_inset Text @@ -15626,32 +15684,25 @@ status collapsed \backslash -cellcolor{magenta} +cmidrule(r){2-2} \end_layout \end_inset -\color green -i -\end_layout - -\end_inset - - - +\begin_inset ERT +status collapsed -\end_inset +\begin_layout Plain Layout +\backslash +cmidrule(l){3-4} \end_layout \end_inset -\end_layout - -\begin_layout Standard \begin_inset ERT status collapsed @@ -15659,212 +15710,215 @@ status collapsed \backslash -else +morecmidrules \end_layout \end_inset -\begin_inset Note Note -status open +\begin_inset ERT +status collapsed \begin_layout Plain Layout -The following will be displayed when the LaTeX-package -\series bold -colortbl -\series default - is not installed: -\end_layout - -\end_inset +\backslash +cmidrule{2-4} \end_layout -\begin_layout Standard -You need to install the package -\series bold -colortbl -\series default - to see the content of this section in the output. +\end_inset + +Detector thickness in µm \end_layout -\begin_layout Standard -\begin_inset ERT -status collapsed +\end_inset + + +\begin_inset Text \begin_layout Plain Layout +300 +\end_layout +\end_inset + + +\begin_inset Text -\backslash -fi +\begin_layout Plain Layout +300 \end_layout \end_inset + + +\begin_inset Text - +\begin_layout Plain Layout +700 \end_layout -\begin_layout Subsection -Colored Lines -\begin_inset Index idx -status collapsed +\end_inset + + + + +\begin_inset Text \begin_layout Plain Layout -Table Color ! for Lines +Edge angle in ° \end_layout \end_inset + + +\begin_inset Text +\begin_layout Plain Layout +3.55 +\end_layout -\begin_inset Index idx -status collapsed +\end_inset + + +\begin_inset Text \begin_layout Plain Layout -Color ! for Table Lines +2.71 \end_layout \end_inset + + +\begin_inset Text - +\begin_layout Plain Layout +7.99 \end_layout -\begin_layout Standard -As described in section -\begin_inset space ~ \end_inset + + + + +\begin_inset Text - -\begin_inset CommandInset ref -LatexCommand ref -reference "sub:Line-Thickness" +\begin_layout Plain Layout +Spatial resolution in µm +\end_layout \end_inset + + +\begin_inset Text -, the line thickness for all lines in a table can be adjusted with the length - -\series bold +\begin_layout Plain Layout +4.26 +\end_layout -\backslash -arrayrulewidth -\series default -. - It is set to 1.5 -\begin_inset space \thinspace{} \end_inset - -pt for all tables of this section. -\begin_inset ERT -status collapsed + + +\begin_inset Text \begin_layout Plain Layout +10.17 +\end_layout +\end_inset + + +\begin_inset Text -\backslash -setlength{ -\backslash -arrayrulewidth}{1.5pt} +\begin_layout Plain Layout +10.56 \end_layout \end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +MTF at +\begin_inset Formula $f_{\mathrm{max}}$ +\end_inset \end_layout -\begin_layout Standard -To color vertical lines for example with green, create the following column - format in the document preamble, according to the description in section -\begin_inset space ~ \end_inset + + +\begin_inset Text - -\begin_inset CommandInset ref -LatexCommand ref -reference "sub:Customized-Format" +\begin_layout Plain Layout +0.53 +\end_layout \end_inset + + +\begin_inset Text -: +\begin_layout Plain Layout +0.37 \end_layout -\begin_layout Standard - -\series bold +\end_inset + + +\begin_inset Text -\backslash -newcolumntype{W}{!{ -\backslash -color{green} -\backslash -vline}} +\begin_layout Plain Layout +0.39 \end_layout -\begin_layout Standard -For Table -\begin_inset space ~ \end_inset + + + + +\begin_inset Text +\begin_layout Plain Layout +\begin_inset ERT +status collapsed -\begin_inset CommandInset ref -LatexCommand ref -reference "tab:Table-with-vertical-colored" +\begin_layout Plain Layout -\end_inset - the LaTeX-argument -\series bold - WcW -\series default - was used for the last column and -\series bold - Wc -\series default - for the other columns. +\backslash +morecmidrules \end_layout -\begin_layout Standard -If you want to have several colors, define more column formats. -\end_layout +\end_inset -\begin_layout Standard -\begin_inset Float table -placement h -wide false -sideways false -status open -\begin_layout Plain Layout -\begin_inset Caption +\begin_inset ERT +status collapsed \begin_layout Plain Layout -\begin_inset CommandInset label -LatexCommand label -name "tab:Table-with-vertical-colored" -\end_inset -Table with colored vertical lines +\backslash +cmidrule{3-4} \end_layout \end_inset - +LSF-spatial resolution \end_layout -\begin_layout Plain Layout -\align center -\begin_inset Tabular - - - - - - +\end_inset + \begin_inset Text \begin_layout Plain Layout -sd + \end_layout \end_inset @@ -15889,58 +15943,76 @@ sd - + \begin_inset Text \begin_layout Plain Layout - +in µm \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -sd +129.7 \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout +52.75 +\end_layout + +\end_inset + + +\begin_inset Text +\begin_layout Plain Layout +50.78 \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout - +in % of pixel size \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout +76.3 +\end_layout +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +95.9 \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -sd +92.3 \end_layout \end_inset @@ -15958,133 +16030,81 @@ sd \end_layout -\begin_layout Standard -\begin_inset VSpace bigskip +\begin_layout Section +Vertical Table Alignment +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +Table ! Alignment +\end_layout + \end_inset -To color horizontal lines for example with red, as in Table + +\end_layout + +\begin_layout Standard +To align tables vertically in a text line the table must be inside a box. + The box can then be vertically aligned as described in section \begin_inset space ~ \end_inset \begin_inset CommandInset ref LatexCommand ref -reference "tab:Table-with-horizontal-colored" +reference "sec:Box-Dialog" \end_inset -, insert these commands in TeX-Code before the table or table float: +. \end_layout \begin_layout Standard - -\series bold - -\backslash -let -\backslash -myHlineC -\backslash -hline -\begin_inset Newline newline -\end_inset - - -\backslash -renewcommand{ -\backslash -hline} -\begin_inset Newline newline -\end_inset - - -\begin_inset Phantom HPhantom -status open +In the following example the tables are inside a minipage +\begin_inset Foot +status collapsed \begin_layout Plain Layout - -\series bold +Minipages are described in section \begin_inset space ~ \end_inset -\end_layout +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Minipages" \end_inset -{ -\backslash -arrayrulecolor{red} -\backslash -myHlineC -\backslash -arrayrulecolor{black}} +. \end_layout -\begin_layout Standard -\begin_inset ERT -status collapsed +\end_inset -\begin_layout Plain Layout + box that has a width of 15 +\begin_inset space \thinspace{} +\end_inset +col%: +\end_layout -\backslash -let -\backslash -myHlineC -\backslash -hline -\end_layout - -\begin_layout Plain Layout - - -\backslash -renewcommand{ -\backslash -hline} -\end_layout - -\begin_layout Plain Layout - - { -\backslash -arrayrulecolor{red} -\backslash -myHlineC -\backslash -arrayrulecolor{black}} -\end_layout - -\end_inset - - -\begin_inset Float table -placement h -wide false -sideways false -status open - -\begin_layout Plain Layout -\begin_inset Caption - -\begin_layout Plain Layout -\begin_inset CommandInset label -LatexCommand label -name "tab:Table-with-horizontal-colored" - -\end_inset - -Table with colored horizontal lines -\end_layout - -\end_inset - - -\end_layout +\begin_layout Itemize +test +\begin_inset Box Frameless +position "t" +hor_pos "c" +has_inner_box 1 +inner_pos "c" +use_parbox 0 +use_makebox 0 +width "15col%" +special "none" +height "1in" +height_special "totalheight" +status collapsed \begin_layout Plain Layout -\align center \begin_inset Tabular @@ -16096,7 +16116,7 @@ Table with colored horizontal lines \begin_inset Text \begin_layout Plain Layout -sd +a \end_layout \end_inset @@ -16105,7 +16125,7 @@ sd \begin_inset Text \begin_layout Plain Layout - +d \end_layout \end_inset @@ -16114,7 +16134,7 @@ sd \begin_inset Text \begin_layout Plain Layout - +g \end_layout \end_inset @@ -16125,7 +16145,7 @@ sd \begin_inset Text \begin_layout Plain Layout - +b \end_layout \end_inset @@ -16134,7 +16154,7 @@ sd \begin_inset Text \begin_layout Plain Layout -sd +e \end_layout \end_inset @@ -16143,7 +16163,7 @@ sd \begin_inset Text \begin_layout Plain Layout - +h \end_layout \end_inset @@ -16154,7 +16174,7 @@ sd \begin_inset Text \begin_layout Plain Layout - +c \end_layout \end_inset @@ -16163,7 +16183,7 @@ sd \begin_inset Text \begin_layout Plain Layout - +f \end_layout \end_inset @@ -16172,7 +16192,7 @@ sd \begin_inset Text \begin_layout Plain Layout -sd +i \end_layout \end_inset @@ -16187,156 +16207,124 @@ sd \end_inset + test +\begin_inset ERT +status collapsed -\end_layout - -\begin_layout Standard -To return to the default line color black, insert this command in TeX-Code - after the table or table float: -\end_layout - -\begin_layout Standard +\begin_layout Plain Layout -\series bold \backslash -renewcommand{ -\backslash -hline}{ +raisebox{0.85 \backslash -myHlineC} -\end_layout - -\begin_layout Standard -Table -\begin_inset space ~ -\end_inset - - -\begin_inset CommandInset ref -LatexCommand ref -reference "tab:Table-with-colored" - -\end_inset - - is an example with colored vertical and horizontal lines. -\end_layout - -\begin_layout Standard -\begin_inset Float table -placement h -wide false -sideways false -status open - -\begin_layout Plain Layout -\begin_inset Caption - -\begin_layout Plain Layout -\begin_inset CommandInset label -LatexCommand label -name "tab:Table-with-colored" - -\end_inset - -Table with colored lines +baselineskip}{ \end_layout \end_inset -\end_layout +\begin_inset Box Frameless +position "t" +hor_pos "c" +has_inner_box 1 +inner_pos "c" +use_parbox 0 +use_makebox 0 +width "15col%" +special "none" +height "1in" +height_special "totalheight" +status collapsed \begin_layout Plain Layout -\align center \begin_inset Tabular - - - + + + - + \begin_inset Text \begin_layout Plain Layout -sd +a \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout - +d \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout - +g \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout - +b \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -sd +e \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout - +h \end_layout \end_inset - - + + \begin_inset Text \begin_layout Plain Layout - +c \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout - +f \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -sd +i \end_layout \end_inset @@ -16352,21 +16340,12 @@ sd \end_inset -\end_layout - -\begin_layout Standard \begin_inset ERT status collapsed \begin_layout Plain Layout - -\backslash -renewcommand{ -\backslash -hline}{ -\backslash -myHlineC} +} \end_layout \end_inset @@ -16374,304 +16353,363 @@ myHlineC} \end_layout -\begin_layout Standard -\begin_inset ERT +\begin_layout Itemize +test +\begin_inset Box Frameless +position "c" +hor_pos "c" +has_inner_box 1 +inner_pos "c" +use_parbox 0 +use_makebox 0 +width "15col%" +special "none" +height "1in" +height_special "totalheight" status collapsed \begin_layout Plain Layout +\begin_inset Tabular + + + + + + + +\begin_inset Text - -\backslash -setlength{ -\backslash -arrayrulewidth}{0.4pt} +\begin_layout Plain Layout +a \end_layout \end_inset + + +\begin_inset Text - +\begin_layout Plain Layout +d \end_layout -\begin_layout Section -Table Customization -\begin_inset Index idx -status collapsed +\end_inset + + +\begin_inset Text \begin_layout Plain Layout -Table Customization +g \end_layout \end_inset - - -\begin_inset Index idx -status collapsed + + + + +\begin_inset Text \begin_layout Plain Layout -Table ! Customization +b \end_layout \end_inset + + +\begin_inset Text - +\begin_layout Plain Layout +e \end_layout -\begin_layout Subsection -Row Spacing -\begin_inset CommandInset label -LatexCommand label -name "sub:Row-Spacing" - \end_inset - - -\begin_inset Index idx -status collapsed + + +\begin_inset Text \begin_layout Plain Layout -Table Customization ! Row Spacing +h \end_layout \end_inset + + + + +\begin_inset Text - -\end_layout - -\begin_layout Standard -You can add vertical space to table rows in the -\family sans -Borders -\family default - tab of the table dialog. - You find there three possibilities: +\begin_layout Plain Layout +c \end_layout -\begin_layout Description -Top -\begin_inset space ~ -\end_inset - -of -\begin_inset space ~ \end_inset - -row will add space above the characters of the table row. - If the table is a formal table -\begin_inset Foot -status collapsed + + +\begin_inset Text \begin_layout Plain Layout -Formal tables are explained in section -\begin_inset space ~ -\end_inset - - -\begin_inset CommandInset ref -LatexCommand ref -reference "sec:Formal-Tables" +f +\end_layout \end_inset + + +\begin_inset Text -. +\begin_layout Plain Layout +i \end_layout \end_inset + + + - LyX will insert as default 0.5 -\begin_inset space \thinspace{} -\end_inset - -em space. - For normal tables the inserted space will unfortunately destroy the vertical - table lines as in the following table: -\begin_inset VSpace medskip \end_inset -\begin_inset Newline newline -\end_inset - +\end_layout -\begin_inset space \hspace*{} -\length 0pt \end_inset -\begin_inset space \hfill{} -\end_inset +\end_layout +\begin_layout Itemize +test +\begin_inset Box Frameless +position "b" +hor_pos "c" +has_inner_box 1 +inner_pos "c" +use_parbox 0 +use_makebox 0 +width "15col%" +special "none" +height "1in" +height_special "totalheight" +status collapsed +\begin_layout Plain Layout \begin_inset Tabular - + + + - + \begin_inset Text \begin_layout Plain Layout -A +a \end_layout \end_inset - - - + \begin_inset Text \begin_layout Plain Layout -3 -\begin_inset space \thinspace{} +d +\end_layout + \end_inset + + +\begin_inset Text -mm space top of row +\begin_layout Plain Layout +g \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -C +b \end_layout \end_inset - - - -\end_inset + +\begin_inset Text +\begin_layout Plain Layout +e +\end_layout -\begin_inset space \hfill{} \end_inset + + +\begin_inset Text +\begin_layout Plain Layout +h +\end_layout -\begin_inset space \hspace*{} -\length 0pt \end_inset + + + + +\begin_inset Text +\begin_layout Plain Layout +c +\end_layout -\begin_inset VSpace medskip \end_inset + + +\begin_inset Text +\begin_layout Plain Layout +f +\end_layout -\begin_inset Newline newline \end_inset + + +\begin_inset Text -So inserting space in the top of row for normal tables is only useful when - you don't have vertical lines. +\begin_layout Plain Layout +i \end_layout -\begin_layout Description -Bottom -\begin_inset space ~ -\end_inset - -of -\begin_inset space ~ \end_inset + + + -row will add space below the characters of the table row. - If the table is a formal table LyX will insert as default 0.5 -\begin_inset space \thinspace{} \end_inset -em space, for normal tables the default size is 2 -\begin_inset space \thinspace{} -\end_inset -pt. \end_layout -\begin_layout Description -Between -\begin_inset space ~ -\end_inset - -rows adds space between the current and the following row. - If the table is a formal table LyX will insert as default 0.5 -\begin_inset space \thinspace{} \end_inset -em space. - For normal tables the inserted space will unfortunately destroy the vertical - table lines as in the following table: -\begin_inset VSpace medskip -\end_inset + test +\begin_inset ERT +status collapsed +\begin_layout Plain Layout -\begin_inset Newline newline -\end_inset +\backslash +raisebox{-0.32 +\backslash +baselineskip}{ +\end_layout -\begin_inset space \hspace*{} -\length 0pt \end_inset -\begin_inset space \hfill{} -\end_inset - +\begin_inset Box Frameless +position "b" +hor_pos "c" +has_inner_box 1 +inner_pos "c" +use_parbox 0 +use_makebox 0 +width "15col%" +special "none" +height "1in" +height_special "totalheight" +status collapsed +\begin_layout Plain Layout \begin_inset Tabular - + + + - + \begin_inset Text \begin_layout Plain Layout -A +a \end_layout \end_inset - - - + \begin_inset Text \begin_layout Plain Layout -\begin_inset Formula $\downarrow$ -\end_inset +d +\end_layout - 3 -\begin_inset space \thinspace{} \end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +g +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +b +\end_layout -mm space between row -\begin_inset Formula $\downarrow$ \end_inset + + +\begin_inset Text +\begin_layout Plain Layout +e +\end_layout + +\end_inset + + +\begin_inset Text +\begin_layout Plain Layout +h \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -\begin_inset Formula $\uparrow$ -\end_inset +c +\end_layout - 3 -\begin_inset space \thinspace{} \end_inset + + +\begin_inset Text -mm space between row -\begin_inset Formula $\uparrow$ -\end_inset +\begin_layout Plain Layout +f +\end_layout +\end_inset + + +\begin_inset Text +\begin_layout Plain Layout +i \end_layout \end_inset @@ -16682,32 +16720,51 @@ mm space between row \end_inset -\begin_inset space \hfill{} +\end_layout + \end_inset -\begin_inset space \hspace*{} -\length 0pt +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout + \end_inset -\begin_inset VSpace medskip +\end_layout + +\begin_layout Standard +As you will see, the content of the first and last table row is not correctly + aligned. + To get this alignment, the minipage box must be set into a raisebox +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout +Raiseboxes are described in section +\begin_inset space ~ \end_inset -\begin_inset Newline newline +\begin_inset CommandInset ref +LatexCommand ref +reference "sub:Vertical-Alignment" + \end_inset -So inserting space between rows for normal tables is only useful when you - don't have vertical lines. +. \end_layout -\begin_layout Standard -\begin_inset VSpace bigskip \end_inset -When you want to add extra height to all cells of all tables, you can do - this with the following preamble lines: +. + In the example above the second table in the first item is aligned using + the TeX-Code-command \end_layout \begin_layout Standard @@ -16715,81 +16772,107 @@ When you want to add extra height to all cells of all tables, you can do \series bold \backslash -@ifundefined{extrarowheight} -\begin_inset Newline newline -\end_inset +raisebox{0.85 +\backslash +baselineskip}{ +\end_layout + +\begin_layout Standard +before the box. + After the box the closing brace +\series bold +} +\series default + is inserted as TeX-Code. + For the second table in the last item the command +\end_layout + +\begin_layout Standard +\series bold -\begin_inset Phantom HPhantom +\backslash +raisebox{-0.32 +\backslash +baselineskip}{ +\end_layout + +\begin_layout Standard +is used. +\end_layout + +\begin_layout Standard +\begin_inset Note Greyedout status open \begin_layout Plain Layout \series bold -\begin_inset space ~ +Note: +\series default + The alignment of the table row content to the surrounding text line is + not exact. + The required value for the +\series bold + +\backslash +raisebox +\series default + command for this alignment depends on the document font, the font size, + and the table line thickness. +\end_layout + \end_inset \end_layout -\end_inset +\begin_layout Section +Colored Tables +\begin_inset CommandInset label +LatexCommand label +name "sec:Colored-Tables" -{ -\backslash -usepackage{array}}{} -\begin_inset Newline newline \end_inset -\backslash -setlength{ -\backslash -extrarowheight}{height} +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +Table ! Color \end_layout -\begin_layout Standard -But this has the disadvantage that the cell texts are no longer exactly - vertically centered. - (The package -\series bold -array -\series default - will be loaded automatically by LyX when you use self defined table formats. - To avoid that it being loaded twice the command -\series bold +\end_inset + -\backslash -@ifundefined -\series default - is used in the above command.) \end_layout -\begin_layout Standard -If you are using font sizes larger than the normal size, the table borders - are often too close to the letters. - This can be corrected by inserting the command -\series bold +\begin_layout Subsection +Colored Cells +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +Table Color ! for Cells +\end_layout -\backslash -strut -\series default - in TeX code at the beginning of a table row. - Table -\begin_inset space ~ \end_inset -\begin_inset CommandInset ref -LatexCommand ref -reference "tab:Vertical-alignment-of" +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +Color ! for Table Cells +\end_layout \end_inset - illustrates the effect. + \end_layout \begin_layout Standard -\noindent \begin_inset Float table placement h wide false @@ -16802,33 +16885,25 @@ status open \begin_layout Plain Layout \begin_inset CommandInset label LatexCommand label -name "tab:Vertical-alignment-of" +name "tab:Table-colored-without" \end_inset -Vertical alignment of text with large font sizes. -\end_layout - -\end_inset +Table colored without using the package +\series bold +colortbl +\series default +\begin_inset Argument +status collapsed +\begin_layout Plain Layout +Table without colortbl \end_layout -\begin_layout Plain Layout -\begin_inset space \hfill{} \end_inset -\begin_inset Float table -wide false -sideways false -status collapsed - -\begin_layout Plain Layout -\begin_inset Caption - -\begin_layout Plain Layout -Normal table. \end_layout \end_inset @@ -16837,225 +16912,172 @@ Normal table. \end_layout \begin_layout Plain Layout -\noindent \align center \begin_inset Tabular - + - + + + - + \begin_inset Text \begin_layout Plain Layout -Normal, g + +\color green +a \end_layout \end_inset - - - + \begin_inset Text \begin_layout Plain Layout -\size large -Large +\color red +b \end_layout \end_inset - - - + \begin_inset Text \begin_layout Plain Layout -\size larger -Larger +\color red +c \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -\size largest -Largest +\color green +d \end_layout \end_inset - - - + \begin_inset Text \begin_layout Plain Layout -\size huge -Huge +\color blue +e \end_layout \end_inset - - - + \begin_inset Text \begin_layout Plain Layout -\size huge -Huger +\color blue +f \end_layout \end_inset - - -\end_inset + + +\begin_inset Text +\begin_layout Plain Layout +\color green +g \end_layout \end_inset - - -\begin_inset space \hfill{} -\end_inset - - -\begin_inset Float table -wide false -sideways false -status collapsed - -\begin_layout Plain Layout -\begin_inset Caption + + +\begin_inset Text \begin_layout Plain Layout -Table using the command -\series bold -\backslash -strut -\series default -. +\color blue +h \end_layout \end_inset - - -\end_layout - -\begin_layout Plain Layout -\noindent -\align center -\begin_inset Tabular - - - - - + + \begin_inset Text \begin_layout Plain Layout -Normal, g + +\color blue +i \end_layout \end_inset - - -\begin_inset Text - -\begin_layout Plain Layout - -\size large -\begin_inset ERT -status collapsed + -\begin_layout Plain Layout +\end_inset -\backslash -strut \end_layout \end_inset -Large + \end_layout +\begin_layout Standard +If you only need colored text, mark the cells and choose a color in the + menu +\family sans +Edit\SpecialChar \menuseparator +Text +\begin_inset space ~ \end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout - -\size larger -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -strut -\end_layout +Style +\family default +. + This was used to create Table +\begin_inset space ~ \end_inset -Larger -\end_layout -\end_inset - - - - -\begin_inset Text +\begin_inset CommandInset ref +LatexCommand ref +reference "tab:Table-colored-without" -\begin_layout Plain Layout +\end_inset -\size largest -\begin_inset ERT +. + In any other case you have to use the LaTeX-package +\series bold +colortbl +\series default +. +\begin_inset Index idx status collapsed \begin_layout Plain Layout - - -\backslash -strut +LaTeX-packages ! colortbl \end_layout \end_inset -Largest -\end_layout - -\end_inset - - - - -\begin_inset Text -\begin_layout Plain Layout +\end_layout -\size huge +\begin_layout Standard \begin_inset ERT status collapsed @@ -17063,420 +17085,398 @@ status collapsed \backslash -strut -\end_layout - -\end_inset - -Huge +ifcolortbl \end_layout \end_inset - - - - -\begin_inset Text -\begin_layout Plain Layout -\size giant -\begin_inset ERT -status collapsed +\begin_inset Note Note +status open \begin_layout Plain Layout - - -\backslash -strut +The following section part will only be displayed when the LaTeX-package + +\series bold +colortbl +\series default + is installed. \end_layout \end_inset -\size huge -Huger \end_layout -\end_inset - - - +\begin_layout Standard +To create colored tables, +\series bold +colortbl +\series default + must be loaded in the preamble with the line +\end_layout -\end_inset +\begin_layout Standard +\series bold +\backslash +usepackage{colortbl} \end_layout -\end_inset - +\begin_layout Standard +The color of a column is adjusted with the command +\end_layout -\begin_inset space \hfill{} -\end_inset +\begin_layout Standard +\series bold +\backslash +columncolor{name of color} \end_layout +\begin_layout Standard +inside the command +\series bold +>{ } +\series default +. + More about the command +\series bold +>{} +\series default + is contained in section +\begin_inset space ~ \end_inset -\end_layout - -\begin_layout Subsection -Special Cell Alignment -\begin_inset CommandInset label -LatexCommand label -name "sub:Special-Cell-Alignment" +\begin_inset CommandInset ref +LatexCommand ref +reference "sub:Multicolumn-Calculations" \end_inset - -\begin_inset Index idx -status collapsed - -\begin_layout Plain Layout -Table Customization ! Special Cell Alignment +. \end_layout -\end_inset +\begin_layout Standard +The following color names are predefined: +\end_layout +\begin_layout Standard +\family sans +red +\family default +, +\family sans +green +\family default +, +\family sans +yellow +\family default +, +\family sans +blue +\family default +, +\family sans +cyan +\family default +, +\family sans +magenta +\family default +, +\family sans +black +\family default + and +\family sans +white \end_layout \begin_layout Standard -Sometimes it looks better when the cell entries of a column are aligned - with a special character, e. -\begin_inset space \thinspace{} +\begin_inset VSpace medskip \end_inset -g. -\begin_inset space \space{} + +\end_layout + +\begin_layout Standard +If you add the options +\end_layout + +\begin_layout Standard + +\series bold +usenames,dvipsnames +\end_layout + +\begin_layout Standard +to the document class options in the document settings, you can additionally + use further 61 +\begin_inset space ~ \end_inset -with the decimal separator as in Table +colors. + These colors are listed in appendix \begin_inset space ~ \end_inset \begin_inset CommandInset ref LatexCommand ref -reference "tab:Table-cells-align" +reference "chap:List-of-dvips-colornames" \end_inset . - This alignment is achieved by setting the cursor into the column and then - either pressing the toolbar button -\begin_inset Graphics - filename ../images/tabular-feature_align-decimal.png - scale 85 - scaleBeforeRotation - -\end_inset - - or setting the alignment in the table settings to + One of these colors, \family sans -At +Maroon +\family default +, is used as example in Table \begin_inset space ~ \end_inset -Decimal -\begin_inset space ~ + +\begin_inset CommandInset ref +LatexCommand ref +reference "tab:Table-colored-using" + \end_inset -Separator -\family default . - The alignment character can be a character of your choice and is specified - in the table settings. \end_layout \begin_layout Standard -\begin_inset Float table -placement h -wide false -sideways false -status open - -\begin_layout Plain Layout -\begin_inset Caption +\begin_inset VSpace medskip +\end_inset -\begin_layout Plain Layout -\begin_inset CommandInset label -LatexCommand label -name "tab:Table-cells-align" -\end_inset +\end_layout -Table cells of a column aligned with the decimal separator. +\begin_layout Standard +You can also define your own color with the command \end_layout -\end_inset +\begin_layout Standard +\series bold +\backslash +definecolor{color name}{color model}{color values} \end_layout -\begin_layout Plain Layout -\align center -\begin_inset Tabular - - - - - -\begin_inset Text - -\begin_layout Plain Layout -heading +\begin_layout Standard +The color model can be \end_layout -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -12.6 +\begin_layout Labeling +\labelwidthstring 00.00.0000 +cmyk: cyan, magenta, yellow, black \end_layout -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -0.68 +\begin_layout Labeling +\labelwidthstring 00.00.0000 +rgb: red, green blue \end_layout -\end_inset - - - - -\begin_inset Text +\begin_layout Labeling +\labelwidthstring 00.00.0000 +gray gray +\end_layout -\begin_layout Plain Layout --123.0 +\begin_layout Standard +and the color values are comma separated numbers between 0 and 1 describing + the factor for the corresponding color of the color model. \end_layout +\begin_layout Standard +You can e. +\begin_inset space \thinspace{} \end_inset - - - +g. +\begin_inset space \space{} \end_inset - +define the color " +\emph on +darkgreen +\emph default +" in the preamble with \end_layout -\end_inset +\begin_layout Standard +\series bold +\backslash +definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5} \end_layout \begin_layout Standard -\begin_inset Float table -placement h -wide false -sideways false -status open - -\begin_layout Plain Layout -\begin_inset Caption - -\begin_layout Plain Layout -\begin_inset CommandInset label -LatexCommand label -name "tab:Table-align-operator" - -\end_inset - -Table cells of a column aligned with the operators. +and the color " +\emph on +lightgray +\emph default +" with \end_layout -\end_inset - - -\end_layout +\begin_layout Standard -\begin_layout Plain Layout -\align center -\begin_inset Tabular - - - - - - -\begin_inset Text +\series bold -\begin_layout Plain Layout -heading +\backslash +definecolor{lightgray}{gray}{0.8} \end_layout +\begin_layout Standard +\begin_inset VSpace medskip \end_inset - - -\begin_inset Text -\begin_layout Plain Layout \end_layout -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $12\,+$ -\end_inset - - +\begin_layout Standard +Lines are colored with the command \end_layout -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\,6$ -\end_inset +\begin_layout Standard +\series bold +\backslash +rowcolor{name of color} \end_layout -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $0\,-$ -\end_inset - - +\begin_layout Standard +and cells are colored with the command \end_layout -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\,68$ -\end_inset +\begin_layout Standard +\series bold +\backslash +cellcolor{name of color} \end_layout -\end_inset - - - - -\begin_inset Text +\begin_layout Standard +Both commands are inserted at the beginning of a cell as TeX-Code. +\end_layout -\begin_layout Plain Layout -\begin_inset Formula $-123\,/$ +\begin_layout Standard +To color characters in the table, mark the cells and use the LyX menu +\family sans +Edit\SpecialChar \menuseparator +Text +\begin_inset space ~ \end_inset - +Style +\family default +. + If a cell contains TeX-Code mark only the characters, otherwise the colored + TeX-Code will cause LaTeX-errors. \end_layout -\end_inset - - -\begin_inset Text +\begin_layout Standard +\begin_inset Note Greyedout +status open \begin_layout Plain Layout -\begin_inset Formula $\,0$ -\end_inset - +\series bold +Note: +\series default + Not all DVI-viewers are able to display self-defined colors. \end_layout -\end_inset - - - - \end_inset \end_layout +\begin_layout Standard +\begin_inset VSpace bigskip \end_inset \end_layout \begin_layout Standard -For alignments at characters in formulas this method does not work because - the field to specify the alignment character does not allow formulas. - In this case one need to use the method from Table +To create Table \begin_inset space ~ \end_inset \begin_inset CommandInset ref LatexCommand ref -reference "tab:Table-align-operator" +reference "tab:Table-colored-using" \end_inset + do the following: The color of the first column should be +\emph on +darkgreen +\emph default . - This table was created with a 4×2 table. - The heading is a centered multicolumn. - The first column is right-aligned and contains the first part including - the operator. - The second column is left aligned and contains the rest. - A small space was added at the beginning of each cell of the second column - to get the space that is usually around operators. - To omit the space that is normally between two table columns, the following - LaTeX-argument was used for the second column: + So insert \end_layout \begin_layout Standard \series bold -@{}l +>{ +\backslash +columncolor{darkgreen} +\backslash +centering}c \end_layout \begin_layout Standard -Table -\begin_inset space ~ -\end_inset +as LaTeX-argument for this column. + The first row should be light blue, therefore the TeX-Code command +\end_layout +\begin_layout Standard -\begin_inset CommandInset ref -LatexCommand ref -reference "tab:Several-table-cell" +\series bold -\end_inset +\backslash +rowcolor{cyan} +\end_layout - shows some example alignments. - For the alignment with the relation sign, a small space was added like - for the second column of Table -\begin_inset space ~ -\end_inset +\begin_layout Standard +is inserted to the first cell of this row. + Note that this overwrites the column color for the first cell. + The last cell of the last row is colored maroon by inserting the TeX-Code + command +\end_layout +\begin_layout Standard -\begin_inset CommandInset ref -LatexCommand ref -reference "tab:Table-align-operator" +\series bold + +\backslash +cellcolor{Maroon} +\end_layout +\begin_layout Standard +The characters could now be colored using the menu +\family sans +Edit\SpecialChar \menuseparator +Text +\begin_inset space ~ \end_inset +Style +\family default . \end_layout @@ -17493,11 +17493,25 @@ status open \begin_layout Plain Layout \begin_inset CommandInset label LatexCommand label -name "tab:Several-table-cell" +name "tab:Table-colored-using" \end_inset -Several table cell alignments. +Table colored using the package +\series bold +colortbl +\series default + +\begin_inset Argument +status collapsed + +\begin_layout Plain Layout +Table with colortbl +\end_layout + +\end_inset + + \end_layout \end_inset @@ -17508,65 +17522,53 @@ Several table cell alignments. \begin_layout Plain Layout \align center \begin_inset Tabular - + - - - - - - + + + - + \begin_inset Text \begin_layout Plain Layout -units -\end_layout - -\end_inset - - -\begin_inset Text +\begin_inset ERT +status collapsed \begin_layout Plain Layout -\end_layout - -\end_inset - - -\begin_inset Text -\begin_layout Plain Layout -exponents +\backslash +rowcolor{cyan} \end_layout \end_inset - - -\begin_inset Text -\begin_layout Plain Layout +\color magenta +a \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -relations + +\color red +b \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout +\color red +c \end_layout \end_inset @@ -17577,20 +17579,20 @@ relations \begin_inset Text \begin_layout Plain Layout -12× + +\color yellow +d \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -24 -\begin_inset space \thinspace{} -\end_inset -bottles +\color blue +e \end_layout \end_inset @@ -17599,22 +17601,22 @@ bottles \begin_inset Text \begin_layout Plain Layout -\begin_inset Formula $10\cdot$ -\end_inset - +\color blue +f \end_layout \end_inset - + + + \begin_inset Text \begin_layout Plain Layout -\begin_inset Formula $10^{\mbox{-}17}$ -\end_inset - +\color yellow +g \end_layout \end_inset @@ -17623,10 +17625,9 @@ bottles \begin_inset Text \begin_layout Plain Layout -\begin_inset Formula $\Gamma(t)\propto$ -\end_inset - +\color blue +h \end_layout \end_inset @@ -17635,186 +17636,151 @@ bottles \begin_inset Text \begin_layout Plain Layout -\begin_inset Formula $\:\Upsilon(t)$ -\end_inset +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +\backslash +cellcolor{Maroon} \end_layout \end_inset - - - - -\begin_inset Text -\begin_layout Plain Layout -1024× + +\color green +i \end_layout \end_inset - -\begin_inset Text + + -\begin_layout Plain Layout -768 -\begin_inset space \thinspace{} \end_inset -Pixels + \end_layout \end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $5.78\cdot$ -\end_inset \end_layout -\end_inset - - -\begin_inset Text +\begin_layout Standard +\begin_inset ERT +status collapsed \begin_layout Plain Layout -\begin_inset Formula $10^{7}$ -\end_inset +\backslash +else \end_layout \end_inset - - -\begin_inset Text -\begin_layout Plain Layout -\begin_inset Formula $A\ne$ -\end_inset +\begin_inset Note Note +status open +\begin_layout Plain Layout +The following will be displayed when the LaTeX-package +\series bold +colortbl +\series default + is not installed: \end_layout \end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\: B_{\mathrm{red}}$ -\end_inset \end_layout -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -32× +\begin_layout Standard +You need to install the package +\series bold +colortbl +\series default + to see the content of this section in the output. \end_layout -\end_inset - - -\begin_inset Text +\begin_layout Standard +\begin_inset ERT +status collapsed \begin_layout Plain Layout -6 -\begin_inset space \thinspace{} -\end_inset -cm -\end_layout -\end_inset - - -\begin_inset Text +\backslash +fi +\end_layout -\begin_layout Plain Layout -- -\begin_inset Formula $33.5\cdot$ \end_inset \end_layout -\end_inset - - -\begin_inset Text +\begin_layout Subsection +Colored Lines +\begin_inset Index idx +status collapsed \begin_layout Plain Layout -\begin_inset Formula $10^{4}$ -\end_inset - - +Table Color ! for Lines \end_layout \end_inset - - -\begin_inset Text -\begin_layout Plain Layout -\begin_inset Formula $\sin(\alpha)\ge$ -\end_inset +\begin_inset Index idx +status collapsed +\begin_layout Plain Layout +Color ! for Table Lines \end_layout \end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\:\sin(\beta)$ -\end_inset \end_layout -\end_inset - - - - +\begin_layout Standard +As described in section +\begin_inset space ~ \end_inset -\end_layout +\begin_inset CommandInset ref +LatexCommand ref +reference "sub:Line-Thickness" \end_inset +, the line thickness for all lines in a table can be adjusted with the length + +\series bold -\end_layout - -\begin_layout Subsection -Customized Cell/Column Format -\begin_inset CommandInset label -LatexCommand label -name "sub:Customized-Format" - +\backslash +arrayrulewidth +\series default +. + It is set to 1.5 +\begin_inset space \thinspace{} \end_inset - -\begin_inset Index idx +pt for all tables of this section. +\begin_inset ERT status collapsed \begin_layout Plain Layout -Table Customization ! Cell/Column Format + + +\backslash +setlength{ +\backslash +arrayrulewidth}{1.5pt} \end_layout \end_inset @@ -17823,21 +17789,19 @@ Table Customization ! Cell/Column Format \end_layout \begin_layout Standard -Calculating the required width for spanned columns as in section +To color vertical lines for example with green, create the following column + format in the document preamble, according to the description in section \begin_inset space ~ \end_inset \begin_inset CommandInset ref LatexCommand ref -reference "sub:Multicolumn-Calculations" +reference "sub:Customized-Format" \end_inset - is very annoying if you have several tables with multicolumn cells. - To make life easier, you can define a cell/column format in the preamble, - so that it can be used in all tables of the document. - The format is defined with the command +: \end_layout \begin_layout Standard @@ -17845,266 +17809,273 @@ reference "sub:Multicolumn-Calculations" \series bold \backslash -newcolumntype{name of format}[number of arguments]{commands} -\end_layout - -\begin_layout Standard -The format name may only consist of one letter. - The letters -\emph on -b -\emph default -, -\emph on -c -\emph default -, -\emph on -l -\emph default -, -\emph on -m -\emph default -, -\emph on -p -\emph default - and -\emph on -r -\emph default - are predefined and cannot be used. - But all letters are allowed as capitals. +newcolumntype{W}{!{ +\backslash +color{green} +\backslash +vline}} \end_layout \begin_layout Standard -\begin_inset VSpace medskip +For Table +\begin_inset space ~ \end_inset +\begin_inset CommandInset ref +LatexCommand ref +reference "tab:Table-with-vertical-colored" + +\end_inset + + the LaTeX-argument +\series bold + WcW +\series default + was used for the last column and +\series bold + Wc +\series default + for the other columns. \end_layout \begin_layout Standard -For vertically and horizontally centered multicolumn cells with a fixed - width you can define the cell format +If you want to have several colors, define more column formats. \end_layout \begin_layout Standard +\begin_inset Float table +placement h +wide false +sideways false +status open -\series bold - -\backslash -newcolumntype{M}[1]{>{ -\backslash -centering -\backslash -hspace{0pt}}m{#1}} -\end_layout +\begin_layout Plain Layout +\begin_inset Caption -\begin_layout Standard -where -\series bold +\begin_layout Plain Layout +\begin_inset CommandInset label +LatexCommand label +name "tab:Table-with-vertical-colored" -\backslash -hspace{0pt} -\series default - avoids the problem of hyphenating the first word, as described in section -\begin_inset space ~ \end_inset - -\begin_inset CommandInset ref -LatexCommand ref -reference "sub:Multiple-Lines-in" +Table with colored vertical lines +\end_layout \end_inset -. - Now you can simply enter + \end_layout -\begin_layout Standard +\begin_layout Plain Layout +\align center +\begin_inset Tabular + + + + + + + +\begin_inset Text -\series bold -M{width} +\begin_layout Plain Layout +sd \end_layout -\begin_layout Standard -as LaTeX-argument in the table dialog to create a multicolumn. +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + \end_layout -\begin_layout Standard -\begin_inset VSpace bigskip \end_inset + + +\begin_inset Text +\begin_layout Plain Layout \end_layout -\begin_layout Standard -For cells spanned by a multicolumn cell, you can define the format -\end_layout +\end_inset + + + + +\begin_inset Text -\begin_layout Standard +\begin_layout Plain Layout -\series bold +\end_layout -\backslash -newcolumntype{S}[2]{>{ -\backslash -centering -\backslash -hspace{0pt}} -\begin_inset Newline newline \end_inset + + +\begin_inset Text +\begin_layout Plain Layout +sd +\end_layout -\begin_inset Phantom HPhantom -status open +\end_inset + + +\begin_inset Text \begin_layout Plain Layout -\series bold - -\backslash -newcolumntype \end_layout \end_inset + + + + +\begin_inset Text -m{(#1+(2 -\backslash -tabcolsep+ -\backslash -arrayrulewidth)*(1-#2))/#2}} -\end_layout +\begin_layout Plain Layout -\begin_layout Standard -This format uses equation -\begin_inset CommandInset ref -LatexCommand eqref -reference "eq:Wgn" +\end_layout \end_inset + + +\begin_inset Text - to calculate the required width so that each spanned cell has the same - width. -\end_layout +\begin_layout Plain Layout -\begin_layout Standard -You can now enter \end_layout -\begin_layout Standard - -\series bold -S{width of multicolumn cell}{number of spanned columns} -\end_layout +\end_inset + + +\begin_inset Text -\begin_layout Standard -as LaTeX-argument of the column. +\begin_layout Plain Layout +sd \end_layout -\begin_layout Standard -\begin_inset VSpace bigskip \end_inset + + + +\end_inset -\end_layout -\begin_layout Standard -For colored columns, you can define \end_layout -\begin_layout Standard +\end_inset -\series bold -\backslash -newcolumntype{K}[1]{>{ -\backslash -columncolor{#1} -\backslash -hspace{0pt}}c} \end_layout \begin_layout Standard -The -\begin_inset Quotes eld +\begin_inset VSpace bigskip \end_inset -c -\begin_inset Quotes erd +To color horizontal lines for example with red, as in Table +\begin_inset space ~ \end_inset - at the end creates a column with a flexible width whose text is horizontally - centered. - You can now enter + +\begin_inset CommandInset ref +LatexCommand ref +reference "tab:Table-with-horizontal-colored" + +\end_inset + +, insert these commands in TeX-Code before the table or table float: \end_layout \begin_layout Standard \series bold -K{color name} -\end_layout -\begin_layout Standard -as LaTeX-argument. -\end_layout +\backslash +let +\backslash +myHlineC +\backslash +hline +\begin_inset Newline newline +\end_inset -\begin_layout Standard -\begin_inset VSpace bigskip + +\backslash +renewcommand{ +\backslash +hline} +\begin_inset Newline newline \end_inset -\end_layout +\begin_inset Phantom HPhantom +status open -\begin_layout Standard -To create Table +\begin_layout Plain Layout + +\series bold \begin_inset space ~ \end_inset -\begin_inset CommandInset ref -LatexCommand ref -reference "tab:Table-using-user-defined" +\end_layout \end_inset - use the LaTeX-arguments +{ +\backslash +arrayrulecolor{red} +\backslash +myHlineC +\backslash +arrayrulecolor{black}} \end_layout \begin_layout Standard +\begin_inset ERT +status collapsed -\series bold -M{2.5cm} -\end_layout +\begin_layout Plain Layout -\begin_layout Standard -for the first column and the multicolumn, + +\backslash +let +\backslash +myHlineC +\backslash +hline \end_layout -\begin_layout Standard +\begin_layout Plain Layout -\series bold -K{red} -\end_layout -\begin_layout Standard -for the last column, and +\backslash +renewcommand{ +\backslash +hline} \end_layout -\begin_layout Standard +\begin_layout Plain Layout -\series bold -S{2.5cm}{2} + { +\backslash +arrayrulecolor{red} +\backslash +myHlineC +\backslash +arrayrulecolor{black}} \end_layout -\begin_layout Standard -for the cells in the second column. -\end_layout +\end_inset + -\begin_layout Standard \begin_inset Float table placement h wide false @@ -18117,11 +18088,11 @@ status open \begin_layout Plain Layout \begin_inset CommandInset label LatexCommand label -name "tab:Table-using-user-defined" +name "tab:Table-with-horizontal-colored" \end_inset -Table using user-defined table formats +Table with colored horizontal lines \end_layout \end_inset @@ -18132,32 +18103,22 @@ Table using user-defined table formats \begin_layout Plain Layout \align center \begin_inset Tabular - + - - - - + + + \begin_inset Text \begin_layout Plain Layout -verylongtablecellword -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -multiple lines multicolumn +sd \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout @@ -18170,7 +18131,7 @@ multiple lines multicolumn \begin_inset Text \begin_layout Plain Layout -c + \end_layout \end_inset @@ -18181,16 +18142,7 @@ c \begin_inset Text \begin_layout Plain Layout -d -\end_layout - -\end_inset - - -\begin_inset Text -\begin_layout Plain Layout -e \end_layout \end_inset @@ -18199,7 +18151,7 @@ e \begin_inset Text \begin_layout Plain Layout -f +sd \end_layout \end_inset @@ -18208,7 +18160,7 @@ f \begin_inset Text \begin_layout Plain Layout -g + \end_layout \end_inset @@ -18219,7 +18171,7 @@ g \begin_inset Text \begin_layout Plain Layout -h + \end_layout \end_inset @@ -18228,16 +18180,7 @@ h \begin_inset Text \begin_layout Plain Layout -i -\end_layout - -\end_inset - - -\begin_inset Text -\begin_layout Plain Layout -j \end_layout \end_inset @@ -18246,7 +18189,7 @@ j \begin_inset Text \begin_layout Plain Layout -k +sd \end_layout \end_inset @@ -18262,54 +18205,11 @@ k \end_inset -\end_layout - -\begin_layout Subsection -Line Thickness -\begin_inset CommandInset label -LatexCommand label -name "sub:Line-Thickness" - -\end_inset - - -\begin_inset Index idx -status collapsed - -\begin_layout Plain Layout -Table Customization ! Line Thickness -\end_layout - -\end_inset - - \end_layout \begin_layout Standard -The line thickness for all lines in a table can be adjusted with the length - -\series bold - -\backslash -arrayrulewidth -\series default -. - To set for example a line thickness of 1.5 -\begin_inset space \thinspace{} -\end_inset - -pt, as in Table -\begin_inset space ~ -\end_inset - - -\begin_inset CommandInset ref -LatexCommand ref -reference "tab:Table-with-1.5" - -\end_inset - -, insert the command +To return to the default line color black, insert this command in TeX-Code + after the table or table float: \end_layout \begin_layout Standard @@ -18317,44 +18217,31 @@ reference "tab:Table-with-1.5" \series bold \backslash -setlength{ +renewcommand{ \backslash -arrayrulewidth}{1.5pt} -\end_layout - -\begin_layout Standard -in TeX-Code before the table or table float. - The changed thickness is valid for all subsequent tables. - To use the default value again, set -\series bold - +hline}{ \backslash -arrayrulewidth -\series default - to 0.4 -\begin_inset space \thinspace{} -\end_inset - -pt in TeX-Code after the table or table float. +myHlineC} \end_layout \begin_layout Standard -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout +Table +\begin_inset space ~ +\end_inset -\backslash -setlength{ -\backslash -arrayrulewidth}{1.5pt} -\end_layout +\begin_inset CommandInset ref +LatexCommand ref +reference "tab:Table-with-colored" \end_inset + is an example with colored vertical and horizontal lines. +\end_layout +\begin_layout Standard \begin_inset Float table +placement h wide false sideways false status open @@ -18365,15 +18252,11 @@ status open \begin_layout Plain Layout \begin_inset CommandInset label LatexCommand label -name "tab:Table-with-1.5" - -\end_inset +name "tab:Table-with-colored" -Table with 1.5 -\begin_inset space \thinspace{} \end_inset -pt thick lines +Table with colored lines \end_layout \end_inset @@ -18386,11 +18269,11 @@ pt thick lines \begin_inset Tabular - - - + + + - + \begin_inset Text \begin_layout Plain Layout @@ -18399,7 +18282,7 @@ sd \end_inset - + \begin_inset Text \begin_layout Plain Layout @@ -18408,7 +18291,7 @@ sd \end_inset - + \begin_inset Text \begin_layout Plain Layout @@ -18419,7 +18302,7 @@ sd - + \begin_inset Text \begin_layout Plain Layout @@ -18428,7 +18311,7 @@ sd \end_inset - + \begin_inset Text \begin_layout Plain Layout @@ -18437,7 +18320,7 @@ sd \end_inset - + \begin_inset Text \begin_layout Plain Layout @@ -18447,8 +18330,8 @@ sd \end_inset - - + + \begin_inset Text \begin_layout Plain Layout @@ -18457,7 +18340,7 @@ sd \end_inset - + \begin_inset Text \begin_layout Plain Layout @@ -18466,7 +18349,7 @@ sd \end_inset - + \begin_inset Text \begin_layout Plain Layout @@ -18486,6 +18369,9 @@ sd \end_inset +\end_layout + +\begin_layout Standard \begin_inset ERT status collapsed @@ -18493,9 +18379,11 @@ status collapsed \backslash -setlength{ +renewcommand{ \backslash -arrayrulewidth}{0.4pt} +hline}{ +\backslash +myHlineC} \end_layout \end_inset @@ -18504,221 +18392,296 @@ arrayrulewidth}{0.4pt} \end_layout \begin_layout Standard -\begin_inset VSpace bigskip -\end_inset +\begin_inset ERT +status collapsed -To set the line thickness to 1.5 -\begin_inset space \thinspace{} -\end_inset +\begin_layout Plain Layout + + +\backslash +setlength{ +\backslash +arrayrulewidth}{0.4pt} +\end_layout -pt only for horizontal lines, as in Table -\begin_inset space ~ \end_inset -\begin_inset CommandInset ref -LatexCommand ref -reference "tab:Table-with-horizontal" +\end_layout + +\begin_layout Section +Table Width Calculation +\begin_inset CommandInset label +LatexCommand label +name "sec:Table-Width-Calculation" \end_inset -, insert these commands in TeX-Code before the table or table float: + \end_layout \begin_layout Standard +For wide tables it is sometimes difficult to assure that the table does + not protrude over the page margin. + Setting a fixed width for every column of the table is the solution, but + what amount of space is needed for each column? +\end_layout -\series bold +\begin_layout Standard +The table width +\begin_inset Formula $W_{\mathrm{table}}$ +\end_inset + can be calculated: Every column has the width of the specified column width + +\begin_inset Formula $W_{\mathrm{column}}$ +\end_inset + + (that the content of the column can consume) plus two times the separation + between the column content and the column border (LaTeX length +\series bold + \backslash -let -\backslash -myHline -\backslash -hline -\begin_inset Newline newline +tabcolsep +\series default +, default 6 +\begin_inset space \thinspace{} \end_inset +pt) plus the width of a border line (LaTeX length +\series bold \backslash -renewcommand{ -\backslash -hline} -\begin_inset Newline newline +arrayrulewidth +\series default +, default 0.4 +\begin_inset space \thinspace{} \end_inset - { -\backslash -noalign{ -\backslash -global -\backslash -arrayrulewidth 1.5pt} -\begin_inset Newline newline +pt): So if all +\begin_inset Formula $n$ +\end_inset + + +\begin_inset space ~ +\end_inset + +columns have the same width, the table width is +\begin_inset Formula +\begin{equation} +W_{\mathrm{table}}=n\left(W_{\mathrm{column}}+2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)+\backslash\mbox{arrayrulewidth} +\end{equation} + \end_inset - -\backslash -myHline -\backslash -noalign{ -\backslash -global -\backslash -arrayrulewidth 0.4pt}} -\end_layout -\begin_layout Standard -To return to the default line thickness, insert this command in TeX-Code - after the table or table float: \end_layout \begin_layout Standard - +The available width for a table is the space between the page margins or + the width of a text column (for a two-column document) (LaTeX length \series bold \backslash -renewcommand{ -\backslash -hline}{ +columnwidth +\series default +). + If all table columns should have the same width and +\begin_inset Formula $W_{\mathrm{table}}$ +\end_inset + + should be 1 +\begin_inset space \thinspace{} +\end_inset + + \backslash -myHline} +columnwidth, +\begin_inset Formula $W_{\mathrm{column}}$ +\end_inset + + can easily be calculated. \end_layout \begin_layout Standard -\begin_inset ERT +To be able to perform calculations you need to load the LaTeX-package +\series bold +calc +\series default + +\begin_inset Index idx status collapsed \begin_layout Plain Layout +LaTeX-packages ! calc +\end_layout +\end_inset -\backslash -let -\backslash -myHline -\backslash -hline -\end_layout + in the document preamble. + To set the width in the table dialog you have to use the field +\family sans +LaTeX argument +\family default +. + The command scheme for this field is the same that is explained in section +\begin_inset space ~ +\end_inset -\begin_layout Plain Layout +\begin_inset CommandInset ref +LatexCommand ref +reference "sub:Multicolumn-Calculations" -\backslash -renewcommand{ -\backslash -hline} -\end_layout +\end_inset -\begin_layout Plain Layout +. + For a table with 5 +\begin_inset space \thinspace{} +\end_inset - { -\backslash -noalign{ -\backslash -global -\backslash -arrayrulewidth 1.5pt} +columns with an uniform width and centered text, enter there for each column + the command \end_layout -\begin_layout Plain Layout +\begin_layout Standard - -\backslash -myHline -\backslash -noalign{ +\series bold +>{ \backslash -global +centering}p{(1 \backslash -arrayrulewidth 0.4pt}} +columnwidth-62.4pt)/5} \end_layout +\begin_layout Standard +For a table with 5 +\begin_inset space \thinspace{} \end_inset +columns where 2 should have 0.75 +\begin_inset space ~ +\end_inset -\begin_inset Float table -wide false -sideways false -status open +times the width than the 3 others, the calculation is +\begin_inset Formula +\begin{align} +\backslash\mbox{columnwidth} & =3\, W_{\mathrm{column}}+2\cdot0.75\, W_{\mathrm{column}}+\backslash\mbox{arrayrulewidth}\nonumber \\ + & \phantom{=\,}+5\left(2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)\nonumber \\ + & =4.5\, W_{\mathrm{column}}+62.4\,\mathrm{pt}\nonumber \\ +W_{\mathrm{column}} & =\frac{\backslash\mbox{columnwidth}-62.4\,\mathrm{pt}}{4.5} +\end{align} -\begin_layout Plain Layout -\begin_inset Caption +\end_inset -\begin_layout Plain Layout -\begin_inset CommandInset label -LatexCommand label -name "tab:Table-with-horizontal" -\end_inset +\end_layout -Table with 1.5 -\begin_inset space \thinspace{} -\end_inset +\begin_layout Standard +In the table therefore the command +\end_layout -pt thick horizontal lines +\begin_layout Standard + +\series bold +>{ +\backslash +centering}p{(1 +\backslash +columnwidth-62.4pt)/ +\backslash +real{4.5}} \end_layout -\end_inset +\begin_layout Standard +is used for the wider columns and +\end_layout +\begin_layout Standard +\series bold +>{ +\backslash +centering}p{(1 +\backslash +columnwidth-62.4pt)/ +\backslash +real{4.5}* +\backslash +real{0.75}} \end_layout -\begin_layout Plain Layout -\align center +\begin_layout Standard +for the smaller ones: +\end_layout + +\begin_layout Standard \begin_inset Tabular - + - - - + + + + + - + \begin_inset Text \begin_layout Plain Layout -sd +1 \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout - +2 \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout - +3 \end_layout \end_inset - - - + \begin_inset Text \begin_layout Plain Layout +4 +\end_layout + +\end_inset + + +\begin_inset Text +\begin_layout Plain Layout +5 \end_layout \end_inset - + + + \begin_inset Text \begin_layout Plain Layout -sd +111111 1111111 111111 111111111 11111 11111 1111 \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout @@ -18727,13 +18690,11 @@ sd \end_inset - - \begin_inset Text \begin_layout Plain Layout - +2222 22222 222222 222222222 2222222 22 22222 \end_layout \end_inset @@ -18751,7 +18712,7 @@ sd \begin_inset Text \begin_layout Plain Layout -sd +333333 333333 333333 33333 3333333 333 \end_layout \end_inset @@ -18764,21 +18725,23 @@ sd \end_layout +\begin_layout Section +Table Customization +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +Table Customization +\end_layout + \end_inset -\begin_inset ERT +\begin_inset Index idx status collapsed \begin_layout Plain Layout - - -\backslash -renewcommand{ -\backslash -hline}{ -\backslash -myHline} +Table ! Customization \end_layout \end_inset @@ -18786,192 +18749,262 @@ myHline} \end_layout -\begin_layout Standard -\begin_inset VSpace bigskip -\end_inset +\begin_layout Subsection +Row Spacing +\begin_inset CommandInset label +LatexCommand label +name "sub:Row-Spacing" -To set the line thickness to 1.5 -\begin_inset space \thinspace{} \end_inset -pt only for vertical lines, create the following column format in the document - preamble, according to the description in section -\begin_inset space ~ -\end_inset +\begin_inset Index idx +status collapsed -\begin_inset CommandInset ref -LatexCommand ref -reference "sub:Customized-Format" +\begin_layout Plain Layout +Table Customization ! Row Spacing +\end_layout \end_inset -: + \end_layout \begin_layout Standard - -\series bold - -\backslash -newcolumntype{V}{!{ -\backslash -vrule width 1.5pt}} +You can add vertical space to table rows in the +\family sans +Borders +\family default + tab of the table dialog. + You find there three possibilities: \end_layout -\begin_layout Standard -For Table +\begin_layout Description +Top \begin_inset space ~ \end_inset - -\begin_inset CommandInset ref -LatexCommand ref -reference "tab:Table-with-vertical" - +of +\begin_inset space ~ \end_inset - the LaTeX-argument -\end_layout +row will add space above the characters of the table row. + If the table is a formal table +\begin_inset Foot +status collapsed -\begin_layout Standard +\begin_layout Plain Layout +Formal tables are explained in section +\begin_inset space ~ +\end_inset -\series bold -VcV -\end_layout -\begin_layout Standard -was used for the last column and -\end_layout +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Formal-Tables" -\begin_layout Standard +\end_inset -\series bold -Vc +. \end_layout -\begin_layout Standard -for the other columns. -\end_layout +\end_inset -\begin_layout Standard -\begin_inset Float table -wide false -sideways false -status open + LyX will insert as default 0.5 +\begin_inset space \thinspace{} +\end_inset -\begin_layout Plain Layout -\begin_inset Caption +em space. + For normal tables the inserted space will unfortunately destroy the vertical + table lines as in the following table: +\begin_inset VSpace medskip +\end_inset -\begin_layout Plain Layout -\begin_inset CommandInset label -LatexCommand label -name "tab:Table-with-vertical" +\begin_inset Newline newline \end_inset -Table with 1.5 -\begin_inset space \thinspace{} + +\begin_inset space \hspace*{} +\length 0pt \end_inset -pt thick vertical lines -\end_layout +\begin_inset space \hfill{} \end_inset -\end_layout - -\begin_layout Plain Layout -\align center \begin_inset Tabular - + - - - + - + \begin_inset Text \begin_layout Plain Layout -sd +A \end_layout \end_inset - + + + \begin_inset Text \begin_layout Plain Layout +3 +\begin_inset space \thinspace{} +\end_inset +mm space top of row \end_layout \end_inset - + + + \begin_inset Text \begin_layout Plain Layout - +C \end_layout \end_inset - - -\begin_inset Text + -\begin_layout Plain Layout +\end_inset -\end_layout +\begin_inset space \hfill{} \end_inset - - -\begin_inset Text -\begin_layout Plain Layout -sd + +\begin_inset space \hspace*{} +\length 0pt +\end_inset + + +\begin_inset VSpace medskip +\end_inset + + +\begin_inset Newline newline +\end_inset + +So inserting space in the top of row for normal tables is only useful when + you don't have vertical lines. \end_layout +\begin_layout Description +Bottom +\begin_inset space ~ \end_inset - - -\begin_inset Text -\begin_layout Plain Layout +of +\begin_inset space ~ +\end_inset + +row will add space below the characters of the table row. + If the table is a formal table LyX will insert as default 0.5 +\begin_inset space \thinspace{} +\end_inset + +em space, for normal tables the default size is 2 +\begin_inset space \thinspace{} +\end_inset +pt. \end_layout +\begin_layout Description +Between +\begin_inset space ~ +\end_inset + +rows adds space between the current and the following row. + If the table is a formal table LyX will insert as default 0.5 +\begin_inset space \thinspace{} \end_inset - - + +em space. + For normal tables the inserted space will unfortunately destroy the vertical + table lines as in the following table: +\begin_inset VSpace medskip +\end_inset + + +\begin_inset Newline newline +\end_inset + + +\begin_inset space \hspace*{} +\length 0pt +\end_inset + + +\begin_inset space \hfill{} +\end_inset + + +\begin_inset Tabular + + + - + \begin_inset Text \begin_layout Plain Layout - +A \end_layout \end_inset - + + + \begin_inset Text \begin_layout Plain Layout +\begin_inset Formula $\downarrow$ +\end_inset + + 3 +\begin_inset space \thinspace{} +\end_inset + +mm space between row +\begin_inset Formula $\downarrow$ +\end_inset + \end_layout \end_inset - + + + \begin_inset Text \begin_layout Plain Layout -sd +\begin_inset Formula $\uparrow$ +\end_inset + + 3 +\begin_inset space \thinspace{} +\end_inset + +mm space between row +\begin_inset Formula $\uparrow$ +\end_inset + + \end_layout \end_inset @@ -18982,60 +19015,116 @@ sd \end_inset -\end_layout +\begin_inset space \hfill{} +\end_inset + +\begin_inset space \hspace*{} +\length 0pt \end_inset -\end_layout +\begin_inset VSpace medskip +\end_inset -\begin_layout Subsection -Dashed Lines -\begin_inset Index idx -status collapsed -\begin_layout Plain Layout -Table Customization ! Dashed Lines +\begin_inset Newline newline +\end_inset + +So inserting space between rows for normal tables is only useful when you + don't have vertical lines. \end_layout +\begin_layout Standard +\begin_inset VSpace bigskip \end_inset - +When you want to add extra height to all cells of all tables, you can do + this with the following preamble lines: \end_layout \begin_layout Standard -\begin_inset ERT -status collapsed + +\series bold + +\backslash +@ifundefined{extrarowheight} +\begin_inset Newline newline +\end_inset + + +\begin_inset Phantom HPhantom +status open \begin_layout Plain Layout +\series bold +\begin_inset space ~ +\end_inset + -\backslash -ifarydshln \end_layout \end_inset +{ +\backslash +usepackage{array}}{} +\begin_inset Newline newline +\end_inset -\begin_inset Note Note -status open -\begin_layout Plain Layout -The following section will only be displayed when the LaTeX-package +\backslash +setlength{ +\backslash +extrarowheight}{height} +\end_layout + +\begin_layout Standard +But this has the disadvantage that the cell texts are no longer exactly + vertically centered. + (The package \series bold -arydshln +array \series default - is installed. + will be loaded automatically by LyX when you use self defined table formats. + To avoid that it being loaded twice the command +\series bold + +\backslash +@ifundefined +\series default + is used in the above command.) \end_layout +\begin_layout Standard +If you are using font sizes larger than the normal size, the table borders + are often too close to the letters. + This can be corrected by inserting the command +\series bold + +\backslash +strut +\series default + in TeX-Code at the beginning of a table row. + Table +\begin_inset space ~ \end_inset +\begin_inset CommandInset ref +LatexCommand ref +reference "tab:Vertical-alignment-of" + +\end_inset + + illustrates the effect. \end_layout \begin_layout Standard +\noindent \begin_inset Float table -placement H +placement h wide false sideways false status open @@ -19046,11 +19135,33 @@ status open \begin_layout Plain Layout \begin_inset CommandInset label LatexCommand label -name "tab:Table-with-dashed" +name "tab:Vertical-alignment-of" \end_inset -Table with dashed lines +Vertical alignment of text with large font sizes. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\begin_inset space \hfill{} +\end_inset + + +\begin_inset Float table +wide false +sideways false +status collapsed + +\begin_layout Plain Layout +\begin_inset Caption + +\begin_layout Plain Layout +Normal table. \end_layout \end_inset @@ -19059,114 +19170,150 @@ Table with dashed lines \end_layout \begin_layout Plain Layout +\noindent \align center \begin_inset Tabular - + - - - - - + - + \begin_inset Text \begin_layout Plain Layout -a +Normal, g \end_layout \end_inset - + + + \begin_inset Text \begin_layout Plain Layout -b + +\size large +Large \end_layout \end_inset - + + + \begin_inset Text \begin_layout Plain Layout -c + +\size larger +Larger \end_layout \end_inset - + + + \begin_inset Text \begin_layout Plain Layout -d + +\size largest +Largest \end_layout \end_inset - + + + \begin_inset Text \begin_layout Plain Layout -e + +\size huge +Huge \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -f + +\size huge +Huger \end_layout \end_inset - -\begin_inset Text + + + +\end_inset + -\begin_layout Plain Layout -g \end_layout \end_inset - - -\begin_inset Text -\begin_layout Plain Layout -h -\end_layout +\begin_inset space \hfill{} \end_inset - - -\begin_inset Text + + +\begin_inset Float table +wide false +sideways false +status collapsed \begin_layout Plain Layout -i +\begin_inset Caption + +\begin_layout Plain Layout +Table using the command +\series bold + +\backslash +strut +\series default +. \end_layout \end_inset - - + + +\end_layout + +\begin_layout Plain Layout +\noindent +\align center +\begin_inset Tabular + + + + + \begin_inset Text \begin_layout Plain Layout -j +Normal, g \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout + +\size large \begin_inset ERT status collapsed @@ -19174,58 +19321,49 @@ status collapsed \backslash -hdashline +strut \end_layout \end_inset -k +Large \end_layout \end_inset - + + + \begin_inset Text \begin_layout Plain Layout -l -\end_layout -\end_inset - - -\begin_inset Text +\size larger +\begin_inset ERT +status collapsed \begin_layout Plain Layout -m -\end_layout -\end_inset - - -\begin_inset Text -\begin_layout Plain Layout -n +\backslash +strut \end_layout \end_inset - - -\begin_inset Text -\begin_layout Plain Layout -o +Larger \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout + +\size largest \begin_inset ERT status collapsed @@ -19233,102 +19371,80 @@ status collapsed \backslash -cdashline{4-5} +strut \end_layout \end_inset -p +Largest \end_layout \end_inset - + + + \begin_inset Text \begin_layout Plain Layout -q -\end_layout -\end_inset - - -\begin_inset Text +\size huge +\begin_inset ERT +status collapsed \begin_layout Plain Layout -r -\end_layout -\end_inset - - -\begin_inset Text -\begin_layout Plain Layout -s +\backslash +strut \end_layout \end_inset - - -\begin_inset Text - -\begin_layout Plain Layout +Huge \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -t -\end_layout -\end_inset - - -\begin_inset Text +\size giant +\begin_inset ERT +status collapsed \begin_layout Plain Layout -u -\end_layout -\end_inset - - -\begin_inset Text -\begin_layout Plain Layout -v +\backslash +strut \end_layout \end_inset - - -\begin_inset Text -\begin_layout Plain Layout -w + +\size huge +Huger \end_layout \end_inset - -\begin_inset Text + + + +\end_inset + -\begin_layout Plain Layout -x \end_layout \end_inset - - - + +\begin_inset space \hfill{} \end_inset @@ -19339,452 +19455,366 @@ x \end_layout -\begin_layout Standard -LyX does not natively support dashed lines, so you have to use TeX-Code. - As a prerequisite the LaTeX-package -\series bold -arydshln -\series default +\begin_layout Subsection +Special Cell Alignment +\begin_inset CommandInset label +LatexCommand label +name "sub:Special-Cell-Alignment" + +\end_inset + \begin_inset Index idx status collapsed \begin_layout Plain Layout -LaTeX-packages ! arydshln +Table Customization ! Special Cell Alignment \end_layout \end_inset - must be loaded in the document preamble with the command -\end_layout - -\begin_layout Standard - -\series bold -\backslash -usepackage{arydshln} \end_layout \begin_layout Standard -To make a vertical line dashed, enter the colon -\begin_inset Quotes eld +Sometimes it looks better when the cell entries of a column are aligned + with a special character, e. +\begin_inset space \thinspace{} \end_inset -: -\begin_inset Quotes erd +g. +\begin_inset space \space{} \end_inset - together with the character for the horizontal alignment as LaTeX-argument - in the table cell dialog. -\end_layout - -\begin_layout Standard -For a horizontal dashed line add the command -\end_layout +with the decimal separator as in Table +\begin_inset space ~ +\end_inset -\begin_layout Standard -\series bold +\begin_inset CommandInset ref +LatexCommand ref +reference "tab:Table-cells-align" -\backslash -hdashline -\end_layout +\end_inset -\begin_layout Standard -in TeX-Code as first element of the first cell in the table row. -\end_layout +. + This alignment is achieved by setting the cursor into the column and then + either pressing the toolbar button +\begin_inset Graphics + filename ../images/tabular-feature_align-decimal.png + scale 85 + scaleBeforeRotation -\begin_layout Standard -For dashed multicolumn lines use the command -\end_layout +\end_inset -\begin_layout Standard + or setting the alignment in the table settings to +\family sans +At +\begin_inset space ~ +\end_inset -\series bold +Decimal +\begin_inset space ~ +\end_inset -\backslash -cdashline{line number -\series default -} +Separator +\family default +. + The alignment character can be a character of your choice and is specified + in the table settings. \end_layout \begin_layout Standard -in TeX-Code as the first element of the first cell in the table row. - If you have for example a multicolumn spanning columns 2 to 4 and you want - to have a dashed line above, add the command -\end_layout +\begin_inset Float table +placement h +wide false +sideways false +status open -\begin_layout Standard +\begin_layout Plain Layout +\begin_inset Caption -\series bold +\begin_layout Plain Layout +\begin_inset CommandInset label +LatexCommand label +name "tab:Table-cells-align" -\backslash -cdashline{2-4} -\end_layout +\end_inset -\begin_layout Standard -as the first element of the first cell in the row of the multicolumn. +Table cells of a column aligned with the decimal separator. \end_layout -\begin_layout Standard -\begin_inset VSpace bigskip \end_inset \end_layout -\begin_layout Standard -Table -\begin_inset space ~ -\end_inset +\begin_layout Plain Layout +\align center +\begin_inset Tabular + + + + + +\begin_inset Text + +\begin_layout Plain Layout +heading +\end_layout +\end_inset + + + + +\begin_inset Text -\begin_inset CommandInset ref -LatexCommand ref -reference "tab:Table-with-dashed" +\begin_layout Plain Layout +12.6 +\end_layout \end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +0.68 +\end_layout - was created using -\begin_inset Quotes eld \end_inset + + + + +\begin_inset Text +\begin_layout Plain Layout +-123.0 +\end_layout -\series bold -:c -\series default +\end_inset + + + -\begin_inset Quotes erd \end_inset - as LaTeX-argument of the third column. - The TeX-Code command -\series bold -\backslash -hdashline -\series default - was inserted in the first cell of the third row and the TeX-Code command -\begin_inset Newline newline +\end_layout + \end_inset - -\series bold -\backslash -cdashline{4-5} -\series default - was inserted in the first cell of the fourth row. \end_layout \begin_layout Standard -\begin_inset Note Greyedout +\begin_inset Float table +placement h +wide false +sideways false status open \begin_layout Plain Layout - -\series bold -Note: -\series default - The LaTeX-package -\series bold -arydshln -\series default - is apparently not compatible with the LaTeX-package -\series bold -colortbl -\series default - -\begin_inset Index idx -status collapsed +\begin_inset Caption \begin_layout Plain Layout -LaTeX-packages ! colortbl -\end_layout +\begin_inset CommandInset label +LatexCommand label +name "tab:Table-align-operator" \end_inset - that is used for colored tables in section -\begin_inset space ~ +Table cells of a column aligned with the operators. +\end_layout + \end_inset -\begin_inset CommandInset ref -LatexCommand ref -reference "sec:Colored-Tables" +\end_layout -\end_inset +\begin_layout Plain Layout +\align center +\begin_inset Tabular + + + + + + +\begin_inset Text -. - That means colored tables cannot have dashed lines. +\begin_layout Plain Layout +heading \end_layout \end_inset + + +\begin_inset Text +\begin_layout Plain Layout \end_layout -\begin_layout Standard -\begin_inset ERT -status collapsed +\end_inset + + + + +\begin_inset Text \begin_layout Plain Layout +\begin_inset Formula $12\,+$ +\end_inset -\backslash -else \end_layout \end_inset - - -\begin_inset Note Note -status open + + +\begin_inset Text \begin_layout Plain Layout -The following will be displayed when the LaTeX-package -\series bold -arydshln -\series default - is not installed: -\end_layout - +\begin_inset Formula $\,6$ \end_inset \end_layout -\begin_layout Standard -You need to install the package -\series bold -arydshln -\series default - to see the content of this section in the output. -\end_layout - -\begin_layout Standard -\begin_inset ERT -status collapsed +\end_inset + + + + +\begin_inset Text \begin_layout Plain Layout +\begin_inset Formula $0\,-$ +\end_inset -\backslash -fi \end_layout \end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\,68$ +\end_inset \end_layout -\begin_layout Chapter -Floats -\begin_inset CommandInset label -LatexCommand label -name "chap:Floats" - \end_inset - - -\begin_inset Index idx -status collapsed + + + + +\begin_inset Text \begin_layout Plain Layout -Floats -\end_layout - +\begin_inset Formula $-123\,/$ \end_inset \end_layout -\begin_layout Section -Introduction -\begin_inset CommandInset label -LatexCommand label -name "sec:FloatIntroduction" - \end_inset - - -\begin_inset Index idx -status collapsed + + +\begin_inset Text \begin_layout Plain Layout -Floats ! Introduction -\end_layout - +\begin_inset Formula $\,0$ \end_inset \end_layout -\begin_layout Standard -A float is a block of text associated with some sort of label, which doesn't - have a fixed location. - It can -\begin_inset Quotes eld \end_inset + + + -float -\begin_inset Quotes erd \end_inset - forward or backward a page or two, to wherever it fits best. - -\family sans -Footnotes -\family default - and -\family sans -Margin -\begin_inset space ~ -\end_inset -Notes -\family default - are also floats, because they can float to the next page when there are - too many notes on the page. \end_layout -\begin_layout Standard -Floats allow a high quality layout. - Images and tables can be spread evenly to the pages to avoid white space - and pages without text. - As the floating often destroys the context between the text and the image/table -, every float can be referenced in the text. - Floats are therefore numbered. - Referencing is described in section -\begin_inset space ~ \end_inset -\begin_inset CommandInset ref -LatexCommand ref -reference "sec:Referencing-Floats" - -\end_inset - -. \end_layout \begin_layout Standard -To insert a float, use the menu -\family sans -Insert\SpecialChar \menuseparator -Float -\family default -. - This inserts the -\family sans -Caption -\family default - inset, a box with a label. - The label will automatically be translated to the document language in - the output. - After the label you can insert the caption text. - The image or table is inserted above or below the caption in a separate - paragraph within the float. - More about the caption placement is contained in section +For alignments at characters in formulas this method does not work because + the field to specify the alignment character does not allow formulas. + In this case one need to use the method from Table \begin_inset space ~ \end_inset \begin_inset CommandInset ref LatexCommand ref -reference "sec:Caption-Placement" +reference "tab:Table-align-operator" \end_inset . - To keep your LyX-document readable, you can open and close the float box - by left-clicking on the box label. - A closed float box looks like this: -\begin_inset Graphics - filename clipart/floatQt4.png - scale 70 - scaleBeforeRotation - -\end_inset - - – a gray button with a red label. -\end_layout - -\begin_layout Standard -It is recommended that you insert floats as a separate standard paragraph - to avoid possible LaTeX-errors that can occur when the surrounding text - is specially formatted. + This table was created with a 4×2 table. + The heading is a centered multicolumn. + The first column is right-aligned and contains the first part including + the operator. + The second column is left aligned and contains the rest. + A small space was added at the beginning of each cell of the second column + to get the space that is usually around operators. + To omit the space that is normally between two table columns, the following + LaTeX-argument was used for the second column: \end_layout \begin_layout Standard -Existing figures or tables can be put into a float by highlighting them - and then pressing the corresponding toolbar button for a new float. -\end_layout -\begin_layout Section -Float Types +\series bold +@{}l \end_layout \begin_layout Standard -Besides figure and table floats that are described in sections +Table \begin_inset space ~ \end_inset \begin_inset CommandInset ref LatexCommand ref -reference "sec:Figure-Floats" - -\end_inset - - and -\begin_inset CommandInset ref -LatexCommand ref -reference "sec:Table-Floats" +reference "tab:Several-table-cell" \end_inset - respectively, LyX offers the float types -\family sans -Algorithm -\family default - and -\family sans -Wrap -\family default -. - The latter are explained in sec. -\begin_inset space \thinspace{} + shows some example alignments. + For the alignment with the relation sign, a small space was added like + for the second column of Table +\begin_inset space ~ \end_inset \begin_inset CommandInset ref LatexCommand ref -reference "sec:Wrap-Floats" +reference "tab:Table-align-operator" \end_inset . \end_layout -\begin_layout Subsection -Algorithm Floats -\begin_inset Index idx -status collapsed - -\begin_layout Plain Layout -Floats ! Algorithms -\end_layout - -\end_inset - - -\end_layout - \begin_layout Standard -\begin_inset Float algorithm +\begin_inset Float table placement h wide false sideways false @@ -19796,11 +19826,11 @@ status open \begin_layout Plain Layout \begin_inset CommandInset label LatexCommand label -name "alg:Example-Algorithm-float" +name "tab:Several-table-cell" \end_inset -Example Algorithm float +Several table cell alignments. \end_layout \end_inset @@ -19808,1075 +19838,1039 @@ Example Algorithm float \end_layout -\begin_layout LyX-Code -for I in 1..N loop -\begin_inset Newline newline +\begin_layout Plain Layout +\align center +\begin_inset Tabular + + + + + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +units +\end_layout + \end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout - Sum:= Sum + A(I); /*comment*/ -\begin_inset Newline newline \end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +exponents +\end_layout -end loop -\begin_inset VSpace -4mm \end_inset + + +\begin_inset Text +\begin_layout Plain Layout \end_layout \end_inset + + +\begin_inset Text - +\begin_layout Plain Layout +relations \end_layout -\begin_layout Standard -This float type is inserted with the menu -\family sans -Insert\SpecialChar \menuseparator -Floats\SpecialChar \menuseparator -Algorithm -\family default -. - It is used for program codes and descriptions of algorithms and can be - seen as an alternative to program code listings that are explained in chapter -\begin_inset space ~ \end_inset + + +\begin_inset Text +\begin_layout Plain Layout -\begin_inset CommandInset ref -LatexCommand ref -reference "cha:Program-Code-Listings" +\end_layout \end_inset + + + + +\begin_inset Text -. - A possible environment for algorithms is the -\family sans -LyX-Code -\family default -, described in LyX's -\emph on -Userguide -\emph default -. - Algorithm -\begin_inset space ~ -\end_inset - - -\begin_inset CommandInset ref -LatexCommand ref -reference "alg:Example-Algorithm-float" +\begin_layout Plain Layout +12× +\end_layout \end_inset + + +\begin_inset Text - is an example of an algorithm float where -4 +\begin_layout Plain Layout +24 \begin_inset space \thinspace{} \end_inset -mm vertical space was added at the end of the float to have the bottom rule - exactly below the last text line. -\end_layout - -\begin_layout Standard -The float label is not automatically translated into the document language. - If your document is not in English, you have to do this manually by adding - the following line to the document preamble -\series bold -: +bottles \end_layout -\begin_layout Standard - -\series bold +\end_inset + + +\begin_inset Text -\backslash -floatname{algorithm}{your -\begin_inset space ~ +\begin_layout Plain Layout +\begin_inset Formula $10\cdot$ \end_inset -name} + \end_layout -\begin_layout Standard -where -\family sans -your -\begin_inset space ~ \end_inset + + +\begin_inset Text -name -\family default - is the word -\begin_inset Quotes eld +\begin_layout Plain Layout +\begin_inset Formula $10^{\mbox{-}17}$ \end_inset -\emph on -algorithm -\emph default - -\begin_inset Quotes erd -\end_inset - - in your language. \end_layout -\begin_layout Standard -To insert the list of algorithms you can use the menu -\family sans -Insert\SpecialChar \menuseparator -List -\begin_inset space \thinspace{} \end_inset + + +\begin_inset Text -/ -\begin_inset space \thinspace{} +\begin_layout Plain Layout +\begin_inset Formula $\Gamma(t)\propto$ \end_inset -TOC\SpecialChar \menuseparator -List of Algorithms -\family default - when your document has the same language as LyX's menu names. - In other cases use this command in TeX-Code instead: -\end_layout -\begin_layout Standard +\end_layout -\series bold +\end_inset + + +\begin_inset Text -\backslash -listof{algorithm}{your -\begin_inset space ~ +\begin_layout Plain Layout +\begin_inset Formula $\:\Upsilon(t)$ \end_inset -name} + \end_layout -\begin_layout Standard -where -\family sans -your -\begin_inset space ~ \end_inset + + + + +\begin_inset Text -name -\family default - is the word -\begin_inset Quotes eld -\end_inset +\begin_layout Plain Layout +1024× +\end_layout +\end_inset + + +\begin_inset Text -\emph on -List of Algorithm -\emph default -s -\begin_inset Quotes erd +\begin_layout Plain Layout +768 +\begin_inset space \thinspace{} \end_inset - in your language. +Pixels \end_layout -\begin_layout Standard -Algorithm floats are not by default numbered in the scheme -\begin_inset Quotes eld \end_inset + + +\begin_inset Text -chapter.algorithm -\begin_inset Quotes erd +\begin_layout Plain Layout +\begin_inset Formula $5.78\cdot$ \end_inset - as is the case for table and figure floats in many document-classes. - To number algorithm floats in the same scheme, add this command to your - document preamble: + \end_layout -\begin_layout Standard +\end_inset + + +\begin_inset Text -\series bold +\begin_layout Plain Layout +\begin_inset Formula $10^{7}$ +\end_inset -\backslash -numberwithin{algorithm}{chapter} -\end_layout -\begin_layout Standard -To be able to use the command -\series bold +\end_layout -\backslash -numberwithin -\series default -, set in the tab -\family sans -Math -\begin_inset space ~ \end_inset + + +\begin_inset Text -Options -\family default - in the document settings the option -\family sans -Use -\begin_inset space ~ +\begin_layout Plain Layout +\begin_inset Formula $A\ne$ \end_inset -AMS -\begin_inset space ~ + +\end_layout + \end_inset + + +\begin_inset Text -math -\begin_inset space ~ +\begin_layout Plain Layout +\begin_inset Formula $\: B_{\mathrm{red}}$ \end_inset -package -\family default -. + \end_layout -\begin_layout Section -Float Numbering -\begin_inset Index idx -status collapsed +\end_inset + + + + +\begin_inset Text \begin_layout Plain Layout -Floats ! Numbering +32× \end_layout \end_inset + + +\begin_inset Text +\begin_layout Plain Layout +6 +\begin_inset space \thinspace{} +\end_inset +cm \end_layout -\begin_layout Standard -Floats are usually numbered either independently from the sections the floats - are in, or in the scheme -\begin_inset Quotes eld \end_inset + + +\begin_inset Text -chapter.number -\begin_inset Quotes erd +\begin_layout Plain Layout +- +\begin_inset Formula $33.5\cdot$ \end_inset - or -\begin_inset Quotes eld + +\end_layout + \end_inset + + +\begin_inset Text -section.number -\begin_inset Quotes erd +\begin_layout Plain Layout +\begin_inset Formula $10^{4}$ \end_inset -. - This depends on the document class used. -\end_layout -\begin_layout Standard -To change section-independent numbering, you can use this command in the - document preamble: \end_layout -\begin_layout Standard +\end_inset + + +\begin_inset Text -\series bold +\begin_layout Plain Layout +\begin_inset Formula $\sin(\alpha)\ge$ +\end_inset -\backslash -renewcommand{ -\backslash -thetable}{ -\backslash -roman{table}} -\end_layout -\begin_layout Standard +\end_layout -\series bold +\end_inset + + +\begin_inset Text -\backslash -thetable -\series default - is the command that prints the table number, for figure floats, the command - would be -\series bold +\begin_layout Plain Layout +\begin_inset Formula $\:\sin(\beta)$ +\end_inset -\backslash -thefigure -\series default -. - -\series bold -\backslash -roman -\series default - in the command above prints the table number as small roman number. \end_layout -\begin_layout Standard -To change the numbering scheme for example to -\begin_inset Quotes eld \end_inset + + + -subsection.number -\begin_inset Quotes erd \end_inset -, use this command in the preamble: + \end_layout -\begin_layout Standard +\end_inset -\series bold -\backslash -numberwithin{table}{subsection} \end_layout -\begin_layout Standard -To be able to use the command -\series bold +\begin_layout Subsection +Customized Cell/Column Format +\begin_inset CommandInset label +LatexCommand label +name "sub:Customized-Format" -\backslash -numberwithin -\series default -, set in the tab -\family sans -Math -\begin_inset space ~ \end_inset -Options -\family default - in the document settings the option -\family sans -Use -\begin_inset space ~ -\end_inset -AMS -\begin_inset space ~ -\end_inset +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +Table Customization ! Cell/Column Format +\end_layout -math -\begin_inset space ~ \end_inset -package -\family default -. + \end_layout \begin_layout Standard -Please also have a look at section +Calculating the required width for normal columns as described in section \begin_inset space ~ \end_inset \begin_inset CommandInset ref LatexCommand ref -reference "sub:Footnote-Numbering" +reference "sec:Table-Width-Calculation" \end_inset - for the details and important notes about the numbering commands. -\end_layout + or for spanned columns as described in section +\begin_inset space ~ +\end_inset -\begin_layout Section -Referencing Floats -\begin_inset CommandInset label -LatexCommand label -name "sec:Referencing-Floats" + +\begin_inset CommandInset ref +LatexCommand ref +reference "sub:Multicolumn-Calculations" \end_inset + is very annoying if you have several tables where a calculation is necessary. + To make life easier, you can define a cell/column format in the preamble, + that can be used in all tables of the document. + The format is defined with the command +\end_layout -\begin_inset Index idx -status collapsed +\begin_layout Standard -\begin_layout Plain Layout -Floats ! References +\series bold + +\backslash +newcolumntype{name of format}[number of arguments]{commands} +\end_layout + +\begin_layout Standard +The format name may only consist of one letter. + The letters +\emph on +b +\emph default +, +\emph on +c +\emph default +, +\emph on +l +\emph default +, +\emph on +m +\emph default +, +\emph on +p +\emph default + and +\emph on +r +\emph default + are predefined and cannot be used. + But all letters are allowed as capitals. \end_layout +\begin_layout Standard +\begin_inset VSpace medskip \end_inset -\begin_inset Index idx -status collapsed +\end_layout -\begin_layout Plain Layout -References ! to Floats +\begin_layout Standard +For vertically and horizontally centered multicolumn cells with a fixed + width you can define the cell format \end_layout -\end_inset +\begin_layout Standard +\series bold +\backslash +newcolumntype{M}[1]{>{ +\backslash +centering +\backslash +hspace{0pt}}m{#1}} \end_layout \begin_layout Standard -To reference a float, insert a label into its caption using the menu -\family sans -Insert\SpecialChar \menuseparator -Label -\family default - or the toolbar button -\begin_inset Graphics - filename ../images/label-insert.png - scale 85 - scaleBeforeRotation +where +\series bold +\backslash +hspace{0pt} +\series default + avoids the problem of hyphenating the first word, as described in section +\begin_inset space ~ \end_inset -. - A grey label box like this one: -\begin_inset Graphics - filename clipart/labelQt4.png - scale 85 - scaleBeforeRotation -\end_inset +\begin_inset CommandInset ref +LatexCommand ref +reference "sub:Multiple-Lines-in" - will be inserted and the label window pops up asking for the label text. - LyX offers as text the first words of the caption with a prefix. - The prefix depends on the float type, e. -\begin_inset space \thinspace{} \end_inset -g. -\begin_inset space \space{} -\end_inset +. + Now you can simply enter +\end_layout -for figure floats the prefix will be " -\family sans -fig: -\family default -". +\begin_layout Standard + +\series bold +M{width} \end_layout \begin_layout Standard -The label is used as anchor and name for the reference. - You can refer to the label using the menu +as \family sans -Insert\SpecialChar \menuseparator -Cross-reference +LaTeX-argument \family default - or the toolbar button -\begin_inset Graphics - filename ../images/dialog-show-new-inset_ref.png - scale 85 - scaleBeforeRotation + in the table dialog to create a multicolumn. +\end_layout +\begin_layout Standard +\begin_inset VSpace bigskip \end_inset -. - A grey cross-reference box like this one: -\begin_inset Graphics - filename clipart/referenceQt4.png - scale 85 - scaleBeforeRotation - -\end_inset - will be inserted and the cross-reference window appear showing all labels - of the document. - If you have multiple LyX-documents opened, choose the one you are working - on from the drop-list at the top of the dialog. - You can now sort the labels alphabetically and then choose one. - At the position of the cross-reference box the float number will appear - in the output. \end_layout \begin_layout Standard -It is recommended that you use a protected space between the cross-reference - name and its number to avoid line breaks between them. - If a cross-reference refers to a non-existing label, you will see two question - marks in the output instead of the reference. +For cells spanned by a multicolumn cell, you can define the format \end_layout \begin_layout Standard -You can change labels at any time by clicking on the label box. - References to the changed label will automatically change its link to the - new label text, so that you don't need to take care about this. -\end_layout -\begin_layout Standard -The button -\family sans -Go -\begin_inset space ~ -\end_inset +\series bold -to -\begin_inset space ~ +\backslash +newcolumntype{S}[2]{>{ +\backslash +centering +\backslash +hspace{0pt}} +\begin_inset Newline newline \end_inset -Label -\family default - in the cross-reference window sets the cursor before the referred label. - The button text changes then to Go -\begin_inset space ~ + +\begin_inset Phantom HPhantom +status open + +\begin_layout Plain Layout + +\series bold + +\backslash +newcolumntype +\end_layout + \end_inset -Back and you can use it to set the cursor back to the cross-reference. - Right-clicking on a cross-reference box also sets the cursor before the - referenced label but without the possibility of going back. +m{(#1+(2 +\backslash +tabcolsep+ +\backslash +arrayrulewidth)*(1-#2))/#2}} \end_layout -\begin_layout Subsection -Cross-Reference Formats -\begin_inset CommandInset label -LatexCommand label -name "sub:Cross-Reference-Formats" +\begin_layout Standard +This format uses equation +\begin_inset CommandInset ref +LatexCommand eqref +reference "eq:Wgn" \end_inset + to calculate the required width so that each spanned cell has the same + width. +\end_layout -\begin_inset Index idx -status collapsed +\begin_layout Standard +You can now enter +\end_layout -\begin_layout Plain Layout -References ! Formats +\begin_layout Standard + +\series bold +S{width of multicolumn cell}{number of spanned columns} +\end_layout + +\begin_layout Standard +as LaTeX-argument of the column. \end_layout +\begin_layout Standard +\begin_inset VSpace bigskip \end_inset \end_layout \begin_layout Standard -There are six varieties of cross-references: +For colored columns, you can define \end_layout -\begin_layout Description -: prints the float number, this is the default: -\begin_inset CommandInset ref -LatexCommand ref -reference "fig:Two-distorted-images" - -\end_inset +\begin_layout Standard +\series bold +\backslash +newcolumntype{K}[1]{>{ +\backslash +columncolor{#1} +\backslash +hspace{0pt}}c} \end_layout -\begin_layout Description -(): prints the float number within two parentheses, this is the - style normally used to reference formulas, especially when the reference - name +\begin_layout Standard +The \begin_inset Quotes eld \end_inset -Equation +c \begin_inset Quotes erd \end_inset - is omitted: -\begin_inset CommandInset ref -LatexCommand eqref -reference "eq:Wgn" - -\end_inset - - + at the end creates a column with a flexible width whose text is horizontally + centered. + You can now enter \end_layout -\begin_layout Description -: prints the page number: Page -\begin_inset space ~ -\end_inset +\begin_layout Standard +\series bold +K{color name} +\end_layout -\begin_inset CommandInset ref -LatexCommand pageref -reference "fig:Two-distorted-images" +\begin_layout Standard +as LaTeX-argument. +\end_layout +\begin_layout Standard +\begin_inset VSpace bigskip \end_inset \end_layout -\begin_layout Description -on +\begin_layout Standard +To create Table \begin_inset space ~ \end_inset -page -\begin_inset space ~ -\end_inset -: prints the text "on page" and the page number: \begin_inset CommandInset ref -LatexCommand vpageref -reference "fig:Two-distorted-images" +LatexCommand ref +reference "tab:Table-using-user-defined" \end_inset - + use the LaTeX-arguments \end_layout -\begin_layout Description - -\begin_inset space ~ -\end_inset - -on -\begin_inset space ~ -\end_inset +\begin_layout Standard -page -\begin_inset space ~ -\end_inset +\series bold +M{2.5cm} +\end_layout -: prints the float number, the text "on page", and the page number: - -\begin_inset CommandInset ref -LatexCommand vref -reference "fig:Two-distorted-images" +\begin_layout Standard +for the first column and the multicolumn, +\end_layout -\end_inset +\begin_layout Standard +\series bold +K{red} +\end_layout +\begin_layout Standard +for the last column, and \end_layout -\begin_layout Description -Formatted -\begin_inset space ~ -\end_inset +\begin_layout Standard -reference: prints a self-defined cross-reference format. -\begin_inset Newline newline -\end_inset +\series bold +S{2.5cm}{2} +\end_layout +\begin_layout Standard +for the cells in the second column. +\end_layout -\begin_inset Note Greyedout +\begin_layout Standard +\begin_inset Float table +placement h +wide false +sideways false status open \begin_layout Plain Layout +\begin_inset Caption -\series bold -Note: -\series default - This feature is only available when you have the LaTeX-package -\series bold -prettyref -\series default - or -\series bold -refstyle -\series default +\begin_layout Plain Layout +\begin_inset CommandInset label +LatexCommand label +name "tab:Table-using-user-defined" -\begin_inset Index idx -status collapsed +\end_inset -\begin_layout Plain Layout -LaTeX-packages ! prettyref +Table using user-defined table formats \end_layout \end_inset -\begin_inset Index idx -status collapsed - -\begin_layout Plain Layout -LaTeX-packages ! refstyle \end_layout -\end_inset +\begin_layout Plain Layout +\align center +\begin_inset Tabular + + + + + + + + +\begin_inset Text - installed. +\begin_layout Plain Layout +verylongtablecellword \end_layout \end_inset + + +\begin_inset Text +\begin_layout Plain Layout +multiple lines multicolumn +\end_layout -\begin_inset Newline newline \end_inset + + +\begin_inset Text -You can select which LaTeX-package should be used for this feature by setting - the option -\family sans -Use refstyle (not prettyref) for cross-references -\family default - in the menu -\family sans -Document\SpecialChar \menuseparator -Settings\SpecialChar \menuseparator -Document Class -\family default -. - The format is specified by adding the command -\series bold +\begin_layout Plain Layout -\backslash -newrefformat -\series default - (prettyref) or -\series bold +\end_layout -\backslash -newref -\series default - (refstyle) to the preamble of the document. - For example redefining all references to figures (which have the label - shortcut -\begin_inset Quotes eld \end_inset + + +\begin_inset Text +\begin_layout Plain Layout +c +\end_layout -\family sans -fig -\family default - -\begin_inset Quotes erd \end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +d +\end_layout -) can be done with this command -\begin_inset Newline newline \end_inset + + +\begin_inset Text +\begin_layout Plain Layout +e +\end_layout -\series bold +\end_inset + + +\begin_inset Text -\backslash -newref{fig}{refcmd={Image on page -\backslash -pageref{#1}}} -\series default +\begin_layout Plain Layout +f +\end_layout -\begin_inset Newline newline \end_inset + + +\begin_inset Text -For more information about the format, have a look at the package documentations -, -\begin_inset CommandInset citation -LatexCommand cite -key "prettyref,refstyle" +\begin_layout Plain Layout +g +\end_layout \end_inset + + + + +\begin_inset Text -. +\begin_layout Plain Layout +h \end_layout -\begin_layout Description -Textual -\begin_inset space ~ \end_inset + + +\begin_inset Text -reference: prints the caption of the reference: -\begin_inset CommandInset ref -LatexCommand nameref -reference "fig:Two-distorted-images" +\begin_layout Plain Layout +i +\end_layout \end_inset + + +\begin_inset Text - +\begin_layout Plain Layout +j \end_layout -\begin_layout Standard - -\family sans - -\family default - will not print the page number if the label is on the previous, the same, - or the next page. - You will e. -\begin_inset space \thinspace{} \end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +k +\end_layout -g. -\begin_inset space \space{} \end_inset + + + -see the text -\begin_inset Quotes eld \end_inset -\family sans -on this page -\family default +\end_layout -\begin_inset Quotes erd \end_inset - instead. - The style -\family sans - on page -\family default - will not print anything about the page if the label is on the same page. -\end_layout -\begin_layout Standard -The number and current page of the part of the document referred to in the - output is automatically calculated by LaTeX. - The varieties are adjusted in the field -\family sans -Format -\family default - of the cross-reference window that appears when you click on the cross-referenc -e box. \end_layout -\begin_layout Standard -\begin_inset Note Greyedout -status open +\begin_layout Subsection +Line Thickness +\begin_inset CommandInset label +LatexCommand label +name "sub:Line-Thickness" -\begin_layout Plain Layout +\end_inset -\series bold -Note: -\series default - It is recommended to use the LaTeX-package -\series bold -refstyle -\series default \begin_inset Index idx status collapsed \begin_layout Plain Layout -LaTeX-packages ! refstyle +Table Customization ! Line Thickness \end_layout \end_inset - because -\series bold -prettyref -\series default - -\begin_inset Index idx -status collapsed -\begin_layout Plain Layout -LaTeX-packages ! prettyref \end_layout -\end_inset - - does not know all of LyX's possible label shortcuts -\begin_inset Foot -status collapsed +\begin_layout Standard +The line thickness for all lines in a table can be adjusted with the length + +\series bold -\begin_layout Plain Layout -\begin_inset Quotes eld +\backslash +arrayrulewidth +\series default +. + To set for example a line thickness of 1.5 +\begin_inset space \thinspace{} \end_inset -fig: -\begin_inset Quotes erd +pt, as in Table +\begin_inset space ~ \end_inset - is for example LyX's shortcut for labels in figure captions. -\end_layout + +\begin_inset CommandInset ref +LatexCommand ref +reference "tab:Table-with-1.5" \end_inset - and is not internationalized. +, insert the command \end_layout -\end_inset +\begin_layout Standard +\series bold +\backslash +setlength{ +\backslash +arrayrulewidth}{1.5pt} \end_layout \begin_layout Standard -\begin_inset Note Greyedout -status open - -\begin_layout Plain Layout - -\series bold -Note: -\series default - Due to a bug in the LaTeX-package +in TeX-Code before the table or table float. + The changed thickness is valid for all subsequent tables. + To use the default value again, set \series bold -varioref + +\backslash +arrayrulewidth \series default - version 1.4w, some cross-reference formats will cause LaTeX errors for document - languages that make the period character active (like French). - For a workaround, see -\begin_inset Newline newline + to 0.4 +\begin_inset space \thinspace{} \end_inset +pt in TeX-Code after the table or table float. +\end_layout -\begin_inset CommandInset href -LatexCommand href -target "http://wiki.lyx.org/LaTeX/LatexBugs#toc5" +\begin_layout Standard +\begin_inset ERT +status collapsed -\end_inset +\begin_layout Plain Layout -. + +\backslash +setlength{ +\backslash +arrayrulewidth}{1.5pt} \end_layout \end_inset -\end_layout +\begin_inset Float table +wide false +sideways false +status open -\begin_layout Subsection -Automatic Reference Naming -\begin_inset Index idx -status collapsed +\begin_layout Plain Layout +\begin_inset Caption \begin_layout Plain Layout -References ! Automatic Reference Naming -\end_layout +\begin_inset CommandInset label +LatexCommand label +name "tab:Table-with-1.5" \end_inset +Table with 1.5 +\begin_inset space \thinspace{} +\end_inset +pt thick lines \end_layout -\begin_layout Standard -The LaTeX-package -\series bold -hyperref -\series default +\end_inset -\begin_inset Index idx -status collapsed + +\end_layout \begin_layout Plain Layout -LaTeX-packages ! hyperref +\align center +\begin_inset Tabular + + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +sd \end_layout \end_inset + + +\begin_inset Text -, that is enabled in the -\family sans -PDF Properties -\family default - of the -\family sans -Document Settings -\family default - dialog, provides a very useful feature that cross-references automatically - include the name of the referenced floats (or text parts like -\emph on -section -\emph default -). - So you will save having to write e. -\begin_inset space \thinspace{} -\end_inset +\begin_layout Plain Layout -g. -\begin_inset space \space{} -\end_inset +\end_layout -the name -\begin_inset Quotes eld \end_inset + + +\begin_inset Text -Figure -\begin_inset Quotes erd -\end_inset +\begin_layout Plain Layout - before every reference to a figure. - To use this feature, enable -\series bold -hyperref -\series default - and insert this line to the LaTeX preamble: \end_layout -\begin_layout Standard +\end_inset + + + + +\begin_inset Text -\series bold +\begin_layout Plain Layout -\backslash -AtBeginDocument{ -\backslash -renewcommand{ -\backslash -ref}[1]{ -\backslash -mbox{ -\backslash -autoref{#1}}}} \end_layout -\begin_layout Standard -When you prefer other reference names than the default ones, for example - you want instead of -\begin_inset Quotes eld \end_inset + + +\begin_inset Text -section -\begin_inset Quotes erd -\end_inset +\begin_layout Plain Layout +sd +\end_layout - the name -\begin_inset Quotes eld \end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout -sec. -\begin_inset space \thinspace{} \end_inset + + + + +\begin_inset Text +\begin_layout Plain Layout + +\end_layout -\begin_inset Quotes eld \end_inset + + +\begin_inset Text + +\begin_layout Plain Layout -, you can redefine the name by inserting this in the preamble: \end_layout -\begin_layout Standard +\end_inset + + +\begin_inset Text -\series bold +\begin_layout Plain Layout +sd +\end_layout -\backslash -addto -\backslash -extrasenglish{ -\backslash -renewcommand{ -\backslash -sectionautorefname} -\begin_inset Newline newline \end_inset + + + +\end_inset -\begin_inset Phantom HPhantom -status open -\begin_layout Plain Layout +\end_layout -\series bold -\begin_inset space ~ \end_inset +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +setlength{ +\backslash +arrayrulewidth}{0.4pt} \end_layout \end_inset -{sec. -\backslash -negthinspace}} + \end_layout \begin_layout Standard -When you are using another document language than English, replace -\begin_inset Newline newline +\begin_inset VSpace bigskip \end_inset +To set the line thickness to 1.5 +\begin_inset space \thinspace{} +\end_inset -\series bold +pt only for horizontal lines, as in Table +\begin_inset space ~ +\end_inset -\backslash -extrasenglish -\series default - by -\series bold -\backslash -extras*** -\series default -, where *** is the name of the language used. -\end_layout +\begin_inset CommandInset ref +LatexCommand ref +reference "tab:Table-with-horizontal" -\begin_layout Standard -To get automatic names, but not for certain reference types, for example - not for equations, use this preamble code: +\end_inset + +, insert these commands in TeX-Code before the table or table float: \end_layout \begin_layout Standard @@ -20884,130 +20878,131 @@ To get automatic names, but not for certain reference types, for example \series bold \backslash -newlength{ +let \backslash -abc} +myHline +\backslash +hline \begin_inset Newline newline \end_inset \backslash -settowidth{ -\backslash -abc}{ +renewcommand{ \backslash -space} +hline} \begin_inset Newline newline \end_inset - -\backslash -addto + { \backslash -extrasenglish{ +noalign{ \backslash -renewcommand{ +global \backslash -equationautorefname} +arrayrulewidth 1.5pt} \begin_inset Newline newline \end_inset + +\backslash +myHline +\backslash +noalign{ +\backslash +global +\backslash +arrayrulewidth 0.4pt}} +\end_layout -\begin_inset Phantom HPhantom -status open +\begin_layout Standard +To return to the default line thickness, insert this command in TeX-Code + after the table or table float: +\end_layout -\begin_layout Plain Layout +\begin_layout Standard \series bold -\begin_inset space ~ -\end_inset - - -\end_layout -\end_inset - -{ \backslash -hspace{- +renewcommand{ \backslash -abc}} +hline}{ +\backslash +myHline} \end_layout \begin_layout Standard -More about this topic can be found in -\series bold -hyperref -\series default -'s documentation -\begin_inset CommandInset citation -LatexCommand cite -key "hyperref" +\begin_inset ERT +status collapsed -\end_inset +\begin_layout Plain Layout -. -\end_layout -\begin_layout Standard -\begin_inset Note Greyedout -status open +\backslash +let +\backslash +myHline +\backslash +hline +\end_layout \begin_layout Plain Layout -\series bold -Note: -\series default - Automatic reference naming cannot be used when you use cross-references - in the -\family sans -Formatted -\begin_inset space ~ -\end_inset -reference -\family default - style, as described in section -\begin_inset space ~ -\end_inset +\backslash +renewcommand{ +\backslash +hline} +\end_layout +\begin_layout Plain Layout -\begin_inset CommandInset ref -LatexCommand ref -reference "sub:Cross-Reference-Formats" + { +\backslash +noalign{ +\backslash +global +\backslash +arrayrulewidth 1.5pt} +\end_layout -\end_inset +\begin_layout Plain Layout -. + +\backslash +myHline +\backslash +noalign{ +\backslash +global +\backslash +arrayrulewidth 0.4pt}} \end_layout \end_inset -\end_layout +\begin_inset Float table +wide false +sideways false +status open -\begin_layout Standard -The -\emph on -Math -\emph default - manual is an example where automatic reference naming is used. -\end_layout +\begin_layout Plain Layout +\begin_inset Caption -\begin_layout Subsection -Reference Position +\begin_layout Plain Layout \begin_inset CommandInset label LatexCommand label -name "sub:Reference-Position" +name "tab:Table-with-horizontal" \end_inset +Table with 1.5 +\begin_inset space \thinspace{} +\end_inset -\begin_inset Index idx -status collapsed - -\begin_layout Plain Layout -References ! Reference Position +pt thick horizontal lines \end_layout \end_inset @@ -21015,134 +21010,123 @@ References ! Reference Position \end_layout -\begin_layout Standard -If you use -\series bold -hyperref -\series default - -\begin_inset Index idx -status collapsed +\begin_layout Plain Layout +\align center +\begin_inset Tabular + + + + + + + +\begin_inset Text \begin_layout Plain Layout -LaTeX-packages ! hyperref +sd \end_layout \end_inset + + +\begin_inset Text - in the -\family sans -PDF Properties -\family default - of the -\family sans -Document Settings -\family default - dialog to link cross-references in the output, you will see that clicking - on an image float reference jumps to the image label. - The caption will be the first text part on the screen, so that you cannot - see the image without scrolling. - This is because the reference link anchor is placed at the position of - the label. - With the use of the package -\series bold -hypcap -\series default +\begin_layout Plain Layout -\begin_inset Index idx -status collapsed +\end_layout + +\end_inset + + +\begin_inset Text \begin_layout Plain Layout -LaTeX-packages ! hypcap + \end_layout \end_inset + + + + +\begin_inset Text -, which is part of the LaTeX-package -\series bold -oberdiek -\series default +\begin_layout Plain Layout -\begin_inset Index idx -status collapsed +\end_layout + +\end_inset + + +\begin_inset Text \begin_layout Plain Layout -LaTeX-packages ! oberdiek +sd \end_layout \end_inset + + +\begin_inset Text + +\begin_layout Plain Layout -, the link anchor is placed at the beginning of a float. - To use this feature for figure floats, load -\series bold -hypcap -\series default - in the document preamble with the line \end_layout -\begin_layout Standard +\end_inset + + + + +\begin_inset Text -\series bold +\begin_layout Plain Layout -\backslash -usepackage[figure]{hypcap} \end_layout -\begin_layout Standard -You can also use -\series bold -hypcap -\series default - for all float types but this is not recommended for stability reasons. - For more information, have a look at -\series bold -hypcap -\series default -'s manual -\begin_inset CommandInset citation -LatexCommand cite -key "hypcap" - \end_inset + + +\begin_inset Text + +\begin_layout Plain Layout -. \end_layout -\begin_layout Standard -\begin_inset Note Greyedout -status open +\end_inset + + +\begin_inset Text \begin_layout Plain Layout - -\series bold -Note: -\series default - -\series bold -hypcap -\series default - has no effect on references to subfigures. +sd \end_layout +\end_inset + + + + \end_inset \end_layout -\begin_layout Section -Float Placement -\begin_inset CommandInset label -LatexCommand label -name "sec:Float-Placement" - \end_inset -\begin_inset Index idx +\begin_inset ERT status collapsed \begin_layout Plain Layout -Floats ! Placement + + +\backslash +renewcommand{ +\backslash +hline}{ +\backslash +myHline} \end_layout \end_inset @@ -21151,652 +21135,505 @@ Floats ! Placement \end_layout \begin_layout Standard -Right-clicking on a float-box opens a dialog where you can alter the placement - options that LaTeX uses for positioning the float. -\begin_inset Newline newline +\begin_inset VSpace bigskip \end_inset -The option -\family sans -Span -\begin_inset space ~ +To set the line thickness to 1.5 +\begin_inset space \thinspace{} \end_inset -columns -\family default - is only useful for two-column documents: If you select it, the float will - span both columns on the page instead of being confined to just one. -\begin_inset Newline newline +pt only for vertical lines, create the following column format in the document + preamble, according to the description in section +\begin_inset space ~ \end_inset -The option -\family sans -Rotate -\begin_inset space ~ -\end_inset -sideways -\family default - is used to rotate floats, see section \begin_inset CommandInset ref LatexCommand ref -reference "sec:Rotated-Floats" +reference "sub:Customized-Format" \end_inset -. +: \end_layout \begin_layout Standard -You can use one ore more of the following options in the float dialog to - set the placement for a particular float when you uncheck the option -\family sans -Use -\begin_inset space ~ -\end_inset -default -\begin_inset space ~ -\end_inset +\series bold -placement -\family default -: +\backslash +newcolumntype{V}{!{ +\backslash +vrule width 1.5pt}} \end_layout -\begin_layout Description -Here -\begin_inset space ~ -\end_inset - -if +\begin_layout Standard +For Table \begin_inset space ~ \end_inset -possible try to place the float on the position where it has been inserted -\end_layout -\begin_layout Description -Top -\begin_inset space ~ -\end_inset +\begin_inset CommandInset ref +LatexCommand ref +reference "tab:Table-with-vertical" -of -\begin_inset space ~ \end_inset -page try to place the float at the top of the current page + the LaTeX-argument \end_layout -\begin_layout Description -Bottom -\begin_inset space ~ -\end_inset - -of -\begin_inset space ~ -\end_inset +\begin_layout Standard -page try to place the float at the bottom of the current page +\series bold +VcV \end_layout -\begin_layout Description -Page -\begin_inset space ~ -\end_inset - -of -\begin_inset space ~ -\end_inset - -floats try to place the float on its own page +\begin_layout Standard +was used for the last column and \end_layout \begin_layout Standard -The order of the above option is -\emph on -always -\emph default - used by LaTeX. - That means, if you use the default placement, LaTeX will first try out - -\family sans -Here -\begin_inset space ~ -\end_inset - -if -\begin_inset space ~ -\end_inset - -possible -\family default -, then -\family sans -Top -\begin_inset space ~ -\end_inset - -of -\begin_inset space ~ -\end_inset - -page -\family default -, and then the others. - If you do not use the default, LaTeX will try only the checked options - but in the same order. - If none of the 4 -\begin_inset space ~ -\end_inset -placements are possible the procedure is internally repeated but it is tried - to put the float on the following page. +\series bold +Vc \end_layout \begin_layout Standard -By default, each option has its own rules: +for the other columns. \end_layout -\begin_layout Labeling -\labelwidthstring 00.00.0000 +\begin_layout Standard +\begin_inset Float table +wide false +sideways false +status open -\family sans -Top -\begin_inset space ~ -\end_inset +\begin_layout Plain Layout +\begin_inset Caption + +\begin_layout Plain Layout +\begin_inset CommandInset label +LatexCommand label +name "tab:Table-with-vertical" -of -\begin_inset space ~ \end_inset -page -\family default - only floats occupying less than 70 +Table with 1.5 \begin_inset space \thinspace{} \end_inset -% of the page can be placed at the top of a page ( -\series bold - -\backslash -topfraction -\series default -) +pt thick vertical lines \end_layout -\begin_layout Labeling -\labelwidthstring 00.00.0000 - -\family sans -Bottom -\begin_inset space ~ \end_inset -of -\begin_inset space ~ -\end_inset -page -\family default -: only floats occupying less than 30 -\begin_inset space \thinspace{} -\end_inset +\end_layout -% of the page can be placed at the bottom of a page. - ( -\series bold +\begin_layout Plain Layout +\align center +\begin_inset Tabular + + + + + + + +\begin_inset Text -\backslash -bottomfraction -\series default -) +\begin_layout Plain Layout +sd \end_layout -\begin_layout Labeling -\labelwidthstring 00.00.0000 - -\family sans -Page -\begin_inset space ~ \end_inset + + +\begin_inset Text -of -\begin_inset space ~ -\end_inset +\begin_layout Plain Layout + +\end_layout -floats -\family default -: only if more than 50 -\begin_inset space \thinspace{} \end_inset + + +\begin_inset Text -% of the page are occupied by floats, several floats can be set together - on a page. - ( -\series bold +\begin_layout Plain Layout -\backslash -floatpagefraction -\series default -) \end_layout -\begin_layout Standard -If you don't like these rules, you can ignore them by using the additional - option -\family sans -Ignore -\begin_inset space ~ \end_inset + + + + +\begin_inset Text -LaTeX -\begin_inset space ~ -\end_inset +\begin_layout Plain Layout -rules -\family default -. -\begin_inset Newline newline -\end_inset +\end_layout -You can also redefine the rules with LaTeX-commands that are given in parenthese -s after the rules description above. - To increase for example the often too small default of the bottom-rule - to 50 -\begin_inset space \thinspace{} \end_inset + + +\begin_inset Text -% of the page, add this line to your document preamble: +\begin_layout Plain Layout +sd \end_layout -\begin_layout Standard +\end_inset + + +\begin_inset Text -\series bold +\begin_layout Plain Layout -\backslash -renewcommand{ -\backslash -bottomfraction}{0.5} \end_layout -\begin_layout Standard -Sometimes you might need, under all circumstances, a float to be placed - exactly at the position where it is inserted. - For this case you can use the option -\family sans -Here -\begin_inset space ~ -\end_inset - -definitely -\family default -. - Use this option very rarely and only if the document is almost ready to - be printed, because the float is then no longer able to -\begin_inset Quotes eld \end_inset + + + + +\begin_inset Text -float -\begin_inset Quotes erd -\end_inset +\begin_layout Plain Layout - when you change your document and this will often destroy the page layout. \end_layout -\begin_layout Standard -There are no placement options for text wrap floats, because they are always - surrounded by the text of a certain paragraph. -\begin_inset VSpace bigskip \end_inset + + +\begin_inset Text +\begin_layout Plain Layout \end_layout -\begin_layout Standard -Sometimes you have the problem that a float is placed at the top of a page - while its corresponding section starts at the middle of the page, so that - the reader could think the float is part of the previous section. - To avoid this the LaTeX-command -\series bold +\end_inset + + +\begin_inset Text -\backslash -suppressfloats -\series default - can be used. - It suppresses a given float placement for the page where it is inserted - and can therefore be used to avoid floats being set before a section starts. - To get this, add these commands to your document preamble: +\begin_layout Plain Layout +sd \end_layout -\begin_layout Standard - -\series bold - -\backslash -let -\backslash -mySection -\backslash -section -\begin_inset Newline newline \end_inset + + + +\end_inset -\backslash -renewcommand{ -\backslash -section}{ -\backslash -suppressfloats[t] -\backslash -mySection} -\end_layout -\begin_layout Standard -You can define the same for all section headings, like chapters and subsections. - This definition is not recommended to be used for small text parts like - subsubsections because LaTeX may then have problems finding a suitable - placement. \end_layout -\begin_layout Standard -\begin_inset VSpace bigskip \end_inset -In some cases it is required to have all figures/tables at the end of the - document. - For this purpose the LaTeX-package -\series bold -endfloat -\series default +\end_layout + +\begin_layout Subsection +Dashed Lines \begin_inset Index idx status collapsed \begin_layout Plain Layout -LaTeX-packages ! endfloat +Table Customization ! Dashed Lines \end_layout \end_inset - was developed. - It puts all figure and table floats at the end of the document into their - own sections. - At the original float position a text hint like -\begin_inset Quotes eld -\end_inset +\end_layout -\family sans -[Figure -\begin_inset space ~ -\end_inset +\begin_layout Standard +\begin_inset ERT +status collapsed -3.2 about here.] -\family default +\begin_layout Plain Layout -\begin_inset Quotes erd -\end_inset - is inserted. - The endfloat-package is loaded in the preamble with the line +\backslash +ifarydshln \end_layout -\begin_layout Standard +\end_inset -\series bold -\backslash -usepackage[options]{endfloat} -\end_layout +\begin_inset Note Note +status open -\begin_layout Standard -There are various package options to format the created figure/table sections. - For more information we refer to the +\begin_layout Plain Layout +The following section will only be displayed when the LaTeX-package \series bold -endfloat +arydshln \series default - documentation -\begin_inset CommandInset citation -LatexCommand cite -key "endfloat" + is installed. +\end_layout \end_inset -. -\begin_inset Newline newline -\end_inset +\end_layout -\begin_inset Note Greyedout +\begin_layout Standard +\begin_inset Float table +placement H +wide false +sideways false status open \begin_layout Plain Layout +\begin_inset Caption -\series bold -Note: endfloat -\series default - doesn't provide an automatic translation for the text hint, you have to - do this manually, see section -\begin_inset space ~ -\end_inset - -4 in -\begin_inset CommandInset citation -LatexCommand cite -key "endfloat" +\begin_layout Plain Layout +\begin_inset CommandInset label +LatexCommand label +name "tab:Table-with-dashed" \end_inset -. +Table with dashed lines \end_layout \end_inset -\begin_inset Newline newline -\end_inset - +\end_layout -\begin_inset Note Greyedout -status open +\begin_layout Plain Layout +\align center +\begin_inset Tabular + + + + + + + + + +\begin_inset Text \begin_layout Plain Layout +a +\end_layout -\series bold -Note: -\series default - There is currently a bug in -\series bold -endfloat -\series default - when the caption contains a German -\begin_inset Quotes eld \end_inset + + +\begin_inset Text -ß -\begin_inset Quotes erd -\end_inset +\begin_layout Plain Layout +b +\end_layout -. - Use in this case the command -\begin_inset Quotes eld \end_inset + + +\begin_inset Text +\begin_layout Plain Layout +c +\end_layout -\series bold +\end_inset + + +\begin_inset Text -\backslash -ss -\series default +\begin_layout Plain Layout +d +\end_layout -\begin_inset Quotes erd \end_inset + + +\begin_inset Text - in TeX-Code instead of -\begin_inset Quotes eld -\end_inset +\begin_layout Plain Layout +e +\end_layout -ß -\begin_inset Quotes erd \end_inset + + + + +\begin_inset Text -. +\begin_layout Plain Layout +f \end_layout \end_inset + + +\begin_inset Text - +\begin_layout Plain Layout +g \end_layout -\begin_layout Standard -\begin_inset VSpace bigskip \end_inset + + +\begin_inset Text -For more details about float placements, have a look at LaTeX books, -\begin_inset CommandInset citation -LatexCommand cite -key "latexcompanion,latexguide,latexbook" +\begin_layout Plain Layout +h +\end_layout \end_inset + + +\begin_inset Text -. +\begin_layout Plain Layout +i \end_layout -\begin_layout Section -Rotated Floats -\begin_inset CommandInset label -LatexCommand label -name "sec:Rotated-Floats" - \end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +j +\end_layout +\end_inset + + + + +\begin_inset Text -\begin_inset Index idx +\begin_layout Plain Layout +\begin_inset ERT status collapsed \begin_layout Plain Layout -Floats ! Rotating + + +\backslash +hdashline \end_layout \end_inset - +k \end_layout -\begin_layout Standard -Especially for wide tables you might have floats rotated. - To rotate a whole float including the caption, right-click on the float-box - and use the option -\family sans -Rotate -\begin_inset space ~ \end_inset + + +\begin_inset Text -sideways -\family default -. +\begin_layout Plain Layout +l \end_layout -\begin_layout Standard -Rotated floats are always placed on a page of their own (or column of their - own; in case you have a multi-column document). - You can let them span several columns using the float settings option -\family sans -Span -\begin_inset space ~ \end_inset + + +\begin_inset Text -columns -\family default -. - Floats are rotated so that you can read them from the outside margin. - To force a certain rotation direction for all pages, you can add either - the option -\series bold -figuresleft -\series default - or -\series bold -figuresright -\series default - to the document class options. +\begin_layout Plain Layout +m \end_layout -\begin_layout Standard -Referencing rotated floats is the same as for normal floats, the caption - format is also the same: Table -\begin_inset space ~ \end_inset + + +\begin_inset Text - -\begin_inset CommandInset ref -LatexCommand ref -reference "tab:Rotated-table" +\begin_layout Plain Layout +n +\end_layout \end_inset + + +\begin_inset Text - is an example of a rotated table float. +\begin_layout Plain Layout +o \end_layout -\begin_layout Standard -\begin_inset Note Greyedout -status open +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed \begin_layout Plain Layout -\series bold -Note: -\series default - Not all DVI-viewers are able to display rotated floats. + +\backslash +cdashline{4-5} \end_layout \end_inset - +p \end_layout -\begin_layout Standard -\begin_inset Float table -wide false -sideways true -status open +\end_inset + + +\begin_inset Text \begin_layout Plain Layout -\begin_inset Caption +q +\end_layout + +\end_inset + + +\begin_inset Text \begin_layout Plain Layout -\begin_inset CommandInset label -LatexCommand label -name "tab:Rotated-table" +r +\end_layout \end_inset + + +\begin_inset Text - Rotated table +\begin_layout Plain Layout +s \end_layout \end_inset + + +\begin_inset Text +\begin_layout Plain Layout \end_layout -\begin_layout Plain Layout -\align center -\begin_inset Tabular - - - - - - - +\end_inset + + \begin_inset Text \begin_layout Plain Layout -test +t \end_layout \end_inset @@ -21805,16 +21642,16 @@ test \begin_inset Text \begin_layout Plain Layout -b +u \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -c +v \end_layout \end_inset @@ -21823,7 +21660,7 @@ c \begin_inset Text \begin_layout Plain Layout -d +w \end_layout \end_inset @@ -21832,7 +21669,7 @@ d \begin_inset Text \begin_layout Plain Layout -e +x \end_layout \end_inset @@ -21850,72 +21687,161 @@ e \end_layout -\begin_layout Section -Subfloats +\begin_layout Standard +LyX does not natively support dashed lines, so you have to use TeX-Code. + As a prerequisite the LaTeX-package +\series bold +arydshln +\series default + \begin_inset Index idx status collapsed \begin_layout Plain Layout -Floats ! Subfloats +LaTeX-packages ! arydshln \end_layout \end_inset + must be loaded in the document preamble with the command +\end_layout + +\begin_layout Standard + +\series bold +\backslash +usepackage{arydshln} \end_layout \begin_layout Standard -Subfloats are for example used when a figure consists of several images. - They are created by inserting a float into an existing float. - The placement of the subfloats can be controlled in the same way as for - paragraphs as shown in table -\begin_inset space ~ +To make a vertical line dashed, enter the colon +\begin_inset Quotes eld \end_inset +: +\begin_inset Quotes erd +\end_inset -\begin_inset CommandInset ref -LatexCommand ref -reference "tab:Two-subtables-side" + together with the character for the horizontal alignment as LaTeX-argument + in the table cell dialog. +\end_layout -\end_inset +\begin_layout Standard +For a horizontal dashed line add the command +\end_layout - and -\begin_inset CommandInset ref -LatexCommand ref -reference "tab:Two-subtables-upon" +\begin_layout Standard + +\series bold + +\backslash +hdashline +\end_layout + +\begin_layout Standard +in TeX-Code as first element of the first cell in the table row. +\end_layout + +\begin_layout Standard +For dashed multicolumn lines use the command +\end_layout + +\begin_layout Standard + +\series bold + +\backslash +cdashline{line number +\series default +} +\end_layout + +\begin_layout Standard +in TeX-Code as the first element of the first cell in the table row. + If you have for example a multicolumn spanning columns 2 to 4 and you want + to have a dashed line above, add the command +\end_layout + +\begin_layout Standard +\series bold + +\backslash +cdashline{2-4} +\end_layout + +\begin_layout Standard +as the first element of the first cell in the row of the multicolumn. +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip \end_inset -. + \end_layout \begin_layout Standard -Referencing subfloats works as for normal floats: Table +Table \begin_inset space ~ \end_inset \begin_inset CommandInset ref LatexCommand ref -reference "tab:This-is-subtable-a" +reference "tab:Table-with-dashed" \end_inset - and -\begin_inset CommandInset ref -LatexCommand ref -reference "tab:This-is-subtable-b" + was created using +\begin_inset Quotes eld +\end_inset + + +\series bold +:c +\series default +\begin_inset Quotes erd \end_inset - are subtables of table + as LaTeX-argument of the third column. + The TeX-Code command +\series bold + +\backslash +hdashline +\series default + was inserted in the first cell of the third row and the TeX-Code command +\begin_inset Newline newline +\end_inset + + +\series bold + +\backslash +cdashline{4-5} +\series default + was inserted in the first cell of the fourth row. +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + + +\end_layout + +\begin_layout Standard +Tables with dashed lines can also be colored as shown by Table \begin_inset space ~ \end_inset \begin_inset CommandInset ref LatexCommand ref -reference "tab:Two-subtables-side" +reference "tab:Colored-table-with" \end_inset @@ -21923,22 +21849,26 @@ reference "tab:Two-subtables-side" \end_layout \begin_layout Standard -\begin_inset Float table -wide false -sideways false -status open +\begin_inset ERT +status collapsed \begin_layout Plain Layout -\begin_inset Caption -\begin_layout Plain Layout -\begin_inset CommandInset label -LatexCommand label -name "tab:Two-subtables-side" + +\backslash +setlength{ +\backslash +arrayrulewidth}{1pt} +\end_layout \end_inset -Two subtables placed side by side. + +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +thicker lines for better visualization of the line color \end_layout \end_inset @@ -21946,110 +21876,138 @@ Two subtables placed side by side. \end_layout +\begin_layout Standard +\begin_inset ERT +status collapsed + \begin_layout Plain Layout -\align center -\begin_inset space \hfill{} + + +\backslash +dashgapcolor{green} +\end_layout + \end_inset -\begin_inset Float table -wide false -sideways false +\begin_inset Note Note status collapsed \begin_layout Plain Layout -\begin_inset Caption - -\begin_layout Plain Layout -\begin_inset CommandInset label -LatexCommand label -name "tab:This-is-subtable-a" +color gaps between dashes green +\end_layout \end_inset -This is subtable a. + \end_layout -\end_inset +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +\backslash +let +\backslash +myHdashline +\backslash +hdashline \end_layout \begin_layout Plain Layout -\align center -\begin_inset Tabular - - - - - - - - - -\begin_inset Text + + +\backslash +renewcommand{ +\backslash +hdashline} +\end_layout \begin_layout Plain Layout -test + + { +\backslash +arrayrulecolor{red} +\backslash +myHdashline +\backslash +arrayrulecolor{black}} \end_layout \end_inset - - -\begin_inset Text + + +\begin_inset Note Note +status collapsed \begin_layout Plain Layout -b +color horizontal, dashed lines red \end_layout \end_inset - - -\begin_inset Text -\begin_layout Plain Layout -c + \end_layout -\end_inset - - -\begin_inset Text +\begin_layout Standard +\begin_inset ERT +status collapsed \begin_layout Plain Layout -d + + +\backslash +let +\backslash +myCdashline +\backslash +cdashline \end_layout -\end_inset - - -\begin_inset Text +\begin_layout Plain Layout + + +\backslash +renewcommand{ +\backslash +cdashline}[1] +\end_layout \begin_layout Plain Layout -e + + { +\backslash +arrayrulecolor{yellow} +\backslash +myCdashline{#1} +\backslash +arrayrulecolor{black}} \end_layout \end_inset - - - -\end_inset +\begin_inset Note Note +status collapsed +\begin_layout Plain Layout +color partial horizontal, dashed lines yellow \end_layout \end_inset -\begin_inset space \hfill{} -\end_inset - +\end_layout +\begin_layout Standard \begin_inset Float table +placement h wide false sideways false -status collapsed +status open \begin_layout Plain Layout \begin_inset Caption @@ -22057,11 +22015,11 @@ status collapsed \begin_layout Plain Layout \begin_inset CommandInset label LatexCommand label -name "tab:This-is-subtable-b" +name "tab:Colored-table-with" \end_inset -This is subtable b. +Colored table with dashed lines \end_layout \end_inset @@ -22072,33 +22030,33 @@ This is subtable b. \begin_layout Plain Layout \align center \begin_inset Tabular - + - - - + + + - + \begin_inset Text \begin_layout Plain Layout -e +a \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -d +b \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout @@ -22107,184 +22065,209 @@ c \end_inset - + \begin_inset Text \begin_layout Plain Layout -b +d \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -test +e \end_layout \end_inset - - -\end_inset - + + +\begin_inset Text +\begin_layout Plain Layout +f \end_layout \end_inset + + +\begin_inset Text +\begin_layout Plain Layout +g +\end_layout -\begin_inset space \hfill{} \end_inset + + +\begin_inset Text - +\begin_layout Plain Layout +h \end_layout \end_inset + + +\begin_inset Text +\begin_layout Plain Layout +i +\end_layout + +\end_inset + + +\begin_inset Text +\begin_layout Plain Layout +j \end_layout -\begin_layout Standard -\begin_inset Float table -wide false -sideways false -status open +\end_inset + + + + +\begin_inset Text \begin_layout Plain Layout -\begin_inset Caption +\begin_inset ERT +status collapsed \begin_layout Plain Layout -\begin_inset CommandInset label -LatexCommand label -name "tab:Two-subtables-upon" -\end_inset -Two subtables placed one above the other. - (a) table with 4 cells, (b) table with 5 cells. +\backslash +hdashline \end_layout \end_inset -\end_layout - -\begin_layout Plain Layout -\align center -\begin_inset Float table -wide false -sideways false +\begin_inset ERT status collapsed \begin_layout Plain Layout -\begin_inset Caption -\begin_layout Plain Layout +\backslash +rowcolor{Gray} \end_layout \end_inset - +k \end_layout -\begin_layout Plain Layout -\align center -\begin_inset Tabular - - - - - - - - +\end_inset + + \begin_inset Text \begin_layout Plain Layout -test +l \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -test +m \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -test +n \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -test +o \end_layout \end_inset - + + +\begin_inset Text -\end_inset +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +\backslash +cdashline{4-5} \end_layout \end_inset - +p \end_layout -\begin_layout Plain Layout -\align center -\begin_inset Float table -wide false -sideways false -status collapsed +\end_inset + + +\begin_inset Text \begin_layout Plain Layout -\begin_inset Caption +q +\end_layout + +\end_inset + + +\begin_inset Text \begin_layout Plain Layout +r +\end_layout + +\end_inset + + +\begin_inset Text +\begin_layout Plain Layout +s \end_layout \end_inset + + +\begin_inset Text +\begin_layout Plain Layout \end_layout -\begin_layout Plain Layout -\align center -\begin_inset Tabular - - - - - - - +\end_inset + + \begin_inset Text \begin_layout Plain Layout -a +t \end_layout \end_inset @@ -22293,16 +22276,16 @@ a \begin_inset Text \begin_layout Plain Layout -b +u \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -c +v \end_layout \end_inset @@ -22311,7 +22294,7 @@ c \begin_inset Text \begin_layout Plain Layout -d +w \end_layout \end_inset @@ -22320,7 +22303,19 @@ d \begin_inset Text \begin_layout Plain Layout -e +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +cellcolor{Maroon} +\end_layout + +\end_inset + +i \end_layout \end_inset @@ -22338,18 +22333,29 @@ e \end_layout -\end_inset +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +\backslash +renewcommand{ +\backslash +hdashline}{ +\backslash +myHdashline} \end_layout -\begin_layout Section -Floats Side by Side -\begin_inset Index idx +\end_inset + + +\begin_inset Note Note status collapsed \begin_layout Plain Layout -Floats ! Side by side +reset to default \end_layout \end_inset @@ -22358,124 +22364,82 @@ Floats ! Side by side \end_layout \begin_layout Standard -To place floats side by side, as in Figures -\begin_inset space ~ -\end_inset - +\begin_inset ERT +status collapsed -\begin_inset CommandInset ref -LatexCommand ref -reference "fig:Float-left" +\begin_layout Plain Layout -\end_inset - and -\begin_inset CommandInset ref -LatexCommand ref -reference "fig:Float-right" +\backslash +renewcommand{ +\backslash +cdashline}{ +\backslash +myCdashline} +\end_layout \end_inset -, only -\emph on -one -\emph default - float is used. - In it two minipage boxes are inserted. -\begin_inset Foot + +\begin_inset Note Note status collapsed \begin_layout Plain Layout -Minipages are explained in section -\begin_inset space ~ +reset to default +\end_layout + \end_inset -\begin_inset CommandInset ref -LatexCommand ref -reference "sec:Minipages" +\end_layout -\end_inset +\begin_layout Standard +\begin_inset ERT +status collapsed -. +\begin_layout Plain Layout + + +\backslash +nodashgapcolor \end_layout \end_inset - The width is set to 45 -\begin_inset space \thinspace{} -\end_inset --50 -\begin_inset space \thinspace{} -\end_inset +\begin_inset Note Note +status collapsed -column% and the box alignment to -\family sans -Bottom -\family default - for each minipage. - The minipage boxes contain the image and the caption in the same way as - they are in a float. - The only difference is that the image unit -\family sans -Column -\begin_inset space ~ -\end_inset +\begin_layout Plain Layout +reset to default +\end_layout -Width -\begin_inset space ~ \end_inset -% -\family default - is now calculated according to the width of the minipage boxes. + \end_layout \begin_layout Standard -\begin_inset Float figure -wide false -sideways false -status open - -\begin_layout Plain Layout -\begin_inset Box Frameless -position "b" -hor_pos "c" -has_inner_box 1 -inner_pos "t" -use_parbox 0 -use_makebox 0 -width "45col%" -special "none" -height "1in" -height_special "totalheight" -status open +\begin_inset ERT +status collapsed \begin_layout Plain Layout -\align center -\begin_inset Graphics - filename clipart/mobius.eps - lyxscale 50 - width 100col% - scaleBeforeRotation - -\end_inset +\backslash +setlength{ +\backslash +arrayrulewidth}{0.4pt} \end_layout -\begin_layout Plain Layout -\begin_inset Caption +\end_inset -\begin_layout Plain Layout -\begin_inset CommandInset label -LatexCommand label -name "fig:Float-left" -\end_inset +\begin_inset Note Note +status collapsed -Float on the left side. +\begin_layout Plain Layout +reset to default \end_layout \end_inset @@ -22483,164 +22447,174 @@ Float on the left side. \end_layout +\begin_layout Standard +The coloring of lines, columns and lines works as decribed in section +\begin_inset space ~ \end_inset -\begin_inset space \hfill{} -\end_inset +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Colored-Tables" +\end_inset -\begin_inset Box Frameless -position "b" -hor_pos "c" -has_inner_box 1 -inner_pos "t" -use_parbox 0 -use_makebox 0 -width "45col%" -special "none" -height "1in" -height_special "totalheight" -status open +. + Coloring horizontal lines works analogically as described there as well, + one only needs to replace in the commands +\series bold -\begin_layout Plain Layout -\align center -\begin_inset Graphics - filename clipart/platypus.eps - lyxscale 50 - width 100col% - scaleBeforeRotation +\backslash +myHlineC +\series default + by +\series bold -\end_inset +\backslash +myHdashline +\series default + and +\backslash +\series bold +hline +\series default + by +\series bold +\backslash +hdashline +\series default +; so one uses the command \end_layout -\begin_layout Plain Layout -\begin_inset Caption +\begin_layout Standard -\begin_layout Plain Layout -\begin_inset CommandInset label -LatexCommand label -name "fig:Float-right" +\series bold +\backslash +let +\backslash +myHdashline +\backslash +hdashline +\begin_inset Newline newline \end_inset -Float on the right side. -\end_layout +\backslash +renewcommand{ +\backslash +hdashline} +\begin_inset Newline newline \end_inset -\end_layout +\begin_inset Phantom HPhantom +status open +\begin_layout Plain Layout +\begin_inset space ~ \end_inset -\end_layout - -\begin_layout Plain Layout - \end_layout \end_inset - +{ +\backslash +arrayrulecolor{red} +\backslash +myHdashline +\backslash +arrayrulecolor{black}} \end_layout -\begin_layout Section -Caption Formatting -\begin_inset Index idx -status collapsed +\begin_layout Standard +To color +\series bold -\begin_layout Plain Layout -Caption ! Formatting +\backslash +cdashline +\series default +, the command is \end_layout -\end_inset - - -\begin_inset Index idx -status collapsed +\begin_layout Standard -\begin_layout Plain Layout -Floats ! Caption Formatting -\end_layout +\series bold +\backslash +let +\backslash +myCdashline +\backslash +cdashline +\begin_inset Newline newline \end_inset -\begin_inset CommandInset label -LatexCommand label -name "sec:Caption-Formatting" - +\backslash +renewcommand{ +\backslash +cdashline}[1] +\begin_inset Newline newline \end_inset -\end_layout +\begin_inset Phantom HPhantom +status open -\begin_layout Standard -The -\family sans -Caption -\family default - environment is the default paragraph environment for -\family sans -Floats -\family default -. - On the LyX screen captions appear as label, e. -\begin_inset space \thinspace{} +\begin_layout Plain Layout +\begin_inset space ~ \end_inset -g. -\begin_inset space \space{} -\end_inset +\end_layout -\begin_inset Quotes eld \end_inset +{ +\backslash +arrayrulecolor{red} +\backslash +myCdashline{#1} +\backslash +arrayrulecolor{black}} +\end_layout -\family sans -Figure #: -\family default - -\begin_inset Quotes erd -\end_inset - - followed by the caption text. - -\begin_inset Quotes eld -\end_inset +\begin_layout Standard +To get back the black line color, one needs to insert the following commands + as TeX-Code behind the table: +\end_layout -# -\begin_inset Quotes erd -\end_inset +\begin_layout Standard +For +\series bold - is the actual reference number. - By default the label and the number are in the same font as the caption - text and a colon follows the number to divide the label from the text. - This caption format is not suitable for all document formats. - +\backslash +hdashline \end_layout \begin_layout Standard -To change the default caption format, load the LaTeX-package -\series bold -caption -\series default -\begin_inset Index idx -status collapsed +\series bold -\begin_layout Plain Layout -LaTeX-packages ! caption +\backslash +renewcommand{ +\backslash +hdashline}{ +\backslash +myHdashline} \end_layout -\end_inset +\begin_layout Standard +and for +\series bold - in the document preamble with this line: +\backslash +cdashline \end_layout \begin_layout Standard @@ -22648,13 +22622,15 @@ LaTeX-packages ! caption \series bold \backslash -usepackage[format definition]{caption} +renewcommand{ +\backslash +cdashline}{ +\backslash +myCdashline} \end_layout \begin_layout Standard -To have for example the label and the number in sans-serif bold font and - the table captions always above the table as in this document, use the - following command: +To color the gaps between the dashes the command \end_layout \begin_layout Standard @@ -22662,17 +22638,13 @@ To have for example the label and the number in sans-serif bold font and \series bold \backslash -usepackage[labelfont={bf,sf}, tableposition=top]{caption} +dashgapcolor{color} \end_layout \begin_layout Standard -You can also define different caption formats for the different float types. - In this case load the -\series bold -caption -\series default - package without format specific options and define the different formats - with the help of the command +can be used in front of a table as TeX-Code. + color is hereby the name of a defined color. + The command \end_layout \begin_layout Standard @@ -22680,76 +22652,67 @@ caption \series bold \backslash -captionsetup[float type]{format definition} +nodashgapcolor \end_layout \begin_layout Standard -in the document preamble. - For example the caption formats of Figure -\begin_inset space ~ -\end_inset +unsets the changes made by +\series bold +\backslash +dashgapcolor +\series default +. +\end_layout -\begin_inset CommandInset ref -LatexCommand ref -reference "fig:This-is-an-fig" +\begin_layout Standard +\begin_inset Note Greyedout +status open -\end_inset +\begin_layout Plain Layout - and Table +\series bold +\color none +Note +\series default +: If there are multiple commands in a cell, the command of +\series bold +arydshln +\series default + needs to be the first one in the cell. + Therefore in cell +\emph on +k +\emph default + of Table \begin_inset space ~ \end_inset \begin_inset CommandInset ref LatexCommand ref -reference "tab:This-is-an-tab" +reference "tab:Colored-table-with" \end_inset - can be created using these commands in the document preamble: -\end_layout - -\begin_layout Standard - + the command \series bold \backslash -usepackage[tableposition=top]{caption} +hdashline \series default - -\begin_inset Newline newline -\end_inset - - -\series bold - -\backslash -captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,% -\begin_inset Newline newline -\end_inset - - -\begin_inset Phantom HPhantom -status open - -\begin_layout Plain Layout - + is before \series bold \backslash -captionsetup[figure]{ +rowcolor +\series default +. \end_layout \end_inset -labelsep=period} -\begin_inset Newline newline -\end_inset - -\backslash -captionsetup[table]{labelfont={bf,sf}} \end_layout \begin_layout Standard @@ -22759,32 +22722,28 @@ status open \begin_layout Plain Layout \series bold +\color none Note: \series default - The option + The LaTeX-package \series bold -tableposition=top +arydshln \series default - has no effect when a + must be loaded in the document preamble before the LaTeX-package \series bold -KOMA-Script +colortbl \series default \begin_inset Index idx status collapsed \begin_layout Plain Layout -LaTeX-packages ! KOMA-Script +LaTeX-packages ! colortbl \end_layout \end_inset - document class is used. - In this case the document class option -\series bold -captions=tableheading -\series default - must be used. +. \end_layout \end_inset @@ -22793,252 +22752,271 @@ captions=tableheading \end_layout \begin_layout Standard -For more information about the package -\series bold -caption -\series default - we refer to its documentation -\begin_inset CommandInset citation -LatexCommand cite -key "caption" +\begin_inset ERT +status collapsed -\end_inset +\begin_layout Plain Layout -. -\end_layout -\begin_layout Standard -To change the label name from e. -\begin_inset space \thinspace{} -\end_inset +\backslash +else +\end_layout -g. -\begin_inset space \space{} \end_inset -\begin_inset Quotes eld -\end_inset +\begin_inset Note Note +status open -Figure -\begin_inset Quotes erd -\end_inset +\begin_layout Plain Layout +The following will be displayed when the LaTeX-package +\series bold +arydshln +\series default + is not installed: +\end_layout - to -\begin_inset Quotes eld \end_inset -Image -\begin_inset Quotes erd -\end_inset - use this preamble command: \end_layout \begin_layout Standard - +You need to install the package \series bold - -\backslash -renewcommand{ -\backslash -fnum@figure}{Image~ -\backslash -thefigure} +arydshln +\series default + to see the content of this section in the output. \end_layout \begin_layout Standard -where -\series bold +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + \backslash -thefigure -\series default - inserts the figure number and -\series bold - -\begin_inset Quotes eld +fi +\end_layout + \end_inset -~ + +\end_layout + +\begin_layout Standard +For more information about dashed lines see the documentation of +\series bold +arydshln \series default +, +\begin_inset CommandInset citation +LatexCommand cite +key "arydshln" -\begin_inset Quotes erd \end_inset - creates a protected space. +. \end_layout -\begin_layout Standard -\begin_inset VSpace bigskip +\begin_layout Chapter +Floats +\begin_inset CommandInset label +LatexCommand label +name "chap:Floats" + \end_inset -If you are using a -\series bold -KOMA-Script -\series default \begin_inset Index idx status collapsed \begin_layout Plain Layout -LaTeX-packages ! KOMA-Script +Floats \end_layout \end_inset - document class ( -\family sans -article (KOMA-Script) -\family default -, -\family sans -book (KOMA-Script) -\family default -, -\family sans -letter (KOMA-Script) -\family default -, or -\family sans -report (KOMA-Script) -\family default -\begin_inset space \thinspace{} +\end_layout + +\begin_layout Section +Introduction +\begin_inset CommandInset label +LatexCommand label +name "sec:FloatIntroduction" + \end_inset -), you can alternatively to the -\series bold -caption -\series default - package use -\series bold -KOMA-Script -\series default -'s built-in command -\series bold -\backslash -setkomafont -\series default -. - For example, to have the caption label in bold, add this command to your - document preamble: +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +Floats ! Introduction \end_layout -\begin_layout Standard +\end_inset -\series bold -\backslash -setkomafont{captionlabel}{ -\backslash -bfseries} \end_layout \begin_layout Standard -For more information about -\series bold +A float is a block of text associated with some sort of label, which doesn't + have a fixed location. + It can +\begin_inset Quotes eld +\end_inset -\backslash -setkomafont -\series default - we refer to the -\series bold -KOMA-Script -\series default - documentation -\begin_inset CommandInset citation -LatexCommand cite -key "KOMA-Script" +float +\begin_inset Quotes erd +\end_inset + forward or backward a page or two, to wherever it fits best. + +\family sans +Footnotes +\family default + and +\family sans +Margin +\begin_inset space ~ \end_inset -. +Notes +\family default + are also floats, because they can float to the next page when there are + too many notes on the page. \end_layout \begin_layout Standard -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout +Floats allow a high quality layout. + Images and tables can be spread evenly to the pages to avoid white space + and pages without text. + As the floating often destroys the context between the text and the image/table +, every float can be referenced in the text. + Floats are therefore numbered. + Referencing is described in section +\begin_inset space ~ +\end_inset -\backslash -captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period -} -\end_layout +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Referencing-Floats" \end_inset - -\begin_inset Note Note -status open - -\begin_layout Plain Layout -The caption format is changed only for this example. +. \end_layout +\begin_layout Standard +To insert a float, use the menu +\family sans +Insert\SpecialChar \menuseparator +Float +\family default +. + This inserts the +\family sans +Caption +\family default + inset, a box with a label. + The label will automatically be translated to the document language in + the output. + After the label you can insert the caption text. + The image or table is inserted above or below the caption in a separate + paragraph within the float. + More about the caption placement is contained in section +\begin_inset space ~ \end_inset -\end_layout +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Caption-Placement" -\begin_layout Standard -\begin_inset Float figure -placement !p -wide false -sideways false -status open +\end_inset -\begin_layout Plain Layout -\align center +. + To keep your LyX-document readable, you can open and close the float box + by left-clicking on the box label. + A closed float box looks like this: \begin_inset Graphics - filename clipart/mobius.eps - lyxscale 50 - scale 50 + filename clipart/floatQt4.png + scale 70 scaleBeforeRotation \end_inset + – a gray button with a red label. +\end_layout +\begin_layout Standard +It is recommended that you insert floats as a separate standard paragraph + to avoid possible LaTeX-errors that can occur when the surrounding text + is specially formatted. \end_layout -\begin_layout Plain Layout -\begin_inset Caption +\begin_layout Standard +Existing figures or tables can be put into a float by highlighting them + and then pressing the corresponding toolbar button for a new float. +\end_layout -\begin_layout Plain Layout -\begin_inset CommandInset label -LatexCommand label -name "fig:This-is-an-fig" +\begin_layout Section +Float Types +\end_layout +\begin_layout Standard +Besides figure and table floats that are described in sections +\begin_inset space ~ \end_inset -This is an example figure caption that is longer than one line to show the - different caption format. - Here a self-defined caption format is used. -\end_layout + +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Figure-Floats" \end_inset + and +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Table-Floats" -\end_layout +\end_inset + respectively, LyX offers the float types +\family sans +Algorithm +\family default + and +\family sans +Wrap +\family default +. + The latter are explained in sec. +\begin_inset space \thinspace{} \end_inset +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Wrap-Floats" + +\end_inset + +. \end_layout -\begin_layout Standard -\begin_inset ERT +\begin_layout Subsection +Algorithm Floats +\begin_inset Index idx status collapsed \begin_layout Plain Layout - - -\backslash -captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col -on} +Floats ! Algorithms \end_layout \end_inset @@ -23047,8 +23025,8 @@ on} \end_layout \begin_layout Standard -\begin_inset Float table -placement !p +\begin_inset Float algorithm +placement h wide false sideways false status open @@ -23059,13 +23037,11 @@ status open \begin_layout Plain Layout \begin_inset CommandInset label LatexCommand label -name "tab:This-is-an-tab" +name "alg:Example-Algorithm-float" \end_inset -This is an example table caption that is longer than one line to show the - different caption format. - Here the standard caption format for tables in this document is used. +Example Algorithm float \end_layout \end_inset @@ -23073,802 +23049,877 @@ This is an example table caption that is longer than one line to show the \end_layout -\begin_layout Plain Layout -\align center -\begin_inset Tabular - - - - - - - - - -\begin_inset Text - -\begin_layout Plain Layout -a -\end_layout - +\begin_layout LyX-Code +for I in 1..N loop +\begin_inset Newline newline \end_inset - - -\begin_inset Text -\begin_layout Plain Layout -b -\end_layout + Sum:= Sum + A(I); /*comment*/ +\begin_inset Newline newline +\end_inset +end loop +\begin_inset VSpace -4mm \end_inset - - -\begin_inset Text -\begin_layout Plain Layout -c + \end_layout \end_inset - - -\begin_inset Text -\begin_layout Plain Layout -d + \end_layout +\begin_layout Standard +This float type is inserted with the menu +\family sans +Insert\SpecialChar \menuseparator +Floats\SpecialChar \menuseparator +Algorithm +\family default +. + It is used for program codes and descriptions of algorithms and can be + seen as an alternative to program code listings that are explained in chapter +\begin_inset space ~ \end_inset - - -\begin_inset Text -\begin_layout Plain Layout -e -\end_layout + +\begin_inset CommandInset ref +LatexCommand ref +reference "cha:Program-Code-Listings" \end_inset - - - +. + A possible environment for algorithms is the +\family sans +LyX-Code +\family default +, described in LyX's +\emph on +Userguide +\emph default +. + Algorithm +\begin_inset space ~ \end_inset -\end_layout +\begin_inset CommandInset ref +LatexCommand ref +reference "alg:Example-Algorithm-float" \end_inset + is an example of an algorithm float where -4 +\begin_inset space \thinspace{} +\end_inset +mm vertical space was added at the end of the float to have the bottom rule + exactly below the last text line. \end_layout -\begin_layout Section -Caption Placement -\begin_inset Index idx -status collapsed - -\begin_layout Plain Layout -Caption ! Placement +\begin_layout Standard +The float label is not automatically translated into the document language. + If your document is not in English, you have to do this manually by adding + the following line to the document preamble +\series bold +: \end_layout -\end_inset +\begin_layout Standard +\series bold -\begin_inset Index idx -status collapsed +\backslash +floatname{algorithm}{your +\begin_inset space ~ +\end_inset -\begin_layout Plain Layout -Floats ! Caption Placement +name} \end_layout +\begin_layout Standard +where +\family sans +your +\begin_inset space ~ \end_inset +name +\family default + is the word +\begin_inset Quotes eld +\end_inset -\begin_inset CommandInset label -LatexCommand label -name "sec:Caption-Placement" -\end_inset +\emph on +algorithm +\emph default +\begin_inset Quotes erd +\end_inset + in your language. \end_layout \begin_layout Standard -The common caption placement rule is: -\end_layout +To insert the list of algorithms you can use the menu +\family sans +Insert\SpecialChar \menuseparator +List +\begin_inset space \thinspace{} +\end_inset -\begin_layout Description -Figure: Caption is set below the figure -\end_layout +/ +\begin_inset space \thinspace{} +\end_inset -\begin_layout Description -Table: Caption is set above the table +TOC\SpecialChar \menuseparator +List of Algorithms +\family default + when your document has the same language as LyX's menu names. + In other cases use this command in TeX-Code instead: \end_layout \begin_layout Standard -Having the caption above the table is unfortunately not supported in LaTeX's - standard classes. - That means if you are using the document classes -\family sans -article -\family default -, -\family sans -book -\family default -, -\family sans -letter -\family default -, or -\family sans -report -\family default - there will be no space between the caption and the table. - To insert the necessary space, add the following option to the load command - of the LaTeX-package + \series bold -caption -\series default - in your document preamble -\begin_inset Foot -status collapsed -\begin_layout Plain Layout -See section +\backslash +listof{algorithm}{your \begin_inset space ~ \end_inset +name} +\end_layout -\begin_inset CommandInset ref -LatexCommand ref -reference "sec:Caption-Formatting" +\begin_layout Standard +where +\family sans +your +\begin_inset space ~ +\end_inset +name +\family default + is the word +\begin_inset Quotes eld \end_inset - for more information of the package -\series bold -caption -\series default -. -\end_layout +\emph on +List of Algorithm +\emph default +s +\begin_inset Quotes erd \end_inset -: + in your language. \end_layout \begin_layout Standard +Algorithm floats are not by default numbered in the scheme +\begin_inset Quotes eld +\end_inset -\series bold -tableposition=top +chapter.algorithm +\begin_inset Quotes erd +\end_inset + + as is the case for table and figure floats in many document-classes. + To number algorithm floats in the same scheme, add this command to your + document preamble: \end_layout \begin_layout Standard -If you are using a -\series bold -KOMA-Script -\series default -\begin_inset Index idx -status collapsed +\series bold -\begin_layout Plain Layout -LaTeX-packages ! KOMA-Script +\backslash +numberwithin{algorithm}{chapter} \end_layout -\end_inset +\begin_layout Standard +To be able to use the command +\series bold - document class ( -\family sans -article (KOMA-Script) -\family default -, -\family sans -book (KOMA-Script) -\family default -, +\backslash +numberwithin +\series default +, set in the tab \family sans -letter (KOMA-Script) +Math +\begin_inset space ~ +\end_inset + +Options \family default -, or + in the document settings the option \family sans -report (KOMA-Script) -\family default - -\begin_inset space \thinspace{} +Use +\begin_inset space ~ \end_inset -), you can alternatively to the -\series bold -caption -\series default - package set the document class option -\series bold -captions=tableheading -\series default -. -\end_layout +AMS +\begin_inset space ~ +\end_inset -\begin_layout Standard -\begin_inset VSpace bigskip +math +\begin_inset space ~ \end_inset -It is also possible to set the caption beside a figure or table. - To get this the LaTeX-package -\series bold -sidecap -\series default +package +\family default +. +\end_layout +\begin_layout Section +Float Numbering \begin_inset Index idx status collapsed \begin_layout Plain Layout -LaTeX-packages ! sidecap +Floats ! Numbering \end_layout \end_inset - has to be loaded in the document preamble with the line + \end_layout \begin_layout Standard +Floats are usually numbered either independently from the sections the floats + are in, or in the scheme +\begin_inset Quotes eld +\end_inset -\series bold +chapter.number +\begin_inset Quotes erd +\end_inset -\backslash -usepackage[option]{sidecap} -\end_layout + or +\begin_inset Quotes eld +\end_inset + +section.number +\begin_inset Quotes erd +\end_inset -\begin_layout Standard -If you set no option, the caption is placed on the side of the outer page - margin – to the right on odd pages, to the left on even pages. - You can change the placement to inner margin with the option -\series bold -innercaption -\series default . - To force the placement always to the right or left, use the option -\series bold -rightcaption -\series default - or -\series bold -leftcaption -\series default -, respectively. + This depends on the document class used. \end_layout \begin_layout Standard -\begin_inset ERT -status collapsed +To change section-independent numbering, you can use this command in the + document preamble: +\end_layout -\begin_layout Plain Layout +\begin_layout Standard +\series bold \backslash -ifsidecap +renewcommand{ +\backslash +thetable}{ +\backslash +roman{table}} \end_layout -\end_inset +\begin_layout Standard +\series bold -\begin_inset Note Note -status open +\backslash +thetable +\series default + is the command that prints the table number, for figure floats, the command + would be +\series bold -\begin_layout Plain Layout -The following section will only be displayed when the LaTeX-package +\backslash +thefigure +\series default +. + \series bold -sidecap + +\backslash +roman \series default - is installed. + in the command above prints the table number as small roman number. \end_layout +\begin_layout Standard +To change the numbering scheme for example to +\begin_inset Quotes eld \end_inset +subsection.number +\begin_inset Quotes erd +\end_inset +, use this command in the preamble: \end_layout \begin_layout Standard -To place in LyX the caption of a float on the side, it is necessary to add - these commands to the document preamble: -\end_layout - -\begin_layout Standard -\noindent -\begin_inset CommandInset line -LatexCommand rule -offset "0.5ex" -width "100line%" -height "1pt" - -\end_inset +\series bold +\backslash +numberwithin{table}{subsection} \end_layout \begin_layout Standard - +To be able to use the command \series bold \backslash -newcommand{ -\backslash -TabBesBeg}{% -\begin_inset Newline newline +numberwithin +\series default +, set in the tab +\family sans +Math +\begin_inset space ~ \end_inset - -\begin_inset Phantom HPhantom -status open - -\begin_layout Plain Layout - -\series bold +Options +\family default + in the document settings the option +\family sans +Use \begin_inset space ~ \end_inset - -\end_layout - +AMS +\begin_inset space ~ \end_inset - -\backslash -let -\backslash -MyTable -\backslash -table -\begin_inset Newline newline +math +\begin_inset space ~ \end_inset +package +\family default +. +\end_layout -\begin_inset Phantom HPhantom -status open - -\begin_layout Plain Layout - -\series bold +\begin_layout Standard +Please also have a look at section \begin_inset space ~ \end_inset -\end_layout +\begin_inset CommandInset ref +LatexCommand ref +reference "sub:Footnote-Numbering" \end_inset + for the details and important notes about the numbering commands. +\end_layout + +\begin_layout Section +Referencing Floats +\begin_inset CommandInset label +LatexCommand label +name "sec:Referencing-Floats" -\backslash -let -\backslash -MyEndtable -\backslash -endtable -\begin_inset Newline newline \end_inset -\begin_inset Phantom HPhantom -status open +\begin_inset Index idx +status collapsed \begin_layout Plain Layout +Floats ! References +\end_layout -\series bold -\begin_inset space ~ \end_inset +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +References ! to Floats \end_layout \end_inset -\backslash -renewenvironment{table}{ -\backslash -begin{SCtable}}{ -\backslash -end{SCtable}}} \end_layout \begin_layout Standard +To reference a float, insert a label into its caption using the menu +\family sans +Insert\SpecialChar \menuseparator +Label +\family default + or the toolbar button +\family sans -\series bold - -\backslash -newcommand{ -\backslash -TabBesEnd}{% -\begin_inset Newline newline +\begin_inset Info +type "icon" +arg "label-insert" \end_inset -\begin_inset Phantom HPhantom -status open - -\begin_layout Plain Layout +\family default +. + A grey label box like this one: +\begin_inset Graphics + filename clipart/labelQt4.png + scale 85 + scaleBeforeRotation -\series bold -\begin_inset space ~ \end_inset - -\end_layout - + will be inserted and the label window pops up asking for the label text. + LyX offers as text the first words of the caption with a prefix. + The prefix depends on the float type, e. +\begin_inset space \thinspace{} \end_inset - -\backslash -let -\backslash -table -\backslash -MyTable -\begin_inset Newline newline +g. +\begin_inset space \space{} \end_inset +for figure floats the prefix will be " +\family sans +fig: +\family default +". +\end_layout -\begin_inset Phantom HPhantom -status open - -\begin_layout Plain Layout +\begin_layout Standard +The label is used as anchor and name for the reference. + You can refer to the label using the menu +\family sans +Insert\SpecialChar \menuseparator +Cross-reference +\family default + or the toolbar button +\family sans -\series bold -\begin_inset space ~ +\begin_inset Info +type "icon" +arg "dialog-show-new-inset ref" \end_inset -\end_layout +\family default +. + A grey cross-reference box like this one: +\begin_inset Graphics + filename clipart/referenceQt4.png + scale 85 + scaleBeforeRotation \end_inset - -\backslash -let -\backslash -endtable -\backslash -MyEndtable + will be inserted and the cross-reference window appear showing all labels + of the document. + If you have multiple LyX-documents opened, choose the one you are working + on from the drop-list at the top of the dialog. + You can now sort the labels alphabetically and then choose one. + At the position of the cross-reference box the float number will appear + in the output. \end_layout \begin_layout Standard +It is recommended that you use a protected space between the cross-reference + name and its number to avoid line breaks between them. + If a cross-reference refers to a non-existing label, you will see two question + marks in the output instead of the reference. +\end_layout -\series bold +\begin_layout Standard +You can change labels at any time by clicking on the label box. + References to the changed label will automatically change its link to the + new label text, so that you don't need to take care about this. +\end_layout -\backslash -newcommand{ -\backslash -FigBesBeg}{% -\begin_inset Newline newline +\begin_layout Standard +The button +\family sans +Go +\begin_inset space ~ \end_inset - -\begin_inset Phantom HPhantom -status open - -\begin_layout Plain Layout - -\series bold +to \begin_inset space ~ \end_inset +Label +\family default + in the cross-reference window sets the cursor before the referred label. + The button text changes then to Go +\begin_inset space ~ +\end_inset +Back and you can use it to set the cursor back to the cross-reference. + Right-clicking on a cross-reference box also sets the cursor before the + referenced label but without the possibility of going back. \end_layout -\end_inset - +\begin_layout Subsection +Cross-Reference Formats +\begin_inset CommandInset label +LatexCommand label +name "sub:Cross-Reference-Formats" -\backslash -let -\backslash -MyFigure -\backslash -figure -\begin_inset Newline newline \end_inset -\begin_inset Phantom HPhantom -status open +\begin_inset Index idx +status collapsed \begin_layout Plain Layout +References ! Formats +\end_layout -\series bold -\begin_inset space ~ \end_inset \end_layout -\end_inset +\begin_layout Standard +There are six varieties of cross-references: +\end_layout +\begin_layout Description +: prints the float number, this is the default: +\begin_inset CommandInset ref +LatexCommand ref +reference "fig:Two-distorted-images" -\backslash -let -\backslash -MyEndfigure -\backslash -endfigure -\begin_inset Newline newline \end_inset -\begin_inset Phantom HPhantom -status open - -\begin_layout Plain Layout +\end_layout -\series bold -\begin_inset space ~ +\begin_layout Description +(): prints the float number within two parentheses, this is the + style normally used to reference formulas, especially when the reference + name +\begin_inset Quotes eld \end_inset +Equation +\begin_inset Quotes erd +\end_inset -\end_layout + is omitted: +\begin_inset CommandInset ref +LatexCommand eqref +reference "eq:Wgn" \end_inset -\backslash -renewenvironment{figure}{ -\backslash -begin{SCfigure}}{ -\backslash -end{SCfigure}}} \end_layout -\begin_layout Standard - -\series bold - -\backslash -newcommand{ -\backslash -FigBesEnd}{% -\begin_inset Newline newline +\begin_layout Description +: prints the page number: Page +\begin_inset space ~ \end_inset -\begin_inset Phantom HPhantom -status open - -\begin_layout Plain Layout +\begin_inset CommandInset ref +LatexCommand pageref +reference "fig:Two-distorted-images" -\series bold -\begin_inset space ~ \end_inset \end_layout +\begin_layout Description +on +\begin_inset space ~ +\end_inset + +page +\begin_inset space ~ \end_inset +: prints the text "on page" and the page number: +\begin_inset CommandInset ref +LatexCommand vpageref +reference "fig:Two-distorted-images" -\backslash -let -\backslash -figure -\backslash -MyFigure -\begin_inset Newline newline \end_inset -\begin_inset Phantom HPhantom -status open +\end_layout -\begin_layout Plain Layout +\begin_layout Description + +\begin_inset space ~ +\end_inset -\series bold +on \begin_inset space ~ \end_inset +page +\begin_inset space ~ +\end_inset -\end_layout +: prints the float number, the text "on page", and the page number: + +\begin_inset CommandInset ref +LatexCommand vref +reference "fig:Two-distorted-images" \end_inset -\backslash -let -\backslash -endfigure -\backslash -MyEndfigure} \end_layout -\begin_layout Standard -\noindent -\begin_inset CommandInset line -LatexCommand rule -offset "0.5ex" -width "100line%" -height "1pt" - +\begin_layout Description +Formatted +\begin_inset space ~ \end_inset +reference: prints a self-defined cross-reference format. +\begin_inset Newline newline +\end_inset -\end_layout -\begin_layout Standard -The commands allow you to redefine the floats so that the caption is set - on the side. - For figure floats use the command -\end_layout +\begin_inset Note Greyedout +status open -\begin_layout Standard +\begin_layout Plain Layout \series bold +Note: +\series default + This feature is only available when you have the LaTeX-package +\series bold +prettyref +\series default + or +\series bold +refstyle +\series default -\backslash -FigBesBeg -\end_layout +\begin_inset Index idx +status collapsed -\begin_layout Standard -in TeX-Code before the float. - After the float insert the command +\begin_layout Plain Layout +LaTeX-packages ! prettyref \end_layout -\begin_layout Standard +\end_inset -\series bold -\backslash -FigBesEnd -\end_layout +\begin_inset Index idx +status collapsed -\begin_layout Standard -in TeX-Code to get back to the original float definition. +\begin_layout Plain Layout +LaTeX-packages ! refstyle \end_layout -\begin_layout Standard -For table floats use the corresponding commands +\end_inset + + installed. \end_layout -\begin_layout Standard +\end_inset + + +\begin_inset Newline newline +\end_inset +You can select which LaTeX-package should be used for this feature by setting + the option +\family sans +Use refstyle (not prettyref) for cross-references +\family default + in the menu +\family sans +Document\SpecialChar \menuseparator +Settings\SpecialChar \menuseparator +Document Class +\family default +. + The format is specified by adding the command \series bold \backslash -TabBesBeg +newrefformat \series default - and + (prettyref) or \series bold \backslash -TabBesEnd -\end_layout - -\begin_layout Standard -Figure -\begin_inset space ~ +newref +\series default + (refstyle) to the preamble of the document. + For example redefining all references to figures (which have the label + shortcut +\begin_inset Quotes eld \end_inset -\begin_inset CommandInset ref -LatexCommand ref -reference "fig:cap-beside-fig" +\family sans +fig +\family default +\begin_inset Quotes erd \end_inset - and Table -\begin_inset space ~ +) can be done with this command +\begin_inset Newline newline \end_inset -\begin_inset CommandInset ref -LatexCommand ref -reference "tab:cap-beside-tab" +\series bold + +\backslash +newref{fig}{refcmd={Image on page +\backslash +pageref{#1}}} +\series default +\begin_inset Newline newline \end_inset - are examples where the caption is set beside. -\end_layout +For more information about the format, have a look at the package documentations +, +\begin_inset CommandInset citation +LatexCommand cite +key "prettyref,refstyle" -\begin_layout Standard -You can see in the examples that the caption text appears at the top of - the floats for table floats and at the bottom for figure floats. - To change this, you can use the command +\end_inset + +. \end_layout -\begin_layout Standard +\begin_layout Description +Textual +\begin_inset space ~ +\end_inset + +reference: prints the caption of the reference: +\begin_inset CommandInset ref +LatexCommand nameref +reference "fig:Two-distorted-images" + +\end_inset -\series bold -\backslash -sidecaptionvpos{float type}{placement} \end_layout \begin_layout Standard -in the document preamble or in TeX-Code before the float. - The float type is either -\family sans -figure -\family default - or -\family sans -table -\family default -, the placement can be -\begin_inset Quotes eld -\end_inset - \family sans -t + \family default + will not print the page number if the label is on the previous, the same, + or the next page. + You will e. +\begin_inset space \thinspace{} +\end_inset -\begin_inset Quotes erd +g. +\begin_inset space \space{} \end_inset - for top, +see the text \begin_inset Quotes eld \end_inset \family sans -c +on this page \family default \begin_inset Quotes erd \end_inset - for center, or -\begin_inset Quotes eld -\end_inset - + instead. + The style +\family sans + on page +\family default + will not print anything about the page if the label is on the same page. +\end_layout +\begin_layout Standard +The number and current page of the part of the document referred to in the + output is automatically calculated by LaTeX. + The varieties are adjusted in the field \family sans -b +Format \family default + of the cross-reference window that appears when you click on the cross-referenc +e box. +\end_layout -\begin_inset Quotes erd -\end_inset +\begin_layout Standard +\begin_inset Note Greyedout +status open - for bottom. - To have for example the caption of figure floats vertically centered, use - the command +\begin_layout Plain Layout + +\series bold +Note: +\series default + It is recommended to use the LaTeX-package +\series bold +refstyle +\series default + +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +LaTeX-packages ! refstyle \end_layout -\begin_layout Standard +\end_inset + because \series bold +prettyref +\series default -\backslash -sidecaptionvpos{figure}{c} +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +LaTeX-packages ! prettyref \end_layout -\begin_layout Standard -This was used for Figure -\begin_inset space ~ \end_inset + does not know all of LyX's possible label shortcuts +\begin_inset Foot +status collapsed -\begin_inset CommandInset ref -LatexCommand ref -reference "fig:cap-beside-fig-2" +\begin_layout Plain Layout +\begin_inset Quotes eld +\end_inset +fig: +\begin_inset Quotes erd \end_inset -. + is for example LyX's shortcut for labels in figure captions. \end_layout -\begin_layout Standard -\begin_inset VSpace medskip \end_inset -For more information about the package -\series bold -sidecap -\series default - we refer to its documentation -\begin_inset CommandInset citation -LatexCommand cite -key "sidecap" + and is not internationalized. +\end_layout \end_inset -. + \end_layout \begin_layout Standard @@ -23880,32 +23931,24 @@ status open \series bold Note: \series default - The LaTeX-package + Due to a bug in the LaTeX-package \series bold -hypcap +varioref \series default - -\begin_inset Index idx -status collapsed - -\begin_layout Plain Layout -LaTeX-packages ! hypcap -\end_layout - -\end_inset - -, described in section -\begin_inset space ~ + version 1.4w, some cross-reference formats will cause LaTeX errors for document + languages that make the period character active (like French). + For a workaround, see +\begin_inset Newline newline \end_inset -\begin_inset CommandInset ref -LatexCommand ref -reference "sub:Reference-Position" +\begin_inset CommandInset href +LatexCommand href +target "http://wiki.lyx.org/LaTeX/LatexBugs#toc5" \end_inset -, has no effect on floats with the caption set beside. +. \end_layout \end_inset @@ -23913,15 +23956,13 @@ reference "sub:Reference-Position" \end_layout -\begin_layout Standard -\begin_inset ERT +\begin_layout Subsection +Automatic Reference Naming +\begin_inset Index idx status collapsed \begin_layout Plain Layout - - -\backslash -FigBesBeg +References ! Automatic Reference Naming \end_layout \end_inset @@ -23930,287 +23971,259 @@ FigBesBeg \end_layout \begin_layout Standard -\begin_inset Float figure -wide false -sideways false -status open - -\begin_layout Plain Layout -\begin_inset Graphics - filename clipart/escher-lsd.eps - scale 75 - scaleBeforeRotation - -\end_inset - - -\end_layout +The LaTeX-package +\series bold +hyperref +\series default -\begin_layout Plain Layout -\begin_inset Caption +\begin_inset Index idx +status collapsed \begin_layout Plain Layout -\begin_inset CommandInset label -LatexCommand label -name "fig:cap-beside-fig" - -\end_inset - -This is a caption beside a figure. +LaTeX-packages ! hyperref \end_layout \end_inset +, that is enabled in the +\family sans +PDF Properties +\family default + of the +\family sans +Document Settings +\family default + dialog, provides a very useful feature that cross-references automatically + include the name of the referenced floats (or text parts like +\emph on +section +\emph default +). + So you will save having to write e. +\begin_inset space \thinspace{} +\end_inset -\end_layout +g. +\begin_inset space \space{} +\end_inset +the name +\begin_inset Quotes eld \end_inset +Figure +\begin_inset Quotes erd +\end_inset + before every reference to a figure. + To use this feature, enable +\series bold +hyperref +\series default + and insert this line to the LaTeX preamble: \end_layout \begin_layout Standard -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout +\series bold \backslash -TabBesBeg +AtBeginDocument{ +\backslash +renewcommand{ +\backslash +ref}[1]{ +\backslash +mbox{ +\backslash +autoref{#1}}}} \end_layout +\begin_layout Standard +When you prefer other reference names than the default ones, for example + you want instead of +\begin_inset Quotes eld \end_inset +section +\begin_inset Quotes erd +\end_inset -\end_layout - -\begin_layout Standard -\begin_inset Float table -wide false -sideways false -status open + the name +\begin_inset Quotes eld +\end_inset -\begin_layout Plain Layout -\begin_inset Caption +sec. +\begin_inset space \thinspace{} +\end_inset -\begin_layout Plain Layout -\begin_inset CommandInset label -LatexCommand label -name "tab:cap-beside-tab" +\begin_inset Quotes eld \end_inset -This is a caption beside a table. +, you can redefine the name by inserting this in the preamble: \end_layout -\end_inset - +\begin_layout Standard -\end_layout - -\begin_layout Plain Layout -\begin_inset Tabular - - - - - - - - - -\begin_inset Text - -\begin_layout Plain Layout -a -\end_layout +\series bold +\backslash +addto +\backslash +extrasenglish{ +\backslash +renewcommand{ +\backslash +sectionautorefname} +\begin_inset Newline newline \end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\end_layout -\end_inset - - -\begin_inset Text +\begin_inset Phantom HPhantom +status open \begin_layout Plain Layout -b -\end_layout +\series bold +\begin_inset space ~ \end_inset - - -\begin_inset Text -\begin_layout Plain Layout \end_layout \end_inset - - -\begin_inset Text -\begin_layout Plain Layout -c +{sec. +\backslash +negthinspace}} \end_layout +\begin_layout Standard +When you are using another document language than English, replace +\begin_inset Newline newline \end_inset - - - - -\begin_inset Text -\begin_layout Plain Layout -\end_layout +\series bold -\end_inset - - -\begin_inset Text +\backslash +extrasenglish +\series default + by +\series bold -\begin_layout Plain Layout -d +\backslash +extras*** +\series default +, where *** is the name of the language used. \end_layout -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout - +\begin_layout Standard +To get automatic names, but not for certain reference types, for example + not for equations, use this preamble code: \end_layout -\end_inset - - -\begin_inset Text +\begin_layout Standard -\begin_layout Plain Layout -e -\end_layout +\series bold +\backslash +newlength{ +\backslash +abc} +\begin_inset Newline newline \end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\end_layout +\backslash +settowidth{ +\backslash +abc}{ +\backslash +space} +\begin_inset Newline newline \end_inset - - - - -\begin_inset Text -\begin_layout Plain Layout -f -\end_layout +\backslash +addto +\backslash +extrasenglish{ +\backslash +renewcommand{ +\backslash +equationautorefname} +\begin_inset Newline newline \end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\end_layout -\end_inset - - -\begin_inset Text +\begin_inset Phantom HPhantom +status open \begin_layout Plain Layout -g -\end_layout +\series bold +\begin_inset space ~ \end_inset - - -\begin_inset Text -\begin_layout Plain Layout \end_layout \end_inset - - -\begin_inset Text -\begin_layout Plain Layout -h +{ +\backslash +hspace{- +\backslash +abc}} \end_layout -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout - -\end_layout +\begin_layout Standard +More about this topic can be found in +\series bold +hyperref +\series default +'s documentation +\begin_inset CommandInset citation +LatexCommand cite +key "hyperref" \end_inset - - -\begin_inset Text -\begin_layout Plain Layout -i +. \end_layout -\end_inset - - -\begin_inset Text +\begin_layout Standard +\begin_inset Note Greyedout +status open \begin_layout Plain Layout -\end_layout - +\series bold +Note: +\series default + Automatic reference naming cannot be used when you use cross-references + in the +\family sans +Formatted +\begin_inset space ~ \end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -j -\end_layout +reference +\family default + style, as described in section +\begin_inset space ~ \end_inset - - -\begin_inset Text -\begin_layout Plain Layout - -\end_layout -\end_inset - - - +\begin_inset CommandInset ref +LatexCommand ref +reference "sub:Cross-Reference-Formats" \end_inset - +. \end_layout \end_inset @@ -24219,137 +24232,141 @@ j \end_layout \begin_layout Standard -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -TabBesEnd +The +\emph on +Math +\emph default + manual is an example where automatic reference naming is used. \end_layout -\end_inset +\begin_layout Subsection +Reference Position +\begin_inset CommandInset label +LatexCommand label +name "sub:Reference-Position" +\end_inset -\end_layout -\begin_layout Standard -\begin_inset ERT +\begin_inset Index idx status collapsed \begin_layout Plain Layout - - -\backslash -sidecaptionvpos{figure}{c} +References ! Reference Position \end_layout \end_inset -\begin_inset Float figure -wide false -sideways false -status open - -\begin_layout Plain Layout -\begin_inset Graphics - filename clipart/escher-lsd.eps - scale 75 - scaleBeforeRotation - -\end_inset - - -\end_layout - -\begin_layout Plain Layout -\begin_inset Caption - -\begin_layout Plain Layout -\begin_inset CommandInset label -LatexCommand label -name "fig:cap-beside-fig-2" - -\end_inset - -This is a vertically centered caption beside a figure. \end_layout -\end_inset +\begin_layout Standard +If you use +\series bold +hyperref +\series default +\begin_inset Index idx +status collapsed +\begin_layout Plain Layout +LaTeX-packages ! hyperref \end_layout \end_inset + in the +\family sans +PDF Properties +\family default + of the +\family sans +Document Settings +\family default + dialog to link cross-references in the output, you will see that clicking + on an image float reference jumps to the image label. + The caption will be the first text part on the screen, so that you cannot + see the image without scrolling. + This is because the reference link anchor is placed at the position of + the label. + With the use of the package +\series bold +hypcap +\series default -\end_layout - -\begin_layout Standard -\begin_inset ERT +\begin_inset Index idx status collapsed \begin_layout Plain Layout - - -\backslash -FigBesEnd +LaTeX-packages ! hypcap \end_layout \end_inset +, which is part of the LaTeX-package +\series bold +oberdiek +\series default -\end_layout - -\begin_layout Standard -\begin_inset ERT +\begin_inset Index idx status collapsed \begin_layout Plain Layout - - -\backslash -else +LaTeX-packages ! oberdiek \end_layout \end_inset - -\begin_inset Note Note -status open - -\begin_layout Plain Layout -The following will be displayed when the LaTeX-package +, the link anchor is placed at the beginning of a float. + To use this feature for figure floats, load \series bold -sidecap +hypcap \series default - is not installed: + in the document preamble with the line \end_layout -\end_inset +\begin_layout Standard +\series bold +\backslash +usepackage[figure]{hypcap} \end_layout \begin_layout Standard -You need to install the LaTeX-package +You can also use \series bold -sidecap +hypcap \series default - to see the following part of this section in the output. + for all float types but this is not recommended for stability reasons. + For more information, have a look at +\series bold +hypcap +\series default +'s manual +\begin_inset CommandInset citation +LatexCommand cite +key "hypcap" + +\end_inset + +. \end_layout \begin_layout Standard -\begin_inset ERT -status collapsed +\begin_inset Note Greyedout +status open \begin_layout Plain Layout - -\backslash -fi +\series bold +Note: +\series default + +\series bold +hypcap +\series default + has no effect on references to subfigures. \end_layout \end_inset @@ -24358,12 +24375,19 @@ fi \end_layout \begin_layout Section -Listings of Floats +Float Placement +\begin_inset CommandInset label +LatexCommand label +name "sec:Float-Placement" + +\end_inset + + \begin_inset Index idx status collapsed \begin_layout Plain Layout -Floats ! Float Lists +Floats ! Placement \end_layout \end_inset @@ -24372,212 +24396,8030 @@ Floats ! Float Lists \end_layout \begin_layout Standard -Similar to the table of contents where the sections of the document are - listed, there are listings for all float types, like the figures of the - documents. - You can insert them via the -\family sans -Insert\SpecialChar \menuseparator -List -\begin_inset space ~ +Right-clicking on a float-box opens a dialog where you can alter the placement + options that LaTeX uses for positioning the float. +\begin_inset Newline newline \end_inset -/ +The option +\family sans +Span \begin_inset space ~ \end_inset -TOC +columns \family default - sub menus. -\end_layout - -\begin_layout Standard -The list entries are the float captions or its short title, the float number, - and the page number where they appear in the document. -\end_layout - -\begin_layout Standard -You can find the list of figures and tables at the end of this document. -\end_layout - -\begin_layout Chapter -Notes -\end_layout + is only useful for two-column documents: If you select it, the float will + span both columns on the page instead of being confined to just one. +\begin_inset Newline newline +\end_inset -\begin_layout Section -LyX Notes -\begin_inset Index idx -status collapsed +The option +\family sans +Rotate +\begin_inset space ~ +\end_inset -\begin_layout Plain Layout -Notes ! LyX Notes -\end_layout +sideways +\family default + is used to rotate floats, see section +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Rotated-Floats" \end_inset - +. \end_layout \begin_layout Standard -Notes are inserted with the toolbar button -\begin_inset Graphics - filename ../images/note-insert.png - scale 85 - scaleBeforeRotation +You can use one ore more of the following options in the float dialog to + set the placement for a particular float when you uncheck the option +\family sans +Use +\begin_inset space ~ +\end_inset +default +\begin_inset space ~ \end_inset - or the menu -\family sans -Insert\SpecialChar \menuseparator -Note +placement \family default -. - There are three types of notes: +: \end_layout \begin_layout Description -LyX +Here \begin_inset space ~ \end_inset -Note This note type is for internal notes that won't appear in the output. - Its note-box looks like this: -\begin_inset Newline newline +if +\begin_inset space ~ \end_inset +possible try to place the float on the position where it has been inserted +\end_layout -\begin_inset Newline newline +\begin_layout Description +Top +\begin_inset space ~ \end_inset - -\begin_inset Graphics - filename clipart/LyXNoteImageQt4.png - display false - scale 85 - scaleBeforeRotation - +of +\begin_inset space ~ \end_inset - -\begin_inset Note Note -status open - -\begin_layout Plain Layout -This is text in a note box that doesn't appear in the output. +page try to place the float at the top of the current page \end_layout +\begin_layout Description +Bottom +\begin_inset space ~ \end_inset +of +\begin_inset space ~ +\end_inset +page try to place the float at the bottom of the current page \end_layout \begin_layout Description -Comment This note also doesn't appear in the output but it appears as LaTeX-comm -ent, when you export the document to LaTeX via the menu -\family sans -File\SpecialChar \menuseparator -Export\SpecialChar \menuseparator -LaTeX (pdflatex) / (plain) +Page +\begin_inset space ~ +\end_inset + +of +\begin_inset space ~ +\end_inset + +floats try to place the float on its own page +\end_layout + +\begin_layout Standard +The order of the above option is +\emph on +always +\emph default + used by LaTeX. + That means, if you use the default placement, LaTeX will first try out + +\family sans +Here +\begin_inset space ~ +\end_inset + +if +\begin_inset space ~ +\end_inset + +possible +\family default +, then +\family sans +Top +\begin_inset space ~ +\end_inset + +of +\begin_inset space ~ +\end_inset + +page +\family default +, and then the others. + If you do not use the default, LaTeX will try only the checked options + but in the same order. + If none of the 4 +\begin_inset space ~ +\end_inset + +placements are possible the procedure is internally repeated but it is tried + to put the float on the following page. +\end_layout + +\begin_layout Standard +By default, each option has its own rules: +\end_layout + +\begin_layout Labeling +\labelwidthstring 00.00.0000 + +\family sans +Top +\begin_inset space ~ +\end_inset + +of +\begin_inset space ~ +\end_inset + +page +\family default + only floats occupying less than 70 +\begin_inset space \thinspace{} +\end_inset + +% of the page can be placed at the top of a page ( +\series bold + +\backslash +topfraction +\series default +) +\end_layout + +\begin_layout Labeling +\labelwidthstring 00.00.0000 + +\family sans +Bottom +\begin_inset space ~ +\end_inset + +of +\begin_inset space ~ +\end_inset + +page +\family default +: only floats occupying less than 30 +\begin_inset space \thinspace{} +\end_inset + +% of the page can be placed at the bottom of a page. + ( +\series bold + +\backslash +bottomfraction +\series default +) +\end_layout + +\begin_layout Labeling +\labelwidthstring 00.00.0000 + +\family sans +Page +\begin_inset space ~ +\end_inset + +of +\begin_inset space ~ +\end_inset + +floats +\family default +: only if more than 50 +\begin_inset space \thinspace{} +\end_inset + +% of the page are occupied by floats, several floats can be set together + on a page. + ( +\series bold + +\backslash +floatpagefraction +\series default +) +\end_layout + +\begin_layout Standard +If you don't like these rules, you can ignore them by using the additional + option +\family sans +Ignore +\begin_inset space ~ +\end_inset + +LaTeX +\begin_inset space ~ +\end_inset + +rules \family default . - Its note-box looks like this: \begin_inset Newline newline \end_inset +You can also redefine the rules with LaTeX-commands that are given in parenthese +s after the rules description above. + To increase for example the often too small default of the bottom-rule + to 50 +\begin_inset space \thinspace{} +\end_inset + +% of the page, add this line to your document preamble: +\end_layout + +\begin_layout Standard + +\series bold + +\backslash +renewcommand{ +\backslash +bottomfraction}{0.5} +\end_layout + +\begin_layout Standard +Sometimes you might need, under all circumstances, a float to be placed + exactly at the position where it is inserted. + For this case you can use the option +\family sans +Here +\begin_inset space ~ +\end_inset + +definitely +\family default +. + Use this option very rarely and only if the document is almost ready to + be printed, because the float is then no longer able to +\begin_inset Quotes eld +\end_inset + +float +\begin_inset Quotes erd +\end_inset + + when you change your document and this will often destroy the page layout. +\end_layout + +\begin_layout Standard +There are no placement options for text wrap floats, because they are always + surrounded by the text of a certain paragraph. +\begin_inset VSpace bigskip +\end_inset + + +\end_layout + +\begin_layout Standard +Sometimes you have the problem that a float is placed at the top of a page + while its corresponding section starts at the middle of the page, so that + the reader could think the float is part of the previous section. + To avoid this the LaTeX-command +\series bold + +\backslash +suppressfloats +\series default + can be used. + It suppresses a given float placement for the page where it is inserted + and can therefore be used to avoid floats being set before a section starts. + To get this, add these commands to your document preamble: +\end_layout + +\begin_layout Standard + +\series bold +\backslash +let +\backslash +mySection +\backslash +section \begin_inset Newline newline \end_inset -\begin_inset Graphics - filename clipart/CommentNoteImageQt4.png - display false - scale 85 - scaleBeforeRotation +\backslash +renewcommand{ +\backslash +section}{ +\backslash +suppressfloats[t] +\backslash +mySection} +\end_layout + +\begin_layout Standard +You can define the same for all section headings, like chapters and subsections. + This definition is not recommended to be used for small text parts like + subsubsections because LaTeX may then have problems finding a suitable + placement. +\end_layout +\begin_layout Standard +\begin_inset VSpace bigskip \end_inset - -\begin_inset Note Comment -status open +In some cases it is required to have all figures/tables at the end of the + document. + For this purpose the LaTeX-package +\series bold +endfloat +\series default + +\begin_inset Index idx +status collapsed \begin_layout Plain Layout -This is text in a note box that only appears as comment in LaTeX-files. +LaTeX-packages ! endfloat \end_layout \end_inset + was developed. + It puts all figure and table floats at the end of the document into their + own sections. + At the original float position a text hint like +\begin_inset Quotes eld +\end_inset -\end_layout -\begin_layout Description -Greyed +\family sans +[Figure \begin_inset space ~ \end_inset -Out This note will appear in the output as grey text. - Its note-box looks like this: +3.2 about here.] +\family default + +\begin_inset Quotes erd +\end_inset + + is inserted. + The endfloat-package is loaded in the preamble with the line +\end_layout + +\begin_layout Standard + +\series bold + +\backslash +usepackage[options]{endfloat} +\end_layout + +\begin_layout Standard +There are various package options to format the created figure/table sections. + For more information we refer to the +\series bold +endfloat +\series default + documentation +\begin_inset CommandInset citation +LatexCommand cite +key "endfloat" + +\end_inset + +. \begin_inset Newline newline \end_inset +\begin_inset Note Greyedout +status open + +\begin_layout Plain Layout + +\series bold +Note: endfloat +\series default + doesn't provide an automatic translation for the text hint, you have to + do this manually, see section +\begin_inset space ~ +\end_inset + +4 in +\begin_inset CommandInset citation +LatexCommand cite +key "endfloat" + +\end_inset + +. +\end_layout + +\end_inset + + \begin_inset Newline newline \end_inset -\begin_inset Graphics - filename clipart/GreyedOutNoteImageQt4.png - display false - scale 85 - scaleBeforeRotation +\begin_inset Note Greyedout +status open + +\begin_layout Plain Layout + +\series bold +Note: +\series default + There is currently a bug in +\series bold +endfloat +\series default + when the caption contains a German +\begin_inset Quotes eld +\end_inset + +ß +\begin_inset Quotes erd +\end_inset + +. + Use in this case the command +\begin_inset Quotes eld +\end_inset + + +\series bold + +\backslash +ss +\series default + +\begin_inset Quotes erd +\end_inset + + in TeX-Code instead of +\begin_inset Quotes eld +\end_inset + +ß +\begin_inset Quotes erd +\end_inset + +. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + +For more details about float placements, have a look at LaTeX books, +\begin_inset CommandInset citation +LatexCommand cite +key "latexcompanion,latexguide,latexbook" + +\end_inset + +. +\end_layout + +\begin_layout Section +Rotated Floats +\begin_inset CommandInset label +LatexCommand label +name "sec:Rotated-Floats" + +\end_inset + + +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +Floats ! Rotating +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Especially for wide tables you might have floats rotated. + To rotate a whole float including the caption, right-click on the float-box + and use the option +\family sans +Rotate +\begin_inset space ~ +\end_inset + +sideways +\family default +. +\end_layout + +\begin_layout Standard +Rotated floats are always placed on a page of their own (or column of their + own; in case you have a multi-column document). + You can let them span several columns using the float settings option +\family sans +Span +\begin_inset space ~ +\end_inset + +columns +\family default +. + Floats are rotated so that you can read them from the outside margin. + To force a certain rotation direction for all pages, you can add either + the option +\series bold +figuresleft +\series default + or +\series bold +figuresright +\series default + to the document class options. +\end_layout + +\begin_layout Standard +Referencing rotated floats is the same as for normal floats, the caption + format is also the same: Table +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "tab:Rotated-table" + +\end_inset + + is an example of a rotated table float. +\end_layout + +\begin_layout Standard +\begin_inset Note Greyedout +status open + +\begin_layout Plain Layout + +\series bold +Note: +\series default + Not all DVI-viewers are able to display rotated floats. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Float table +wide false +sideways true +status open + +\begin_layout Plain Layout +\begin_inset Caption + +\begin_layout Plain Layout +\begin_inset CommandInset label +LatexCommand label +name "tab:Rotated-table" + +\end_inset + + Rotated table +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\align center +\begin_inset Tabular + + + + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +test +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +b +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +c +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +d +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +e +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +Subfloats +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +Floats ! Subfloats +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Subfloats are for example used when a figure consists of several images. + They are created by inserting a float into an existing float. + The placement of the subfloats can be controlled in the same way as for + paragraphs as shown in table +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "tab:Two-subtables-side" + +\end_inset + + and +\begin_inset CommandInset ref +LatexCommand ref +reference "tab:Two-subtables-upon" + +\end_inset + +. +\end_layout + +\begin_layout Standard +Referencing subfloats works as for normal floats: Table +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "tab:This-is-subtable-a" + +\end_inset + + and +\begin_inset CommandInset ref +LatexCommand ref +reference "tab:This-is-subtable-b" + +\end_inset + + are subtables of table +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "tab:Two-subtables-side" + +\end_inset + +. +\end_layout + +\begin_layout Standard +\begin_inset Float table +wide false +sideways false +status open + +\begin_layout Plain Layout +\begin_inset Caption + +\begin_layout Plain Layout +\begin_inset CommandInset label +LatexCommand label +name "tab:Two-subtables-side" + +\end_inset + +Two subtables placed side by side. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\align center +\begin_inset space \hfill{} +\end_inset + + +\begin_inset Float table +wide false +sideways false +status collapsed + +\begin_layout Plain Layout +\begin_inset Caption + +\begin_layout Plain Layout +\begin_inset CommandInset label +LatexCommand label +name "tab:This-is-subtable-a" + +\end_inset + +This is subtable a. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\align center +\begin_inset Tabular + + + + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +test +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +b +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +c +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +d +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +e +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset space \hfill{} +\end_inset + + +\begin_inset Float table +wide false +sideways false +status collapsed + +\begin_layout Plain Layout +\begin_inset Caption + +\begin_layout Plain Layout +\begin_inset CommandInset label +LatexCommand label +name "tab:This-is-subtable-b" + +\end_inset + +This is subtable b. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\align center +\begin_inset Tabular + + + + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +e +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +d +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +c +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +b +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +test +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset space \hfill{} +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Float table +wide false +sideways false +status open + +\begin_layout Plain Layout +\begin_inset Caption + +\begin_layout Plain Layout +\begin_inset CommandInset label +LatexCommand label +name "tab:Two-subtables-upon" + +\end_inset + +Two subtables placed one above the other. + (a) table with 4 cells, (b) table with 5 cells. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\align center +\begin_inset Float table +wide false +sideways false +status collapsed + +\begin_layout Plain Layout +\begin_inset Caption + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\align center +\begin_inset Tabular + + + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +test +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +test +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +test +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +test +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\align center +\begin_inset Float table +wide false +sideways false +status collapsed + +\begin_layout Plain Layout +\begin_inset Caption + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\align center +\begin_inset Tabular + + + + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +a +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +b +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +c +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +d +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +e +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +Floats Side by Side +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +Floats ! Side by side +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +To place floats side by side, as in Figures +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "fig:Float-left" + +\end_inset + + and +\begin_inset CommandInset ref +LatexCommand ref +reference "fig:Float-right" + +\end_inset + +, only +\emph on +one +\emph default + float is used. + In it two minipage boxes are inserted. +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout +Minipages are explained in section +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Minipages" + +\end_inset + +. +\end_layout + +\end_inset + + The width is set to 45 +\begin_inset space \thinspace{} +\end_inset + +-50 +\begin_inset space \thinspace{} +\end_inset + +column% and the box alignment to +\family sans +Bottom +\family default + for each minipage. + The minipage boxes contain the image and the caption in the same way as + they are in a float. + The only difference is that the image unit +\family sans +Column +\begin_inset space ~ +\end_inset + +Width +\begin_inset space ~ +\end_inset + +% +\family default + is now calculated according to the width of the minipage boxes. +\end_layout + +\begin_layout Standard +\begin_inset Float figure +wide false +sideways false +status open + +\begin_layout Plain Layout +\begin_inset Box Frameless +position "b" +hor_pos "c" +has_inner_box 1 +inner_pos "t" +use_parbox 0 +use_makebox 0 +width "45col%" +special "none" +height "1in" +height_special "totalheight" +status open + +\begin_layout Plain Layout +\align center +\begin_inset Graphics + filename clipart/mobius.eps + lyxscale 50 + width 100col% + scaleBeforeRotation + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\begin_inset Caption + +\begin_layout Plain Layout +\begin_inset CommandInset label +LatexCommand label +name "fig:Float-left" + +\end_inset + +Float on the left side. +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset space \hfill{} +\end_inset + + +\begin_inset Box Frameless +position "b" +hor_pos "c" +has_inner_box 1 +inner_pos "t" +use_parbox 0 +use_makebox 0 +width "45col%" +special "none" +height "1in" +height_special "totalheight" +status open + +\begin_layout Plain Layout +\align center +\begin_inset Graphics + filename clipart/platypus.eps + lyxscale 50 + width 100col% + scaleBeforeRotation + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\begin_inset Caption + +\begin_layout Plain Layout +\begin_inset CommandInset label +LatexCommand label +name "fig:Float-right" + +\end_inset + +Float on the right side. +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +Caption Formatting +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +Caption ! Formatting +\end_layout + +\end_inset + + +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +Floats ! Caption Formatting +\end_layout + +\end_inset + + +\begin_inset CommandInset label +LatexCommand label +name "sec:Caption-Formatting" + +\end_inset + + +\end_layout + +\begin_layout Standard +The +\family sans +Caption +\family default + environment is the default paragraph environment for +\family sans +Floats +\family default +. + On the LyX screen captions appear as label, e. +\begin_inset space \thinspace{} +\end_inset + +g. +\begin_inset space \space{} +\end_inset + + +\begin_inset Quotes eld +\end_inset + + +\family sans +Figure #: +\family default + +\begin_inset Quotes erd +\end_inset + + followed by the caption text. + +\begin_inset Quotes eld +\end_inset + +# +\begin_inset Quotes erd +\end_inset + + is the actual reference number. + By default the label and the number are in the same font as the caption + text and a colon follows the number to divide the label from the text. + This caption format is not suitable for all document formats. + +\end_layout + +\begin_layout Standard +To change the default caption format, load the LaTeX-package +\series bold +caption +\series default + +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +LaTeX-packages ! caption +\end_layout + +\end_inset + + in the document preamble with this line: +\end_layout + +\begin_layout Standard + +\series bold + +\backslash +usepackage[format definition]{caption} +\end_layout + +\begin_layout Standard +To have for example the label and the number in sans-serif bold font and + the table captions always above the table as in this document, use the + following command: +\end_layout + +\begin_layout Standard + +\series bold + +\backslash +usepackage[labelfont={bf,sf}, tableposition=top]{caption} +\end_layout + +\begin_layout Standard +You can also define different caption formats for the different float types. + In this case load the +\series bold +caption +\series default + package without format specific options and define the different formats + with the help of the command +\end_layout + +\begin_layout Standard + +\series bold + +\backslash +captionsetup[float type]{format definition} +\end_layout + +\begin_layout Standard +in the document preamble. + For example the caption formats of Figure +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "fig:This-is-an-fig" + +\end_inset + + and Table +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "tab:This-is-an-tab" + +\end_inset + + can be created using these commands in the document preamble: +\end_layout + +\begin_layout Standard + +\series bold + +\backslash +usepackage[tableposition=top]{caption} +\series default + +\begin_inset Newline newline +\end_inset + + +\series bold + +\backslash +captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,% +\begin_inset Newline newline +\end_inset + + +\begin_inset Phantom HPhantom +status open + +\begin_layout Plain Layout + +\series bold + +\backslash +captionsetup[figure]{ +\end_layout + +\end_inset + +labelsep=period} +\begin_inset Newline newline +\end_inset + + +\backslash +captionsetup[table]{labelfont={bf,sf}} +\end_layout + +\begin_layout Standard +\begin_inset Note Greyedout +status open + +\begin_layout Plain Layout + +\series bold +Note: +\series default + The option +\series bold +tableposition=top +\series default + has no effect when a +\series bold +KOMA-Script +\series default + +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +LaTeX-packages ! KOMA-Script +\end_layout + +\end_inset + + document class is used. + In this case the document class option +\series bold +captions=tableheading +\series default + must be used. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +For more information about the package +\series bold +caption +\series default + we refer to its documentation +\begin_inset CommandInset citation +LatexCommand cite +key "caption" + +\end_inset + +. +\end_layout + +\begin_layout Standard +To change the label name from e. +\begin_inset space \thinspace{} +\end_inset + +g. +\begin_inset space \space{} +\end_inset + + +\begin_inset Quotes eld +\end_inset + +Figure +\begin_inset Quotes erd +\end_inset + + to +\begin_inset Quotes eld +\end_inset + +Image +\begin_inset Quotes erd +\end_inset + + use this preamble command: +\end_layout + +\begin_layout Standard + +\series bold + +\backslash +renewcommand{ +\backslash +fnum@figure}{Image~ +\backslash +thefigure} +\end_layout + +\begin_layout Standard +where +\series bold + +\backslash +thefigure +\series default + inserts the figure number and +\series bold + +\begin_inset Quotes eld +\end_inset + +~ +\series default + +\begin_inset Quotes erd +\end_inset + + creates a protected space. +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + +If you are using a +\series bold +KOMA-Script +\series default + +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +LaTeX-packages ! KOMA-Script +\end_layout + +\end_inset + + document class ( +\family sans +article (KOMA-Script) +\family default +, +\family sans +book (KOMA-Script) +\family default +, +\family sans +letter (KOMA-Script) +\family default +, or +\family sans +report (KOMA-Script) +\family default + +\begin_inset space \thinspace{} +\end_inset + +), you can alternatively to the +\series bold +caption +\series default + package use +\series bold +KOMA-Script +\series default +'s built-in command +\series bold + +\backslash +setkomafont +\series default +. + For example, to have the caption label in bold, add this command to your + document preamble: +\end_layout + +\begin_layout Standard + +\series bold + +\backslash +setkomafont{captionlabel}{ +\backslash +bfseries} +\end_layout + +\begin_layout Standard +For more information about +\series bold + +\backslash +setkomafont +\series default + we refer to the +\series bold +KOMA-Script +\series default + documentation +\begin_inset CommandInset citation +LatexCommand cite +key "KOMA-Script" + +\end_inset + +. +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period +} +\end_layout + +\end_inset + + +\begin_inset Note Note +status open + +\begin_layout Plain Layout +The caption format is changed only for this example. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Float figure +placement !p +wide false +sideways false +status open + +\begin_layout Plain Layout +\align center +\begin_inset Graphics + filename clipart/mobius.eps + lyxscale 50 + scale 50 + scaleBeforeRotation + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\begin_inset Caption + +\begin_layout Plain Layout +\begin_inset CommandInset label +LatexCommand label +name "fig:This-is-an-fig" + +\end_inset + +This is an example figure caption that is longer than one line to show the + different caption format. + Here a self-defined caption format is used. +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col +on} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Float table +placement !p +wide false +sideways false +status open + +\begin_layout Plain Layout +\begin_inset Caption + +\begin_layout Plain Layout +\begin_inset CommandInset label +LatexCommand label +name "tab:This-is-an-tab" + +\end_inset + +This is an example table caption that is longer than one line to show the + different caption format. + Here the standard caption format for tables in this document is used. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\align center +\begin_inset Tabular + + + + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +a +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +b +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +c +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +d +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +e +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +Caption Placement +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +Caption ! Placement +\end_layout + +\end_inset + + +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +Floats ! Caption Placement +\end_layout + +\end_inset + + +\begin_inset CommandInset label +LatexCommand label +name "sec:Caption-Placement" + +\end_inset + + +\end_layout + +\begin_layout Standard +The common caption placement rule is: +\end_layout + +\begin_layout Description +Figure: Caption is set below the figure +\end_layout + +\begin_layout Description +Table: Caption is set above the table +\end_layout + +\begin_layout Standard +Having the caption above the table is unfortunately not supported in LaTeX's + standard classes. + That means if you are using the document classes +\family sans +article +\family default +, +\family sans +book +\family default +, +\family sans +letter +\family default +, or +\family sans +report +\family default + there will be no space between the caption and the table. + To insert the necessary space, add the following option to the load command + of the LaTeX-package +\series bold +caption +\series default + in your document preamble +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout +See section +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Caption-Formatting" + +\end_inset + + for more information of the package +\series bold +caption +\series default +. +\end_layout + +\end_inset + +: +\end_layout + +\begin_layout Standard + +\series bold +tableposition=top +\end_layout + +\begin_layout Standard +If you are using a +\series bold +KOMA-Script +\series default + +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +LaTeX-packages ! KOMA-Script +\end_layout + +\end_inset + + document class ( +\family sans +article (KOMA-Script) +\family default +, +\family sans +book (KOMA-Script) +\family default +, +\family sans +letter (KOMA-Script) +\family default +, or +\family sans +report (KOMA-Script) +\family default + +\begin_inset space \thinspace{} +\end_inset + +), you can alternatively to the +\series bold +caption +\series default + package set the document class option +\series bold +captions=tableheading +\series default +. +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + +It is also possible to set the caption beside a figure or table. + To get this the LaTeX-package +\series bold +sidecap +\series default + +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +LaTeX-packages ! sidecap +\end_layout + +\end_inset + + has to be loaded in the document preamble with the line +\end_layout + +\begin_layout Standard + +\series bold + +\backslash +usepackage[option]{sidecap} +\end_layout + +\begin_layout Standard +If you set no option, the caption is placed on the side of the outer page + margin – to the right on odd pages, to the left on even pages. + You can change the placement to inner margin with the option +\series bold +innercaption +\series default +. + To force the placement always to the right or left, use the option +\series bold +rightcaption +\series default + or +\series bold +leftcaption +\series default +, respectively. +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ifsidecap +\end_layout + +\end_inset + + +\begin_inset Note Note +status open + +\begin_layout Plain Layout +The following section will only be displayed when the LaTeX-package +\series bold +sidecap +\series default + is installed. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +To place in LyX the caption of a float on the side, it is necessary to add + these commands to the document preamble: +\end_layout + +\begin_layout Standard +\begin_inset Newpage pagebreak +\end_inset + + +\end_layout + +\begin_layout Standard +\noindent +\begin_inset CommandInset line +LatexCommand rule +offset "0.5ex" +width "100line%" +height "1pt" + +\end_inset + + +\end_layout + +\begin_layout Standard + +\series bold + +\backslash +newcommand{ +\backslash +TabBesBeg}[1][1.0]{% +\begin_inset Newline newline +\end_inset + + +\begin_inset Phantom HPhantom +status open + +\begin_layout Plain Layout +\begin_inset space ~ +\end_inset + + +\end_layout + +\end_inset + + +\backslash +let +\backslash +MyTable +\backslash +table +\begin_inset Newline newline +\end_inset + + +\begin_inset Phantom HPhantom +status open + +\begin_layout Plain Layout + +\series medium +\begin_inset space ~ +\end_inset + + +\end_layout + +\end_inset + + +\backslash +let +\backslash +MyEndtable +\backslash +endtable +\begin_inset Newline newline +\end_inset + + +\begin_inset Phantom HPhantom +status open + +\begin_layout Plain Layout + +\series medium +\begin_inset space ~ +\end_inset + + +\end_layout + +\end_inset + + +\backslash +renewenvironment{table}[1]{ +\backslash +begin{SCtable}[#1]##1}{ +\backslash +end{SCtable}}} +\end_layout + +\begin_layout Standard + +\series bold + +\backslash +newcommand{ +\backslash +TabBesEnd}{% +\begin_inset Newline newline +\end_inset + + +\begin_inset Phantom HPhantom +status open + +\begin_layout Plain Layout +\begin_inset space ~ +\end_inset + + +\end_layout + +\end_inset + + +\backslash +let +\backslash +table +\backslash +MyTable +\begin_inset Newline newline +\end_inset + + +\begin_inset Phantom HPhantom +status open + +\begin_layout Plain Layout +\begin_inset space ~ +\end_inset + + +\end_layout + +\end_inset + + +\backslash +let +\backslash +endtable +\backslash +MyEndtable +\end_layout + +\begin_layout Standard + +\series bold + +\backslash +newcommand{ +\backslash +FigBesBeg}[1][1.0]{% +\begin_inset Newline newline +\end_inset + + +\begin_inset Phantom HPhantom +status open + +\begin_layout Plain Layout +\begin_inset space ~ +\end_inset + + +\end_layout + +\end_inset + + +\backslash +let +\backslash +MyFigure +\backslash +figure +\begin_inset Newline newline +\end_inset + + +\begin_inset Phantom HPhantom +status open + +\begin_layout Plain Layout +\begin_inset space ~ +\end_inset + + +\end_layout + +\end_inset + + +\backslash +let +\backslash +MyEndfigure +\backslash +endfigure +\begin_inset Newline newline +\end_inset + + +\begin_inset Phantom HPhantom +status open + +\begin_layout Plain Layout +\begin_inset space ~ +\end_inset + + +\end_layout + +\end_inset + + +\backslash +renewenvironment{figure}[1]{ +\backslash +begin{SCfigure}[#1]##1}{ +\backslash +end{SCfigure}}} +\end_layout + +\begin_layout Standard + +\series bold + +\backslash +newcommand{ +\backslash +FigBesEnd}{% +\begin_inset Newline newline +\end_inset + + +\begin_inset Phantom HPhantom +status open + +\begin_layout Plain Layout +\begin_inset space ~ +\end_inset + + +\end_layout + +\end_inset + + +\backslash +let +\backslash +figure +\backslash +MyFigure +\begin_inset Newline newline +\end_inset + + +\begin_inset Phantom HPhantom +status open + +\begin_layout Plain Layout +\begin_inset space ~ +\end_inset + + +\end_layout + +\end_inset + + +\backslash +let +\backslash +endfigure +\backslash +MyEndfigure} +\end_layout + +\begin_layout Standard +\noindent +\begin_inset CommandInset line +LatexCommand rule +offset "0.5ex" +width "100line%" +height "1pt" + +\end_inset + + +\end_layout + +\begin_layout Standard +The commands allow you to redefine the floats so that the caption is set + on the side. + For figure floats use the command +\end_layout + +\begin_layout Standard + +\series bold + +\backslash +FigBesBeg +\end_layout + +\begin_layout Standard +in TeX-Code before the float. + And insert the command +\end_layout + +\begin_layout Standard + +\series bold + +\backslash +FigBesEnd +\end_layout + +\begin_layout Standard +in TeX-Code at the point where you want to get back to the original float + definition. +\end_layout + +\begin_layout Standard +For table floats use the corresponding commands +\end_layout + +\begin_layout Standard + +\series bold + +\backslash +TabBesBeg +\series default + and +\series bold + +\backslash +TabBesEnd +\end_layout + +\begin_layout Standard +Figure +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "fig:cap-beside-fig" + +\end_inset + + and Table +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "tab:cap-beside-tab" + +\end_inset + + are examples where the caption is set beside. +\end_layout + +\begin_layout Standard +You can see in the examples that the caption text appears at the top of + the floats for table floats and at the bottom for figure floats. + To change this, you can use the command +\end_layout + +\begin_layout Standard + +\series bold + +\backslash +sidecaptionvpos{float type}{placement} +\end_layout + +\begin_layout Standard +in the document preamble or in TeX-Code before the float. + The float type is either +\family sans +figure +\family default + or +\family sans +table +\family default +, the placement can be +\begin_inset Quotes eld +\end_inset + + +\family sans +t +\family default + +\begin_inset Quotes erd +\end_inset + + for top, +\begin_inset Quotes eld +\end_inset + + +\family sans +c +\family default + +\begin_inset Quotes erd +\end_inset + + for center, or +\begin_inset Quotes eld +\end_inset + + +\family sans +b +\family default + +\begin_inset Quotes erd +\end_inset + + for bottom. + To have for example the caption of figure floats vertically centered, use + the command +\end_layout + +\begin_layout Standard + +\series bold + +\backslash +sidecaptionvpos{figure}{c} +\end_layout + +\begin_layout Standard +This was used for Figure +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "fig:cap-beside-fig-2" + +\end_inset + +. +\end_layout + +\begin_layout Standard +\begin_inset VSpace medskip +\end_inset + + +\end_layout + +\begin_layout Standard +The default caption width is the width of the image/table. + For thin image/tables, like in Table +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "tab:cap-beside-tab" + +\end_inset + +, this leads to captions that are too thin. + You can increase the width by specifying a factor that will be multiplied + with the image/table width to get the caption width. + The caption width will automatically be recalculated in case it would protrude + over the page or column margin due to the specified width. + The +\emph on +factor +\emph default + can either be given as optional argument for +\series bold + +\backslash +FigBesBeg +\series default +: +\end_layout + +\begin_layout Standard + +\series bold + +\backslash +FigBesBeg[factor] +\end_layout + +\begin_layout Standard +or in the definition of +\series bold + +\backslash +FigBesBeg +\series default + by replacing the +\series bold +1.0 +\series default + with another value. + If you do the latter, your factor will be the default if +\series bold + +\backslash +FigBesBeg +\series default + is used without an argument. + For Table +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "tab:cap-beside-tab-wider" + +\end_inset + + the factor 5 was used. +\end_layout + +\begin_layout Standard +\begin_inset Note Greyedout +status open + +\begin_layout Plain Layout + +\series bold +Note: +\series default + For floats with captions set beside, you cannot use the float placement + option +\family sans +Here +\begin_inset space ~ +\end_inset + +definitely +\family default + because it is not supported by +\series bold +sidecap +\series default +. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace medskip +\end_inset + +For more information about the package +\series bold +sidecap +\series default + we refer to its documentation +\begin_inset CommandInset citation +LatexCommand cite +key "sidecap" + +\end_inset + +. +\end_layout + +\begin_layout Standard +\begin_inset Note Greyedout +status open + +\begin_layout Plain Layout + +\series bold +Note: +\series default + The LaTeX-package +\series bold +hypcap +\series default + +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +LaTeX-packages ! hypcap +\end_layout + +\end_inset + +, described in section +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "sub:Reference-Position" + +\end_inset + +, has no effect on floats with the caption set beside. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +FigBesBeg +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Float figure +wide false +sideways false +status open + +\begin_layout Plain Layout +\begin_inset Graphics + filename clipart/escher-lsd.eps + scale 75 + scaleBeforeRotation + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\begin_inset Caption + +\begin_layout Plain Layout +\begin_inset CommandInset label +LatexCommand label +name "fig:cap-beside-fig" + +\end_inset + +This is a caption beside a figure. +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +FigBesEnd +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +TabBesBeg +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Float table +wide false +sideways false +status open + +\begin_layout Plain Layout +\begin_inset Caption + +\begin_layout Plain Layout +\begin_inset CommandInset label +LatexCommand label +name "tab:cap-beside-tab" + +\end_inset + +This is a caption beside a table. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\begin_inset Tabular + + + + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +a +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +b +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +c +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +d +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +e +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +f +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +g +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +h +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +i +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +j +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +TabBesEnd +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +sidecaptionvpos{figure}{c} +\end_layout + +\end_inset + + +\begin_inset Float figure +wide false +sideways false +status open + +\begin_layout Plain Layout +\begin_inset Graphics + filename clipart/escher-lsd.eps + scale 75 + scaleBeforeRotation + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\begin_inset Caption + +\begin_layout Plain Layout +\begin_inset CommandInset label +LatexCommand label +name "fig:cap-beside-fig-2" + +\end_inset + +This is a vertically centered caption beside a figure. +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +FigBesEnd +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +TabBesBeg[5] +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Float table +wide false +sideways false +status open + +\begin_layout Plain Layout +\begin_inset Caption + +\begin_layout Plain Layout +\begin_inset CommandInset label +LatexCommand label +name "tab:cap-beside-tab-wider" + +\end_inset + +This is a caption is wider than the one in Table +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "tab:cap-beside-tab" + +\end_inset + +. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\begin_inset Tabular + + + + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +a +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +b +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +c +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +d +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +e +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +f +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +g +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +h +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +i +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +j +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +TabBesEnd +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +else +\end_layout + +\end_inset + + +\begin_inset Note Note +status open + +\begin_layout Plain Layout +The following will be displayed when the LaTeX-package +\series bold +sidecap +\series default + is not installed: +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +You need to install the LaTeX-package +\series bold +sidecap +\series default + to see the following part of this section in the output. +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +fi +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +Listings of Floats +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +Floats ! Float Lists +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Similar to the table of contents where the sections of the document are + listed, there are listings for all float types, like the figures of the + documents. + You can insert them via the +\family sans +Insert\SpecialChar \menuseparator +List +\begin_inset space ~ +\end_inset + +/ +\begin_inset space ~ +\end_inset + +TOC +\family default + sub menus. +\end_layout + +\begin_layout Standard +The list entries are the float captions or its short title, the float number, + and the page number where they appear in the document. +\end_layout + +\begin_layout Standard +You can find the list of figures and tables at the end of this document. +\end_layout + +\begin_layout Chapter +Notes +\end_layout + +\begin_layout Section +LyX Notes +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +Notes ! LyX Notes +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Notes are inserted with the toolbar button +\family sans + +\begin_inset Info +type "icon" +arg "note-insert" +\end_inset + + +\family default + or the menu +\family sans +Insert\SpecialChar \menuseparator +Note +\family default +. + There are three types of notes: +\end_layout + +\begin_layout Description +LyX +\begin_inset space ~ +\end_inset + +Note This note type is for internal notes that won't appear in the output. + Its note-box looks like this: +\begin_inset Newline newline +\end_inset + + +\begin_inset Newline newline +\end_inset + + +\begin_inset Graphics + filename clipart/LyXNoteImageQt4.png + display false + scale 85 + scaleBeforeRotation + +\end_inset + + +\begin_inset Note Note +status open + +\begin_layout Plain Layout +This is text in a note box that doesn't appear in the output. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Description +Comment This note also doesn't appear in the output but it appears as LaTeX-comm +ent, when you export the document to LaTeX via the menu +\family sans +File\SpecialChar \menuseparator +Export\SpecialChar \menuseparator +LaTeX (pdflatex) / (plain) +\family default +. + Its note-box looks like this: +\begin_inset Newline newline +\end_inset + + +\begin_inset Newline newline +\end_inset + + +\begin_inset Graphics + filename clipart/CommentNoteImageQt4.png + display false + scale 85 + scaleBeforeRotation + +\end_inset + + +\begin_inset Note Comment +status open + +\begin_layout Plain Layout +This is text in a note box that only appears as comment in LaTeX-files. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Description +Greyed +\begin_inset space ~ +\end_inset + +Out This note will appear in the output as grey text. + Its note-box looks like this: +\begin_inset Newline newline +\end_inset + + +\begin_inset Newline newline +\end_inset + + +\begin_inset Graphics + filename clipart/GreyedOutNoteImageQt4.png + display false + scale 85 + scaleBeforeRotation + +\end_inset + + +\begin_inset Newline newline +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +renewenvironment{lyxgreyedout} +\end_layout + +\begin_layout Plain Layout + +{ +\backslash +textcolor[gray]{0.8} +\backslash +bgroup}{ +\backslash +egroup} +\end_layout + +\end_inset + + +\begin_inset Note Greyedout +status open + +\begin_layout Plain Layout +This is text +\begin_inset Foot +status open + +\begin_layout Plain Layout +This is an example footnote within a greyed out note. +\end_layout + +\end_inset + + of a comment that appears in the output as grey text. +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +renewenvironment{lyxgreyedout} +\end_layout + +\begin_layout Plain Layout + +{ +\backslash +textcolor{blue} +\backslash +bgroup}{ +\backslash +egroup} +\end_layout + +\end_inset + + +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +The greyed out note is here redefined to show it with the original LyX definitio +n because greyed out notes are redefined in the preamble of this document, + as described below, to have blue text. +\end_layout + +\end_inset + + +\begin_inset Newline newline +\end_inset + + +\begin_inset Newline newline +\end_inset + +As you can see in the example, the first line of greyed out notes is a bit + indented and greyed out notes can have footnotes. +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + +When you use the toolbar button +\family sans + +\begin_inset Info +type "icon" +arg "note-insert" +\end_inset + + +\family default + to insert notes, a +\family sans +LyX +\begin_inset space ~ +\end_inset + +Note +\family default + is inserted. + You can switch between the five note types by right-clicking on the note-box. + +\family roman +\series medium +\bar no +If you want to turn existing text into a note, mark it and click on the + note +\family default +\series default +\bar default + toolbar +\family roman +\series medium +\bar no +button +\family default +\series default +\bar default +. + To change a note to text, press the backspace key when the cursor is in + the first position of a note, or press the delete key when the cursor is + in the very last position of the note, respectively. +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + +You can change the text color of the greyed out notes in the menu +\family sans +Document\SpecialChar \menuseparator +Settings\SpecialChar \menuseparator +Colors +\family default +. +\end_layout + +\begin_layout Section +Footnotes +\begin_inset CommandInset label +LatexCommand label +name "sec:Footnotes" + +\end_inset + + +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +Notes ! Footnotes +\end_layout + +\end_inset + + +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +Footnotes +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Footnotes can be inserted using the toolbar button +\family sans + +\begin_inset Info +type "icon" +arg "footnote-insert" +\end_inset + + +\family default + or the menu +\family sans +Insert\SpecialChar \menuseparator +Footnote +\family default +. + +\family roman +\series medium +\bar no +You'll see +\family default +\series default +\bar default + then the following footnote-box: +\begin_inset Graphics + filename clipart/footnoteQt4.png + scale 80 + scaleBeforeRotation + +\end_inset + + +\family roman +\series medium +\bar no +where you can enter the footnote text. + If you want to turn existing text into a footnote, mark it and click on + the footnote +\family default +\series default +\bar default + toolbar +\family roman +\series medium +\bar no +button +\family default +\series default +\bar default +. + To change a +\family roman +\series medium +\bar no +footnote +\family default +\series default +\bar default + to text, press the +\family sans +Backspace +\family default + key when the cursor is in the first position of a +\family roman +\series medium +\bar no +footnote +\family default +\series default +\bar default +, or press the +\family sans +Delete +\family default + key when the cursor is in the very last position of the +\family roman +\series medium +\bar no +footnote +\family default +\series default +\bar default +, respectively. +\end_layout + +\begin_layout Standard +Here is an example footnote: +\family roman +\series medium +\bar no + +\begin_inset Foot +status open + +\begin_layout Plain Layout +\begin_inset CommandInset label +LatexCommand label +name "foot:This-is-an" + +\end_inset + +This is an example footnote. +\end_layout + +\end_inset + + +\family default +\series default +\bar default + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +newcounter{MyRepeatFoot} +\end_layout + +\begin_layout Plain Layout + + +\backslash +setcounter{MyRepeatFoot}{ +\backslash +thefootnote} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +The footnote will appear in the output as a superscript number at the text + position where the footnote box is placed. + The footnote text is placed at the bottom of the current page. + The footnote number is calculated by LaTeX; the numbers are consecutive. + It depends on your document-class, whether the footnote number is reset + for every chapter. +\end_layout + +\begin_layout Standard +Footnotes can be referenced like floats: Insert a label into the footnote + and cross-reference this label in the text as described in section +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Referencing-Floats" + +\end_inset + +. +\begin_inset Newline newline +\end_inset + +This is a cross-reference of Footnote +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "foot:This-is-an" + +\end_inset + +. +\end_layout + +\begin_layout Standard +\begin_inset VSpace defskip +\end_inset + +Footnotes in tables are not printed by LaTeX due to technical reasons. + However there exists another method to print them: Instead of the footnote + the command +\series bold + +\backslash +footnotemark{} +\series default + is inserted as TeX-code. + The text of the footnote is entered as an argument of the TeX-code command + +\series bold + +\backslash +footnotetext +\series default + after the table. +\begin_inset Newline newline +\end_inset + +This was done for the following table with the command +\end_layout + +\begin_layout Standard + +\series bold + +\backslash +footnotetext{ +\series default +Printed table footnote. +\series bold +} +\end_layout + +\begin_layout Standard +\begin_inset Tabular + + + + + +\begin_inset Text + +\begin_layout Plain Layout +This an example text. +\begin_inset Foot +status open + +\begin_layout Plain Layout +This footnote will not be printed! +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +This an example text. +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +footnotemark{} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + + + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +footnotetext{ +\end_layout + +\end_inset + +Printed table footnote. +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Footnotes in longtables are described in section +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "sub:Footnotes-in-Longtables" + +\end_inset + +. +\end_layout + +\begin_layout Standard +Footnotes in minipage boxes are printed, but inside the box and with a different + numbering because a minipage box is like a page inside a page. + (For more about minipages, see section +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Minipages" + +\end_inset + +.) To get a footnote in the minipage that is output at the bottom of the + page like normal footnotes, also use the method of +\series bold + +\backslash +footnotemark{} +\series default + and +\series bold + +\backslash +footnotetext +\series default +. +\end_layout + +\begin_layout Standard +\begin_inset Box Frameless +position "t" +hor_pos "c" +has_inner_box 1 +inner_pos "t" +use_parbox 0 +use_makebox 0 +width "100col%" +special "none" +height "1in" +height_special "totalheight" +status open + +\begin_layout Plain Layout +This an example text in a minipage. +\begin_inset Foot +status open + +\begin_layout Plain Layout +Footnote in the minipage. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +This an example text in a minipage. +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +footnotemark{} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +footnotetext{ +\end_layout + +\end_inset + +Footnote outside the minipage. +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace defskip +\end_inset + + +\end_layout + +\begin_layout Standard +To refer to the same footnote several times without printing the footnote + text every time, use the command +\series bold + +\backslash +footnotemark[number] +\series default + in TeX-code. +\begin_inset Newline newline +\end_inset + +As you do not know the number of the repeating footnote while you are writing + the text, you have to store its number. + For the following footnote mark example, these commands were inserted in + TeX-code after Footnote +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "foot:This-is-an" + +\end_inset + + to store the footnote number: +\end_layout + +\begin_layout Standard + +\series bold + +\backslash +newcounter{MyRepeatFoot} +\begin_inset Newline newline +\end_inset + + +\backslash +setcounter{MyRepeatFoot}{ +\backslash +thefootnote} +\end_layout + +\begin_layout Standard +The footnote mark was then created with this command: +\end_layout + +\begin_layout Standard + +\series bold + +\backslash +footnotemark[ +\backslash +theMyRepeatFoot] +\end_layout + +\begin_layout Standard +Here is a repeated footnote: +\family roman +\series medium +\bar no + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +footnotemark[ +\backslash +theMyRepeatFoot] +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +If you want to repeat the previous footnote, you can omit the storage of + the footnote number and just use this command instead: +\end_layout + +\begin_layout Standard + +\series bold + +\backslash +footnotemark[ +\backslash +thefootnote] +\end_layout + +\begin_layout Standard +Here is another repeated footnote: +\family roman +\series medium +\bar no + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +footnotemark[ +\backslash +thefootnote] +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Subsection +Footnote Numbering +\begin_inset CommandInset label +LatexCommand label +name "sub:Footnote-Numbering" + +\end_inset + + +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +Footnotes ! Numbering +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +To reset the footnote number back to 1 after each section +\family roman +, add this command to your document preamble: +\end_layout + +\begin_layout Standard + +\series bold + +\backslash +@addtoreset{footnote}{section} +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + +The following preamble command changes the footnote numbering style to small + roman numerals: +\end_layout + +\begin_layout Standard + +\series bold + +\backslash +renewcommand{ +\backslash +thefootnote}{ +\backslash +roman{footnote}} +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +renewcommand{ +\backslash +thefootnote}{ +\backslash +roman{footnote}} +\end_layout + +\end_inset + + This is a footnote with roman numbering: +\begin_inset Foot +status open + +\begin_layout Plain Layout +This is an example footnote with roman numbering. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +To change the numbering style to capital roman numerals replace in the command + above +\series bold + +\backslash +roman +\series default + by +\series bold + +\backslash +Roman +\series default +. + To +\begin_inset Quotes eld +\end_inset + +number +\begin_inset Quotes erd +\end_inset + + footnotes with capital or small Latin letters use +\series bold + +\backslash +Alph +\series default + or +\series bold + +\backslash +alph +\series default +, respectively. + To +\begin_inset Quotes eld +\end_inset + +number +\begin_inset Quotes erd +\end_inset + + footnotes with symbols use +\series bold + +\backslash +fnsymbol +\series default +. +\end_layout + +\begin_layout Standard +\begin_inset Note Greyedout +status open + +\begin_layout Plain Layout + +\series bold +Note: +\series default + You can only number 26 footnotes with Latin letters, because this numbering + is limited to single letters. +\end_layout + +\end_inset + + +\begin_inset Newline newline +\end_inset + + +\begin_inset Note Greyedout +status open + +\begin_layout Plain Layout + +\series bold +Note: +\series default + You can only number 9 footnotes with symbols. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +To return to the default numbering style after you have changed to another + one, use +\series bold + +\backslash +arabic +\series default + instead of +\series bold + +\backslash +roman +\series default + in the command above. +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +renewcommand{ +\backslash +thefootnote}{ +\backslash +arabic{footnote}} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + + +\end_layout + +\begin_layout Standard +If you want to have footnotes numbered in the scheme +\begin_inset Quotes eld +\end_inset + +chapter.footnote +\begin_inset Quotes erd +\end_inset + +, add the following command to your document preamble: +\end_layout + +\begin_layout Standard + +\series bold + +\backslash +numberwithin{footnote}{chapter} +\end_layout + +\begin_layout Standard +To be able to use the command +\series bold + +\backslash +numberwithin +\series default +, set in the tab +\family sans +Math +\begin_inset space ~ +\end_inset + +Options +\family default + in the document settings the option +\family sans +Use +\begin_inset space ~ +\end_inset + +AMS +\begin_inset space ~ +\end_inset + +math +\begin_inset space ~ +\end_inset + +package +\family default +. +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +numberwithin{footnote}{chapter} +\end_layout + +\end_inset + +This is another example footnote: +\series bold + +\begin_inset Foot +status open + +\begin_layout Plain Layout +This is a footnote numbered in the scheme +\begin_inset Quotes eld +\end_inset + +chapter.footnote +\begin_inset Quotes erd +\end_inset + +. +\end_layout + +\end_inset + + +\series default + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +renewcommand{ +\backslash +thefootnote}{ +\backslash +arabic{footnote}} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Note Greyedout +status open + +\begin_layout Plain Layout + +\series bold +Note: +\series default + +\series bold + +\backslash +numberwithin +\series default + always prints out the footnote number as arabic number; previous redefinitions + to get non-arabic numbers are overwritten. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +So to get for example the scheme +\begin_inset Quotes eld +\end_inset + +chapter. +\backslash +Roman{footnote} +\begin_inset Quotes erd +\end_inset + +, use this command instead of +\series bold + +\backslash +numberwithin +\series default +: +\end_layout + +\begin_layout Standard + +\series bold + +\backslash +renewcommand{ +\backslash +thefootnote}{ +\backslash +thechapter. +\backslash +Roman{footnote}} +\end_layout + +\begin_layout Subsection +Footnote Placement +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +Footnotes ! Placement +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +If you have several footnotes in one page, they appear without vertical + space between them at the bottom of the page. + To make them more readable you can e. +\begin_inset space \thinspace{} +\end_inset + +g. +\begin_inset space \space{} +\end_inset + +add 1.5 +\begin_inset space \thinspace{} +\end_inset + +mm space with the following preamble command: +\end_layout + +\begin_layout Standard + +\series bold + +\backslash +let +\backslash +myFoot +\backslash +footnote +\begin_inset Newline newline +\end_inset + + +\backslash +renewcommand{ +\backslash +footnote}[1]{ +\backslash +myFoot{#1 +\backslash +vspace{1.5mm}}} +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + +In a two-column document the footnotes appear at the bottom of every column, + see Figure +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "fig:Standard-footnote-placement" + +\end_inset + +. + If the footnotes should only appear at the bottom of the right column, + as in Figure +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "fig:Footnote-placement-in" + +\end_inset + +, use the LaTeX-package +\series bold +ftnright +\series default + +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +LaTeX-packages ! ftnright +\end_layout + +\end_inset + + with this command in the document preamble: +\end_layout + +\begin_layout Standard + +\series bold + +\backslash +usepackage{ftnright} +\end_layout + +\begin_layout Standard +\begin_inset Float figure +placement !h +wide false +sideways false +status open + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +framebox{ +\end_layout + +\end_inset + + +\begin_inset Graphics + filename clipart/without_fntright.pdf + width 100col% + scaleBeforeRotation + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\begin_inset Caption + +\begin_layout Plain Layout +\begin_inset CommandInset label +LatexCommand label +name "fig:Standard-footnote-placement" + +\end_inset + +Standard footnote placement in two-column documents. +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Float figure +placement !h +wide false +sideways false +status open + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +framebox{ +\end_layout + +\end_inset + + +\begin_inset Graphics + filename clipart/with_fntright.pdf + width 100col% + scaleBeforeRotation + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\begin_inset Caption + +\begin_layout Plain Layout +\begin_inset CommandInset label +LatexCommand label +name "fig:Footnote-placement-in" + +\end_inset + +Footnote placement in two-column documents when the LaTeX-package +\series bold +ftnright +\series default + is used. +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + +In some scientific literature it is usual to collect the footnotes and print + them in a separate paragraph at the end of a section, as in Figure +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "fig:Endnotes" + +\end_inset + +. + They are then called +\begin_inset Quotes eld +\end_inset + +endnotes +\begin_inset Quotes erd +\end_inset + +. +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +Endnotes +\end_layout + +\end_inset + + To use endnotes instead of footnotes in your document, load in the menu + +\family sans +Document\SpecialChar \menuseparator +Settings\SpecialChar \menuseparator +Modules +\family default +the module +\family sans +Foot +\begin_inset space ~ +\end_inset + +to +\begin_inset space ~ +\end_inset + +End +\family default +. + To insert the collected footnotes, insert the command +\end_layout + +\begin_layout Standard + +\series bold + +\backslash +theendnotes +\end_layout + +\begin_layout Standard +in TeX-Code at the end of a section or chapter. +\end_layout + +\begin_layout Standard +\begin_inset Float figure +wide false +sideways false +status open + +\begin_layout Plain Layout +\align center +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +framebox{ +\end_layout + +\end_inset + + +\begin_inset Graphics + filename clipart/endnotes.pdf + scaleBeforeRotation + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\begin_inset Caption + +\begin_layout Plain Layout +\begin_inset CommandInset label +LatexCommand label +name "fig:Endnotes" + +\end_inset + +Endnotes – footnotes are printed in a separate paragraph at the end of sections + or chapters. +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace medskip +\end_inset + +The paragraph heading for the endnotes isn't automatically translated into + the document language, this must be done manually. + The following preamble command translates the default English +\begin_inset Quotes eld +\end_inset + +Notes +\begin_inset Quotes erd +\end_inset + + into the German +\begin_inset Quotes eld +\end_inset + +Anmerkungen +\begin_inset Quotes erd +\end_inset + +: +\end_layout + +\begin_layout Standard + +\series bold + +\backslash +renewcommand{ +\backslash +notesname}{Anmerkungen} +\end_layout + +\begin_layout Standard +\begin_inset VSpace medskip +\end_inset + +The numbering of endnotes can be changed like the footnote numbering as + described in section +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "sub:Footnote-Numbering" + +\end_inset + +; just replace the command +\series bold + +\backslash +thefootnote +\series default + by +\series bold + +\backslash +theendnote +\series default +. + To reset the endnote number use the command +\series bold + +\backslash +@addtoreset +\series default + as described in section +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "sub:Footnote-Numbering" + +\end_inset + + and replace the command parameter +\series bold +footnote +\series default + by +\series bold +endnote +\series default +. +\end_layout + +\begin_layout Standard +For endnotes there is the command +\series bold + +\backslash +endnotemark[number] +\series default + similar to the command +\series bold + +\backslash +footnotemark +\series default +, that is described in section +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Footnotes" + +\end_inset + +. +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + +Footnotes can also be placed in the page margin and the footnote text alignment + can be changed, see the LaTeX-package +\series bold +footmisc +\series default + +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +LaTeX-packages ! footmisc +\end_layout + +\end_inset + +, +\begin_inset CommandInset citation +LatexCommand cite +key "footmisc" + +\end_inset + + for more information about this. +\end_layout + +\begin_layout Standard +For various further footnote formatting issues have a look at LaTeX-books, + +\begin_inset CommandInset citation +LatexCommand cite +key "latexcompanion,latexguide,latexbook" + +\end_inset + +. + If you are using a +\series bold +KOMA-Script +\series default + +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +LaTeX-packages ! KOMA-Script +\end_layout + +\end_inset + + document class, you can adjust all footnote settings using class-specific + commands, see +\begin_inset CommandInset citation +LatexCommand cite +key "KOMA-Script" + +\end_inset + +. +\end_layout + +\begin_layout Section +Margin Notes +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +Notes ! Margin Notes +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Margin notes look and behave in LyX like footnotes. + They are inserted via the menu +\family sans +Insert\SpecialChar \menuseparator +Marginal +\begin_inset space ~ +\end_inset + +Note +\family default + or the toolbar button +\family sans + +\begin_inset Info +type "icon" +arg "marginalnote-insert" +\end_inset + + +\family default +. + A grey +\family roman +\series medium +box with the +\family default +\series default + red +\family roman +\series medium +label +\begin_inset Quotes eld +\end_inset + +margin +\begin_inset Quotes erd +\end_inset + + appears where you can enter the text of the margin note. +\end_layout + +\begin_layout Standard +At the side is an example margin note. + +\family roman +\series medium + +\begin_inset Marginal +status open + +\begin_layout Plain Layout +This is a margin note. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Margin notes appear at the right side in single-sided documents. + In double-sided documents they appear in the outer margin – left on even + pages, right on odd pages. + The text of margin notes is aligned opposite to the outer margin – right-aligne +d when the note appears in the left margin. + The first line of the margin note is placed at the position of the text + line where it is inserted in the document. +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + +To place the margin note in the inner margin, add the command +\end_layout + +\begin_layout Standard + +\series bold + +\backslash +reversemarginpar +\end_layout + +\begin_layout Standard +in TeX-Code before a margin note. + The new placement is valid for all subsequent margin notes. + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +reversemarginpar +\end_layout + +\end_inset + + +\begin_inset Marginal +status open + +\begin_layout Plain Layout +This is a margin note in the inner margin. +\end_layout + +\end_inset + + +\series bold + +\begin_inset Newline newline +\end_inset + + +\series default + +\begin_inset Note Greyedout +status open + +\begin_layout Plain Layout + +\series bold +Note: +\series default + There is often not enough space in the inner margin so that the notes are + not correctly displayed in the output. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +To return to the default placement insert the command +\end_layout + +\begin_layout Standard + +\series bold + +\backslash +normalmarginpar +\end_layout + +\begin_layout Standard +in TeX-Code. +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +normalmarginpar +\end_layout + +\end_inset + + +\begin_inset Note Greyedout +status open + +\begin_layout Plain Layout + +\series bold +Note: +\series default + The command is ignored when it is within a paragraph where also the command + +\series bold + +\backslash +reversemarginpar +\series default + is inserted. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + + +\family roman +\series medium + +\begin_inset Marginal +status open + +\begin_layout Plain Layout +AVeryLongMarginParWord that isn't hyphenated. +\end_layout + +\end_inset + + +\family default +\series default + Similar to the case described in section +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "sub:Multiple-Lines-in" + +\end_inset + +, long words cannot be hyphenated when they are the first word in a margin + note. + To avoid this, insert 0 +\begin_inset space \thinspace{} +\end_inset + +pt horizontal space before the word +\family roman +\series medium +. + +\begin_inset Marginal +status open + +\begin_layout Plain Layout +\begin_inset space \hspace*{} +\length 0pt +\end_inset + +AVeryLongMarginParWord that is hyphenated. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Note Greyedout +status open + +\begin_layout Plain Layout + +\series bold +Note: +\series default + Margin notes can normally not be used inside tables, floats, and footnotes. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ifmarginnote +\end_layout + +\end_inset + + +\begin_inset Note Note +status open + +\begin_layout Plain Layout +The following section will only be displayed when the LaTeX-package +\series bold +marginnote +\series default + is installed. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +This restriction can be evaded by using the LaTeX-package +\series bold +marginnote +\series default + +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +LaTeX-packages ! marginnote +\end_layout + +\end_inset + +. + By adding these two lines to your document preamble, the command used by + LyX for margin notes is redefined to use the command provided by the +\series bold +marginnote +\series default +-package: +\end_layout + +\begin_layout Standard + +\series bold + +\backslash +usepackage{marginnote} +\begin_inset Newline newline +\end_inset + + +\backslash +let +\backslash +marginpar +\backslash +marginnote +\end_layout + +\begin_layout Standard +This is also used in this document because +\series bold +marginnote +\series default + has another useful feature: You can set a vertical offset for the note. + This is often needed when too many margin notes are too close together + or for a better page layout. + The offset is set in LyX as TeX-Code directly after the margin note in + the scheme +\end_layout + +\begin_layout Standard + +\series bold +[offset] +\end_layout + +\begin_layout Standard +where the offset is a length with one of the units listed in Table +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "tab:Units" + +\end_inset + +. + A negative value shifts the note up, a positive value shifts it down. + +\family roman +\series medium +For example the margin note beside this text line is shifted up 1.5 +\begin_inset space \thinspace{} +\end_inset + +cm with the TeX-Code-command +\begin_inset Quotes eld +\end_inset + + +\family default +\series bold +[-1.5cm] +\family roman +\series medium + +\begin_inset Quotes erd +\end_inset + + +\begin_inset Marginal +status open + +\begin_layout Plain Layout +This margin note is shifted up 1.5 +\begin_inset space \thinspace{} +\end_inset + +cm from its original position. +\end_layout + +\end_inset + + +\family default +\series default + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +[-1.5cm] +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace medskip +\end_inset + +With +\series bold +marginnote +\series default + you can also change the alignment of the text in the margin note. + For example the commands +\end_layout + +\begin_layout Standard + +\series bold + +\backslash +renewcommand*{ +\backslash +raggedleftmarginnote}{ +\backslash +centering} +\begin_inset Newline newline +\end_inset + + +\backslash +renewcommand*{ +\backslash +raggedrightmarginnote}{ +\backslash +centering} +\end_layout + +\begin_layout Standard +set the alignment to centered. + +\series bold + +\backslash +raggedleftmarginnote +\series default + denotes margin notes that appear at the left side. +\family roman +\series medium + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +renewcommand*{ +\backslash +raggedleftmarginnote}{ +\backslash +centering} +\end_layout + +\begin_layout Plain Layout + + +\backslash +renewcommand*{ +\backslash +raggedrightmarginnote}{ +\backslash +centering} +\end_layout + +\end_inset + + +\begin_inset Marginal +status open + +\begin_layout Plain Layout +The text of this margin note is centered. +\end_layout + +\end_inset + + +\family default +\series default + The default is +\end_layout + +\begin_layout Standard + +\series bold + +\backslash +renewcommand*{ +\backslash +raggedleftmarginnote}{ +\backslash +raggedleft} +\begin_inset Newline newline +\end_inset + + +\backslash +renewcommand*{ +\backslash +raggedrightmarginnote}{ +\backslash +raggedright} +\family roman +\series medium + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +renewcommand*{ +\backslash +raggedleftmarginnote}{ +\backslash +raggedleft} +\end_layout + +\begin_layout Plain Layout + + +\backslash +renewcommand*{ +\backslash +raggedrightmarginnote}{ +\backslash +raggedright} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace medskip +\end_inset + +For the other features of +\series bold +marginnote +\series default + refer to its documentation +\begin_inset CommandInset citation +LatexCommand cite +key "marginnote" + +\end_inset + +. +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + +You can adjust the layout of margin notes by changing its definition. + To create for example a header for all margin notes with the underlined, + sans-serif, and bold header text +\begin_inset Quotes eld +\end_inset + + +\family sans +\series bold +\bar under +Attention! +\family default +\series default +\bar default + +\begin_inset Quotes erd +\end_inset + +, add this to your document preamble: +\end_layout + +\begin_layout Standard + +\series bold + +\backslash +let +\backslash +myMarginpar +\backslash +marginpar +\begin_inset Newline newline +\end_inset + + +\backslash +renewcommand{ +\backslash +marginpar}[1]{ +\backslash +myMarginpar{% +\begin_inset Newline newline +\end_inset + + +\begin_inset Phantom HPhantom +status open + +\begin_layout Plain Layout + +\series bold +\begin_inset space ~ +\end_inset + + +\end_layout + +\end_inset + + +\backslash +hspace{0pt} +\backslash +textsf{ +\backslash +textbf{ +\backslash +underbar{Attention!}}}% +\begin_inset Newline newline +\end_inset + + +\begin_inset Phantom HPhantom +status open + +\begin_layout Plain Layout + +\series bold +\begin_inset space ~ +\end_inset + + +\end_layout + +\end_inset + + +\backslash +vspace{1.5mm} +\backslash + +\backslash +#1}} +\end_layout + +\begin_layout Standard + +\family roman +\series medium +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +let +\backslash +myMarginpar +\backslash +marginpar +\end_layout + +\begin_layout Plain Layout + + +\backslash +renewcommand{ +\backslash +marginpar}[1]{ +\backslash +myMarginpar{% +\end_layout + +\begin_layout Plain Layout + + +\backslash +textsf{ +\backslash +textbf{ +\backslash +underbar{Attention!}}}% +\end_layout + +\begin_layout Plain Layout + + +\backslash +vspace{1.5mm} +\backslash + +\backslash +#1}} +\end_layout + +\end_inset + + +\begin_inset Marginal +status open + +\begin_layout Plain Layout +This is a margin note with a defined heading. +\end_layout + +\end_inset + + +\family default +\series default + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +[-1.5cm] +\end_layout + +\end_inset + + +\family roman +\series medium + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +renewcommand{ +\backslash +marginpar}[1]{ +\backslash +myMarginpar{#1}} +\end_layout + +\end_inset + + +\family default +\series default + +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +The margin note format is changed only for this example. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +else +\end_layout + +\end_inset + + +\begin_inset Note Note +status open + +\begin_layout Plain Layout +The following will be displayed when the LaTeX-package +\series bold +marginnote +\series default + is not installed: +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +You need to install the LaTeX-package +\series bold +marginnote +\series default + to see the following part of this section in the output. +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +fi +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Chapter +Boxes +\end_layout + +\begin_layout Section +Introduction +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +Boxes ! Introduction +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Boxes are used to format a block of text. + Boxes can be used to write documents with multiple languages, see section +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Minipages" + +\end_inset + +, to frame texts, see section +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Decoration" + +\end_inset + +, to prevent words from being hyphenated, see section +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Prevent-Hyphenation" + +\end_inset + +, to align text, see section +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "sub:Vertical-Alignment" + +\end_inset + +, or to set the background color of texts, see section +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Colored-Boxes" + +\end_inset + +. +\end_layout + +\begin_layout Standard +Boxes can be inserted with the menu +\family sans +Insert\SpecialChar \menuseparator +Box +\family default + or the toolbar button +\family sans + +\begin_inset Info +type "icon" +arg "box-insert Frameless" +\end_inset + + +\family default +. + A grey box with the label +\family sans +Box (Minipage) +\family default +: +\begin_inset Graphics + filename clipart/BoxInsetDefaultQt4.png + scale 85 + scaleBeforeRotation + +\end_inset + + will be inserted. + The box type can be specified by right-clicking on the box and selecting + +\family sans +Settings +\family default +. + The box dialog offers the +\family sans +Inner +\begin_inset space ~ +\end_inset + +Box +\family default + types +\family sans +Makebox +\family default +, +\family sans +Parbox +\family default + and +\family sans +Minipage +\family default +. + The type +\family sans +Minipage +\family default + is the default for new boxes and is explained in section +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Minipages" + +\end_inset + +; the type +\family sans +Parbox +\family default + is described in section +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Parboxes" + +\end_inset + + and the type +\family sans +Makebox +\family default + in +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Prevent-Hyphenation" + +\end_inset + +. +\end_layout + +\begin_layout Standard +Boxes are not numbered and can therefore not be referenced like floats or + footnotes. +\end_layout + +\begin_layout Standard +\begin_inset Note Greyedout +status open + +\begin_layout Plain Layout + +\series bold +Note: +\series default + Boxes must not be the item in an +\family sans +Itemize +\family default + or +\family sans +Description +\family default + environment. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Note Greyedout +status open + +\begin_layout Plain Layout + +\series bold +Note: +\series default + For an unknown reason you can only set the +\family sans +Inner +\begin_inset space ~ +\end_inset + +Box +\family default + type to +\family sans +None +\family default + when you use a framed box. + Boxes without an +\family sans +Inner +\begin_inset space ~ +\end_inset + +Box +\family default + type and without frames are explained in section +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Prevent-Hyphenation" + +\end_inset + +. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +Box Dialog +\begin_inset CommandInset label +LatexCommand label +name "sec:Box-Dialog" + +\end_inset + + +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +Boxes ! Box Dialog +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Subsection +Size +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +Boxes ! Size +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +In the box dialog you can adjust the box geometry in the fields +\family sans +Width +\family default + and +\family sans +Height +\family default +. + The available units for the geometry are explained in Table +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "tab:Units" + +\end_inset + +. + The field +\family sans +Height +\family default + offers the following additional sizes: +\end_layout + +\begin_layout Description +Depth This is the plain text +\begin_inset Quotes eld +\end_inset + +height +\begin_inset Quotes erd +\end_inset + +. + It ignores the total depth when there are multiple text lines in the box: +\begin_inset Newline newline +\end_inset + + +\begin_inset Newline newline +\end_inset + + +\begin_inset Newline newline +\end_inset + + +\begin_inset Box Boxed +position "c" +hor_pos "c" +has_inner_box 1 +inner_pos "c" +use_parbox 0 +use_makebox 0 +width "12col%" +special "none" +height "1in" +height_special "depth" +status collapsed + +\begin_layout Plain Layout +\align center +Box height set to 1 +\begin_inset space \thinspace{} +\end_inset + +Depth +\end_layout + +\end_inset + + +\begin_inset Newline newline +\end_inset + + +\begin_inset Newline newline +\end_inset + + +\end_layout + +\begin_layout Description +Height This is the height of the text that is inside the box. + A value of e. +\begin_inset space \thinspace{} +\end_inset + +g. +\begin_inset space \space{} +\end_inset + +2 for this size will set the box height to 2 +\begin_inset space ~ +\end_inset + +times the text height: +\begin_inset Box Boxed +position "c" +hor_pos "c" +has_inner_box 1 +inner_pos "c" +use_parbox 0 +use_makebox 0 +width "20col%" +special "none" +height "2in" +height_special "height" +status collapsed + +\begin_layout Plain Layout +\align center +Box height set to 2 +\begin_inset space \thinspace{} +\end_inset + +Height +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Description +Total +\begin_inset space ~ +\end_inset + +Height This is the Height +\begin_inset space \thinspace{} +\end_inset + ++ +\begin_inset space \thinspace{} +\end_inset + +Depth: +\begin_inset Box Boxed +position "c" +hor_pos "c" +has_inner_box 1 +inner_pos "c" +use_parbox 0 +use_makebox 0 +width "20col%" +special "none" +height "1in" +height_special "totalheight" +status collapsed + +\begin_layout Plain Layout +\align center +Box height set to 1 +\begin_inset space \thinspace{} +\end_inset + +Total +\begin_inset space ~ +\end_inset + +Height +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Description +Width This sets the width of the box as height: +\begin_inset Box Boxed +position "c" +hor_pos "c" +has_inner_box 1 +inner_pos "c" +use_parbox 0 +use_makebox 0 +width "12col%" +special "none" +height "1in" +height_special "width" +status collapsed + +\begin_layout Plain Layout +\align center +Box height set to 1 +\begin_inset space \thinspace{} +\end_inset + +Width +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Subsection +Alignment +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +Boxes ! Alignment +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +When you have chosen an +\family sans +Inner +\begin_inset space ~ +\end_inset + +Box +\family default +, the vertical box alignment can be: +\end_layout + +\begin_layout Description +Top This is an example text line. + +\begin_inset Box Boxed +position "t" +hor_pos "c" +has_inner_box 1 +inner_pos "c" +use_parbox 0 +use_makebox 0 +width "12col%" +special "none" +height "1in" +height_special "totalheight" +status collapsed + +\begin_layout Plain Layout +\align center +This box is top-aligned. +\end_layout + +\end_inset + + This is an example text line. +\end_layout + +\begin_layout Description +Middle This is an example text line. + +\begin_inset Box Boxed +position "c" +hor_pos "c" +has_inner_box 1 +inner_pos "c" +use_parbox 0 +use_makebox 0 +width "12col%" +special "none" +height "1in" +height_special "totalheight" +status collapsed + +\begin_layout Plain Layout +\align center +This box is middle-aligned. +\end_layout + +\end_inset + + This is an example text line. +\end_layout + +\begin_layout Description +Bottom This is an example text line. + +\begin_inset Box Boxed +position "b" +hor_pos "c" +has_inner_box 1 +inner_pos "c" +use_parbox 0 +use_makebox 0 +width "12col%" +special "none" +height "1in" +height_special "totalheight" +status collapsed + +\begin_layout Plain Layout +\align center +This box is bottom-aligned. +\end_layout + +\end_inset + + This is an example text line. +\end_layout + +\begin_layout Standard +\begin_inset Note Greyedout +status open + +\begin_layout Plain Layout + +\series bold +Note: +\series default + The vertical box alignment can be lost in the output when you have two + boxes in a line and one has e. +\begin_inset space \thinspace{} +\end_inset + +g. +\begin_inset space \space{} +\end_inset + +a shadow and the other one not. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +The horizontal box alignment can be set via LyX's paragraph dialog when + you set the box into its own paragraph. +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + +When you have chosen an +\family sans +Inner +\begin_inset space ~ +\end_inset + +Box +\family default +, the box content can be aligned vertically to: +\end_layout + +\begin_layout Description +top This is an example text line. + +\begin_inset Box Boxed +position "c" +hor_pos "c" +has_inner_box 1 +inner_pos "t" +use_parbox 0 +use_makebox 0 +width "12col%" +special "none" +height "1.5in" +height_special "totalheight" +status collapsed + +\begin_layout Plain Layout +\align center +This box text is top-aligned. +\end_layout + +\end_inset + + This is an example text line. +\end_layout + +\begin_layout Description +middle This is an example text line. + +\begin_inset Box Boxed +position "c" +hor_pos "c" +has_inner_box 1 +inner_pos "c" +use_parbox 0 +use_makebox 0 +width "12col%" +special "none" +height "1.5in" +height_special "totalheight" +status collapsed + +\begin_layout Plain Layout +\align center +This box text is middle-aligned. +\end_layout + +\end_inset + + This is an example text line. +\end_layout + +\begin_layout Description +bottom This is an example text line. + +\begin_inset Box Boxed +position "c" +hor_pos "c" +has_inner_box 1 +inner_pos "b" +use_parbox 0 +use_makebox 0 +width "12col%" +special "none" +height "1.5in" +height_special "totalheight" +status collapsed + +\begin_layout Plain Layout +\align center +This box text is bottom-aligned. +\end_layout + +\end_inset + + This is an example text line. +\end_layout + +\begin_layout Description +stretch This is an example text line. + +\begin_inset Box Boxed +position "c" +hor_pos "c" +has_inner_box 1 +inner_pos "s" +use_parbox 0 +use_makebox 0 +width "12col%" +special "none" +height "1.5in" +height_special "totalheight" +status collapsed + +\begin_layout Plain Layout +\align center +This box +\end_layout + +\begin_layout Plain Layout +\align center +text is +\end_layout + +\begin_layout Plain Layout +\align center +stretched. +\end_layout + +\end_inset + + This is an example text line. +\end_layout + +\begin_layout Standard +To stretch the box content, it must consist of more than one paragraph. + In the example above every text line is in an own paragraph. +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + +To align the box content horizontally you can use LyX's paragraph dialog + when you have chosen an +\family sans +Inner +\begin_inset space ~ +\end_inset + +Box +\family default +. +\end_layout + +\begin_layout Standard +\align center +\begin_inset Box Boxed +position "c" +hor_pos "c" +has_inner_box 1 +inner_pos "s" +use_parbox 0 +use_makebox 0 +width "15col%" +special "none" +height "1.25in" +height_special "totalheight" +status collapsed + +\begin_layout Plain Layout +\align left +This box +\end_layout + +\begin_layout Plain Layout +\align center +text is +\end_layout + +\begin_layout Plain Layout +\align right +stretched. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +If you have not set an +\family sans +Inner +\begin_inset space ~ +\end_inset + +Box +\family default +, you can align the box content horizontally in the box dialog. +\end_layout + +\begin_layout Standard +\align center +\begin_inset Box Boxed +position "c" +hor_pos "s" +has_inner_box 0 +inner_pos "s" +use_parbox 0 +use_makebox 0 +width "90col%" +special "none" +height "1.25in" +height_special "totalheight" +status collapsed + +\begin_layout Plain Layout +This box text is horizontally stretched. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Subsection +Decoration +\begin_inset CommandInset label +LatexCommand label +name "sec:Decoration" + +\end_inset + + +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +Boxes ! Decoration +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +The type of the box can be specified in the box dialog in the drop-down + list +\family sans +Decoration +\family default +. + The following types are possible: +\end_layout + +\begin_layout Description +No +\begin_inset space ~ +\end_inset + +frame Nothing is drawn. +\end_layout + +\begin_layout Description +Simple +\begin_inset space ~ +\end_inset + +rectangular +\begin_inset space ~ +\end_inset + +frame This draws a rectangular frame around the box. + The frame line thickness has the size of +\series bold + +\backslash +fboxrule +\series default +. + +\begin_inset Box Boxed +position "c" +hor_pos "c" +has_inner_box 1 +inner_pos "c" +use_parbox 0 +use_makebox 0 +width "20col%" +special "none" +height "1in" +height_special "totalheight" +status collapsed + +\begin_layout Plain Layout +\align center +Rectangular box +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Description +Oval +\begin_inset space ~ +\end_inset + +box, +\begin_inset space ~ +\end_inset + +thin This draws an oval frame around the box. + The frame line thickness has the size 0.4 +\begin_inset space \thinspace{} +\end_inset + +pt. + +\begin_inset Box ovalbox +position "c" +hor_pos "c" +has_inner_box 1 +inner_pos "c" +use_parbox 0 +use_makebox 0 +width "20col%" +special "none" +height "1in" +height_special "totalheight" +status collapsed + +\begin_layout Plain Layout +\align center +Oval box, thin +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Description +Oval +\begin_inset space ~ +\end_inset + +box, +\begin_inset space ~ +\end_inset + +thick This draws an oval frame around the box. + The frame line thickness has the size 0.8 +\begin_inset space \thinspace{} +\end_inset + +pt. + +\begin_inset Box Ovalbox +position "c" +hor_pos "c" +has_inner_box 1 +inner_pos "c" +use_parbox 0 +use_makebox 0 +width "20col%" +special "none" +height "1in" +height_special "totalheight" +status collapsed + +\begin_layout Plain Layout +\align center +Oval box, thick +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Description +Drop +\begin_inset space ~ +\end_inset + +shadow This draws a rectangular frame with a shadow around the box. + The frame line thickness has the size of +\series bold + +\backslash +fboxrule +\series default +, the shadow has a width of 4 +\begin_inset space \thinspace{} +\end_inset + +pt. + +\begin_inset Box Shadowbox +position "c" +hor_pos "c" +has_inner_box 1 +inner_pos "c" +use_parbox 0 +use_makebox 0 +width "20col%" +special "none" +height "1in" +height_special "totalheight" +status collapsed + +\begin_layout Plain Layout +\align center +Shadow box +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Description +Shaded +\begin_inset space ~ +\end_inset + +background This draws a box with a red background. + Unlike colored boxes +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout +see sec. +\begin_inset space \thinspace{} +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Colored-Boxes" + +\end_inset + + +\end_layout + +\end_inset + +, it always uses the whole column width and the box is set as its own paragraph. + +\begin_inset Box Shaded +position "t" +hor_pos "c" +has_inner_box 0 +inner_pos "t" +use_parbox 0 +use_makebox 0 +width "50col%" +special "none" +height "1in" +height_special "totalheight" +status collapsed + +\begin_layout Plain Layout +Shaded background box +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Description +Double +\begin_inset space ~ +\end_inset + +rectangular +\begin_inset space ~ +\end_inset + +frame This draws a double-line rectangular frame around the box. + The line thickness of the inner frame is 0.75 +\begin_inset space \thinspace{} +\end_inset + + +\series bold + +\backslash +fboxrule +\series default +, the thickness of the outer frame is 1.5 +\begin_inset space \thinspace{} +\end_inset + + +\series bold + +\backslash +fboxrule +\series default +. + The distance between the lines is 1.5 +\begin_inset space \thinspace{} +\end_inset + + +\series bold + +\backslash +fboxrule +\series default + +\begin_inset space \thinspace{} +\end_inset + ++ +\begin_inset space \thinspace{} +\end_inset + +0.5 +\begin_inset space \thinspace{} +\end_inset + +pt. + +\begin_inset Box Doublebox +position "c" +hor_pos "c" +has_inner_box 1 +inner_pos "c" +use_parbox 0 +use_makebox 0 +width "20col%" +special "none" +height "1in" +height_special "totalheight" +status collapsed + +\begin_layout Plain Layout +\align center +Double rectangular box +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + +LyX's box label will reflect the different frame types. + To be able to use all types, the LaTeX-package +\series bold +fancybox +\series default + +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +LaTeX-packages ! fancybox +\end_layout + +\end_inset + + must be installed. +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + +When you use the decoration +\family sans +simple rectangular frame +\family default + and no inner box, you can allow page breaks within a box. + Note that then, unlike other framed boxes, the frame always uses the whole + column width, the box is set as its own paragraph, and +\series bold + +\backslash +fboxrule +\series default + and +\series bold + +\backslash +fboxsep +\series default + have no effect on this box type. + The frame line thickness has the size of +\series bold + +\backslash +FrameRule +\series default +. + +\begin_inset Box Framed +position "t" +hor_pos "c" +has_inner_box 0 +inner_pos "t" +use_parbox 0 +use_makebox 0 +width "100col%" +special "none" +height "1in" +height_special "totalheight" +status collapsed + +\begin_layout Plain Layout +Allow page break box +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +Box Customization +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +Boxes ! Customization +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +The default value for the size +\series bold + +\backslash +fboxrule +\series default + is 0.4 +\begin_inset space \thinspace{} +\end_inset + +pt. + It can be changed with the following command in TeX-code to e. +\begin_inset space \thinspace{} +\end_inset + +g. +\begin_inset space \space{} +\end_inset + +2 +\begin_inset space \thinspace{} +\end_inset + +pt: +\end_layout + +\begin_layout Standard + +\series bold + +\backslash +setlength{ +\backslash +fboxrule}{2pt} +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +setlength{ +\backslash +fboxrule}{2pt} +\end_layout + +\end_inset + + +\begin_inset Box Boxed +position "c" +hor_pos "c" +has_inner_box 1 +inner_pos "c" +use_parbox 0 +use_makebox 0 +width "25col%" +special "none" +height "1in" +height_special "totalheight" +status open + +\begin_layout Plain Layout +\align center +Rectangular box with +\series bold + +\backslash +fboxrule +\series default + +\begin_inset space \thinspace{} +\end_inset + += +\begin_inset space \thinspace{} +\end_inset + +2 +\begin_inset space \thinspace{} +\end_inset + +pt +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +setlength{ +\backslash +fboxrule}{0.4pt} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + +The space between the frame and the box content is for all frame styles + by default 3 +\begin_inset space \thinspace{} +\end_inset + +pt. + You can change it by setting the length +\series bold + +\backslash +fboxsep +\series default + to another value. + For example the command +\end_layout + +\begin_layout Standard + +\series bold + +\backslash +setlength{ +\backslash +fboxsep}{10pt} +\end_layout + +\begin_layout Standard +sets the value to 10 +\begin_inset space \thinspace{} +\end_inset + +pt, as with the following box: +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +setlength{ +\backslash +fboxsep}{10pt} +\end_layout + +\end_inset + + +\begin_inset Box Boxed +position "c" +hor_pos "c" +has_inner_box 1 +inner_pos "c" +use_parbox 0 +use_makebox 0 +width "25col%" +special "none" +height "1in" +height_special "totalheight" +status open + +\begin_layout Plain Layout +\align center +Rectangular box with +\series bold + +\backslash +fboxsep +\series default + +\begin_inset space \thinspace{} +\end_inset + += +\begin_inset space \thinspace{} +\end_inset + +10 +\begin_inset space \thinspace{} +\end_inset + +pt +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +setlength{ +\backslash +fboxsep}{3pt} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + +The diameter of the round corners of the oval boxes can be set with the + command +\series bold + +\backslash +cornersize +\series default +. + The command +\end_layout + +\begin_layout Standard + +\series bold + +\backslash +cornersize*{1cm} +\end_layout + +\begin_layout Standard +sets the diameter to 1 +\begin_inset space \thinspace{} +\end_inset + +cm. + The command +\end_layout + +\begin_layout Standard + +\series bold + +\backslash +cornersize{num} +\end_layout + +\begin_layout Standard +sets the diameter to +\family sans +num +\begin_inset space \thinspace{} +\end_inset + +× +\begin_inset space \thinspace{} +\end_inset + +minimum(width and height of box) +\family default +. + The default is +\series bold + +\backslash +cornersize{0.5} +\series default +. +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +cornersize*{1.5cm} +\end_layout + +\end_inset + + +\begin_inset Box Ovalbox +position "c" +hor_pos "c" +has_inner_box 1 +inner_pos "c" +use_parbox 0 +use_makebox 0 +width "25col%" +special "none" +height "1in" +height_special "totalheight" +status open + +\begin_layout Plain Layout +\align center +Oval box with +\series bold + +\backslash +cornersize +\series default + +\begin_inset space \thinspace{} +\end_inset + += +\begin_inset space \thinspace{} +\end_inset + +1.5 +\begin_inset space \thinspace{} +\end_inset + +cm +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +cornersize{0.5} +\end_layout \end_inset -\begin_inset Newline newline +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip \end_inset +The size of the shadow can be adjusted by changing the length +\series bold -\begin_inset ERT -status collapsed +\backslash +shadowsize +\series default +. + It it set to 2 +\begin_inset space \thinspace{} +\end_inset -\begin_layout Plain Layout +pt for the following box by this command: +\end_layout +\begin_layout Standard + +\series bold \backslash -renewenvironment{lyxgreyedout} +setlength{ +\backslash +shadowsize}{2pt} \end_layout +\begin_layout Standard +\begin_inset ERT +status collapsed + \begin_layout Plain Layout -{ -\backslash -textcolor[gray]{0.8} + \backslash -bgroup}{ +setlength{ \backslash -egroup} +shadowsize}{2pt} \end_layout \end_inset -\begin_inset Note Greyedout +\begin_inset Box Shadowbox +position "c" +hor_pos "c" +has_inner_box 1 +inner_pos "c" +use_parbox 0 +use_makebox 0 +width "25col%" +special "none" +height "1in" +height_special "totalheight" status open \begin_layout Plain Layout -This is text -\begin_inset Foot -status open +\align center +Shadow box with +\series bold -\begin_layout Plain Layout -This is an example footnote within a greyed out note. -\end_layout +\backslash +shadowsize +\series default + +\begin_inset space \thinspace{} +\end_inset += +\begin_inset space \thinspace{} \end_inset - of a comment that appears in the output as grey text. +2 +\begin_inset space \thinspace{} +\end_inset + +pt \end_layout \end_inset @@ -24590,240 +32432,120 @@ status collapsed \backslash -renewenvironment{lyxgreyedout} -\end_layout - -\begin_layout Plain Layout - -{ -\backslash -textcolor{blue} -\backslash -bgroup}{ +setlength{ \backslash -egroup} +shadowsize}{4pt} \end_layout \end_inset -\begin_inset Note Note -status collapsed - -\begin_layout Plain Layout -The greyed out note is here redefined to show it with the original LyX definitio -n because greyed out notes are redefined in the preamble of this document, - as described below, to have blue text. \end_layout +\begin_layout Standard +\begin_inset VSpace bigskip \end_inset -\begin_inset Newline newline -\end_inset - - -\begin_inset Newline newline -\end_inset - -As you can see in the example, the first line of greyed out notes is a bit - indented and greyed out notes can have footnotes. \end_layout \begin_layout Standard -\begin_inset VSpace bigskip -\end_inset - -When you use the toolbar button -\begin_inset Graphics - filename ../images/note-insert.png - scale 85 - scaleBeforeRotation +The default value for the size +\series bold +\backslash +FrameRule +\series default + is 0.4 +\begin_inset space \thinspace{} \end_inset - to insert notes, a -\family sans -LyX -\begin_inset space ~ +pt. + The default space between the note content and the frame is 9 +\begin_inset space \thinspace{} \end_inset -Note -\family default - is inserted. - You can switch between the five note types by right-clicking on the note-box. - -\family roman -\series medium -\bar no -If you want to turn existing text into a note, mark it and click on the - note -\family default -\series default -\bar default - toolbar -\family roman -\series medium -\bar no -button -\family default +pt and can be changed with the value of +\series bold + +\backslash +FrameSep \series default -\bar default . - To change a note to text, press the backspace key when the cursor is in - the first position of a note, or press the delete key when the cursor is - in the very last position of the note, respectively. -\end_layout - -\begin_layout Standard -\begin_inset VSpace bigskip -\end_inset - -You can change the text color of the greyed out notes in the menu + For example the frame appearance of the following \family sans -Document\SpecialChar \menuseparator -Settings\SpecialChar \menuseparator -Colors +box \family default -. + is set with the TeX-Code commands \end_layout -\begin_layout Section -Footnotes -\begin_inset CommandInset label -LatexCommand label -name "sec:Footnotes" +\begin_layout Standard -\end_inset +\series bold +\backslash +setlength{ +\backslash +FrameRule}{5pt} +\begin_inset Newline newline +\end_inset -\begin_inset Index idx -status collapsed -\begin_layout Plain Layout -Notes ! Footnotes +\backslash +setlength{ +\backslash +FrameSep}{0.5cm} \end_layout -\end_inset - - -\begin_inset Index idx +\begin_layout Standard +\begin_inset ERT status collapsed \begin_layout Plain Layout -Footnotes -\end_layout - -\end_inset +\backslash +setlength{ +\backslash +FrameRule}{5pt} \end_layout -\begin_layout Standard -Footnotes can be inserted using the toolbar button -\begin_inset Graphics - filename ../images/footnote-insert.png - scale 85 - scaleBeforeRotation +\begin_layout Plain Layout -\end_inset - or the menu -\family sans -Insert\SpecialChar \menuseparator -Footnote -\family default -. - -\family roman -\series medium -\bar no -You'll see -\family default -\series default -\bar default - then the following footnote-box: -\begin_inset Graphics - filename clipart/footnoteQt4.png - scale 80 - scaleBeforeRotation +\backslash +setlength{ +\backslash +FrameSep}{0.5cm} +\end_layout \end_inset - -\family roman -\series medium -\bar no -where you can enter the footnote text. - If you want to turn existing text into a footnote, mark it and click on - the footnote -\family default -\series default -\bar default - toolbar -\family roman -\series medium -\bar no -button -\family default -\series default -\bar default -. - To change a -\family roman -\series medium -\bar no -footnote -\family default -\series default -\bar default - to text, press the Backspace key when the cursor is in the first position - of a -\family roman -\series medium -\bar no -footnote -\family default -\series default -\bar default -, or press the Delete key when the cursor is in the very last position of - the -\family roman -\series medium -\bar no -footnote -\family default -\series default -\bar default -, respectively. -\end_layout - -\begin_layout Standard -Here is an example footnote: -\family roman -\series medium -\bar no -\begin_inset Foot +\begin_inset Box Framed +position "t" +hor_pos "c" +has_inner_box 0 +inner_pos "t" +use_parbox 0 +use_makebox 0 +width "100col%" +special "none" +height "1in" +height_special "totalheight" status open \begin_layout Plain Layout -\begin_inset CommandInset label -LatexCommand label -name "foot:This-is-an" - -\end_inset - -This is an example footnote. +This is text in an +\family sans +allow page break +\family default + box. \end_layout \end_inset -\family default -\series default -\bar default - \begin_inset ERT status collapsed @@ -24831,16 +32553,18 @@ status collapsed \backslash -newcounter{MyRepeatFoot} +setlength{ +\backslash +FrameRule}{0.4pt} \end_layout \begin_layout Plain Layout \backslash -setcounter{MyRepeatFoot}{ +setlength{ \backslash -thefootnote} +FrameSep}{9pt} \end_layout \end_inset @@ -24849,116 +32573,174 @@ thefootnote} \end_layout \begin_layout Standard -The footnote will appear in the output as a superscript number at the text - position where the footnote box is placed. - The footnote text is placed at the bottom of the current page. - The footnote number is calculated by LaTeX; the numbers are consecutive. - It depends on your document-class, whether the footnote number is reset - for every chapter. +\begin_inset VSpace bigskip +\end_inset + + \end_layout \begin_layout Standard -Footnotes can be referenced like floats: Insert a label into the footnote - and cross-reference this label in the text as described in section +For +\family sans +shaded background +\family default + boxes the default space between the box content and the box border is 3 +\begin_inset space \thinspace{} +\end_inset + +pt and can be changed with the value of +\series bold + +\backslash +fboxsep +\series default +. + The default background color red can either be changed locally with the + command +\series bold + +\backslash +definecolor{shadecolor} +\series default + or globally with the menu +\family sans +Tools\SpecialChar \menuseparator +Preferences\SpecialChar \menuseparator +Colors\SpecialChar \menuseparator +shaded +\begin_inset space ~ +\end_inset + +box +\family default +. + The scheme of the +\series bold + +\backslash +definecolor +\series default + command is explained in section \begin_inset space ~ \end_inset \begin_inset CommandInset ref LatexCommand ref -reference "sec:Referencing-Floats" +reference "sec:Colored-Tables" \end_inset . -\begin_inset Newline newline -\end_inset +\begin_inset Foot +status collapsed -This is a cross-reference of Footnote +\begin_layout Plain Layout +Note that +\series bold + +\backslash +definecolor +\series default + requires the LaTeX-package +\series bold +color +\series default + in the preamble, see section \begin_inset space ~ \end_inset \begin_inset CommandInset ref LatexCommand ref -reference "foot:This-is-an" +reference "sec:Colored-Boxes" \end_inset . \end_layout -\begin_layout Standard -\begin_inset VSpace defskip \end_inset -Footnotes in tables are not printed by LaTeX due to technical reasons. - However there exists another method to print them: Instead of the footnote - the command -\series bold + For example the appearance of the following shaded background box is set + with the TeX-Code commands +\end_layout + +\begin_layout Standard -\backslash -footnotemark{} -\series default - is inserted as TeX-code. - The text of the footnote is entered as an argument of the TeX-code command - \series bold \backslash -footnotetext +setlength{ +\backslash +fboxsep}{0.5cm} \series default - after the table. + \begin_inset Newline newline \end_inset -This was done for the following table with the command -\end_layout - -\begin_layout Standard \series bold \backslash -footnotetext{ -\series default -Printed table footnote. -\series bold -} +definecolor{shadecolor}{cmyk}{0.5,0,1,0.5} \end_layout \begin_layout Standard -\begin_inset Tabular - - - - - -\begin_inset Text +\begin_inset ERT +status collapsed \begin_layout Plain Layout -This an example text. -\begin_inset Foot -status open + + +\backslash +setlength{ +\backslash +fboxsep}{0.5cm} +\end_layout \begin_layout Plain Layout -This footnote will not be printed! + + +\backslash +definecolor{shadecolor}{cmyk}{0.5,0,1,0.5} \end_layout \end_inset +\begin_inset Box Shaded +position "t" +hor_pos "c" +has_inner_box 0 +inner_pos "t" +use_parbox 0 +use_makebox 0 +width "100col%" +special "none" +height "1in" +height_special "totalheight" +status open + +\begin_layout Plain Layout + +\color yellow +This is yellow text in a +\color none + +\family sans +\color yellow +shaded background +\family default +\color none + +\color yellow +box with dark green background. \end_layout \end_inset - - - - -\begin_inset Text -\begin_layout Plain Layout -This an example text. + \begin_inset ERT status collapsed @@ -24966,41 +32748,45 @@ status collapsed \backslash -footnotemark{} +setlength{ +\backslash +fboxsep}{3pt} \end_layout -\end_inset +\begin_layout Plain Layout +\backslash +definecolor{shadecolor}{rgb}{1,0,0} \end_layout \end_inset - - - - -\end_inset - -\begin_inset ERT -status collapsed -\begin_layout Plain Layout +\end_layout +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset -\backslash -footnotetext{ +Changed lengths and widths are valid for all boxes following the commands + that change them. \end_layout +\begin_layout Section +Minipages +\begin_inset CommandInset label +LatexCommand label +name "sec:Minipages" + \end_inset -Printed table footnote. -\begin_inset ERT + +\begin_inset Index idx status collapsed \begin_layout Plain Layout - -} +Boxes ! Minipages \end_layout \end_inset @@ -25009,48 +32795,40 @@ status collapsed \end_layout \begin_layout Standard -Footnotes in longtables are described in section -\begin_inset space ~ -\end_inset - - -\begin_inset CommandInset ref -LatexCommand ref -reference "sub:Footnotes-in-Longtables" - -\end_inset +Minipages are treated by LaTeX as pages within pages and can therefore for + example have their own footnotes. +\end_layout -. +\begin_layout Standard +Minipages are useful when you write documents with different languages. \end_layout \begin_layout Standard -Footnotes in minipage boxes are printed, but inside the box and with a different - numbering because a minipage box is like a page inside a page. - (For more about minipages, see section -\begin_inset space ~ +Below are two example minipages side by side. + Their width is set to 45 +\begin_inset space \thinspace{} \end_inset +col% and they are separated by a horizontal fill, that was inserted via + the menu +\family sans +Insert\SpecialChar \menuseparator +Special +\begin_inset space ~ +\end_inset -\begin_inset CommandInset ref -LatexCommand ref -reference "sec:Minipages" - +Formatting\SpecialChar \menuseparator +Horizontal +\begin_inset space ~ \end_inset -.) To get a footnote in the minipage that is output at the bottom of the - page like normal footnotes, also use the method of -\series bold +Fill +\family default +. +\begin_inset Newpage newpage +\end_inset -\backslash -footnotemark{} -\series default - and -\series bold -\backslash -footnotetext -\series default -. \end_layout \begin_layout Standard @@ -25058,71 +32836,95 @@ footnotetext position "t" hor_pos "c" has_inner_box 1 -inner_pos "t" +inner_pos "c" use_parbox 0 use_makebox 0 -width "100col%" +width "45col%" special "none" height "1in" height_special "totalheight" status open \begin_layout Plain Layout -This an example text in a minipage. + +\lang german +Dies ist ein deutscher Text. + Dies ist ein deutscher Text. + Dies ist ein deutscher Text. + Dies ist ein deutscher Text. + Dies ist ein deutscher Text. + Dies ist ein deutscher Text. + Dies ist ein deutscher Text. + Dies ist ein deutscher Text. + Dies ist ein deutscher Text. + Dies ist ein deutscher Text. + Dies ist ein deutscher Text. + Dies ist ein deutscher Text. + Dies ist ein deutscher Text \begin_inset Foot -status open +status collapsed \begin_layout Plain Layout -Footnote in the minipage. -\end_layout - -\end_inset - +\lang german +Dies ist eine deutsche Fußnote. \end_layout -\begin_layout Plain Layout -This an example text in a minipage. -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - +\end_inset -\backslash -footnotemark{} +. + Dies ist ein deutscher Text. + Dies ist ein deutscher Text. \end_layout \end_inset -\end_layout - +\begin_inset space \hfill{} \end_inset -\end_layout +\begin_inset Box Frameless +position "t" +hor_pos "c" +has_inner_box 1 +inner_pos "c" +use_parbox 0 +use_makebox 0 +width "45col%" +special "none" +height "1in" +height_special "totalheight" +status open -\begin_layout Standard -\begin_inset ERT +\begin_layout Plain Layout +This is an English Text. + This is an English Text. + This is an English Text. + This is an English Text. + This is an English Text. + This is an English Text. + This is an English Text. + This is an English Text. + This is an English Text. + This is an English Text. + This is an English Text. + This is an English Text. + This is an English Text. + This is an English Text. + This is an English Text. + This is an English Text. +\begin_inset Foot status collapsed \begin_layout Plain Layout - - -\backslash -footnotetext{ +This is an English footnote. \end_layout \end_inset -Footnote outside the minipage. -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - -} + This is an English Text. + \end_layout \end_inset @@ -25131,87 +32933,113 @@ status collapsed \end_layout \begin_layout Standard -\begin_inset VSpace defskip +\begin_inset VSpace bigskip \end_inset +The document-wide paragraph settings are ignored within minipages. + That means that there will be no space between paragraphs in minipages + although you set it to e. +\begin_inset space \thinspace{} +\end_inset -\end_layout +g. +\begin_inset space \space{} +\end_inset -\begin_layout Standard -To refer to the same footnote several times without printing the footnote - text every time, use the command -\series bold -\backslash -footnotemark[number] -\series default - in TeX-code. -\begin_inset Newline newline -\end_inset +\family sans +MedSkip +\family default + in the document settings. +\end_layout -As you do not know the number of the repeating footnote while you are writing - the text, you have to store its number. - For the following footnote mark example, these commands were inserted in - TeX-code after Footnote +\begin_layout Standard +Minipages can also be used to set a background color for text parts, see + section \begin_inset space ~ \end_inset \begin_inset CommandInset ref LatexCommand ref -reference "foot:This-is-an" +reference "sub:Color-for-Paragraphs" \end_inset - to store the footnote number: +. \end_layout \begin_layout Standard +\begin_inset Note Greyedout +status open + +\begin_layout Plain Layout \series bold +Note: +\series default + You cannot have floats or margin notes inside minipages but minipages can + be used inside tables, floats, and other boxes. +\end_layout -\backslash -newcounter{MyRepeatFoot} -\begin_inset Newline newline \end_inset -\backslash -setcounter{MyRepeatFoot}{ -\backslash -thefootnote} \end_layout -\begin_layout Standard -The footnote mark was then created with this command: +\begin_layout Section +Parboxes +\begin_inset CommandInset label +LatexCommand label +name "sec:Parboxes" + +\end_inset + + +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +Boxes ! Parboxes \end_layout -\begin_layout Standard +\end_inset -\series bold -\backslash -footnotemark[ -\backslash -theMyRepeatFoot] \end_layout \begin_layout Standard -Here is a repeated footnote: -\family roman -\series medium -\bar no +Parboxes are very similar to minipages with the difference that they cannot + have footnotes. +\end_layout -\begin_inset ERT +\begin_layout Standard +\align center +\begin_inset Box Frameless +position "t" +hor_pos "c" +has_inner_box 1 +inner_pos "t" +use_parbox 1 +use_makebox 0 +width "33col%" +special "none" +height "1in" +height_special "totalheight" status collapsed \begin_layout Plain Layout +This a text within a parbox. + This a text within a parbox. +\end_layout +\begin_layout Plain Layout +This footnote won't appear: +\begin_inset Foot +status collapsed -\backslash -footnotemark[ -\backslash -theMyRepeatFoot] +\begin_layout Plain Layout +This footnote is inside a parbox and will therefore not appear. \end_layout \end_inset @@ -25219,37 +33047,18 @@ theMyRepeatFoot] \end_layout -\begin_layout Standard -If you want to repeat the previous footnote, you can omit the storage of - the footnote number and just use this command instead: -\end_layout - -\begin_layout Standard +\end_inset -\series bold -\backslash -footnotemark[ -\backslash -thefootnote] \end_layout -\begin_layout Standard -Here is another repeated footnote: -\family roman -\series medium -\bar no - -\begin_inset ERT +\begin_layout Section +Boxes for Words and Characters +\begin_inset Index idx status collapsed \begin_layout Plain Layout - - -\backslash -footnotemark[ -\backslash -thefootnote] +Boxes ! for Characters \end_layout \end_inset @@ -25258,10 +33067,10 @@ thefootnote] \end_layout \begin_layout Subsection -Footnote Numbering +Prevent Hyphenation \begin_inset CommandInset label LatexCommand label -name "sub:Footnote-Numbering" +name "sec:Prevent-Hyphenation" \end_inset @@ -25270,7 +33079,7 @@ name "sub:Footnote-Numbering" status collapsed \begin_layout Plain Layout -Footnotes ! Numbering +Boxes ! to Prevent Hyphenation \end_layout \end_inset @@ -25279,151 +33088,219 @@ Footnotes ! Numbering \end_layout \begin_layout Standard -To reset the footnote number back to 1 after each section -\family roman -, add this command to your document preamble: +You can use the box type +\family sans +Makebox +\family default + to prevent words or text from being hyphenated. +\begin_inset Newline newline +\end_inset + +Here is an example text: \end_layout \begin_layout Standard +This line is an example to show how you can prevent the hyphenation of +\begin_inset Quotes eld +\end_inset -\series bold +veryverylongword +\begin_inset Quotes erd +\end_inset -\backslash -@addtoreset{footnote}{section} +. \end_layout \begin_layout Standard -\begin_inset VSpace bigskip +To prevent the hyphenation of the word +\begin_inset Quotes eld \end_inset -The following preamble command changes the footnote numbering style to small - roman numerals: -\end_layout +veryverylongword +\begin_inset Quotes erd +\end_inset -\begin_layout Standard +, put the word into a box, set the +\family sans +Inner +\begin_inset space ~ +\end_inset -\series bold +box +\family default + to +\family sans +Makebox +\family default + and its width to 1 +\begin_inset space \thinspace{} +\end_inset -\backslash -renewcommand{ -\backslash -thefootnote}{ -\backslash -roman{footnote}} +Width. \end_layout \begin_layout Standard -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout +This is the result: +\end_layout +\begin_layout Standard +This line is an example to show how you can prevent the hyphenation of +\begin_inset Box Frameless +position "t" +hor_pos "c" +has_inner_box 1 +inner_pos "t" +use_parbox 0 +use_makebox 1 +width "1in" +special "width" +height "1in" +height_special "totalheight" +status open -\backslash -renewcommand{ -\backslash -thefootnote}{ -\backslash -roman{footnote}} -\end_layout +\begin_layout Plain Layout +\begin_inset Quotes eld +\end_inset +veryverylongword +\begin_inset Quotes erd \end_inset - This is a footnote with roman numbering: -\begin_inset Foot -status open -\begin_layout Plain Layout -This is an example footnote with roman numbering. \end_layout \end_inset - +. \end_layout \begin_layout Standard -To change the numbering style to capital roman numerals replace in the command - above -\series bold +You can alternatively set the command +\begin_inset Quotes eld +\end_inset + -\backslash -roman -\series default - by \series bold \backslash -Roman +- \series default -. - To -\begin_inset Quotes eld + +\begin_inset Quotes grd \end_inset -number -\begin_inset Quotes erd + as TeX-Code directly before the word: +\end_layout + +\begin_layout Standard +This line is an example to show how you can prevent the hyphenation of +\begin_inset Quotes eld \end_inset - footnotes with capital or small Latin letters use -\series bold -\backslash -Alph -\series default - or -\series bold +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + \backslash -alph -\series default -, respectively. - To -\begin_inset Quotes eld +- +\end_layout + \end_inset -number +veryverylongword \begin_inset Quotes erd \end_inset - footnotes with symbols use -\series bold - -\backslash -fnsymbol -\series default . \end_layout \begin_layout Standard -\begin_inset Note Greyedout +Of course the word now protrudes over the side margin. + To avoid this, add via the menu +\family sans +Insert\SpecialChar \menuseparator +Formatting\SpecialChar \menuseparator +Ragged +\begin_inset space ~ +\end_inset + +Line +\begin_inset space ~ +\end_inset + +Break +\family default + (shortcut +\begin_inset Info +type "shortcut" +arg "newline-insert newline" +\end_inset + +) a line break before the word: +\end_layout + +\begin_layout Standard +This line is an example to show how you can prevent the hyphenation of +\begin_inset Newline newline +\end_inset + + +\begin_inset Box Frameless +position "t" +hor_pos "c" +has_inner_box 1 +inner_pos "t" +use_parbox 0 +use_makebox 1 +width "1in" +special "width" +height "1in" +height_special "totalheight" status open \begin_layout Plain Layout +\begin_inset Quotes eld +\end_inset + +veryverylongword +\begin_inset Quotes erd +\end_inset + -\series bold -Note: -\series default - You can only number 26 footnotes with Latin letters, because this numbering - is limited to single letters. \end_layout \end_inset +. +\end_layout + +\begin_layout Subsection +Vertical Alignment +\begin_inset CommandInset label +LatexCommand label +name "sub:Vertical-Alignment" + +\end_inset + + +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +Boxes ! for Vertical Alignment +\end_layout -\begin_inset Newline newline \end_inset -\begin_inset Note Greyedout -status open +\begin_inset Index idx +status collapsed \begin_layout Plain Layout - -\series bold -Note: -\series default - You can only number 9 footnotes with symbols. +Boxes ! Raiseboxes \end_layout \end_inset @@ -25432,56 +33309,62 @@ Note: \end_layout \begin_layout Standard -To return to the default numbering style after you have changed to another - one, use +With the help of the command \series bold \backslash -arabic +raisebox \series default - instead of + you can align words, characters or other boxes vertically relative to the + surrounding text. + \series bold \backslash -roman +raisebox \series default - in the command above. -\begin_inset ERT -status collapsed + is used with the following scheme: +\end_layout -\begin_layout Plain Layout +\begin_layout Standard +\series bold \backslash -renewcommand{ -\backslash -thefootnote}{ -\backslash -arabic{footnote}} +raisebox{lift}[height][depth]{box content} \end_layout -\end_inset - - +\begin_layout Standard +The lift can be a positive value to raise the box or a negative value to + lower the box. \end_layout \begin_layout Standard -\begin_inset VSpace bigskip +To align for example the word +\begin_inset Quotes eld \end_inset +preventing +\begin_inset Quotes erd +\end_inset -\end_layout + so that the bottom of the +\begin_inset Quotes eld +\end_inset -\begin_layout Standard -If you want to have footnotes numbered in the scheme +deepest +\begin_inset Quotes erd +\end_inset + + character \begin_inset Quotes eld \end_inset -chapter.footnote +p \begin_inset Quotes erd \end_inset -, add the following command to your document preamble: + is at the baseline, insert the command \end_layout \begin_layout Standard @@ -25489,44 +33372,34 @@ chapter.footnote \series bold \backslash -numberwithin{footnote}{chapter} +raisebox{ +\backslash +depth}{ \end_layout \begin_layout Standard -To be able to use the command -\series bold - -\backslash -numberwithin -\series default -, set in the tab -\family sans -Math -\begin_inset space ~ +in TeX-Code before the word. + After the word insert a closing brace +\begin_inset Quotes eld \end_inset -Options -\family default - in the document settings the option -\family sans -Use -\begin_inset space ~ -\end_inset -AMS -\begin_inset space ~ +\series bold +} +\series default + +\begin_inset Quotes erd \end_inset -math -\begin_inset space ~ + in TeX-Code. +\begin_inset Newline newline \end_inset -package -\family default -. +This is the result: \end_layout \begin_layout Standard +This is a text line with the word \begin_inset ERT status collapsed @@ -25534,211 +33407,121 @@ status collapsed \backslash -numberwithin{footnote}{chapter} +raisebox{ +\backslash +depth}{ \end_layout \end_inset -This is another example footnote: -\series bold - -\begin_inset Foot -status open -\begin_layout Plain Layout -This is a footnote numbered in the scheme \begin_inset Quotes eld \end_inset -chapter.footnote +preventing \begin_inset Quotes erd \end_inset -. -\end_layout - -\end_inset - - -\series default \begin_inset ERT status collapsed \begin_layout Plain Layout - -\backslash -renewcommand{ -\backslash -thefootnote}{ -\backslash -arabic{footnote}} +} \end_layout \end_inset + as a raised word. +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset +When you raise or lower characters in a line, the line distance will be + spread: \end_layout \begin_layout Standard -\begin_inset Note Greyedout -status open +This is a text line with the word +\begin_inset ERT +status collapsed \begin_layout Plain Layout -\series bold -Note: -\series default - -\series bold \backslash -numberwithin -\series default - always prints out the footnote number as arabic number; previous redefinitions - to get non-arabic numbers are overwritten. +raisebox{- +\backslash +depth}{ \end_layout \end_inset -\end_layout - -\begin_layout Standard -So to get for example the scheme \begin_inset Quotes eld \end_inset -chapter. -\backslash -Roman{footnote} +preventing \begin_inset Quotes erd \end_inset -, use this command instead of -\series bold - -\backslash -numberwithin -\series default -: -\end_layout - -\begin_layout Standard - -\series bold - -\backslash -renewcommand{ -\backslash -thefootnote}{ -\backslash -thechapter. -\backslash -Roman{footnote}} -\end_layout -\begin_layout Subsection -Footnote Placement -\begin_inset Index idx +\begin_inset ERT status collapsed \begin_layout Plain Layout -Footnotes ! Placement -\end_layout - -\end_inset - +} \end_layout -\begin_layout Standard -If you have several footnotes in one page, they appear without vertical - space between them at the bottom of the page. - To make them more readable you can e. -\begin_inset space \thinspace{} -\end_inset - -g. -\begin_inset space \space{} \end_inset -add 1.5 -\begin_inset space \thinspace{} + as a lowered word. +\begin_inset Newline newline \end_inset -mm space with the following preamble command: -\end_layout - -\begin_layout Standard - -\series bold +This is a text line with the word +\begin_inset ERT +status collapsed -\backslash -let -\backslash -myFoot -\backslash -footnote -\begin_inset Newline newline -\end_inset +\begin_layout Plain Layout \backslash -renewcommand{ -\backslash -footnote}[1]{ -\backslash -myFoot{#1 -\backslash -vspace{1.5mm}}} +raisebox{0.5cm}{ \end_layout -\begin_layout Standard -\begin_inset VSpace bigskip -\end_inset - -In a two-column document the footnotes appear at the bottom of every column, - see Figure -\begin_inset space ~ \end_inset -\begin_inset CommandInset ref -LatexCommand ref -reference "fig:Standard-footnote-placement" - -\end_inset - -. - If the footnotes should only appear at the bottom of the right column, - as in Figure -\begin_inset space ~ +\begin_inset Quotes eld \end_inset - -\begin_inset CommandInset ref -LatexCommand ref -reference "fig:Footnote-placement-in" - +testing +\begin_inset Quotes erd \end_inset -, use the LaTeX-package -\series bold -ftnright -\series default -\begin_inset Index idx +\begin_inset ERT status collapsed \begin_layout Plain Layout -LaTeX-packages ! ftnright + +} \end_layout \end_inset - with this command in the document preamble: + as a raised word. +\end_layout + +\begin_layout Standard +If you want to prevent this for a certain reason, set the box height to + a zero value. + For example use \end_layout \begin_layout Standard @@ -25746,17 +33529,13 @@ LaTeX-packages ! ftnright \series bold \backslash -usepackage{ftnright} +raisebox{- +\backslash +depth}[0pt]{ \end_layout \begin_layout Standard -\begin_inset Float figure -placement !h -wide false -sideways false -status open - -\begin_layout Plain Layout +This is a text line with the word \begin_inset ERT status collapsed @@ -25764,17 +33543,19 @@ status collapsed \backslash -framebox{ +raisebox{- +\backslash +depth}[0pt]{ \end_layout \end_inset -\begin_inset Graphics - filename clipart/without_fntright.pdf - width 100col% - scaleBeforeRotation +\begin_inset Quotes eld +\end_inset +preventing +\begin_inset Quotes erd \end_inset @@ -25788,67 +33569,59 @@ status collapsed \end_inset + as a lowered word. +\begin_inset Newline newline +\end_inset -\end_layout - -\begin_layout Plain Layout -\begin_inset Caption +This is a text line with the word +\begin_inset ERT +status collapsed \begin_layout Plain Layout -\begin_inset CommandInset label -LatexCommand label -name "fig:Standard-footnote-placement" -\end_inset -Standard footnote placement in two-column documents. +\backslash +raisebox{0.5cm}[0pt]{ \end_layout \end_inset -\end_layout - +\begin_inset Quotes eld \end_inset +testing +\begin_inset Quotes erd +\end_inset -\end_layout - -\begin_layout Standard -\begin_inset Float figure -placement !h -wide false -sideways false -status open -\begin_layout Plain Layout \begin_inset ERT status collapsed \begin_layout Plain Layout - -\backslash -framebox{ +} \end_layout \end_inset + as a raised word. +\end_layout -\begin_inset Graphics - filename clipart/with_fntright.pdf - width 100col% - scaleBeforeRotation +\begin_layout Section +Colored Boxes +\begin_inset CommandInset label +LatexCommand label +name "sec:Colored-Boxes" \end_inset -\begin_inset ERT +\begin_inset Index idx status collapsed \begin_layout Plain Layout - -} +Boxes ! Color \end_layout \end_inset @@ -25856,191 +33629,274 @@ status collapsed \end_layout -\begin_layout Plain Layout -\begin_inset Caption +\begin_layout Subsection +Color for Text +\begin_inset Index idx +status collapsed \begin_layout Plain Layout -\begin_inset CommandInset label -LatexCommand label -name "fig:Footnote-placement-in" +Color ! for Text +\end_layout \end_inset -Footnote placement in two-column documents when the LaTeX-package -\series bold -ftnright -\series default - is used. + \end_layout +\begin_layout Standard +To color the background of text the text must be put into a so called +\begin_inset Quotes eld +\end_inset + +colorbox +\begin_inset Quotes erd \end_inset +. + This requires that the LaTeX-package +\series bold +color +\series default + +\begin_inset Index idx +status collapsed +\begin_layout Plain Layout +LaTeX-packages ! color \end_layout \end_inset - + is loaded in the document preamble with the command \end_layout \begin_layout Standard -\begin_inset VSpace bigskip + +\series bold + +\backslash +@ifundefined{textcolor} +\begin_inset Newline newline \end_inset -In some scientific literature it is usual to collect the footnotes and print - them in a separate paragraph at the end of a section, as in Figure + +\begin_inset Phantom HPhantom +status open + +\begin_layout Plain Layout + +\series bold \begin_inset space ~ \end_inset -\begin_inset CommandInset ref -LatexCommand ref -reference "fig:Endnotes" +\end_layout \end_inset -. - They are then called -\begin_inset Quotes eld +{ +\backslash +usepackage{color}}{} +\end_layout + +\begin_layout Standard +The package +\series bold +color +\series default + will be loaded automatically by LyX when you color text. +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout +To avoid it being loaded twice the command +\series bold + +\backslash +@ifundefined +\series default + is used. +\end_layout + \end_inset -endnotes -\begin_inset Quotes erd + +\end_layout + +\begin_layout Standard +\begin_inset VSpace medskip \end_inset +Colorboxes are created with the command +\series bold + +\backslash +colorbox +\series default . -\begin_inset Index idx -status collapsed + This will be used with the following scheme: +\end_layout -\begin_layout Plain Layout -Endnotes +\begin_layout Standard + +\series bold + +\backslash +colorbox{color}{box content} +\end_layout + +\begin_layout Standard +The box content can also be a box and colorboxes can also be within other + boxes. \end_layout +\begin_layout Standard +The following colors are predefined: +\begin_inset Newline newline \end_inset - To use endnotes instead of footnotes in your document, load in the menu + +\family sans +black +\family default +, +\family sans +blue +\family default +, +\family sans +cyan +\family default +\series bold +, +\series default \family sans -Document\SpecialChar \menuseparator -Settings\SpecialChar \menuseparator -Modules +green \family default -the module +, +\family sans +magenta +\family default +, +\family sans +red +\family default +, +\family sans +white +\family default +, and \family sans -Foot -\begin_inset space ~ +yellow +\family default +. +\begin_inset Newline newline \end_inset -to +You can also define your own color as described in section \begin_inset space ~ \end_inset -End -\family default -. - To insert the collected footnotes, insert the command -\end_layout -\begin_layout Standard +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Colored-Tables" -\series bold +\end_inset -\backslash -theendnotes +. \end_layout \begin_layout Standard -in TeX-Code at the end of a section or chapter. -\end_layout +To have e. +\begin_inset space \thinspace{} +\end_inset -\begin_layout Standard -\begin_inset Float figure -wide false -sideways false -status open +g. +\begin_inset space \space{} +\end_inset -\begin_layout Plain Layout -\align center -\begin_inset ERT -status collapsed +a red background for a word, insert the command +\end_layout -\begin_layout Plain Layout +\begin_layout Standard +\series bold \backslash -framebox{ +colorbox{red}{ \end_layout +\begin_layout Standard +before the word in TeX-Code. + After the word insert a closing brace +\begin_inset Quotes eld \end_inset -\begin_inset Graphics - filename clipart/endnotes.pdf - scaleBeforeRotation +\series bold +} +\series default + +\begin_inset Quotes erd +\end_inset + in TeX-Code. +\begin_inset Newline newline \end_inset +This is the result: +\end_layout +\begin_layout Standard +This is a line where the word \begin_inset ERT status collapsed \begin_layout Plain Layout -} + +\backslash +colorbox{red}{ \end_layout \end_inset -\end_layout - -\begin_layout Plain Layout -\begin_inset Caption - -\begin_layout Plain Layout -\begin_inset CommandInset label -LatexCommand label -name "fig:Endnotes" +\begin_inset Quotes eld +\end_inset +Attention! +\begin_inset Quotes erd \end_inset -Endnotes – footnotes are printed in a separate paragraph at the end of sections - or chapters. -\end_layout -\end_inset +\begin_inset ERT +status collapsed +\begin_layout Plain Layout +} \end_layout \end_inset - + has a red background. \end_layout \begin_layout Standard -\begin_inset VSpace medskip -\end_inset - -The paragraph heading for the endnotes isn't automatically translated into - the document language, this must be done manually. - The following preamble command translates the default English -\begin_inset Quotes eld -\end_inset - -Notes -\begin_inset Quotes erd -\end_inset - - into the German -\begin_inset Quotes eld +\begin_inset VSpace bigskip \end_inset -Anmerkungen -\begin_inset Quotes erd -\end_inset +If you would like the box frame in a different color, you can use the command + +\series bold -: +\backslash +fcolorbox +\series default + with the following scheme: \end_layout \begin_layout Standard @@ -26048,166 +33904,110 @@ Anmerkungen \series bold \backslash -renewcommand{ -\backslash -notesname}{Anmerkungen} +fcolorbox{frame color}{box color}{box content} \end_layout \begin_layout Standard -\begin_inset VSpace medskip -\end_inset - -The numbering of endnotes can be changed like the footnote numbering as - described in section -\begin_inset space ~ -\end_inset - - -\begin_inset CommandInset ref -LatexCommand ref -reference "sub:Footnote-Numbering" -\end_inset - -; just replace the command \series bold \backslash -thefootnote +fcolorbox \series default - by + is an extension to \series bold \backslash -theendnote +colorbox \series default . - To reset the endnote number use the command + The frame thickness and the space between the frame and the box content + can be adjusted with the lengths \series bold \backslash -@addtoreset +fboxrule \series default - as described in section + and +\series bold + +\backslash +fboxsep +\series default +, respectively, as described in section \begin_inset space ~ \end_inset \begin_inset CommandInset ref LatexCommand ref -reference "sub:Footnote-Numbering" +reference "sec:Decoration" \end_inset - and replace the command parameter -\series bold -footnote -\series default - by -\series bold -endnote -\series default . \end_layout \begin_layout Standard -For endnotes there is the command -\series bold +For the following example the command +\end_layout + +\begin_layout Standard -\backslash -endnotemark[number] -\series default - similar to the command \series bold \backslash -footnotemark -\series default -, that is described in section -\begin_inset space ~ -\end_inset - - -\begin_inset CommandInset ref -LatexCommand ref -reference "sec:Footnotes" - -\end_inset +fcolorbox{cyan}{magenta}{ +\end_layout -. +\begin_layout Standard +was used. \end_layout \begin_layout Standard -\begin_inset VSpace bigskip +Here is an example where the frame line thickness was set to 1 +\begin_inset space \thinspace{} \end_inset -Footnotes can also be placed in the page margin and the footnote text alignment - can be changed, see the LaTeX-package -\series bold -footmisc -\series default +mm: +\begin_inset Newline newline +\end_inset -\begin_inset Index idx + +\begin_inset ERT status collapsed \begin_layout Plain Layout -LaTeX-packages ! footmisc -\end_layout - -\end_inset - -, -\begin_inset CommandInset citation -LatexCommand cite -key "footmisc" -\end_inset - for more information about this. +\backslash +fboxrule 1mm +\backslash +fboxsep 1mm \end_layout -\begin_layout Standard -For various further footnote formatting issues have a look at LaTeX-books, - -\begin_inset CommandInset citation -LatexCommand cite -key "latexcompanion,latexguide,latexbook" - \end_inset -. - If you are using a -\series bold -KOMA-Script -\series default -\begin_inset Index idx +\begin_inset ERT status collapsed \begin_layout Plain Layout -LaTeX-packages ! KOMA-Script -\end_layout -\end_inset - document class, you can adjust all footnote settings using class-specific - commands, see -\begin_inset CommandInset citation -LatexCommand cite -key "KOMA-Script" +\backslash +fcolorbox{cyan}{magenta}{ +\end_layout \end_inset -. -\end_layout - -\begin_layout Section -Margin Notes -\begin_inset Index idx +This is text within a colored, framed box. +\begin_inset ERT status collapsed \begin_layout Plain Layout -Notes ! Margin Notes + +} \end_layout \end_inset @@ -26216,92 +34016,42 @@ Notes ! Margin Notes \end_layout \begin_layout Standard -Margin notes look and behave in LyX like footnotes. - They are inserted via the menu -\family sans -Insert\SpecialChar \menuseparator -Marginal -\begin_inset space ~ -\end_inset - -Note -\family default - or the toolbar button -\begin_inset Graphics - filename ../images/marginalnote-insert.png - scale 85 - scaleBeforeRotation - +\begin_inset VSpace bigskip \end_inset -. - A grey -\family roman -\series medium -box with the -\family default -\series default - red -\family roman -\series medium -label -\begin_inset Quotes eld +Of course you can also have colored text inside a colorbox: +\begin_inset Newline newline \end_inset -margin -\begin_inset Quotes erd -\end_inset - appears where you can enter the text of the margin note. -\end_layout +\begin_inset ERT +status collapsed -\begin_layout Standard -At the side is an example margin note. +\begin_layout Plain Layout -\family roman -\series medium - -\begin_inset Marginal -status open -\begin_layout Plain Layout -This is a margin note. +\backslash +fcolorbox{cyan}{magenta}{ \end_layout \end_inset -\end_layout +\color yellow +This is colored text within a colored, framed box. +\color none -\begin_layout Standard -Margin notes appear at the right side in single-sided documents. - In double-sided documents they appear in the outer margin – left on even - pages, right on odd pages. - The text of margin notes is aligned opposite to the outer margin – right-aligne -d when the note appears in the left margin. - The first line of the margin note is placed at the position of the text - line where it is inserted in the document. -\end_layout +\begin_inset ERT +status collapsed -\begin_layout Standard -\begin_inset VSpace bigskip -\end_inset +\begin_layout Plain Layout -To place the margin note in the inner margin, add the command +} \end_layout -\begin_layout Standard - -\series bold +\end_inset -\backslash -reversemarginpar -\end_layout -\begin_layout Standard -in TeX-Code before a margin note. - The new placement is valid for all subsequent margin notes. - \begin_inset ERT status collapsed @@ -26309,30 +34059,24 @@ status collapsed \backslash -reversemarginpar +fboxrule 0.4pt +\backslash +fboxsep 3pt \end_layout \end_inset -\begin_inset Marginal -status open - -\begin_layout Plain Layout -This is a margin note in the inner margin. \end_layout +\begin_layout Standard +\begin_inset VSpace medskip \end_inset -\series bold - -\begin_inset Newline newline -\end_inset - - -\series default +\end_layout +\begin_layout Standard \begin_inset Note Greyedout status open @@ -26341,8 +34085,9 @@ status open \series bold Note: \series default - There is often not enough space in the inner margin so that the notes are - not correctly displayed in the output. + Text in colorboxes cannot have line breaks. + To color multiple text lines or paragraphs, use a box inside a colorbox + as described in the following. \end_layout \end_inset @@ -26350,168 +34095,228 @@ Note: \end_layout -\begin_layout Standard -To return to the default placement insert the command +\begin_layout Subsection +Color for Paragraphs +\begin_inset CommandInset label +LatexCommand label +name "sub:Color-for-Paragraphs" + +\end_inset + + +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +Color ! for Paragraphs \end_layout -\begin_layout Standard +\end_inset + +\end_layout + +\begin_layout Standard +To set the background color for more than one text line, put the text into + a minipage. + Before the minipage insert the \series bold \backslash -normalmarginpar +colorbox +\series default + command \end_layout \begin_layout Standard -in TeX-Code. -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout +\series bold \backslash -normalmarginpar +colorbox{color}{ \end_layout +\begin_layout Standard +in TeX-Code. + After the minipage insert a closing brace +\begin_inset Quotes eld \end_inset - -\begin_inset Note Greyedout -status open - -\begin_layout Plain Layout \series bold -Note: +} \series default - The command is ignored when it is within a paragraph where also the command - -\series bold -\backslash -reversemarginpar -\series default - is inserted. +\begin_inset Quotes erd +\end_inset + + in TeX-Code. \end_layout -\end_inset +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +\backslash +colorbox{lightgrey}{ \end_layout -\begin_layout Standard -\begin_inset VSpace bigskip \end_inset -\family roman -\series medium - -\begin_inset Marginal -status open +\begin_inset Box Frameless +position "t" +hor_pos "c" +has_inner_box 1 +inner_pos "t" +use_parbox 0 +use_makebox 0 +width "100col%" +special "none" +height "1in" +height_special "totalheight" +status collapsed \begin_layout Plain Layout -AVeryLongMarginParWord that isn't hyphenated. +This is text with background color. + This is text with background color. \end_layout +\begin_layout Plain Layout +\begin_inset VSpace defskip \end_inset +The text can have footnotes +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout +Another example footnote +\end_layout -\family default -\series default - Similar to the case described in section -\begin_inset space ~ \end_inset + and can include tables and figures. +\end_layout -\begin_inset CommandInset ref -LatexCommand ref -reference "sub:Multiple-Lines-in" +\begin_layout Plain Layout +\align center +\begin_inset Tabular + + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +a +\end_layout \end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +! +\end_layout -, long words cannot be hyphenated when they are the first word in a margin - note. - To avoid this, insert 0 -\begin_inset space \thinspace{} \end_inset + + +\begin_inset Text -pt horizontal space before the word -\family roman -\series medium -. - -\begin_inset Marginal -status open +\begin_layout Plain Layout +3 +\end_layout -\begin_layout Plain Layout -\begin_inset space \hspace*{} -\length 0pt \end_inset + + + + +\begin_inset Text -AVeryLongMarginParWord that is hyphenated. +\begin_layout Plain Layout +< \end_layout \end_inset + + +\begin_inset Text +\begin_layout Plain Layout +b2 +\begin_inset Quotes erd +\end_inset +| \end_layout -\begin_layout Standard -\begin_inset VSpace bigskip \end_inset + + +\begin_inset Text - +\begin_layout Plain Layout +> \end_layout -\begin_layout Standard -\begin_inset Note Greyedout -status open +\end_inset + + + + +\begin_inset Text \begin_layout Plain Layout - -\series bold -Note: -\series default - Margin notes can normally not be used inside tables, floats, and footnotes. +1 \end_layout \end_inset + + +\begin_inset Text - +\begin_layout Plain Layout +§ \end_layout -\begin_layout Standard -\begin_inset VSpace bigskip \end_inset + + +\begin_inset Text - +\begin_layout Plain Layout +c \end_layout -\begin_layout Standard -\begin_inset ERT -status collapsed +\end_inset + + + -\begin_layout Plain Layout +\end_inset -\backslash -ifmarginnote \end_layout \end_inset -\begin_inset Note Note -status open +\begin_inset ERT +status collapsed \begin_layout Plain Layout -The following section will only be displayed when the LaTeX-package -\series bold -marginnote -\series default - is installed. + +} \end_layout \end_inset @@ -26519,28 +34324,26 @@ marginnote \end_layout +\begin_layout Section +Rotated and Scaled Boxes +\end_layout + \begin_layout Standard -This restriction can be evaded by using the LaTeX-package +To use the commands described in this section, the LaTeX-package \series bold -marginnote +graphicx \series default \begin_inset Index idx status collapsed \begin_layout Plain Layout -LaTeX-packages ! marginnote +LaTeX-packages ! graphicx \end_layout \end_inset -. - By adding these two lines to your document preamble, the command used by - LyX for margin notes is redefined to use the command provided by the -\series bold -marginnote -\series default --package: + needs to be loaded in the document preamble with the command \end_layout \begin_layout Standard @@ -26548,96 +34351,101 @@ marginnote \series bold \backslash -usepackage{marginnote} +@ifundefined{rotatebox} \begin_inset Newline newline \end_inset +\begin_inset Phantom HPhantom +status open + +\begin_layout Plain Layout + +\series bold +\begin_inset space ~ +\end_inset + + +\end_layout + +\end_inset + +{ \backslash -let -\backslash -marginpar -\backslash -marginnote +usepackage{graphicx}}{} \end_layout \begin_layout Standard -This is also used in this document because +\begin_inset Note Greyedout +status open + +\begin_layout Plain Layout + \series bold -marginnote +Note: \series default - has another useful feature: You can set a vertical offset for the note. - This is often needed when too many margin notes are too close together - or for a better page layout. - The offset is set in LyX as TeX-Code directly after the margin note in - the scheme + Some DVI-viewers can't display rotated or scaled material. \end_layout -\begin_layout Standard +\end_inset + -\series bold -[offset] \end_layout \begin_layout Standard -where the offset is a length with one of the units listed in Table -\begin_inset space ~ -\end_inset +\begin_inset Note Greyedout +status open +\begin_layout Plain Layout -\begin_inset CommandInset ref -LatexCommand ref -reference "tab:Units" +\series bold +Note: +\series default + Floats mustn't be inside a rotated or scaled box. +\end_layout \end_inset -. - A negative value shifts the note up, a positive value shifts it down. - -\family roman -\series medium -For example the margin note beside this text line is shifted up 1.5 -\begin_inset space \thinspace{} -\end_inset -cm with the TeX-Code-command -\begin_inset Quotes eld -\end_inset +\end_layout +\begin_layout Subsection +Rotated Boxes +\begin_inset Index idx +status collapsed -\family default -\series bold -[-1.5cm] -\family roman -\series medium +\begin_layout Plain Layout +Boxes ! rotated +\end_layout -\begin_inset Quotes erd \end_inset -\begin_inset Marginal -status open +\begin_inset Index idx +status collapsed \begin_layout Plain Layout -This margin note is shifted up 1.5 -\begin_inset space \thinspace{} +Rotated material +\end_layout + \end_inset -cm from its original position. + +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +Figures ! rotated \end_layout \end_inset -\family default -\series default - -\begin_inset ERT +\begin_inset Index idx status collapsed \begin_layout Plain Layout - -[-1.5cm] +Table Customization ! Rotating \end_layout \end_inset @@ -26646,15 +34454,14 @@ status collapsed \end_layout \begin_layout Standard -\begin_inset VSpace medskip -\end_inset - -With +To rotate material, you can put it into a rotated box. + Such a box is created using the command \series bold -marginnote + +\backslash +rotatebox \series default - you can also change the alignment of the text in the margin note. - For example the commands + in TeX-Code with the following scheme: \end_layout \begin_layout Standard @@ -26662,101 +34469,107 @@ marginnote \series bold \backslash -renewcommand*{ -\backslash -raggedleftmarginnote}{ -\backslash -centering} -\begin_inset Newline newline -\end_inset - +rotatebox[rotation origin]{rotation angle}{box content} +\end_layout -\backslash -renewcommand*{ -\backslash -raggedrightmarginnote}{ -\backslash -centering} +\begin_layout Standard +The rotation origin is specified in the form +\series bold +origin=position +\series default +. + The following positions are possible: +\emph on +c +\emph default + (center), +\emph on +l +\emph default + (left), +\emph on +r +\emph default + (right), +\emph on +b +\emph default + (bottom), +\emph on +t +\emph default + (top), along with meaningful combinations of the four base positions. + For example +\emph on +lt +\emph default + means that the rotation origin is at the top left corner of the box. + When no rotation origin is specified, the position +\emph on +l +\emph default + will be used. + The rotation angle is a number that can be negative that specifies the + angle in degrees. + The rotation direction is counterclockwise. \end_layout \begin_layout Standard -set the alignment to centered. - +In the following example the command \series bold \backslash -raggedleftmarginnote +rotatebox[origin=c]{60}{ \series default - denotes margin notes that appear at the left side. -\family roman -\series medium - -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout + was inserted as TeX-Code before the text +\begin_inset Quotes eld +\end_inset +with rotated +\begin_inset Quotes erd +\end_inset -\backslash -renewcommand*{ -\backslash -raggedleftmarginnote}{ -\backslash -centering} +; after the text the box was closed by a closing brace +\series bold +} +\series default + in TeX-Code. \end_layout +\begin_layout Standard +This is a line +\begin_inset ERT +status collapsed + \begin_layout Plain Layout \backslash -renewcommand*{ -\backslash -raggedrightmarginnote}{ -\backslash -centering} +rotatebox[origin=c]{60}{ \end_layout \end_inset - -\begin_inset Marginal -status open +with rotated +\begin_inset ERT +status collapsed \begin_layout Plain Layout -The text of this margin note is centered. + +} \end_layout \end_inset - -\family default -\series default - The default is + text. \end_layout \begin_layout Standard +The box content can also be another box or an inline formula: +\end_layout -\series bold - -\backslash -renewcommand*{ -\backslash -raggedleftmarginnote}{ -\backslash -raggedleft} -\begin_inset Newline newline -\end_inset - - -\backslash -renewcommand*{ -\backslash -raggedrightmarginnote}{ -\backslash -raggedright} -\family roman -\series medium - +\begin_layout Standard +This is a line \begin_inset ERT status collapsed @@ -26764,282 +34577,224 @@ status collapsed \backslash -renewcommand*{ -\backslash -raggedleftmarginnote}{ -\backslash -raggedleft} -\end_layout - -\begin_layout Plain Layout - - -\backslash -renewcommand*{ -\backslash -raggedrightmarginnote}{ -\backslash -raggedright} +rotatebox[origin=r]{-60}{ \end_layout \end_inset +\begin_inset Box Doublebox +position "c" +hor_pos "c" +has_inner_box 0 +inner_pos "c" +use_parbox 0 +use_makebox 0 +width "1in" +special "width" +height "1in" +height_special "totalheight" +status collapsed + +\begin_layout Plain Layout +with rotated \end_layout -\begin_layout Standard -\begin_inset VSpace medskip \end_inset -For the other features of -\series bold -marginnote -\series default - refer to its documentation -\begin_inset CommandInset citation -LatexCommand cite -key "marginnote" -\end_inset +\begin_inset ERT +status collapsed -. -\end_layout +\begin_layout Plain Layout -\begin_layout Standard -\begin_inset VSpace bigskip -\end_inset +} +\end_layout -You can adjust the layout of margin notes by changing its definition. - To create for example a header for all margin notes with the underlined, - sans-serif, and bold header text -\begin_inset Quotes eld \end_inset + framed text +\begin_inset ERT +status collapsed -\family sans -\series bold -\bar under -Attention! -\family default -\series default -\bar default +\begin_layout Plain Layout -\begin_inset Quotes erd -\end_inset -, add this to your document preamble: +\backslash +rotatebox[origin=lb]{60}{ \end_layout -\begin_layout Standard - -\series bold - -\backslash -let -\backslash -myMarginpar -\backslash -marginpar -\begin_inset Newline newline \end_inset -\backslash -renewcommand{ -\backslash -marginpar}[1]{ -\backslash -myMarginpar{% -\begin_inset Newline newline +\begin_inset Formula $\int A\,\mathrm{d}x=B$ \end_inset -\begin_inset Phantom HPhantom -status open +\begin_inset ERT +status collapsed \begin_layout Plain Layout -\series bold -\begin_inset space ~ -\end_inset - - +} \end_layout \end_inset + and a formula. +\end_layout -\backslash -hspace{0pt} -\backslash -textsf{ -\backslash -textbf{ -\backslash -underbar{Attention!}}}% -\begin_inset Newline newline -\end_inset - +\begin_layout Standard +or an image or table: +\end_layout -\begin_inset Phantom HPhantom -status open +\begin_layout Standard +This is a line +\begin_inset ERT +status collapsed \begin_layout Plain Layout -\series bold -\begin_inset space ~ -\end_inset - +\backslash +rotatebox[origin=lb]{90}{ \end_layout \end_inset -\backslash -vspace{1.5mm} -\backslash +\begin_inset Graphics + filename clipart/platypus.eps + lyxscale 50 + width 25col% -\backslash -#1}} -\end_layout +\end_inset -\begin_layout Standard -\family roman -\series medium \begin_inset ERT status collapsed \begin_layout Plain Layout - -\backslash -let -\backslash -myMarginpar -\backslash -marginpar +} \end_layout -\begin_layout Plain Layout - +\end_inset -\backslash -renewcommand{ -\backslash -marginpar}[1]{ -\backslash -myMarginpar{% -\end_layout + with a rotated image +\begin_inset ERT +status collapsed \begin_layout Plain Layout - -\backslash -textsf{ -\backslash -textbf{ + \backslash -underbar{Attention!}}}% +rotatebox[origin=l]{-90}{ \end_layout +\end_inset + + +\begin_inset Tabular + + + + + + +\begin_inset Text + \begin_layout Plain Layout +q +\end_layout - -\backslash -vspace{1.5mm} -\backslash +\end_inset + + +\begin_inset Text -\backslash -#1}} +\begin_layout Plain Layout +w \end_layout \end_inset + + + + +\begin_inset Text +\begin_layout Plain Layout +e +\end_layout -\begin_inset Marginal -status open +\end_inset + + +\begin_inset Text \begin_layout Plain Layout -This is a margin note with a defined heading. +r \end_layout \end_inset + + + +\end_inset -\family default -\series default \begin_inset ERT status collapsed \begin_layout Plain Layout -[-1.5cm] +} \end_layout \end_inset + and table. +\end_layout -\family roman -\series medium - -\begin_inset ERT +\begin_layout Subsection +Scaled Boxes +\begin_inset Index idx status collapsed \begin_layout Plain Layout - - -\backslash -renewcommand{ -\backslash -marginpar}[1]{ -\backslash -myMarginpar{#1}} +Boxes ! scaled \end_layout \end_inset -\family default -\series default - -\begin_inset Note Note +\begin_inset Index idx status collapsed \begin_layout Plain Layout -The margin note format is changed only for this example. +Scaled material \end_layout \end_inset -\end_layout - -\begin_layout Standard -\begin_inset ERT +\begin_inset Index idx status collapsed \begin_layout Plain Layout - - -\backslash -else +Figures ! scaled \end_layout \end_inset -\begin_inset Note Note -status open +\begin_inset Index idx +status collapsed \begin_layout Plain Layout -The following will be displayed when the LaTeX-package -\series bold -marginnote -\series default - is not installed: +Table Customization ! Scaling \end_layout \end_inset @@ -27048,313 +34803,293 @@ marginnote \end_layout \begin_layout Standard -You need to install the LaTeX-package +To scale material the commands \series bold -marginnote + +\backslash +scalebox \series default - to see the following part of this section in the output. + and +\series bold + +\backslash +resizebox +\series default + can be used as TeX-Code. \end_layout \begin_layout Standard -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout +\series bold \backslash -fi +scalebox +\series default + is used with the following scheme: \end_layout -\end_inset +\begin_layout Standard +\series bold +\backslash +scalebox{horizontal}[vertical]{box content} \end_layout -\begin_layout Chapter -Boxes +\begin_layout Standard +Horizontal and vertical are the corresponding scaling factors. + If no vertical scaling factor is given, the horizontal factor will also + be used as the vertical one. \end_layout -\begin_layout Section -Introduction -\begin_inset Index idx +\begin_layout Standard +The command +\series bold + +\backslash +scalebox{2}{Hello} +\series default + creates for example a double size +\begin_inset ERT status collapsed \begin_layout Plain Layout -Boxes ! Introduction + + +\backslash +scalebox{2}{ \end_layout \end_inset +Hello +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +} \end_layout -\begin_layout Standard -Boxes are used to format a block of text. - Boxes can be used to write documents with multiple languages, see section -\begin_inset space ~ \end_inset +, compared with the document text size. +\end_layout -\begin_inset CommandInset ref -LatexCommand ref -reference "sec:Minipages" +\begin_layout Standard -\end_inset +\series bold -, to frame texts, see section -\begin_inset space ~ -\end_inset +\backslash +scalebox{2}[1]{Hello} +\series default + on the other hand distorts the +\begin_inset ERT +status collapsed +\begin_layout Plain Layout -\begin_inset CommandInset ref -LatexCommand ref -reference "sec:Decoration" -\end_inset +\backslash +scalebox{2}[1]{ +\end_layout -, to prevent words from being hyphenated, see section -\begin_inset space ~ \end_inset +Hello +\begin_inset ERT +status collapsed -\begin_inset CommandInset ref -LatexCommand ref -reference "sec:Prevent-Hyphenation" +\begin_layout Plain Layout -\end_inset +} +\end_layout -, to align text, see section -\begin_inset space ~ \end_inset +. +\end_layout -\begin_inset CommandInset ref -LatexCommand ref -reference "sub:Vertical-Alignment" +\begin_layout Standard +If the scaling factor is negative, the box content will be mirrored. + Therefore the command +\series bold -\end_inset +\backslash +scalebox{-1}[1]{Hello} +\series default + can be used to create mirror writing: +\begin_inset ERT +status collapsed -, or to set the background color of texts, see section -\begin_inset space ~ -\end_inset +\begin_layout Plain Layout -\begin_inset CommandInset ref -LatexCommand ref -reference "sec:Colored-Boxes" +\backslash +scalebox{-1}[1]{ +\end_layout \end_inset -. -\end_layout - -\begin_layout Standard -Boxes can be inserted with the menu -\family sans -Insert\SpecialChar \menuseparator -Box -\family default - or the toolbar button -\begin_inset Graphics - filename ../images/box-insert.png - scale 85 - scaleBeforeRotation +Hello +\begin_inset ERT +status collapsed -\end_inset +\begin_layout Plain Layout -. - A grey box with the label -\family sans -Box (Minipage) -\family default -: -\begin_inset Graphics - filename clipart/BoxInsetDefaultQt4.png - scale 85 - scaleBeforeRotation +} +\end_layout \end_inset - will be inserted. - The box type can be specified by right-clicking on the box and selecting - -\family sans -Settings -\family default -. - The box dialog offers the -\family sans -Inner -\begin_inset space ~ -\end_inset -Box -\family default - types -\family sans -Makebox -\family default -, -\family sans -Parbox -\family default - and -\family sans -Minipage -\family default -. - The type -\family sans -Minipage -\family default - is the default for new boxes and is explained in section -\begin_inset space ~ -\end_inset +\end_layout +\begin_layout Standard -\begin_inset CommandInset ref -LatexCommand ref -reference "sec:Minipages" +\series bold -\end_inset +\backslash +scalebox{1}[-1]{Hello} +\series default + reflects the +\begin_inset ERT +status collapsed -; the type -\family sans -Parbox -\family default - is described in section -\begin_inset space ~ -\end_inset +\begin_layout Plain Layout -\begin_inset CommandInset ref -LatexCommand ref -reference "sec:Parboxes" +\backslash +scalebox{1}[-1]{ +\end_layout \end_inset - and the type -\family sans -Makebox -\family default - in -\begin_inset CommandInset ref -LatexCommand ref -reference "sec:Prevent-Hyphenation" +Hello +\begin_inset ERT +status collapsed -\end_inset +\begin_layout Plain Layout -. +} \end_layout -\begin_layout Standard -Boxes are not numbered and can therefore not be referenced like floats or - footnotes. +\end_inset + + at the base line. \end_layout \begin_layout Standard -\begin_inset Note Greyedout -status open +Equivalent to +\series bold + +\backslash +scalebox{-1}[1]{box content} +\series default + there exists the command +\begin_inset Newline newline +\end_inset -\begin_layout Plain Layout \series bold -Note: + +\backslash +reflectbox{box content} \series default - Boxes must not be the item in an -\family sans -Itemize -\family default - or -\family sans -Description -\family default - environment. +. \end_layout +\begin_layout Standard +\begin_inset VSpace bigskip \end_inset +The command +\series bold +\backslash +resizebox +\series default + is used to scale the box to a defined width and height. + The command scheme is: \end_layout \begin_layout Standard -\begin_inset Note Greyedout -status open -\begin_layout Plain Layout +\series bold + +\backslash +resizebox{width}{height}{box content} +\end_layout +\begin_layout Standard +If one of the two command arguments given is an exclamation mark \series bold -Note: +! \series default - For an unknown reason you can only set the -\family sans -Inner -\begin_inset space ~ -\end_inset - -Box -\family default - type to -\family sans -None -\family default - when you use a framed box. - Boxes without an -\family sans -Inner -\begin_inset space ~ -\end_inset +, the size is set so that the aspect ratio of the box content is kept. +\end_layout -Box -\family default - type and without frames are explained in section -\begin_inset space ~ -\end_inset +\begin_layout Standard +The command +\series bold +\backslash +resizebox{2cm}{1cm}{Hello} +\series default + produces: +\begin_inset ERT +status collapsed -\begin_inset CommandInset ref -LatexCommand ref -reference "sec:Prevent-Hyphenation" +\begin_layout Plain Layout -\end_inset -. +\backslash +resizebox{2cm}{1cm}{ \end_layout \end_inset +Hello +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +} \end_layout -\begin_layout Section -Box Dialog -\begin_inset CommandInset label -LatexCommand label -name "sec:Box-Dialog" +\end_inset + +\begin_inset Newline newline \end_inset +The command +\series bold -\begin_inset Index idx +\backslash +resizebox{2cm}{!}{Hello} +\series default + produces: +\begin_inset ERT status collapsed \begin_layout Plain Layout -Boxes ! Box Dialog -\end_layout - -\end_inset +\backslash +resizebox{2cm}{!}{ \end_layout -\begin_layout Subsection -Size -\begin_inset Index idx +\end_inset + +Hello +\begin_inset ERT status collapsed \begin_layout Plain Layout -Boxes ! Size + +} \end_layout \end_inset @@ -27363,331 +35098,257 @@ Boxes ! Size \end_layout \begin_layout Standard -In the box dialog you can adjust the box geometry in the fields -\family sans -Width -\family default - and -\family sans -Height -\family default -. - The available units for the geometry are explained in Table -\begin_inset space ~ +\begin_inset VSpace bigskip \end_inset -\begin_inset CommandInset ref -LatexCommand ref -reference "tab:Units" +\begin_inset Note Greyedout +status open + +\begin_layout Plain Layout + +\series bold +Note: +\series default + When arguments of +\series bold + +\backslash +scalebox +\series default + or +\series bold + +\backslash +resizebox +\series default + are set to zero, no LaTeX-errors occur when exporting the document but + the exported files can not or only partly be displayed. +\end_layout + +\end_inset + +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip \end_inset -. - The field -\family sans -Height -\family default - offers the following additional sizes: + \end_layout -\begin_layout Description -Depth This is the plain text -\begin_inset Quotes eld +\begin_layout Standard +The boxes can be combined in any order. + E. +\begin_inset space \thinspace{} \end_inset -height -\begin_inset Quotes erd +g. +\begin_inset space \space{} \end_inset -. - It ignores the total depth when there are multiple text lines in the box: +the command \begin_inset Newline newline \end_inset -\begin_inset Newline newline -\end_inset - +\series bold +\backslash +rotatebox[origin=c]{-45}{ +\backslash +resizebox{2cm}{!}{ +\backslash +reflectbox{Hello}}} \begin_inset Newline newline \end_inset -\begin_inset Box Boxed -position "c" -hor_pos "c" -has_inner_box 1 -inner_pos "c" -use_parbox 0 -use_makebox 0 -width "12col%" -special "none" -height "1in" -height_special "depth" +\series default +produces: +\end_layout + +\begin_layout Standard +\align center +\begin_inset ERT status collapsed \begin_layout Plain Layout -\align center -Box height set to 1 -\begin_inset space \thinspace{} -\end_inset -Depth + +\backslash +rotatebox[origin=c]{-45}{ +\backslash +resizebox{2cm}{!}{ +\backslash +reflectbox{ \end_layout \end_inset +Hello +\begin_inset ERT +status collapsed -\begin_inset Newline newline -\end_inset +\begin_layout Plain Layout +}}} +\end_layout -\begin_inset Newline newline \end_inset \end_layout -\begin_layout Description -Height This is the height of the text that is inside the box. - A value of e. -\begin_inset space \thinspace{} -\end_inset - -g. -\begin_inset space \space{} -\end_inset - -2 for this size will set the box height to 2 -\begin_inset space ~ -\end_inset +\begin_layout Standard +\noindent +Images, tables, and inline formulas are allowed as box content: +\end_layout -times the text height: -\begin_inset Box Boxed -position "c" -hor_pos "c" -has_inner_box 1 -inner_pos "c" -use_parbox 0 -use_makebox 0 -width "20col%" -special "none" -height "2in" -height_special "height" +\begin_layout Standard +\align center +\begin_inset ERT status collapsed \begin_layout Plain Layout -\align center -Box height set to 2 -\begin_inset space \thinspace{} -\end_inset -Height + +\backslash +rotatebox[origin=c]{-30}{ +\backslash +resizebox{2cm}{!}{ +\backslash +reflectbox{ \end_layout \end_inset -\end_layout - -\begin_layout Description -Total -\begin_inset space ~ -\end_inset +\begin_inset Graphics + filename clipart/platypus.eps + lyxscale 50 + width 25col% -Height This is the Height -\begin_inset space \thinspace{} \end_inset -+ -\begin_inset space \thinspace{} -\end_inset -Depth: -\begin_inset Box Boxed -position "c" -hor_pos "c" -has_inner_box 1 -inner_pos "c" -use_parbox 0 -use_makebox 0 -width "20col%" -special "none" -height "1in" -height_special "totalheight" +\begin_inset ERT status collapsed \begin_layout Plain Layout -\align center -Box height set to 1 -\begin_inset space \thinspace{} -\end_inset - -Total -\begin_inset space ~ -\end_inset -Height +}}} \end_layout \end_inset -\end_layout - -\begin_layout Description -Width This sets the width of the box as height: -\begin_inset Box Boxed -position "c" -hor_pos "c" -has_inner_box 1 -inner_pos "c" -use_parbox 0 -use_makebox 0 -width "12col%" -special "none" -height "1in" -height_special "width" +\begin_inset ERT status collapsed \begin_layout Plain Layout -\align center -Box height set to 1 -\begin_inset space \thinspace{} -\end_inset -Width + +\backslash +rotatebox[origin=c]{-45}{ +\backslash +resizebox{2cm}{!}{ +\backslash +reflectbox{ \end_layout \end_inset -\end_layout - -\begin_layout Subsection -Alignment -\begin_inset Index idx -status collapsed +\begin_inset Tabular + + + + + + +\begin_inset Text \begin_layout Plain Layout -Boxes ! Alignment +q \end_layout \end_inset + + +\begin_inset Text - +\begin_layout Plain Layout +w \end_layout -\begin_layout Standard -When you have chosen an -\family sans -Inner -\begin_inset space ~ \end_inset + + + + +\begin_inset Text -Box -\family default -, the vertical box alignment can be: +\begin_layout Plain Layout +e \end_layout -\begin_layout Description -Top This is an example text line. - -\begin_inset Box Boxed -position "t" -hor_pos "c" -has_inner_box 1 -inner_pos "c" -use_parbox 0 -use_makebox 0 -width "12col%" -special "none" -height "1in" -height_special "totalheight" -status collapsed +\end_inset + + +\begin_inset Text \begin_layout Plain Layout -\align center -This box is top-aligned. +r \end_layout \end_inset + + + - This is an example text line. -\end_layout +\end_inset -\begin_layout Description -Middle This is an example text line. - -\begin_inset Box Boxed -position "c" -hor_pos "c" -has_inner_box 1 -inner_pos "c" -use_parbox 0 -use_makebox 0 -width "12col%" -special "none" -height "1in" -height_special "totalheight" + +\begin_inset ERT status collapsed \begin_layout Plain Layout -\align center -This box is middle-aligned. + +}}} \end_layout \end_inset - This is an example text line. -\end_layout -\begin_layout Description -Bottom This is an example text line. - -\begin_inset Box Boxed -position "b" -hor_pos "c" -has_inner_box 1 -inner_pos "c" -use_parbox 0 -use_makebox 0 -width "12col%" -special "none" -height "1in" -height_special "totalheight" +\begin_inset ERT status collapsed \begin_layout Plain Layout -\align center -This box is bottom-aligned. -\end_layout -\end_inset - This is an example text line. +\backslash +rotatebox[origin=c]{-45}{ +\backslash +resizebox{2cm}{!}{ +\backslash +reflectbox{ \end_layout -\begin_layout Standard -\begin_inset Note Greyedout -status open +\end_inset -\begin_layout Plain Layout -\series bold -Note: -\series default - The vertical box alignment can be lost in the output when you have two - boxes in a line and one has e. -\begin_inset space \thinspace{} +\begin_inset Formula $\int A\,\mathrm{d}x=B$ \end_inset -g. -\begin_inset space \space{} -\end_inset -a shadow and the other one not. +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +}}} \end_layout \end_inset @@ -27696,188 +35357,162 @@ a shadow and the other one not. \end_layout \begin_layout Standard -The horizontal box alignment can be set via LyX's paragraph dialog when - you set the box into its own paragraph. -\end_layout +When the global formula style +\series bold +fleqn +\series default + is used in the document +\begin_inset Foot +status collapsed -\begin_layout Standard -\begin_inset VSpace bigskip +\begin_layout Plain Layout +When +\begin_inset Quotes eld \end_inset -When you have chosen an -\family sans -Inner -\begin_inset space ~ +fleqn +\begin_inset Quotes erd \end_inset -Box -\family default -, the box content can be aligned vertically to: + is added to the document class options. \end_layout -\begin_layout Description -top This is an example text line. - -\begin_inset Box Boxed -position "c" -hor_pos "c" -has_inner_box 1 -inner_pos "t" -use_parbox 0 -use_makebox 0 -width "12col%" -special "none" -height "1.5in" -height_special "totalheight" +\end_inset + +, display style formulas can also be scaled. +\end_layout + +\begin_layout Chapter +Objects Surrounded by Text +\begin_inset Index idx status collapsed \begin_layout Plain Layout -\align center -This box text is top-aligned. +Surrounded by text \end_layout \end_inset - This is an example text line. + \end_layout -\begin_layout Description -middle This is an example text line. - -\begin_inset Box Boxed -position "c" -hor_pos "c" -has_inner_box 1 -inner_pos "c" -use_parbox 0 -use_makebox 0 -width "12col%" -special "none" -height "1.5in" -height_special "totalheight" +\begin_layout Section +Wrap Floats +\begin_inset CommandInset label +LatexCommand label +name "sec:Wrap-Floats" + +\end_inset + + +\begin_inset Index idx status collapsed \begin_layout Plain Layout -\align center -This box text is middle-aligned. +Floats ! Wrap Floats \end_layout \end_inset - This is an example text line. -\end_layout -\begin_layout Description -bottom This is an example text line. - -\begin_inset Box Boxed -position "c" -hor_pos "c" -has_inner_box 1 -inner_pos "b" -use_parbox 0 -use_makebox 0 -width "12col%" -special "none" -height "1.5in" -height_special "totalheight" +\begin_inset Index idx status collapsed \begin_layout Plain Layout -\align center -This box text is bottom-aligned. +Surrounded by text ! Wrap Floats \end_layout \end_inset - This is an example text line. + \end_layout -\begin_layout Description -stretch This is an example text line. - -\begin_inset Box Boxed -position "c" -hor_pos "c" -has_inner_box 1 -inner_pos "s" -use_parbox 0 -use_makebox 0 -width "12col%" -special "none" -height "1.5in" -height_special "totalheight" -status collapsed +\begin_layout Standard +\begin_inset Wrap figure +lines 0 +placement l +overhang 1cm +width "40col%" +status open \begin_layout Plain Layout -\align center -This box +\begin_inset Graphics + filename clipart/mobius.eps + width 40col% + scaleBeforeRotation + rotateOrigin center + +\end_inset + + \end_layout \begin_layout Plain Layout -\align center -text is -\end_layout +\begin_inset Caption \begin_layout Plain Layout -\align center -stretched. -\end_layout +\begin_inset CommandInset label +LatexCommand label +name "fig:This-is-a" \end_inset - This is an example text line. +This is a figure wrap float. \end_layout -\begin_layout Standard -To stretch the box content, it must consist of more than one paragraph. - In the example above every text line is in an own paragraph. +\end_inset + + \end_layout -\begin_layout Standard -\begin_inset VSpace bigskip \end_inset -To align the box content horizontally you can use LyX's paragraph dialog - when you have chosen an + This float type is used if you want to wrap text around a figure or table + so that it only occupies some fraction of the column width. + It can be inserted using the menu \family sans -Inner +Insert\SpecialChar \menuseparator +Floats\SpecialChar \menuseparator +Figure \begin_inset space ~ \end_inset -Box +Wrap +\begin_inset space ~ +\end_inset + +Float \family default -. -\end_layout + or +\family sans +Table +\begin_inset space ~ +\end_inset -\begin_layout Standard -\align center -\begin_inset Box Boxed -position "c" -hor_pos "c" -has_inner_box 1 -inner_pos "s" -use_parbox 0 -use_makebox 0 -width "15col%" -special "none" -height "1.25in" -height_special "totalheight" +Wrap +\begin_inset space ~ +\end_inset + +Float +\family default + if the LaTeX-package +\series bold +wrapfig +\series default + +\begin_inset Index idx status collapsed \begin_layout Plain Layout -\align left -This box -\end_layout +LaTeX-packages ! wrapfig +\begin_inset ERT +status collapsed \begin_layout Plain Layout -\align center -text is -\end_layout -\begin_layout Plain Layout -\align right -stretched. + +\backslash +vspace{4mm} \end_layout \end_inset @@ -27885,154 +35520,162 @@ stretched. \end_layout -\begin_layout Standard -If you have not set an -\family sans -Inner -\begin_inset space ~ \end_inset -Box -\family default -, you can align the box content horizontally in the box dialog. -\end_layout - -\begin_layout Standard -\align center -\begin_inset Box Boxed -position "c" -hor_pos "s" -has_inner_box 0 -inner_pos "s" -use_parbox 0 -use_makebox 0 -width "90col%" -special "none" -height "1.25in" -height_special "totalheight" + is installed. +\begin_inset Foot status collapsed \begin_layout Plain Layout -This box text is horizontally stretched. +Installing a LaTeX-package is explained it in the +\emph on +LaTeX +\begin_inset space ~ +\end_inset + +Configuration +\emph default + manual. \end_layout \end_inset + The settings of the float can be modified by right-clicking on the float + box. + The mandatory settings are the float +\family sans +Placement +\family default + and its +\family sans +Width +\family default +. + Optional are the +\family sans +Overhang +\family default + that specifies how much the float is set into the paragraph +\begin_inset space \thinspace{} +\end_inset -\end_layout +/ +\begin_inset space \thinspace{} +\end_inset -\begin_layout Subsection -Decoration -\begin_inset CommandInset label -LatexCommand label -name "sec:Decoration" +page margin, and the +\family sans +Line +\begin_inset space ~ +\end_inset +span +\family default + that specifies how many text lines the float will approximately need. + The line span is often hard to approximate; so it is better only to use + it when you encounter float placement problems. + You can furthermore decide if LaTeX is allowed to let the float float within + the paragraph or to surrounding paragraphs. + Figure +\begin_inset space ~ \end_inset -\begin_inset Index idx -status collapsed +\begin_inset CommandInset ref +LatexCommand ref +reference "fig:This-is-a" -\begin_layout Plain Layout -Boxes ! Decoration -\end_layout +\end_inset + is an example text wrap float with a width of 40 +\begin_inset space \thinspace{} \end_inset +col%, 1 +\begin_inset space \thinspace{} +\end_inset +cm overhang, set to the left. \end_layout \begin_layout Standard -The type of the box can be specified in the box dialog in the drop-down - list -\family sans -Decoration -\family default -. - The following types are possible: -\end_layout +\begin_inset Note Greyedout +status open -\begin_layout Description -No +\begin_layout Plain Layout + +\series bold +Note: +\series default + Text \begin_inset space ~ \end_inset -frame Nothing is drawn. -\end_layout +wrap float floats are fragile! E. +\begin_inset space \thinspace{} +\end_inset -\begin_layout Description -Simple -\begin_inset space ~ +g. +\begin_inset space \space{} \end_inset -rectangular -\begin_inset space ~ +having a figure too close to the bottom of the page can mess things up in + such a way that the float does not appear in the output or that it is placed + over some other text. +\end_layout + \end_inset -frame This draws a rectangular frame around the box. - The frame line thickness has the size of -\series bold -\backslash -fboxrule -\series default -. - -\begin_inset Box Boxed -position "c" -hor_pos "c" -has_inner_box 1 -inner_pos "c" -use_parbox 0 -use_makebox 0 -width "20col%" -special "none" -height "1in" -height_special "totalheight" -status collapsed +\end_layout -\begin_layout Plain Layout -\align center -Rectangular box +\begin_layout Standard +In general, the following applies for wrap floats: \end_layout -\end_inset +\begin_layout Itemize +They should not be placed in paragraphs that run over a page break. + That means that wrap floats are better inserted in their exact place when + the document is almost finished and you are able to estimate where page + breaks will appear. +\end_layout +\begin_layout Itemize +They should either be placed in their own paragraph before the paragraph + where they should wrap into or within a paragraph. +\end_layout +\begin_layout Itemize +In consecutive paragraphs they may cause troubles, so ensure that there + is a text paragraph between them as separator. \end_layout -\begin_layout Description -Oval -\begin_inset space ~ -\end_inset +\begin_layout Itemize +They are not allowed in section headings or tables. +\end_layout -box, -\begin_inset space ~ +\begin_layout Itemize +Their numbering and referencing works as described in chap. +\begin_inset space \thinspace{} \end_inset -thin This draws an oval frame around the box. - The frame line thickness has the size 0.4 -\begin_inset space \thinspace{} + +\begin_inset CommandInset ref +LatexCommand ref +reference "chap:Floats" + \end_inset -pt. - -\begin_inset Box ovalbox -position "c" -hor_pos "c" -has_inner_box 1 -inner_pos "c" -use_parbox 0 -use_makebox 0 -width "20col%" -special "none" -height "1in" -height_special "totalheight" +. +\end_layout + +\begin_layout Section +Surrounded Fixed Objects +\begin_inset Index idx status collapsed \begin_layout Plain Layout -\align center -Oval box, thin +Surrounded by text ! Fixed objects \end_layout \end_inset @@ -28040,105 +35683,104 @@ Oval box, thin \end_layout -\begin_layout Description -Oval -\begin_inset space ~ +\begin_layout Standard +The wrap floats described in sec. +\begin_inset space \thinspace{} \end_inset -box, -\begin_inset space ~ -\end_inset -thick This draws an oval frame around the box. - The frame line thickness has the size 0.8 -\begin_inset space \thinspace{} +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Wrap-Floats" + \end_inset -pt. - -\begin_inset Box Ovalbox -position "c" -hor_pos "c" -has_inner_box 1 -inner_pos "c" -use_parbox 0 -use_makebox 0 -width "20col%" -special "none" -height "1in" -height_special "totalheight" -status collapsed + have these positions in the paragraph: +\end_layout -\begin_layout Plain Layout +\begin_layout Standard +\noindent \align center -Oval box, thick -\end_layout +\begin_inset Tabular + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Graphics + filename ../images/dialog-show-new-inset_graphics.png + scale 70 + scaleBeforeRotation \end_inset \end_layout -\begin_layout Description -Drop -\begin_inset space ~ \end_inset + + +\begin_inset Text -shadow This draws a rectangular frame with a shadow around the box. - The frame line thickness has the size of -\series bold +\begin_layout Plain Layout +text +\end_layout -\backslash -fboxrule -\series default -, the shadow has a width of 4 -\begin_inset space \thinspace{} \end_inset - -pt. - -\begin_inset Box Shadowbox -position "c" -hor_pos "c" -has_inner_box 1 -inner_pos "c" -use_parbox 0 -use_makebox 0 -width "20col%" -special "none" -height "1in" -height_special "totalheight" -status collapsed + + + + +\begin_inset Text \begin_layout Plain Layout -\align center -Shadow box +text \end_layout \end_inset + + +\begin_inset Text - +\begin_layout Plain Layout +text \end_layout -\begin_layout Description -Shaded -\begin_inset space ~ \end_inset + + + -background This draws a box with a red background. - Unlike colored boxes -\begin_inset Foot -status collapsed +\end_inset + + or +\begin_inset Tabular + + + + + + +\begin_inset Text \begin_layout Plain Layout -see sec. -\begin_inset space \thinspace{} -\end_inset +text +\end_layout +\end_inset + + +\begin_inset Text -\begin_inset CommandInset ref -LatexCommand ref -reference "sec:Colored-Boxes" +\begin_layout Plain Layout +\begin_inset Graphics + filename ../images/dialog-show-new-inset_graphics.png + scale 70 + scaleBeforeRotation \end_inset @@ -28146,574 +35788,597 @@ reference "sec:Colored-Boxes" \end_layout \end_inset - -, it always uses the whole column width and the box is set as its own paragraph. - -\begin_inset Box Shaded -position "t" -hor_pos "c" -has_inner_box 0 -inner_pos "t" -use_parbox 0 -use_makebox 0 -width "50col%" -special "none" -height "1in" -height_special "totalheight" -status collapsed + + + + +\begin_inset Text \begin_layout Plain Layout -Shaded background box +text \end_layout \end_inset + + +\begin_inset Text - +\begin_layout Plain Layout +text \end_layout -\begin_layout Description -Double -\begin_inset space ~ \end_inset + + + -rectangular -\begin_inset space ~ \end_inset -frame This draws a double-line rectangular frame around the box. - The line thickness of the inner frame is 0.75 -\begin_inset space \thinspace{} + +\end_layout + +\begin_layout Standard +To get an object exactly at the position where it is inserted, for example + to get one of these positions: +\begin_inset VSpace defskip \end_inset -\series bold +\end_layout -\backslash -fboxrule -\series default -, the thickness of the outer frame is 1.5 -\begin_inset space \thinspace{} -\end_inset +\begin_layout Standard +\noindent +\align center +\begin_inset Tabular + + + + + + +\begin_inset Text +\begin_layout Plain Layout +text +\end_layout -\series bold +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +text +\end_layout -\backslash -fboxrule -\series default -. - The distance between the lines is 1.5 -\begin_inset space \thinspace{} \end_inset + + + + +\begin_inset Text +\begin_layout Plain Layout +\begin_inset Graphics + filename ../images/dialog-show-new-inset_graphics.png + scale 70 + scaleBeforeRotation -\series bold +\end_inset -\backslash -fboxrule -\series default -\begin_inset space \thinspace{} +\end_layout + \end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +text +\end_layout -+ -\begin_inset space \thinspace{} \end_inset + + + -0.5 -\begin_inset space \thinspace{} \end_inset -pt. -\begin_inset Box Doublebox -position "c" -hor_pos "c" -has_inner_box 1 -inner_pos "c" -use_parbox 0 -use_makebox 0 -width "20col%" -special "none" -height "1in" -height_special "totalheight" -status collapsed +\begin_inset Tabular + + + + + + +\begin_inset Text \begin_layout Plain Layout -\align center -Double rectangular box +text +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +text \end_layout \end_inset + + + + +\begin_inset Text - +\begin_layout Plain Layout +text \end_layout -\begin_layout Standard -\begin_inset VSpace bigskip \end_inset - -LyX's box label will reflect the different frame types. - To be able to use all types, the LaTeX-package -\series bold -fancybox -\series default - -\begin_inset Index idx -status collapsed + + +\begin_inset Text \begin_layout Plain Layout -LaTeX-packages ! fancybox -\end_layout +\begin_inset Graphics + filename ../images/dialog-show-new-inset_graphics.png + scale 70 + scaleBeforeRotation \end_inset - must be installed. + \end_layout -\begin_layout Standard -\begin_inset VSpace bigskip \end_inset + + + -When you use the decoration -\family sans -simple rectangular frame -\family default - and no inner box, you can allow page breaks within a box. - Note that then, unlike other framed boxes, the frame always uses the whole - column width, the box is set as its own paragraph, and -\series bold - -\backslash -fboxrule -\series default - and -\series bold - -\backslash -fboxsep -\series default - have no effect on this box type. - The frame line thickness has the size of -\series bold +\end_inset -\backslash -FrameRule -\series default -. -\begin_inset Box Framed -position "t" -hor_pos "c" -has_inner_box 0 -inner_pos "t" -use_parbox 0 -use_makebox 0 -width "100col%" -special "none" -height "1in" -height_special "totalheight" -status collapsed +\begin_inset Tabular + + + + + + + +\begin_inset Text \begin_layout Plain Layout -Allow page break box +text \end_layout \end_inset - - -\end_layout - -\begin_layout Section -Box Customization -\begin_inset Index idx -status collapsed + + +\begin_inset Text \begin_layout Plain Layout -Boxes ! Customization -\end_layout +\begin_inset Graphics + filename ../images/dialog-show-new-inset_graphics.png + scale 70 + scaleBeforeRotation \end_inset \end_layout -\begin_layout Standard -The default value for the size -\series bold - -\backslash -fboxrule -\series default - is 0.4 -\begin_inset space \thinspace{} -\end_inset - -pt. - It can be changed with the following command in TeX-code to e. -\begin_inset space \thinspace{} \end_inset + + +\begin_inset Text -g. -\begin_inset space \space{} -\end_inset +\begin_layout Plain Layout +text +\end_layout -2 -\begin_inset space \thinspace{} \end_inset + + + + +\begin_inset Text -pt: +\begin_layout Plain Layout +text \end_layout -\begin_layout Standard - -\series bold +\end_inset + + +\begin_inset Text -\backslash -setlength{ -\backslash -fboxrule}{2pt} +\begin_layout Plain Layout +text \end_layout -\begin_layout Standard -\begin_inset ERT -status collapsed +\end_inset + + +\begin_inset Text \begin_layout Plain Layout - - -\backslash -setlength{ -\backslash -fboxrule}{2pt} +text \end_layout \end_inset + + + +\end_inset -\begin_inset Box Boxed -position "c" -hor_pos "c" -has_inner_box 1 -inner_pos "c" -use_parbox 0 -use_makebox 0 -width "25col%" -special "none" -height "1in" -height_special "totalheight" -status open + +\begin_inset Tabular + + + + + + + +\begin_inset Text \begin_layout Plain Layout -\align center -Rectangular box with -\series bold - -\backslash -fboxrule -\series default +text +\end_layout -\begin_inset space \thinspace{} \end_inset + + +\begin_inset Text -= -\begin_inset space \thinspace{} -\end_inset +\begin_layout Plain Layout +text +\end_layout -2 -\begin_inset space \thinspace{} \end_inset + + +\begin_inset Text -pt +\begin_layout Plain Layout +text \end_layout \end_inset + + + + +\begin_inset Text +\begin_layout Plain Layout +text +\end_layout -\begin_inset ERT -status collapsed +\end_inset + + +\begin_inset Text \begin_layout Plain Layout +\begin_inset Graphics + filename ../images/dialog-show-new-inset_graphics.png + scale 70 + scaleBeforeRotation + +\end_inset -\backslash -setlength{ -\backslash -fboxrule}{0.4pt} \end_layout \end_inset + + +\begin_inset Text - +\begin_layout Plain Layout +text \end_layout -\begin_layout Standard -\begin_inset VSpace bigskip \end_inset + + + -The space between the frame and the box content is for all frame styles - by default 3 -\begin_inset space \thinspace{} \end_inset -pt. - You can change it by setting the length -\series bold -\backslash -fboxsep -\series default - to another value. - For example the command \end_layout \begin_layout Standard +\noindent +\align center +\begin_inset Tabular + + + + + + +\begin_inset Text -\series bold - -\backslash -setlength{ -\backslash -fboxsep}{10pt} +\begin_layout Plain Layout +text \end_layout -\begin_layout Standard -sets the value to 10 -\begin_inset space \thinspace{} \end_inset + + +\begin_inset Text -pt, as with the following box: +\begin_layout Plain Layout +text \end_layout -\begin_layout Standard -\begin_inset ERT -status collapsed +\end_inset + + + + +\begin_inset Text \begin_layout Plain Layout +\begin_inset Graphics + filename ../images/dialog-show-new-inset_graphics.png + scale 70 + scaleBeforeRotation + +\end_inset -\backslash -setlength{ -\backslash -fboxsep}{10pt} \end_layout \end_inset - - -\begin_inset Box Boxed -position "c" -hor_pos "c" -has_inner_box 1 -inner_pos "c" -use_parbox 0 -use_makebox 0 -width "25col%" -special "none" -height "1in" -height_special "totalheight" -status open + + +\begin_inset Text \begin_layout Plain Layout -\align center -Rectangular box with -\series bold - -\backslash -fboxsep -\series default +text +\end_layout -\begin_inset space \thinspace{} \end_inset + + + + +\begin_inset Text -= -\begin_inset space \thinspace{} -\end_inset +\begin_layout Plain Layout +text +\end_layout -10 -\begin_inset space \thinspace{} \end_inset + + +\begin_inset Text -pt +\begin_layout Plain Layout +text \end_layout \end_inset + + + +\end_inset -\begin_inset ERT -status collapsed + +\begin_inset Tabular + + + + + + + +\begin_inset Text \begin_layout Plain Layout - - -\backslash -setlength{ -\backslash -fboxsep}{3pt} +text \end_layout \end_inset + + +\begin_inset Text - +\begin_layout Plain Layout +text \end_layout -\begin_layout Standard -\begin_inset VSpace bigskip \end_inset + + +\begin_inset Text -The diameter of the round corners of the oval boxes can be set with the - command -\series bold - -\backslash -cornersize -\series default -. - The command +\begin_layout Plain Layout +text \end_layout -\begin_layout Standard - -\series bold +\end_inset + + + + +\begin_inset Text -\backslash -cornersize*{1cm} +\begin_layout Plain Layout +text \end_layout -\begin_layout Standard -sets the diameter to 1 -\begin_inset space \thinspace{} \end_inset + + +\begin_inset Text -cm. - The command -\end_layout +\begin_layout Plain Layout +\begin_inset Graphics + filename ../images/dialog-show-new-inset_graphics.png + scale 70 + scaleBeforeRotation -\begin_layout Standard +\end_inset -\series bold -\backslash -cornersize{num} \end_layout -\begin_layout Standard -sets the diameter to -\family sans -num -\begin_inset space \thinspace{} \end_inset + + +\begin_inset Text -× -\begin_inset space \thinspace{} -\end_inset +\begin_layout Plain Layout +text +\end_layout -minimum(width and height of box) -\family default -. - The default is -\series bold +\end_inset + + + + +\begin_inset Text -\backslash -cornersize{0.5} -\series default -. +\begin_layout Plain Layout +text \end_layout -\begin_layout Standard -\begin_inset ERT -status collapsed +\end_inset + + +\begin_inset Text \begin_layout Plain Layout +text +\end_layout +\end_inset + + +\begin_inset Text -\backslash -cornersize*{1.5cm} +\begin_layout Plain Layout +text \end_layout +\end_inset + + + + \end_inset + +\begin_inset Tabular + + + + + + +\begin_inset Text -\begin_inset Box Ovalbox -position "c" -hor_pos "c" -has_inner_box 1 -inner_pos "c" -use_parbox 0 -use_makebox 0 -width "25col%" -special "none" -height "1in" -height_special "totalheight" -status open +\begin_layout Plain Layout +text +\end_layout + +\end_inset + + +\begin_inset Text \begin_layout Plain Layout -\align center -Oval box with -\series bold - -\backslash -cornersize -\series default +text +\end_layout -\begin_inset space \thinspace{} \end_inset + + + + +\begin_inset Text -= -\begin_inset space \thinspace{} -\end_inset +\begin_layout Plain Layout +text +\end_layout -1.5 -\begin_inset space \thinspace{} \end_inset + + +\begin_inset Text -cm -\end_layout +\begin_layout Plain Layout +\begin_inset Graphics + filename ../images/dialog-show-new-inset_graphics.png + scale 70 + scaleBeforeRotation \end_inset -\begin_inset ERT -status collapsed +\end_layout + +\end_inset + + + + +\begin_inset Text \begin_layout Plain Layout +text +\end_layout +\end_inset + + +\begin_inset Text -\backslash -cornersize{0.5} +\begin_layout Plain Layout +text \end_layout +\end_inset + + + + \end_inset \end_layout \begin_layout Standard -\begin_inset VSpace bigskip -\end_inset - -The size of the shadow can be adjusted by changing the length +\noindent +you can use the LaTeX-package \series bold - -\backslash -shadowsize +picinpar \series default -. - It it set to 2 -\begin_inset space \thinspace{} -\end_inset -pt for the following box by this command: -\end_layout +\begin_inset Index idx +status collapsed -\begin_layout Standard +\begin_layout Plain Layout +LaTeX-packages ! picinpar +\end_layout -\series bold +\end_inset -\backslash -setlength{ -\backslash -shadowsize}{2pt} +. + Here is an example: \end_layout \begin_layout Standard @@ -28724,53 +36389,29 @@ status collapsed \backslash -setlength{ -\backslash -shadowsize}{2pt} +ifpicinpar \end_layout \end_inset -\begin_inset Box Shadowbox -position "c" -hor_pos "c" -has_inner_box 1 -inner_pos "c" -use_parbox 0 -use_makebox 0 -width "25col%" -special "none" -height "1in" -height_special "totalheight" +\begin_inset Note Note status open \begin_layout Plain Layout -\align center -Shadow box with +The following section will only be displayed when the LaTeX-package \series bold - -\backslash -shadowsize +picinpar \series default + is installed. +\end_layout -\begin_inset space \thinspace{} -\end_inset - -= -\begin_inset space \thinspace{} \end_inset -2 -\begin_inset space \thinspace{} -\end_inset -pt \end_layout -\end_inset - - +\begin_layout Standard \begin_inset ERT status collapsed @@ -28778,72 +36419,66 @@ status collapsed \backslash -setlength{ -\backslash -shadowsize}{4pt} +begin{window}[2,c,{ \end_layout \end_inset -\end_layout +\begin_inset Graphics + filename clipart/mobius.eps + lyxscale 60 + width 40col% + scaleBeforeRotation + rotateOrigin center -\begin_layout Standard -\begin_inset VSpace bigskip \end_inset +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +},] \end_layout -\begin_layout Standard -The default value for the size -\series bold +\begin_layout Plain Layout -\backslash -FrameRule -\series default - is 0.4 -\begin_inset space \thinspace{} -\end_inset +{} +\end_layout -pt. - The default space between the note content and the frame is 9 -\begin_inset space \thinspace{} \end_inset -pt and can be changed with the value of -\series bold -\backslash -FrameSep -\series default -. - For example the frame appearance of the following -\family sans -box -\family default - is set with the TeX-Code commands -\end_layout +\size small +It was in the spring of the year 1894 that all London was interested, and + the fashionable world dismayed, by the murder of the Honourable Ronald + Adair under most unusual and inexplicable circumstances. + The public has already learned those particulars of the crime which +\size default -\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout -\series bold \backslash -setlength{ -\backslash -FrameRule}{5pt} -\begin_inset Newline newline +footnotemark{} +\end_layout + \end_inset -\backslash -setlength{ -\backslash -FrameSep}{0.5cm} -\end_layout +\size small + came out in the police investigation, but a good deal was suppressed upon + that occasion, since the case for the prosecution was so overwhelmingly + strong that it was not necessary to bring forward all the facts. + Only now, at the end of nearly ten years, am I allowed to supply those + missing links which make up the whole of that remarkable chain. +\size default -\begin_layout Standard \begin_inset ERT status collapsed @@ -28851,185 +36486,183 @@ status collapsed \backslash -setlength{ -\backslash -FrameRule}{5pt} +end{window} \end_layout -\begin_layout Plain Layout +\end_inset -\backslash -setlength{ -\backslash -FrameSep}{0.5cm} \end_layout -\end_inset +\begin_layout Standard +\begin_inset ERT +status collapsed +\begin_layout Plain Layout -\begin_inset Box Framed -position "t" -hor_pos "c" -has_inner_box 0 -inner_pos "t" -use_parbox 0 -use_makebox 0 -width "100col%" -special "none" -height "1in" -height_special "totalheight" -status open -\begin_layout Plain Layout -This is text in an -\family sans -allow page break -\family default - box. +\backslash +footnotetext{ \end_layout \end_inset - +Footnote of the paragraph with the fixed object. \begin_inset ERT status collapsed \begin_layout Plain Layout - -\backslash -setlength{ -\backslash -FrameRule}{0.4pt} +} \end_layout -\begin_layout Plain Layout +\end_inset -\backslash -setlength{ -\backslash -FrameSep}{9pt} \end_layout -\end_inset - +\begin_layout Standard +Surrounded fixed objects are used to let text float around them, at which + the object's position in the paragraph can be determined by the number + of lines above it. + In contrary to floats is it not possible to have a numbered caption. +\end_layout +\begin_layout Standard +A fixed object is inserted by adding the command \end_layout \begin_layout Standard -\begin_inset VSpace bigskip -\end_inset +\series bold +\backslash +begin{window}[2,c,{ \end_layout \begin_layout Standard -For -\family sans -shaded background -\family default - boxes the default space between the box content and the box border is 3 +as TeX-Code at the beginning of the paragraph. + The first parameter in the bracket, here '2', defines the number of lines + above the object, the second, here 'c', the position of the object. + The positions 'l', 'c' and 'r' (for left, center, right) are possible. + Behind the command you insert the object. + In this example an image with a width of 40 \begin_inset space \thinspace{} \end_inset -pt and can be changed with the value of -\series bold +% of the text column width was inserted. + The object can also be a table, a box or an equation. + Behind the object the command +\end_layout -\backslash -fboxsep -\series default -. - The default background color red can either be changed locally with the - command -\series bold +\begin_layout Standard -\backslash -definecolor{shadecolor} -\series default - or globally with the menu -\family sans -Tools\SpecialChar \menuseparator -Preferences\SpecialChar \menuseparator -Colors\SpecialChar \menuseparator -shaded -\begin_inset space ~ +\series bold +},description text] +\begin_inset Newline newline \end_inset -box -\family default -. - The scheme of the -\series bold +{} +\end_layout -\backslash -definecolor -\series default - command is explained in section -\begin_inset space ~ +\begin_layout Standard +is inserted. + Note that the +\begin_inset Quotes eld \end_inset -\begin_inset CommandInset ref -LatexCommand ref -reference "sec:Colored-Tables" +\series bold +{} +\series default +\begin_inset Quotes erd \end_inset + is in the second line. + The description text is optional. + The text surrounding the object must be in the same paragraph as the object, + so it must begin directly after the +\series bold +{} +\series default . -\begin_inset Foot -status collapsed + At the end of the paragraph insert the command: +\end_layout + +\begin_layout Standard -\begin_layout Plain Layout -Note that \series bold \backslash -definecolor +end{window} +\end_layout + +\begin_layout Standard +Within a paragraph with a fixed object, you cannot insert footnotes in the + normal way. + You have to use instead the command +\series bold + +\backslash +footnotemark \series default - requires the LaTeX-package + inside the paragraph and outside the command \series bold -color + +\backslash +footnotetext \series default - in the preamble, see section -\begin_inset space ~ + as described in sec. +\begin_inset space \thinspace{} \end_inset \begin_inset CommandInset ref LatexCommand ref -reference "sec:Colored-Boxes" +reference "sec:Footnotes" \end_inset . \end_layout -\end_inset +\begin_layout Standard +\begin_inset ERT +status collapsed - For example the appearance of the following shaded background box is set - with the TeX-Code commands +\begin_layout Plain Layout + + +\backslash +else \end_layout -\begin_layout Standard +\end_inset -\series bold -\backslash -setlength{ -\backslash -fboxsep}{0.5cm} +\begin_inset Note Note +status open + +\begin_layout Plain Layout +The following will be displayed when the LaTeX-package +\series bold +picinpar \series default + is not installed: +\end_layout -\begin_inset Newline newline \end_inset -\series bold +\end_layout -\backslash -definecolor{shadecolor}{cmyk}{0.5,0,1,0.5} +\begin_layout Standard +You need to install the LaTeX-package +\series bold +picinpar +\series default + to see the following part of this section in the output. \end_layout \begin_layout Standard @@ -29040,53 +36673,120 @@ status collapsed \backslash -setlength{ -\backslash -fboxsep}{0.5cm} +fi +\end_layout + +\end_inset + + \end_layout +\begin_layout Section +Initials +\begin_inset Index idx +status collapsed + \begin_layout Plain Layout +Initials +\end_layout +\end_inset -\backslash -definecolor{shadecolor}{cmyk}{0.5,0,1,0.5} + +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +Surrounded by text ! Initials \end_layout \end_inset -\begin_inset Box Shaded -position "t" -hor_pos "c" -has_inner_box 0 -inner_pos "t" -use_parbox 0 -use_makebox 0 -width "100col%" -special "none" -height "1in" -height_special "totalheight" -status open +\end_layout + +\begin_layout Standard +To use initials, you must have the LaTeX-package +\series bold +lettrine +\series default + +\begin_inset Index idx +status collapsed \begin_layout Plain Layout +LaTeX-packages ! lettrine +\end_layout -\color yellow -This is yellow text in a -\color none - +\end_inset + + installed and use the module \family sans -\color yellow -shaded background +Initials \family default -\color none - -\color yellow -box with dark green background. + in your document (menu +\family sans +Document\SpecialChar \menuseparator +Settings\SpecialChar \menuseparator +Modules +\family default +). + To insert an initial, use the style +\family sans +Initial +\family default +. + This style has a mandatory and an optional argument. + The mandatory argument is inserted via the menu +\family sans +Insert\SpecialChar \menuseparator +Short +\begin_inset space ~ +\end_inset + +Title +\family default + and contains the letter that is the initial. + To use also the optional argument, insert another argument in front of + the mandatory argument. + This one contains parameters to modify the initial. + For more information about the possible parameters see the documentation + of +\series bold +lettrine +\series default +, +\begin_inset CommandInset citation +LatexCommand cite +key "lettrine" + +\end_inset + +. + The style itself contains the text that is surrounding the initial. + The usual style is hereby that the word whose first letter is the initial, + is printed with +\shape smallcaps +small caps +\shape default +. + To tell LaTeX where this word is finished, add a closing brace ' +\series bold +} +\series default +' as TeX-Code behind it. + At the end of the style there must be an opening brace ' +\series bold +{ +\series default +' as TeX-Code. \end_layout -\end_inset - +\begin_layout Standard +Here are some examples: +\end_layout +\begin_layout Standard \begin_inset ERT status collapsed @@ -29094,16 +36794,21 @@ status collapsed \backslash -setlength{ -\backslash -fboxsep}{3pt} +iflettrine \end_layout -\begin_layout Plain Layout +\end_inset -\backslash -definecolor{shadecolor}{rgb}{1,0,0} +\begin_inset Note Note +status open + +\begin_layout Plain Layout +The following section will only be displayed when the LaTeX-package +\series bold +lettrine +\series default + is installed. \end_layout \end_inset @@ -29111,166 +36816,114 @@ definecolor{shadecolor}{rgb}{1,0,0} \end_layout -\begin_layout Standard -\begin_inset VSpace bigskip +\begin_layout Enumerate +No optional argument, the initial is the letter 'I' in the math font +\begin_inset Formula $\mathfrak{Fraktur}$ \end_inset -Changed lengths and widths are valid for all boxes following the commands - that change them. +: \end_layout -\begin_layout Section -Minipages -\begin_inset CommandInset label -LatexCommand label -name "sec:Minipages" +\begin_deeper +\begin_layout Initial +\begin_inset Argument +status open +\begin_layout Plain Layout +\begin_inset Formula $\mathfrak{I}$ \end_inset -\begin_inset Index idx +\end_layout + +\end_inset + +t +\begin_inset ERT status collapsed \begin_layout Plain Layout -Boxes ! Minipages + +} \end_layout \end_inset + was in the spring of the year 1894 that all London was interested, and + the fashionable world dismayed, by the murder of the Honourable Ronald + Adair under most unusual and inexplicable circumstances. + The public has already learned those particulars of the crime which came + out in the police investigation, but a good deal was suppressed upon that + occasion, since the case for the prosecution was so overwhelmingly strong + that it was not necessary to bring forward all the facts. +\begin_inset ERT +status collapsed -\end_layout - -\begin_layout Standard -Minipages are treated by LaTeX as pages within pages and can therefore for - example have their own footnotes. -\end_layout +\begin_layout Plain Layout -\begin_layout Standard -Minipages are useful when you write documents with different languages. +{ \end_layout -\begin_layout Standard -Below are two example minipages side by side. - Their width is set to 45 -\begin_inset space \thinspace{} -\end_inset - -col% and they are separated by a horizontal fill, that was inserted via - the menu -\family sans -Insert\SpecialChar \menuseparator -Special -\begin_inset space ~ \end_inset -Formatting\SpecialChar \menuseparator -Horizontal -\begin_inset space ~ -\end_inset -Fill -\family default -. \begin_inset Newpage newpage \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 -use_makebox 0 -width "45col%" -special "none" -height "1in" -height_special "totalheight" -status open - -\begin_layout Plain Layout +\end_deeper +\begin_layout Enumerate +Only one line is surrounding the initial, which is formed by two letters + in standard font and no text is printed in small caps: +\end_layout -\lang german -Dies ist ein deutscher Text. - Dies ist ein deutscher Text. - Dies ist ein deutscher Text. - Dies ist ein deutscher Text. - Dies ist ein deutscher Text. - Dies ist ein deutscher Text. - Dies ist ein deutscher Text. - Dies ist ein deutscher Text. - Dies ist ein deutscher Text. - Dies ist ein deutscher Text. - Dies ist ein deutscher Text. - Dies ist ein deutscher Text. - Dies ist ein deutscher Text -\begin_inset Foot -status collapsed +\begin_deeper +\begin_layout Initial +\begin_inset Argument +status open \begin_layout Plain Layout - -\lang german -Dies ist eine deutsche Fußnote. +lines=1 \end_layout \end_inset -. - Dies ist ein deutscher Text. - Dies ist ein deutscher Text. -\end_layout -\end_inset +\begin_inset Argument +status open +\begin_layout Plain Layout +It +\end_layout -\begin_inset space \hfill{} \end_inset -\begin_inset Box Frameless -position "t" -hor_pos "c" -has_inner_box 1 -inner_pos "c" -use_parbox 0 -use_makebox 0 -width "45col%" -special "none" -height "1in" -height_special "totalheight" -status open - -\begin_layout Plain Layout -This is an English Text. - This is an English Text. - This is an English Text. - This is an English Text. - This is an English Text. - This is an English Text. - This is an English Text. - This is an English Text. - This is an English Text. - This is an English Text. - This is an English Text. - This is an English Text. - This is an English Text. - This is an English Text. - This is an English Text. - This is an English Text. -\begin_inset Foot +\begin_inset ERT status collapsed \begin_layout Plain Layout -This is an English footnote. + +} \end_layout \end_inset - This is an English Text. - + was in the spring of the year 1894 that all London was interested, and + the fashionable world dismayed, by the murder of the Honourable Ronald + Adair under most unusual and inexplicable circumstances. + The public has already learned those particulars of the crime which came + out in the police investigation, but a good deal was suppressed upon that + occasion, since the case for the prosecution was so overwhelmingly strong + that it was not necessary to bring forward all the facts. +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +{ \end_layout \end_inset @@ -29278,133 +36931,159 @@ This is an English footnote. \end_layout -\begin_layout Standard -\begin_inset VSpace bigskip +\end_deeper +\begin_layout Enumerate +Magenta, hanging initial over 3 +\begin_inset space ~ \end_inset -The document-wide paragraph settings are ignored within minipages. - That means that there will be no space between paragraphs in minipages - although you set it to e. -\begin_inset space \thinspace{} +lines in the math font +\begin_inset Formula $\mathcal{CALLIGRAPHIC}$ \end_inset -g. -\begin_inset space \space{} +, the text +\begin_inset Quotes eld \end_inset +t was in the spring +\begin_inset Quotes erd +\end_inset -\family sans -MedSkip -\family default - in the document settings. -\end_layout + is in +\shape smallcaps +small caps +\shape default +; to color the initial, you must insert this command before the initial: +\begin_inset Newline newline +\end_inset -\begin_layout Standard -Minipages can also be used to set a background color for text parts, see - section -\begin_inset space ~ + +\series bold + +\backslash +renewcommand{ +\backslash +LettrineFontHook}{ +\backslash +color{color}} +\series default + +\begin_inset Newline newline +\end_inset + +where the second +\emph on +color +\emph default + can be +\begin_inset Quotes eld \end_inset +red +\begin_inset Quotes erd +\end_inset -\begin_inset CommandInset ref -LatexCommand ref -reference "sub:Color-for-Paragraphs" +, +\begin_inset Quotes eld +\end_inset +blue +\begin_inset Quotes erd \end_inset -. -\end_layout +, +\begin_inset Quotes eld +\end_inset -\begin_layout Standard -\begin_inset Note Greyedout -status open +green +\begin_inset Quotes erd +\end_inset -\begin_layout Plain Layout +, +\begin_inset Quotes eld +\end_inset -\series bold -Note: -\series default - You cannot have floats or margin notes inside minipages but minipages can - be used inside tables, floats, and other boxes. -\end_layout +yellow +\begin_inset Quotes erd +\end_inset +, +\begin_inset Quotes eld \end_inset +cyan +\begin_inset Quotes erd +\end_inset -\end_layout +, +\begin_inset Quotes eld +\end_inset -\begin_layout Section -Parboxes -\begin_inset CommandInset label -LatexCommand label -name "sec:Parboxes" +magenta +\begin_inset Quotes erd +\end_inset +, +\begin_inset Quotes eld \end_inset +black +\begin_inset Quotes erd +\end_inset -\begin_inset Index idx -status collapsed + or +\begin_inset Quotes eld +\end_inset -\begin_layout Plain Layout -Boxes ! Parboxes -\end_layout +white +\begin_inset Quotes erd +\end_inset +, and add this command to the document preamble: +\begin_inset Newline newline \end_inset -\end_layout +\series bold -\begin_layout Standard -Parboxes are very similar to minipages with the difference that they cannot - have footnotes. -\end_layout +\backslash +@ifundefined{textcolor} +\begin_inset Newline newline +\end_inset -\begin_layout Standard -\align center -\begin_inset Box Frameless -position "t" -hor_pos "c" -has_inner_box 1 -inner_pos "t" -use_parbox 1 -use_makebox 0 -width "33col%" -special "none" -height "1in" -height_special "totalheight" -status collapsed -\begin_layout Plain Layout -This a text within a parbox. - This a text within a parbox. +\begin_inset space ~ +\end_inset + +{ +\backslash +usepackage{color}}{} \end_layout -\begin_layout Plain Layout -This footnote won't appear: -\begin_inset Foot +\begin_deeper +\begin_layout Standard +\begin_inset ERT status collapsed \begin_layout Plain Layout -This footnote is inside a parbox and will therefore not appear. -\end_layout - -\end_inset +\backslash +renewcommand{ +\backslash +LettrineFontHook}{ +\backslash +color{magenta}} \end_layout \end_inset -\end_layout - -\begin_layout Section -Boxes for Words and Characters -\begin_inset Index idx +\begin_inset Note Note status collapsed \begin_layout Plain Layout -Boxes ! for Characters +makes the initial magenta \end_layout \end_inset @@ -29412,138 +37091,100 @@ Boxes ! for Characters \end_layout -\begin_layout Subsection -Prevent Hyphenation -\begin_inset CommandInset label -LatexCommand label -name "sec:Prevent-Hyphenation" - -\end_inset - - -\begin_inset Index idx -status collapsed +\begin_layout Initial +\begin_inset Argument +status open \begin_layout Plain Layout -Boxes ! to Prevent Hyphenation +lines=3, lhang=0.33, loversize=0.25 \end_layout \end_inset -\end_layout +\begin_inset Argument +status open -\begin_layout Standard -You can use the box type -\family sans -Makebox -\family default - to prevent words or text from being hyphenated. -\begin_inset Newline newline +\begin_layout Plain Layout +\begin_inset Formula $\mathcal{I}$ \end_inset -Here is an example text: + \end_layout -\begin_layout Standard -This line is an example to show how you can prevent the hyphenation of -\begin_inset Quotes eld \end_inset -veryverylongword -\begin_inset Quotes erd -\end_inset +t was in the spring +\begin_inset ERT +status collapsed -. +\begin_layout Plain Layout + +} \end_layout -\begin_layout Standard -To prevent the hyphenation of the word -\begin_inset Quotes eld \end_inset -veryverylongword -\begin_inset Quotes erd -\end_inset + of the year 1894 that all London was interested, and the fashionable world + dismayed, by the murder of the Honourable Ronald Adair under most unusual + and inexplicable circumstances. + The public has already learned those particulars of the crime which came + out in the police investigation, but a good deal was suppressed upon that + occasion, since the case for the prosecution was so overwhelmingly strong + that it was not necessary to bring forward all the facts. +\begin_inset ERT +status collapsed -, put the word into a box, set the -\family sans -Inner -\begin_inset space ~ -\end_inset +\begin_layout Plain Layout + +{ +\end_layout -box -\family default - to -\family sans -Makebox -\family default - and its width to 1 -\begin_inset space \thinspace{} \end_inset -Width. -\end_layout -\begin_layout Standard -This is the result: \end_layout +\end_deeper \begin_layout Standard -This line is an example to show how you can prevent the hyphenation of -\begin_inset Box Frameless -position "t" -hor_pos "c" -has_inner_box 1 -inner_pos "t" -use_parbox 0 -use_makebox 1 -width "1in" -special "width" -height "1in" -height_special "totalheight" -status open +\begin_inset ERT +status collapsed \begin_layout Plain Layout -\begin_inset Quotes eld -\end_inset - -veryverylongword -\begin_inset Quotes erd -\end_inset +\backslash +else \end_layout \end_inset -. -\end_layout - -\begin_layout Standard -You can alternatively set the command -\begin_inset Quotes eld -\end_inset +\begin_inset Note Note +status open +\begin_layout Plain Layout +The following will be displayed when the LaTeX-package \series bold - -\backslash -- +lettrine \series default + is not installed: +\end_layout -\begin_inset Quotes grd \end_inset - as TeX-Code directly before the word: + +\end_layout + +\begin_layout Standard +You need to install the LaTeX-package +\series bold +lettrine +\series default + to see the following part of this section in the output. \end_layout \begin_layout Standard -This line is an example to show how you can prevent the hyphenation of -\begin_inset Quotes eld -\end_inset - - \begin_inset ERT status collapsed @@ -29551,743 +37192,940 @@ status collapsed \backslash -- +fi \end_layout \end_inset -veryverylongword -\begin_inset Quotes erd + +\end_layout + +\begin_layout Chapter +External Document Parts +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +External Document Parts +\end_layout + \end_inset -. + \end_layout \begin_layout Standard -Of course the word now protrudes over the side margin. - To avoid this, add via the menu +With the menu \family sans Insert\SpecialChar \menuseparator -Formatting\SpecialChar \menuseparator -Ragged -\begin_inset space ~ -\end_inset +File +\family default + you can insert external material to your document. + This can be: +\end_layout -Line +\begin_layout Description +LyX \begin_inset space ~ \end_inset -Break -\family default - (shortcut -\begin_inset Info -type "shortcut" -arg "newline-insert newline" -\end_inset - -) a line break before the word: +Document Another LyX document; its content is directly inserted to your + document. \end_layout -\begin_layout Standard -This line is an example to show how you can prevent the hyphenation of -\begin_inset Newline newline +\begin_layout Description +Plain +\begin_inset space ~ \end_inset +Text A text document; each line is inserted in your document as a separate + paragraph. +\end_layout -\begin_inset Box Frameless -position "t" -hor_pos "c" -has_inner_box 1 -inner_pos "t" -use_parbox 0 -use_makebox 1 -width "1in" -special "width" -height "1in" -height_special "totalheight" -status open - -\begin_layout Plain Layout -\begin_inset Quotes eld +\begin_layout Description +Plain +\begin_inset space ~ \end_inset -veryverylongword -\begin_inset Quotes erd +Text, +\begin_inset space ~ \end_inset +Join +\begin_inset space ~ +\end_inset +Lines A text document; text lines are inserted in your document continuously + but an empty text line creates a new paragraph. \end_layout +\begin_layout Description +External +\begin_inset space ~ \end_inset -. +Material Files in various formats. \end_layout -\begin_layout Subsection -Vertical Alignment -\begin_inset CommandInset label -LatexCommand label -name "sub:Vertical-Alignment" - +\begin_layout Description +Child +\begin_inset space ~ \end_inset +Document LyX or LaTeX-documents. +\end_layout +\begin_layout Section +External Material \begin_inset Index idx status collapsed \begin_layout Plain Layout -Boxes ! for Vertical Alignment +External Document Parts ! External Material \end_layout \end_inset -\begin_inset Index idx -status collapsed - -\begin_layout Plain Layout -Boxes ! Raiseboxes \end_layout +\begin_layout Standard +The external material feature allows you to insert files in to your document + without converting them to a format that can be read by the document output + format. + LyX takes care of the necessary conversions. + This is similar to images that can be inserted in various image formats + in LyX documents. + When you have enabled Instant Preview in LyX's preferences under +\family sans +Look +\begin_inset space ~ \end_inset +and +\begin_inset space ~ +\end_inset +feel\SpecialChar \menuseparator +Graphics +\family default +, the external material types Dia and Xfig are directly shown in LyX. \end_layout \begin_layout Standard -With the help of the command -\series bold +External material can be inserted via the +\family sans +External Material +\family default + dialog that is accessible with the menu +\family sans +Insert\SpecialChar \menuseparator +File\SpecialChar \menuseparator +External +\begin_inset space ~ +\end_inset -\backslash -raisebox -\series default - you can align words, characters or other boxes vertically relative to the - surrounding text. - +Material +\family default +. + Currently the following file types ( +\family sans +Templates +\family default +) are allowed: +\end_layout + +\begin_layout Description +ChessDiagram This template supports chess position diagrams made with the + program \series bold -\backslash -raisebox -\series default - is used with the following scheme: -\end_layout +\begin_inset CommandInset href +LatexCommand href +name "XBoard" +target "http://en.wikipedia.org/wiki/XBoard" -\begin_layout Standard +\end_inset -\series bold -\backslash -raisebox{lift}[height][depth]{box content} +\series default +. \end_layout -\begin_layout Standard -The lift can be a positive value to raise the box or a negative value to - lower the box. -\end_layout +\begin_layout Description +Date This inserts the date in the form +\emph on +Day-Month-Year +\emph default +. + This is a date inserted as external material: +\begin_inset External + template Date + filename . -\begin_layout Standard -To align for example the word -\begin_inset Quotes eld \end_inset -preventing -\begin_inset Quotes erd -\end_inset - so that the bottom of the -\begin_inset Quotes eld +\begin_inset space ~ \end_inset -deepest -\begin_inset Quotes erd -\end_inset - character -\begin_inset Quotes eld -\end_inset +\begin_inset Note Note +status open + +\begin_layout Plain Layout +Remove the protected space when bug 4398 is fixed! +\end_layout -p -\begin_inset Quotes erd \end_inset - is at the baseline, insert the command -\end_layout -\begin_layout Standard +\begin_inset Newline newline +\end_inset +The date is not shown within LyX, only in the output. + There are two other methods of inserting a date: Via menu +\family sans +Insert\SpecialChar \menuseparator +Date +\family default + and with the LaTeX command \series bold \backslash -raisebox{ -\backslash -depth}{ -\end_layout +today +\series default + as TeX-Code. + The different methods are compared in Table +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "tab:Comparison-of-the" -\begin_layout Standard -in TeX-Code before the word. - After the word insert a closing brace -\begin_inset Quotes eld \end_inset +. +\end_layout +\begin_layout Description +Dia This template supports diagrams created with the program \series bold -} -\series default -\begin_inset Quotes erd -\end_inset +\begin_inset CommandInset href +LatexCommand href +name "Dia" +target "http://en.wikipedia.org/wiki/Dia_(software)" - in TeX-Code. -\begin_inset Newline newline \end_inset -This is the result: + +\series default +. \end_layout -\begin_layout Standard -This is a text line with the word -\begin_inset ERT -status collapsed +\begin_layout Description +GnumericSpreadsheet With this template you can insert spreadsheets +\begin_inset space \thinspace{} +\end_inset -\begin_layout Plain Layout +/ +\begin_inset space \thinspace{} +\end_inset +tables in the format of +\series bold -\backslash -raisebox{ -\backslash -depth}{ -\end_layout +\begin_inset CommandInset href +LatexCommand href +name "Gnumeric" +target "http://en.wikipedia.org/wiki/Gnumeric" \end_inset -\begin_inset Quotes eld -\end_inset +\series default +, +\begin_inset CommandInset href +LatexCommand href +name "OpenDocument" +target "http://en.wikipedia.org/wiki/OpenDocument" -preventing -\begin_inset Quotes erd \end_inset +, +\begin_inset CommandInset href +LatexCommand href +name "Microsoft Office XML" +target "http://en.wikipedia.org/wiki/Microsoft_Office_XML_formats" -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout +\end_inset -} -\end_layout + and +\begin_inset CommandInset href +LatexCommand href +name "Office Open XML" +target "http://en.wikipedia.org/wiki/Office_Open_XML" \end_inset - as a raised word. +. + For this feature LyX must have found the program +\family typewriter +ssconvert +\family default + during its configuration. + This program is part of Gnumeric, so that you must have Gnumeric installed, + also if you don't have tables in the Gnumeric format. + For examples and possible limitations have a look at LyX's example file + +\emph on +spreadsheet.lyx +\emph default +. \end_layout -\begin_layout Standard -\begin_inset VSpace bigskip +\begin_layout Description +LilyPond This template is used for music notation typeset with the program +\begin_inset Newline linebreak \end_inset -When you raise or lower characters in a line, the line distance will be - spread: -\end_layout -\begin_layout Standard -This is a text line with the word -\begin_inset ERT -status collapsed +\series bold -\begin_layout Plain Layout +\begin_inset CommandInset href +LatexCommand href +name "LilyPond" +target "http://en.wikipedia.org/wiki/LilyPond" +\end_inset -\backslash -raisebox{- -\backslash -depth}{ + +\series default +. + For LyX's extended support for LilyPond have a look at LyX's example file + +\emph on +lilypond.lyx +\emph default +. \end_layout +\begin_layout Description +PDFPages With this template you can insert PDF documents to your document. + To specify the range of pages that should be included, use the option +\series bold +pages +\series default + in the +\family sans +Option +\family default + field in the +\family sans +LaTeX and LyX options +\family default + tab. + The argument of this option is a comma separated list, containing page + numbers (insert as option +\series bold +pages={3,5,6,8} +\series default +), ranges of page numbers ( +\series bold +pages={4-9} +\series default +) or any combination. + To insert empty pages use {}. + E. +\begin_inset space \thinspace{} +\end_inset + +g. +\begin_inset space ~ \end_inset -\begin_inset Quotes eld +\series bold +pages={3,{},8-11,15} +\series default + will insert page 3, an empty page, and pages 8, 9, 10, 11 and 15. + Page ranges are specified in the syntax +\emph on +start +\emph default +- +\emph on +stop +\emph default +. + This selects all pages from +\emph on +start +\emph default + to +\emph on +stop +\emph default +. + Omitting +\emph on +start +\emph default + defaults to the first page; omitting +\emph on +stop +\emph default + defaults to the last page of the document. + The last page can also be selected with the keyword +\series bold +last +\series default +. + (This is only permitted in a page range.) So +\series bold +pages=- +\series default + will insert all pages of the document and +\series bold +pages=last-1 +\series default + will insert all pages in reverse order. + If the pages option is not specified, only the first page of the PDF is + inserted. +\begin_inset Newline newline \end_inset -preventing -\begin_inset Quotes erd +The option +\series bold +noautoscale +\series default + inserts the pages with their original size, if this option is not given, + the pages will be resized to fith the width of the page of your document. + In the tab +\family sans +Size and Rotation +\family default + you can specify the width and height of the input pages and their rotation. + If another width than 100 +\begin_inset space \thinspace{} \end_inset +Scale% is used, the option +\series bold +noautoscale +\series default + will be overwritten. + For more info and possible options, have a look into the documentation + of the LaTeX-package +\series bold +pdfpages +\series default + +\begin_inset CommandInset citation +LatexCommand cite +key "pdfpages" + +\end_inset -\begin_inset ERT +. +\begin_inset Index idx status collapsed \begin_layout Plain Layout - -} +LaTeX-packages ! pdfpages \end_layout \end_inset - as a lowered word. + \begin_inset Newline newline \end_inset -This is a text line with the word -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - +To use this template in a +\family sans +Beamer +\family default + presentation you need to first insert an +\family sans +EndFrame +\family default + environment and in a subsequent paragraph a TeX-Code box containing the + command +\series bold \backslash -raisebox{0.5cm}{ -\end_layout - +setbeamertemplate{background canvas}{} +\series default +. + Then you can insert as many paragraphs containing the PDFPages template + as you wish. + Behind the included PDF pages you can resume the Beamer presentation by + beginning a new frame or by starting a new section. + To avoid stray blank pages prior to the PDF pages, make sure to use the + +\family sans +Default +\family default + alignment for the paragraph containing the template. +\begin_inset Newline newline \end_inset +Here is an included PDF which is rotated by -5°: +\begin_inset External + template PDFPages + filename clipart/Abstract.pdf + extra LaTeX "noautoscale, pages=-" + rotateAngle -5 + rotateOrigin bottomleft -\begin_inset Quotes eld \end_inset -testing -\begin_inset Quotes erd + +\end_layout + +\begin_layout Description +RasterImage This can be used for bitmap images. + The image can be treated in the +\family sans +External material +\family default + dialog like the images that are usually included via the +\family sans +Graphics +\family default + dialog as described in section +\begin_inset space ~ \end_inset -\begin_inset ERT -status collapsed +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Graphics-Dialog" -\begin_layout Plain Layout +\end_inset -} -\end_layout +. + The difference to the normal image input is that only raster images are + allowed; that means that PDF and EPS-images are not supported. + Here is an inserted raster image: +\begin_inset External + template RasterImage + filename clipart/ToolbarEnvBox.png \end_inset - as a raised word. -\end_layout -\begin_layout Standard -If you want to prevent this for a certain reason, set the box height to - a zero value. - For example use \end_layout -\begin_layout Standard - +\begin_layout Description +XFig This template supports images created with the program \series bold -\backslash -raisebox{- -\backslash -depth}[0pt]{ +\begin_inset CommandInset href +LatexCommand href +name "Xfig" +target "http://en.wikipedia.org/wiki/Xfig" + +\end_inset + + +\series default +. \end_layout \begin_layout Standard -This is a text line with the word -\begin_inset ERT -status collapsed +\begin_inset Float table +placement !h +wide false +sideways false +status open \begin_layout Plain Layout +\begin_inset Caption - -\backslash -raisebox{- -\backslash -depth}[0pt]{ -\end_layout +\begin_layout Plain Layout +\begin_inset CommandInset label +LatexCommand label +name "tab:Comparison-of-the" \end_inset +Comparison of the date input methods. +\end_layout -\begin_inset Quotes eld -\end_inset - -preventing -\begin_inset Quotes erd \end_inset -\begin_inset ERT -status collapsed +\end_layout \begin_layout Plain Layout +\align center +\begin_inset Tabular + + + + + + + + +\begin_inset Text -} +\begin_layout Plain Layout +Document format \end_layout \end_inset - - as a lowered word. -\begin_inset Newline newline -\end_inset - -This is a text line with the word -\begin_inset ERT -status collapsed + + +\begin_inset Text \begin_layout Plain Layout - -\backslash -raisebox{0.5cm}[0pt]{ +\family sans +External Material\SpecialChar \menuseparator +Date \end_layout \end_inset + + +\begin_inset Text +\begin_layout Plain Layout -\begin_inset Quotes eld -\end_inset +\family sans +Insert\SpecialChar \menuseparator +Date +\end_layout -testing -\begin_inset Quotes erd \end_inset - - -\begin_inset ERT -status collapsed + + +\begin_inset Text \begin_layout Plain Layout +command +\series bold -} +\backslash +today \end_layout \end_inset + + + + +\begin_inset Text - as a raised word. +\begin_layout Plain Layout +LyX \end_layout -\begin_layout Section -Colored Boxes -\begin_inset CommandInset label -LatexCommand label -name "sec:Colored-Boxes" - \end_inset - - -\begin_inset Index idx -status collapsed + + +\begin_inset Text \begin_layout Plain Layout -Boxes ! Color +as inset box \end_layout \end_inset + + +\begin_inset Text - +\begin_layout Plain Layout +as date \end_layout -\begin_layout Subsection -Color for Text -\begin_inset Index idx -status collapsed +\end_inset + + +\begin_inset Text \begin_layout Plain Layout -Color ! for Text +as TeX-Code inset box \end_layout \end_inset + + + + +\begin_inset Text - +\begin_layout Plain Layout +LaTeX \end_layout -\begin_layout Standard -To color the background of text the text must be put into a so called -\begin_inset Quotes eld -\end_inset - -colorbox -\begin_inset Quotes erd \end_inset - -. - This requires that the LaTeX-package -\series bold -color -\series default - -\begin_inset Index idx -status collapsed + + +\begin_inset Text \begin_layout Plain Layout -LaTeX-packages ! color +as date \end_layout \end_inset + + +\begin_inset Text - is loaded in the document preamble with the command +\begin_layout Plain Layout +as date \end_layout -\begin_layout Standard - -\series bold - -\backslash -@ifundefined{textcolor} -\begin_inset Newline newline \end_inset - - -\begin_inset Phantom HPhantom -status open + + +\begin_inset Text \begin_layout Plain Layout +as command +\end_layout -\series bold -\begin_inset space ~ \end_inset + + + + +\begin_inset Text - +\begin_layout Plain Layout +DVI, PDF, PS \end_layout \end_inset + + +\begin_inset Text -{ -\backslash -usepackage{color}}{} +\begin_layout Plain Layout +as date \end_layout -\begin_layout Standard -The package -\series bold -color -\series default - will be loaded automatically by LyX when you color text. -\begin_inset Foot -status collapsed +\end_inset + + +\begin_inset Text \begin_layout Plain Layout -To avoid it being loaded twice the command -\series bold - -\backslash -@ifundefined -\series default - is used. +as date \end_layout \end_inset + + +\begin_inset Text - +\begin_layout Plain Layout +as date \end_layout -\begin_layout Standard -\begin_inset VSpace medskip \end_inset + + + -Colorboxes are created with the command -\series bold +\end_inset -\backslash -colorbox -\series default -. - This will be used with the following scheme: -\end_layout -\begin_layout Standard +\end_layout -\series bold +\end_inset -\backslash -colorbox{color}{box content} -\end_layout -\begin_layout Standard -The box content can also be a box and colorboxes can also be within other - boxes. \end_layout \begin_layout Standard -The following colors are predefined: -\begin_inset Newline newline -\end_inset - - -\family sans -black -\family default -, -\family sans -blue -\family default -, -\family sans -cyan -\family default -\series bold -, -\series default - -\family sans -green -\family default -, -\family sans -magenta -\family default -, +When you use the option \family sans -red +Draft \family default -, + in the \family sans -white +File \family default -, and + tab of the \family sans -yellow +External Material \family default -. + dialog, only the path to the inserted file is shown in the output. \begin_inset Newline newline \end_inset -You can also define your own color as described in section -\begin_inset space ~ -\end_inset - - -\begin_inset CommandInset ref -LatexCommand ref -reference "sec:Colored-Tables" +External material is displayed in LyX either as a box like this: +\begin_inset Graphics + filename clipart/ExternalMaterialQt4.png + scale 85 + scaleBeforeRotation \end_inset -. + or as image, depending on the option +\family sans +Show in LyX +\family default + in the +\family sans +LaTeX and LyX options +\family default + tab of the dialog. \end_layout \begin_layout Standard -To have e. -\begin_inset space \thinspace{} -\end_inset - -g. -\begin_inset space \space{} -\end_inset - -a red background for a word, insert the command +The +\family sans +\emph on +Customization +\family default +\emph default + manual explains how you can define your own templates. \end_layout -\begin_layout Standard - -\series bold - -\backslash -colorbox{red}{ -\end_layout +\begin_layout Section +Child Documents +\begin_inset CommandInset label +LatexCommand label +name "sec:Child-Documents" -\begin_layout Standard -before the word in TeX-Code. - After the word insert a closing brace -\begin_inset Quotes eld \end_inset -\series bold -} -\series default +\begin_inset Index idx +status collapsed -\begin_inset Quotes erd -\end_inset +\begin_layout Plain Layout +External Document Parts ! Child Documents +\end_layout - in TeX-Code. -\begin_inset Newline newline \end_inset -This is the result: -\end_layout -\begin_layout Standard -This is a line where the word -\begin_inset ERT +\begin_inset Index idx status collapsed \begin_layout Plain Layout - - -\backslash -colorbox{red}{ +Files ! Include \end_layout \end_inset +\end_layout + +\begin_layout Standard +Child documents are used if you have a long document consisting of several + larger parts or sections. + For maintenance it is often useful and sometimes even required to split + the document into several files that can be revised separately. + The different documents are then the so called \begin_inset Quotes eld \end_inset -Attention! +child documents \begin_inset Quotes erd \end_inset - -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - -} +, and a master document connects them to print the full document or parts + of it. + A child document inherits elements of its master, for example the LaTeX + preamble, the bibliography, and labels for cross-references. \end_layout +\begin_layout Standard +To be able to work on child documents without the need to open their master, + specify in the child document the master in the menu +\family sans + Document\SpecialChar \menuseparator +Settings\SpecialChar \menuseparator +Document +\begin_inset space ~ \end_inset - has a red background. +Class +\family default +. + This master document will then be used in the background by LyX when you + edit the child document. \end_layout \begin_layout Standard -\begin_inset VSpace bigskip +Included documents are displayed in LyX as a box like this: +\begin_inset Graphics + filename clipart/ChildDocumentQt4.png + scale 85 + scaleBeforeRotation + \end_inset -If you would like the box frame in a different color, you can use the command - -\series bold + To include child documents in a master document use the menu +\family sans +Insert\SpecialChar \menuseparator +File\SpecialChar \menuseparator +Child +\begin_inset space ~ +\end_inset -\backslash -fcolorbox -\series default - with the following scheme: +Documents +\family default +. + A dialog pops up where you can choose between four include methods: \end_layout -\begin_layout Standard +\begin_layout Description +Include You can include LyX- and LaTeX-documents. + When you press the +\family sans +Load +\family default + button in the +\family sans +Child Document +\family default + dialog, the included documents will be opened in LyX in a new file tab + so that you can modify them. +\begin_inset Newline newline +\end_inset -\series bold -\backslash -fcolorbox{frame color}{box color}{box content} \end_layout \begin_layout Standard +Here is a child document inserted using +\family sans +Include +\family default +: +\begin_inset CommandInset include +LatexCommand include +filename "DummyDocument1.lyx" -\series bold - -\backslash -fcolorbox -\series default - is an extension to -\series bold +\end_inset -\backslash -colorbox -\series default -. - The frame thickness and the space between the frame and the box content - can be adjusted with the lengths -\series bold -\backslash -fboxrule -\series default - and -\series bold +\end_layout -\backslash -fboxsep -\series default -, respectively, as described in section +\begin_layout Standard +The section numbering includes the sections of the included files in the + order they are inserted in the master document. + The included example document has for example a subsection that is numbered + as a subsection of this section. + Labels of included documents can be referenced: Subsection \begin_inset space ~ \end_inset \begin_inset CommandInset ref LatexCommand ref -reference "sec:Decoration" +reference "sub:External-Subsection-1" \end_inset @@ -30295,78 +38133,104 @@ reference "sec:Decoration" \end_layout \begin_layout Standard -For the following example the command -\end_layout - -\begin_layout Standard - -\series bold - -\backslash -fcolorbox{cyan}{magenta}{ -\end_layout - -\begin_layout Standard -was used. +The preamble of the child document is ignored; only the preamble of the + master document is used. + Branches in child documents will be ignored by the master document when + the master document does not have a branch with the same name. + Included documents are inserted starting on a new page and ending with + a page break. \end_layout \begin_layout Standard -Here is an example where the frame line thickness was set to 1 -\begin_inset space \thinspace{} -\end_inset - -mm: -\begin_inset Newline newline -\end_inset - - -\begin_inset ERT -status collapsed +\begin_inset Note Greyedout +status open \begin_layout Plain Layout - -\backslash -fboxrule 1mm -\backslash -fboxsep 1mm +\series bold +Note: +\series default + If you have included a LyX- or LaTeX-file, you are warned when you export/view + the document in case the child document uses another document class than + the master document as this will lead to unexpected outputs. \end_layout \end_inset -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout +\end_layout +\begin_layout Description +Input This method is very similar to the Include method. + The differences are: +\end_layout -\backslash -fcolorbox{cyan}{magenta}{ +\begin_deeper +\begin_layout Itemize +Input files don't start with a new page and don't end with a page break. \end_layout +\begin_layout Itemize +Input files can be previewed in LyX when +\family sans +Instant +\begin_inset space ~ \end_inset -This is text within a colored, framed box. -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - -} -\end_layout +Preview +\family default + is enabled in LyX's preferences under +\family sans +Look +\begin_inset space ~ +\end_inset +and +\begin_inset space ~ \end_inset +feel\SpecialChar \menuseparator +Graphics +\family default +. +\end_layout +\begin_layout Itemize +You cannot exclude Input files via the menu +\family sans +Document\SpecialChar \menuseparator +Settings\SpecialChar \menuseparator +Child Documents +\family default +. \end_layout +\end_deeper \begin_layout Standard -\begin_inset VSpace bigskip +Here is a child document inserted using +\family sans +Input +\family default +: +\begin_inset CommandInset include +LatexCommand input +filename "DummyDocument2.lyx" + \end_inset -Of course you can also have colored text inside a colorbox: -\begin_inset Newline newline + +\end_layout + +\begin_layout Description +Verbatim With this method any text file can be included. + The file is shown in the output with its source code; no command used in + the text is invoked. + You can use the option +\family sans +Mark spaces in output +\family default + that displays the character +\begin_inset Quotes eld \end_inset @@ -30377,38 +38241,49 @@ status collapsed \backslash -fcolorbox{cyan}{magenta}{ +textvisiblespace \end_layout \end_inset -\color yellow -This is colored text within a colored, framed box. -\color none - -\begin_inset ERT -status collapsed +\begin_inset Quotes erd +\end_inset -\begin_layout Plain Layout + for every space character in the source code. + The difference from the method via the menu +\family sans +Insert\SpecialChar \menuseparator +File\SpecialChar \menuseparator +Plain +\begin_inset space ~ +\end_inset -} +Text +\family default + is that the document content is not shown in LyX. \end_layout -\end_inset - +\begin_layout Standard +Here is a child document inserted as Verbatim: +\begin_inset CommandInset include +LatexCommand verbatiminput +filename "DummyTextDocument.txt" -\begin_inset ERT -status collapsed +\end_inset -\begin_layout Plain Layout +\begin_inset VSpace bigskip +\end_inset -\backslash -fboxrule 0.4pt -\backslash -fboxsep 3pt -\end_layout + Here is a child document inserted as Verbatim using the +\family sans +Mark spaces in output +\family default + option: +\begin_inset CommandInset include +LatexCommand verbatiminput* +filename "DummyTextDocument.txt" \end_inset @@ -30416,7 +38291,7 @@ fboxsep 3pt \end_layout \begin_layout Standard -\begin_inset VSpace medskip +\begin_inset VSpace bigskip \end_inset @@ -30431,9 +38306,12 @@ status open \series bold Note: \series default - Text in colorboxes cannot have line breaks. - To color multiple text lines or paragraphs, use a box inside a colorbox - as described in the following. + As you can see in the examples above, the text of the documents included + as +\family sans +verbatim +\family default + is not broken at the end of the document lines. \end_layout \end_inset @@ -30441,357 +38319,380 @@ Note: \end_layout -\begin_layout Subsection -Color for Paragraphs -\begin_inset CommandInset label -LatexCommand label -name "sub:Color-for-Paragraphs" - +\begin_layout Description +Listings This type is described in chapter +\begin_inset space ~ \end_inset -\begin_inset Index idx -status collapsed - -\begin_layout Plain Layout -Color ! for Paragraphs -\end_layout +\begin_inset CommandInset ref +LatexCommand ref +reference "cha:Program-Code-Listings" \end_inset - +. \end_layout \begin_layout Standard -To set the background color for more than one text line, put the text into - a minipage. - Before the minipage insert the -\series bold +\begin_inset Note Greyedout +status open -\backslash -colorbox +\begin_layout Plain Layout + +\series bold +Note: \series default - command + Including the same document twice in a document using different methods + could cause LaTeX-problems. \end_layout -\begin_layout Standard +\end_inset -\series bold -\backslash -colorbox{color}{ \end_layout \begin_layout Standard -in TeX-Code. - After the minipage insert a closing brace +If you want to view/export only selected children of your master document, + either because you want to save compiling time or because you want to distribut +e single chapters of the book you are just writing, you can exclude children + from the output. + This is done via the menu +\family sans +Document\SpecialChar \menuseparator +Settings\SpecialChar \menuseparator +Child Documents +\family default +. + You can exclude\SpecialChar \slash{} +include children by double-clicking on the +\family sans +include to output +\family default + column of the respective child document in the list (note that this only + works for documents embedded via \begin_inset Quotes eld \end_inset +Include +\begin_inset Quotes erd +\end_inset -\series bold -} -\series default +, not with +\begin_inset Quotes eld +\end_inset +Input \begin_inset Quotes erd \end_inset - in TeX-Code. +). + If the option +\family sans +Maintain counters and references +\family default + is enabled, LyX will assure that all page numbers, references etc. +\begin_inset space ~ +\end_inset + +are correct as if the whole document was processed. + This is useful if you want the selected sub-documents to look exactly as + in the context of the whole document. + However, LyX needs to process the whole document in the background for + this feature. + So if you want to save compile time and if counters and references do not + need to be correct, disable this checkbox. \end_layout \begin_layout Standard -\begin_inset ERT +Alternatively, you can put each included file into a branch. +\begin_inset Foot status collapsed \begin_layout Plain Layout +Branches are described in section +\emph on +Branches +\emph default + of the LyX +\emph on +Userguide +\emph default +. +\end_layout +\end_inset -\backslash -colorbox{lightgrey}{ + By enabling\SpecialChar \slash{} +disabling branches you can decide which included files will + appear in the output. + This has the advantage that it also works with Input'ed sub-documents. + However, counters and references will not be maintained with this approach. \end_layout +\begin_layout Chapter +Program Code Listings +\begin_inset CommandInset label +LatexCommand label +name "cha:Program-Code-Listings" + \end_inset -\begin_inset Box Frameless -position "t" -hor_pos "c" -has_inner_box 1 -inner_pos "t" -use_parbox 0 -use_makebox 0 -width "100col%" -special "none" -height "1in" -height_special "totalheight" +\begin_inset Index idx status collapsed \begin_layout Plain Layout -This is text with background color. - This is text with background color. +Listings \end_layout -\begin_layout Plain Layout -\begin_inset VSpace defskip \end_inset -The text can have footnotes -\begin_inset Foot + +\begin_inset Index idx status collapsed \begin_layout Plain Layout -Another example footnote +Program Code \end_layout \end_inset - and can include tables and figures. -\end_layout -\begin_layout Plain Layout -\align center -\begin_inset Tabular - - - - - - - -\begin_inset Text +\begin_inset Index idx +status collapsed \begin_layout Plain Layout -a +Floats ! Listings \end_layout \end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -! -\end_layout -\end_inset - - -\begin_inset Text -\begin_layout Plain Layout -3 \end_layout -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -< -\end_layout +\begin_layout Standard +To include and typeset program code you can use the +\family sans +Listings +\family default + inset that can be inserted via the menu +\family sans +Insert\SpecialChar \menuseparator +Program Listing +\family default +. + The LaTeX-package +\series bold +listings +\series default -\end_inset - - -\begin_inset Text +\begin_inset Index idx +status collapsed \begin_layout Plain Layout -b2 -\begin_inset Quotes erd -\end_inset - -| +LaTeX-packages ! listings \end_layout \end_inset - - -\begin_inset Text -\begin_layout Plain Layout -> + provides a powerful and flexible way to insert program source code into + your document. \end_layout -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -1 +\begin_layout Standard +Right-clicking on a listings inset opens the context menu containing where + you can set the listings format. \end_layout +\begin_layout Standard +By default, a listing starts a new paragraph in the output. + The placement option +\family sans +Inline +\begin_inset space ~ \end_inset - - -\begin_inset Text + +listing +\family default + prints the listing inline like this: +\begin_inset listings +lstparams "language={C++}" +inline true +status open \begin_layout Plain Layout -§ + +int a=5; \end_layout \end_inset - - -\begin_inset Text -\begin_layout Plain Layout -c -\end_layout +\begin_inset Newline newline \end_inset - - - +The option +\family sans +Float +\family default + creates a listings float where you can specify the placement options +\begin_inset Quotes eld \end_inset -\end_layout +\family sans +h +\family default +\begin_inset Quotes erd \end_inset +, +\begin_inset Quotes eld +\end_inset -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout -} -\end_layout +\family sans +t +\family default +\begin_inset Quotes erd \end_inset +, +\begin_inset Quotes eld +\end_inset -\end_layout - -\begin_layout Section -Rotated and Scaled Boxes -\end_layout - -\begin_layout Standard -To use the commands described in this section, the LaTeX-package -\series bold -graphicx -\series default -\begin_inset Index idx -status collapsed +\family sans +b +\family default -\begin_layout Plain Layout -LaTeX-packages ! graphicx -\end_layout +\begin_inset Quotes erd +\end_inset +, and +\begin_inset Quotes eld \end_inset - needs to be loaded in the document preamble with the command -\end_layout -\begin_layout Standard +\family sans +p +\family default -\series bold +\begin_inset Quotes erd +\end_inset -\backslash -@ifundefined{rotatebox} -\begin_inset Newline newline + corresponding to the float placement options described in section +\begin_inset space ~ \end_inset -\begin_inset Phantom HPhantom -status open +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Float-Placement" -\begin_layout Plain Layout +\end_inset -\series bold -\begin_inset space ~ +. + The placement options can be mixed and are inserted without any separation, + e. +\begin_inset space \thinspace{} \end_inset +g. +\begin_inset space \space{} +\end_inset -\end_layout +\begin_inset Quotes eld \end_inset -{ -\backslash -usepackage{graphicx}}{} -\end_layout - -\begin_layout Standard -\begin_inset Note Greyedout -status open -\begin_layout Plain Layout +\family sans +htbp +\family default -\series bold -Note: -\series default - Some DVI-viewers can't display rotated or scaled material. -\end_layout +\begin_inset Quotes erd +\end_inset +. + The option +\begin_inset Quotes eld \end_inset +h +\begin_inset Quotes erd +\end_inset + has sometimes no effect, but you don't need to use the +\family sans +Float +\family default + option in this case as also non-float listings can have captions and be + referenced. \end_layout \begin_layout Standard -\begin_inset Note Greyedout -status open - -\begin_layout Plain Layout +You can add captions to listings with the menu +\family sans +Insert\SpecialChar \menuseparator +Caption +\family default +. + Listings can be referenced like floats: Listing +\begin_inset space ~ +\end_inset -\series bold -Note: -\series default - Floats mustn't be inside a rotated or scaled box. -\end_layout + +\begin_inset CommandInset ref +LatexCommand ref +reference "lst:Example-Listing" \end_inset \end_layout -\begin_layout Subsection -Rotated Boxes -\begin_inset Index idx -status collapsed +\begin_layout Standard +\begin_inset listings +lstparams "language=Python" +inline false +status open \begin_layout Plain Layout -Boxes ! rotated -\end_layout -\end_inset +\begin_inset Caption +\begin_layout Plain Layout +\begin_inset CommandInset label +LatexCommand label +name "lst:Example-Listing" -\begin_inset Index idx -status collapsed +\end_inset -\begin_layout Plain Layout -Rotated material +Example Listing float \end_layout \end_inset - -\begin_inset Index idx -status collapsed +# Example listing float +\end_layout \begin_layout Plain Layout -Figures ! rotated -\end_layout -\end_inset +def func(param): +\end_layout +\begin_layout Plain Layout -\begin_inset Index idx -status collapsed + 'this is a python function' +\end_layout \begin_layout Plain Layout -Table Customization ! Rotating + + pass \end_layout \end_inset @@ -30800,824 +38701,1005 @@ Table Customization ! Rotating \end_layout \begin_layout Standard -To rotate material, you can put it into a rotated box. - Such a box is created using the command -\series bold +When you have set a programming language in the listings dialog, the keywords + of this language will be recognized and specially typeset in the output. + In the example listings the Python keyword +\begin_inset Quotes eld +\end_inset -\backslash -rotatebox -\series default - in TeX-Code with the following scheme: +def +\begin_inset Quotes erd +\end_inset + + is recognized and printed bold in the output. \end_layout \begin_layout Standard +\begin_inset Note Greyedout +status open -\series bold - -\backslash -rotatebox[rotation origin]{rotation angle}{box content} -\end_layout +\begin_layout Plain Layout -\begin_layout Standard -The rotation origin is specified in the form \series bold -origin=position +Note: \series default + If you don't get bold keywords when using typewriter fonts, your +\family typewriter +typewriter +\family default + font probably doesn't provide a bold shape. + In this case select a different one in the menu +\family sans +Document\SpecialChar \menuseparator +Settings\SpecialChar \menuseparator +Fonts +\family default . - The following positions are possible: -\emph on -c -\emph default - (center), -\emph on -l -\emph default - (left), -\emph on -r -\emph default - (right), -\emph on -b -\emph default - (bottom), -\emph on -t -\emph default - (top), along with meaningful combinations of the four base positions. - For example + (The fonts \emph on -lt +LuxiMono, BeraMono \emph default - means that the rotation origin is at the top left corner of the box. - When no rotation origin is specified, the position + and \emph on -l +Courier \emph default - will be used. - The rotation angle is a number that can be negative that specifies the - angle in degrees. - The rotation direction is counterclockwise. + provide bold shapes.) +\end_layout + +\end_inset + + \end_layout \begin_layout Standard -In the following example the command -\series bold +In section +\family sans +Line +\begin_inset space ~ +\end_inset + +numbering +\family default + of the listings dialog you can specify the line numbering style. + You can insert a number to specify which lines are numbered in the field + +\family sans +Step +\family default +. + When you insert e. +\begin_inset space \thinspace{} +\end_inset + +g. +\begin_inset space \space{} +\end_inset + -\backslash -rotatebox[origin=c]{60}{ -\series default - was inserted as TeX-Code before the text \begin_inset Quotes eld \end_inset -with rotated +3 \begin_inset Quotes erd \end_inset -; after the text the box was closed by a closing brace -\series bold -} -\series default - in TeX-Code. +, only every 3rd line will be numbered. \end_layout \begin_layout Standard -This is a line -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout +You can furthermore specify a range of lines; only these will then appear + in the output. + The option +\family sans +Extended character table +\family default + should be used when you use national characters like the German umlauts + in the listing. +\begin_inset Newline newline +\end_inset +Here is an example listing with left line numbering, step +\begin_inset Quotes eld +\end_inset -\backslash -rotatebox[origin=c]{60}{ -\end_layout +3 +\begin_inset Quotes erd +\end_inset +, language +\begin_inset Quotes eld \end_inset -with rotated -\begin_inset ERT -status collapsed +Python +\begin_inset Quotes erd +\end_inset -\begin_layout Plain Layout +, options +\begin_inset Quotes eld +\end_inset -} -\end_layout +Extended character table +\begin_inset Quotes erd +\end_inset + and +\begin_inset Quotes eld \end_inset - text. -\end_layout +Space +\begin_inset space ~ +\end_inset -\begin_layout Standard -The box content can also be another box or an inline formula: -\end_layout +as +\begin_inset space ~ +\end_inset -\begin_layout Standard -This is a line -\begin_inset ERT -status collapsed +symbol +\begin_inset Quotes erd +\end_inset -\begin_layout Plain Layout +, range lines 3 +\begin_inset space \thinspace{} +\end_inset +- +\begin_inset space \thinspace{} +\end_inset -\backslash -rotatebox[origin=r]{-60}{ +8: \end_layout -\end_inset +\begin_layout Standard +\begin_inset listings +lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3" +inline false +status open +\begin_layout Plain Layout -\begin_inset Box Doublebox -position "c" -hor_pos "c" -has_inner_box 0 -inner_pos "c" -use_parbox 0 -use_makebox 0 -width "1in" -special "width" -height "1in" -height_special "totalheight" -status collapsed +def func(param): +\end_layout \begin_layout Plain Layout -with rotated -\end_layout -\end_inset + 'this is a python function' +\end_layout +\begin_layout Plain Layout -\begin_inset ERT -status collapsed + pass +\end_layout \begin_layout Plain Layout -} +def func(param): \end_layout -\end_inset +\begin_layout Plain Layout - framed text -\begin_inset ERT -status collapsed +'This is a German word: Tschüß' +\end_layout \begin_layout Plain Layout - -\backslash -rotatebox[origin=lb]{60}{ +pass \end_layout -\end_inset - +\begin_layout Plain Layout -\begin_inset Formula $\int A\,\mathrm{d}x=B$ -\end_inset +def func(param): +\end_layout +\begin_layout Plain Layout -\begin_inset ERT -status collapsed +'this is a python function' +\end_layout \begin_layout Plain Layout -} +pass \end_layout \end_inset - and a formula. + \end_layout \begin_layout Standard -or an image or table: +When you have tabulators in your listing, you can specify the number of + characters that are spanned by a tabulator in the field +\family sans +Tabulator +\begin_inset space ~ +\end_inset + +size +\family default +. \end_layout \begin_layout Standard -This is a line -\begin_inset ERT -status collapsed +\begin_inset Note Greyedout +status open \begin_layout Plain Layout - -\backslash -rotatebox[origin=lb]{90}{ +\series bold +Note: +\series default + Due to a bug in the +\series bold +listings +\series default + package the line numbering is shifted by a line by every previous listing. + That's the reason why the lines 2 and 5 are numbered in the above listing + and not the lines 3 and 6. \end_layout \end_inset -\begin_inset Graphics - filename clipart/platypus.eps - lyxscale 50 - width 25col% +\end_layout +\begin_layout Standard +\begin_inset VSpace bigskip \end_inset -\begin_inset ERT +\end_layout + +\begin_layout Standard +It is also possible to print lines from a file as listing. + To do this, use the menu +\family sans +Insert\SpecialChar \menuseparator +File\SpecialChar \menuseparator +Child Document +\family default + and choose the type +\family sans +Listings +\family default +. +\begin_inset Foot status collapsed \begin_layout Plain Layout +The other child document types are described in section +\begin_inset space ~ +\end_inset -} + +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Child-Documents" + +\end_inset + +. \end_layout \end_inset - with a rotated image -\begin_inset ERT -status collapsed + In the child document dialog you can specify the listing parameters in + a text box. + To show a list of all available parameters, type in a question mark +\begin_inset Quotes eld +\end_inset -\begin_layout Plain Layout +? +\begin_inset Quotes erd +\end_inset + in the text box. +\end_layout -\backslash -rotatebox[origin=l]{-90}{ +\begin_layout Standard +To reference child document listings, write a label text into the corresponding + field of the child document dialog. + The label can then be referenced using the menu +\family sans +Insert\SpecialChar \menuseparator +Cross-Reference +\family default +. \end_layout +\begin_layout Standard +Listing +\begin_inset space ~ \end_inset -\begin_inset Tabular - - - - - - -\begin_inset Text - -\begin_layout Plain Layout -q -\end_layout +\begin_inset CommandInset ref +LatexCommand ref +reference "lst:file-listing" \end_inset - - -\begin_inset Text -\begin_layout Plain Layout -w -\end_layout + is an example for a listing of a file; there the lines 10 +\begin_inset space \thinspace{} +\end_inset +- +\begin_inset space \thinspace{} \end_inset - - - - -\begin_inset Text -\begin_layout Plain Layout -e +15 of this LyX file are listed. \end_layout +\begin_layout Standard +\begin_inset CommandInset include +LatexCommand lstinputlisting +filename "EmbeddedObjects.lyx" +lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15" + \end_inset - - -\begin_inset Text -\begin_layout Plain Layout -r + \end_layout +\begin_layout Standard +\begin_inset VSpace bigskip \end_inset - - - -\end_inset +\end_layout -\begin_inset ERT -status collapsed +\begin_layout Standard +Inserting a formula into a listing can be done the following way: +\end_layout -\begin_layout Plain Layout +\begin_layout Enumerate +Open the listings dialog and add +\begin_inset Newline newline +\end_inset -} -\end_layout +\family sans +mathescape=true +\family default + +\begin_inset Newline newline \end_inset - and table. +to the field of the +\family sans +Advanced +\family default + tab. \end_layout -\begin_layout Subsection -Scaled Boxes -\begin_inset Index idx -status collapsed - -\begin_layout Plain Layout -Boxes ! scaled +\begin_layout Enumerate +Create a formula outside the listing \end_layout +\begin_layout Enumerate +Copy the content of the formula (not the formula inset) to the clipboard + (shortcut +\begin_inset Info +type "shortcut" +arg "copy" \end_inset - -\begin_inset Index idx -status collapsed - -\begin_layout Plain Layout -Scaled material +) \end_layout +\begin_layout Enumerate +In the listing write +\begin_inset Quotes eld \end_inset -\begin_inset Index idx -status collapsed +\family sans +$$ +\family default -\begin_layout Plain Layout -Figures ! scaled -\end_layout +\begin_inset Quotes erd +\end_inset + and copy from the clipboard between the dollar-signs (shortcut +\begin_inset Info +type "shortcut" +arg "paste" \end_inset +) +\end_layout -\begin_inset Index idx -status collapsed +\begin_layout Standard +\begin_inset listings +lstparams "language=Python,mathescape=true" +inline false +status open + +\begin_layout Plain Layout + +\begin_inset Caption \begin_layout Plain Layout -Table Customization ! Scaling +Example Listing float containing a formula \end_layout \end_inset +# Example listing float +\end_layout + +\begin_layout Plain Layout +def func(param): \end_layout -\begin_layout Standard -To scale material the commands -\series bold +\begin_layout Plain Layout + # $ \backslash -scalebox -\series default - and -\series bold - +prod_{n=1}^{ \backslash -resizebox -\series default - can be used as TeX-Code. +infty} +\backslash +, +\backslash +frac{1}{x^{2}}$ \end_layout -\begin_layout Standard +\begin_layout Plain Layout + + pass +\end_layout + +\end_inset -\series bold -\backslash -scalebox -\series default - is used with the following scheme: \end_layout \begin_layout Standard +\begin_inset VSpace bigskip +\end_inset -\series bold -\backslash -scalebox{horizontal}[vertical]{box content} \end_layout \begin_layout Standard -Horizontal and vertical are the corresponding scaling factors. - If no vertical scaling factor is given, the horizontal factor will also - be used as the vertical one. +Global listings settings can be set in the +\family sans +Document\SpecialChar \menuseparator +Settings\SpecialChar \menuseparator +Listings +\family default + dialog. + To get there a list of available options, type in a question mark +\begin_inset Quotes eld +\end_inset + +? +\begin_inset Quotes erd +\end_inset + +. \end_layout \begin_layout Standard -The command +For more information about the \series bold - -\backslash -scalebox{2}{Hello} +listings \series default - creates for example a double size -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout + package, we refer to its documentation +\begin_inset CommandInset citation +LatexCommand cite +key "listings" +\end_inset -\backslash -scalebox{2}{ +. \end_layout +\begin_layout Standard +\begin_inset Newpage newpage \end_inset -Hello -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout -} \end_layout -\end_inset +\begin_layout Chapter +\start_of_appendix +Units available in LyX +\begin_inset Index idx +status collapsed -, compared with the document text size. +\begin_layout Plain Layout +Units \end_layout -\begin_layout Standard +\end_inset -\series bold -\backslash -scalebox{2}[1]{Hello} -\series default - on the other hand distorts the -\begin_inset ERT -status collapsed +\begin_inset CommandInset label +LatexCommand label +name "cha:Units-available-in" -\begin_layout Plain Layout +\end_inset -\backslash -scalebox{2}[1]{ \end_layout +\begin_layout Standard +To understand the units described in this documentation, Table +\begin_inset space ~ \end_inset -Hello -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout -} -\end_layout +\begin_inset CommandInset ref +LatexCommand ref +reference "tab:Units" \end_inset -. + explains all units available in LyX. \end_layout \begin_layout Standard -If the scaling factor is negative, the box content will be mirrored. - Therefore the command -\series bold +\begin_inset Float table +placement h +wide false +sideways false +status open -\backslash -scalebox{-1}[1]{Hello} -\series default - can be used to create mirror writing: -\begin_inset ERT -status collapsed +\begin_layout Plain Layout +\begin_inset Caption \begin_layout Plain Layout +\begin_inset CommandInset label +LatexCommand label +name "tab:Units" +\end_inset -\backslash -scalebox{-1}[1]{ +Units \end_layout \end_inset -Hello -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout -} \end_layout +\begin_layout Plain Layout +\begin_inset VSpace medskip \end_inset \end_layout -\begin_layout Standard - -\series bold - -\backslash -scalebox{1}[-1]{Hello} -\series default - reflects the -\begin_inset ERT -status collapsed +\begin_layout Plain Layout +\align center +\begin_inset Tabular + + + + + + +\begin_inset Text \begin_layout Plain Layout +unit +\end_layout +\end_inset + + +\begin_inset Text -\backslash -scalebox{1}[-1]{ +\begin_layout Plain Layout +name/description \end_layout \end_inset - -Hello -\begin_inset ERT -status collapsed + + + + +\begin_inset Text \begin_layout Plain Layout - -} +mm \end_layout \end_inset + + +\begin_inset Text - at the base line. +\begin_layout Plain Layout +millimeter \end_layout -\begin_layout Standard -Equivalent to -\series bold - -\backslash -scalebox{-1}[1]{box content} -\series default - there exists the command -\begin_inset Newline newline \end_inset + + + + +\begin_inset Text +\begin_layout Plain Layout +cm +\end_layout -\series bold +\end_inset + + +\begin_inset Text -\backslash -reflectbox{box content} -\series default -. +\begin_layout Plain Layout +centimeter \end_layout -\begin_layout Standard -\begin_inset VSpace bigskip \end_inset + + + + +\begin_inset Text -The command -\series bold - -\backslash -resizebox -\series default - is used to scale the box to a defined width and height. - The command scheme is: +\begin_layout Plain Layout +in \end_layout -\begin_layout Standard - -\series bold +\end_inset + + +\begin_inset Text -\backslash -resizebox{width}{height}{box content} +\begin_layout Plain Layout +inch \end_layout -\begin_layout Standard -If one of the two command arguments given is an exclamation mark -\series bold -! -\series default -, the size is set so that the aspect ratio of the box content is kept. -\end_layout +\end_inset + + + + +\begin_inset Text -\begin_layout Standard -The command -\series bold +\begin_layout Plain Layout +pt +\end_layout -\backslash -resizebox{2cm}{1cm}{Hello} -\series default - produces: -\begin_inset ERT -status collapsed +\end_inset + + +\begin_inset Text \begin_layout Plain Layout +point (72.27 +\begin_inset space \thinspace{} +\end_inset +pt = 1 +\begin_inset space \thinspace{} +\end_inset -\backslash -resizebox{2cm}{1cm}{ +in) \end_layout \end_inset - -Hello -\begin_inset ERT -status collapsed + + + + +\begin_inset Text \begin_layout Plain Layout - -} +pc \end_layout +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +pica (1 +\begin_inset space \thinspace{} \end_inset +pc = 12 +\begin_inset space \thinspace{} +\end_inset + +pt) +\end_layout -\begin_inset Newline newline \end_inset + + + + +\begin_inset Text -The command -\series bold +\begin_layout Plain Layout +sp +\end_layout -\backslash -resizebox{2cm}{!}{Hello} -\series default - produces: -\begin_inset ERT -status collapsed +\end_inset + + +\begin_inset Text \begin_layout Plain Layout +scaled point (65536 +\begin_inset space \thinspace{} +\end_inset +sp = 1 +\begin_inset space \thinspace{} +\end_inset -\backslash -resizebox{2cm}{!}{ +pt) \end_layout \end_inset - -Hello -\begin_inset ERT -status collapsed + + + + +\begin_inset Text \begin_layout Plain Layout - -} +bp \end_layout +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +big point (72 +\begin_inset space \thinspace{} \end_inset +bp = 1 +\begin_inset space \thinspace{} +\end_inset +in) \end_layout -\begin_layout Standard -\begin_inset VSpace bigskip \end_inset + + + + +\begin_inset Text +\begin_layout Plain Layout +dd +\end_layout -\begin_inset Note Greyedout -status open +\end_inset + + +\begin_inset Text \begin_layout Plain Layout +didot (1 +\begin_inset space \thinspace{} +\end_inset -\series bold -Note: -\series default - When arguments of -\series bold +dd +\begin_inset Formula $\approx$ +\end_inset -\backslash -scalebox -\series default - or -\series bold + 0.376 +\begin_inset space \thinspace{} +\end_inset -\backslash -resizebox -\series default - are set to zero, no LaTeX-errors occur when exporting the document but - the exported files can not or only partly be displayed. +mm) \end_layout \end_inset + + + + +\begin_inset Text - +\begin_layout Plain Layout +cc \end_layout -\begin_layout Standard -\begin_inset VSpace bigskip \end_inset + + +\begin_inset Text - -\end_layout - -\begin_layout Standard -The boxes can be combined in any order. - E. +\begin_layout Plain Layout +cicero (1 \begin_inset space \thinspace{} \end_inset -g. -\begin_inset space \space{} +cc = 12 +\begin_inset space \thinspace{} \end_inset -the command -\begin_inset Newline newline -\end_inset +dd) +\end_layout +\end_inset + + + + +\begin_inset Text -\series bold +\begin_layout Plain Layout +Scale% +\end_layout -\backslash -rotatebox[origin=c]{-45}{ -\backslash -resizebox{2cm}{!}{ -\backslash -reflectbox{Hello}}} -\begin_inset Newline newline \end_inset + + +\begin_inset Text - -\series default -produces: +\begin_layout Plain Layout +% of original image width \end_layout -\begin_layout Standard -\align center -\begin_inset ERT -status collapsed +\end_inset + + + + +\begin_inset Text \begin_layout Plain Layout +text% +\end_layout +\end_inset + + +\begin_inset Text -\backslash -rotatebox[origin=c]{-45}{ -\backslash -resizebox{2cm}{!}{ -\backslash -reflectbox{ +\begin_layout Plain Layout +% of text width \end_layout \end_inset - -Hello -\begin_inset ERT -status collapsed + + + + +\begin_inset Text \begin_layout Plain Layout - -}}} +col% \end_layout \end_inset + + +\begin_inset Text - +\begin_layout Plain Layout +% of column width \end_layout -\begin_layout Standard -\noindent -Images, tables, and inline formulas are allowed as box content: +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +page% \end_layout -\begin_layout Standard -\align center -\begin_inset ERT -status collapsed +\end_inset + + +\begin_inset Text \begin_layout Plain Layout +% of paper width +\end_layout +\end_inset + + + + +\begin_inset Text -\backslash -rotatebox[origin=c]{-30}{ -\backslash -resizebox{2cm}{!}{ -\backslash -reflectbox{ +\begin_layout Plain Layout +line% \end_layout \end_inset + + +\begin_inset Text - -\begin_inset Graphics - filename clipart/platypus.eps - lyxscale 50 - width 25col% +\begin_layout Plain Layout +% of line width +\end_layout \end_inset + + + + +\begin_inset Text +\begin_layout Plain Layout +theight% +\end_layout -\begin_inset ERT -status collapsed +\end_inset + + +\begin_inset Text \begin_layout Plain Layout - -}}} +% of text height \end_layout \end_inset + + + + +\begin_inset Text +\begin_layout Plain Layout +pheight% +\end_layout -\begin_inset ERT -status collapsed +\end_inset + + +\begin_inset Text \begin_layout Plain Layout +% of paper height +\end_layout +\end_inset + + + + +\begin_inset Text -\backslash -rotatebox[origin=c]{-45}{ -\backslash -resizebox{2cm}{!}{ -\backslash -reflectbox{ +\begin_layout Plain Layout +ex \end_layout \end_inset + + +\begin_inset Text +\begin_layout Plain Layout +height of letter +\emph on +x +\emph default + in current font +\end_layout -\begin_inset Tabular - - - - +\end_inset + + \begin_inset Text \begin_layout Plain Layout -q +em \end_layout \end_inset @@ -31626,7 +39708,11 @@ q \begin_inset Text \begin_layout Plain Layout -w +width of letter +\emph on +M +\emph default + in current font \end_layout \end_inset @@ -31637,7 +39723,7 @@ w \begin_inset Text \begin_layout Plain Layout -e +mu \end_layout \end_inset @@ -31646,7 +39732,15 @@ e \begin_inset Text \begin_layout Plain Layout -r +math unit (1 +\begin_inset space \thinspace{} +\end_inset + +mu = 1/18 +\begin_inset space \thinspace{} +\end_inset + +em) \end_layout \end_inset @@ -31657,84 +39751,58 @@ r \end_inset -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - -}}} \end_layout \end_inset -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -rotatebox[origin=c]{-45}{ -\backslash -resizebox{2cm}{!}{ -\backslash -reflectbox{ \end_layout -\end_inset - +\begin_layout Chapter +Output File Formats with Graphics +\begin_inset CommandInset label +LatexCommand label +name "cha:Output-File-Formats" -\begin_inset Formula $\int A\,\mathrm{d}x=B$ \end_inset -\begin_inset ERT +\end_layout + +\begin_layout Section +DVI +\begin_inset Index idx status collapsed \begin_layout Plain Layout - -}}} +File Formats ! DVI \end_layout \end_inset -\end_layout - -\begin_layout Standard -When the global formula style -\series bold -fleqn -\series default - is used in the document -\begin_inset Foot +\begin_inset Index idx status collapsed \begin_layout Plain Layout -When -\begin_inset Quotes eld -\end_inset +DVI|see +\begin_inset ERT +status collapsed -fleqn -\begin_inset Quotes erd -\end_inset +\begin_layout Plain Layout - is added to the document class options. +{ \end_layout \end_inset -, display style formulas can also be scaled. -\end_layout - -\begin_layout Chapter -Objects Surrounded by Text -\begin_inset Index idx +File Formats +\begin_inset ERT status collapsed \begin_layout Plain Layout -Surrounded by text + +} \end_layout \end_inset @@ -31742,273 +39810,248 @@ Surrounded by text \end_layout -\begin_layout Section -Wrap Floats -\begin_inset CommandInset label -LatexCommand label -name "sec:Wrap-Floats" - \end_inset -\begin_inset Index idx -status collapsed - -\begin_layout Plain Layout -Floats ! Wrap Floats \end_layout +\begin_layout Standard +This file type has the extension +\begin_inset Quotes eld \end_inset -\begin_inset Index idx -status collapsed +\family typewriter +.dvi +\family default -\begin_layout Plain Layout -Surrounded by text ! Wrap Floats -\end_layout +\begin_inset Quotes erd +\end_inset +. + It is called +\begin_inset Quotes eld \end_inset +device-independent +\begin_inset Quotes erd +\end_inset + (DVI), because it is completely portable; you can move them from one machine + to another without needing to do any sort of conversion. + At the time when this file-format was developed, this was no matter of + course. + DVIs are used for quick previews and as pre-stage for other output formats, + like PostScript. \end_layout \begin_layout Standard -\begin_inset Wrap figure -lines 0 -placement l -overhang 1cm -width "40col%" +\begin_inset Note Greyedout status open \begin_layout Plain Layout -\begin_inset Graphics - filename clipart/mobius.eps - width 40col% - scaleBeforeRotation - rotateOrigin center -\end_inset +\series bold +Note: +\series default + DVI-files do not contain images; they will only be a linked. +\end_layout +\end_inset + So don't forget this, if you move your +\family typewriter +.dvi +\family default + file to another computer. + This property can also slow down your computer when you view the DVI, because + the DVI-viewer has to convert the image in the background to make it visible + when you scroll in the DVI. + So it is recommended that you use PDF for files with many images. \end_layout -\begin_layout Plain Layout -\begin_inset Caption +\begin_layout Standard +You can export your document to DVI by using the menu +\family sans +File\SpecialChar \menuseparator +Export\SpecialChar \menuseparator +DVI +\family default +. + You can view your document as DVI via the +\family sans +View +\family default + menu. +\end_layout -\begin_layout Plain Layout +\begin_layout Section +PostScript \begin_inset CommandInset label LatexCommand label -name "fig:This-is-a" +name "sec:PostScript" \end_inset -This is a figure wrap float. -\end_layout - -\end_inset +\begin_inset Index idx +status collapsed +\begin_layout Plain Layout +File Formats ! PostScript \end_layout \end_inset - This float type is used if you want to wrap text around a figure or table - so that it only occupies some fraction of the column width. - It can be inserted using the menu -\family sans -Insert\SpecialChar \menuseparator -Floats\SpecialChar \menuseparator -Figure -\begin_inset space ~ -\end_inset - -Wrap -\begin_inset space ~ -\end_inset - -Float -\family default - or -\family sans -Table -\begin_inset space ~ -\end_inset - -Wrap -\begin_inset space ~ -\end_inset - -Float -\family default - if the LaTeX-package -\series bold -wrapfig -\series default \begin_inset Index idx status collapsed \begin_layout Plain Layout -LaTeX-packages ! wrapfig +PostScript|see \begin_inset ERT status collapsed \begin_layout Plain Layout - -\backslash -vspace{4mm} -\end_layout - -\end_inset - - +{ \end_layout \end_inset - is installed. -\begin_inset Foot +File Formats +\begin_inset ERT status collapsed \begin_layout Plain Layout -Installing a LaTeX-package is explained it in the -\emph on -LaTeX -\begin_inset space ~ -\end_inset -Configuration -\emph default - manual. +} \end_layout \end_inset - The settings of the float can be modified by right-clicking on the float - box. - The mandatory settings are the float -\family sans -Placement -\family default - and its -\family sans -Width -\family default -. - Optional are the -\family sans -Overhang -\family default - that specifies how much the float is set into the paragraph -\begin_inset space \thinspace{} -\end_inset -/ -\begin_inset space \thinspace{} -\end_inset +\end_layout -page margin, and the -\family sans -Line -\begin_inset space ~ \end_inset -span -\family default - that specifies how many text lines the float will approximately need. - The line span is often hard to approximate; so it is better only to use - it when you encounter float placement problems. - You can furthermore decide if LaTeX is allowed to let the float float within - the paragraph or to surrounding paragraphs. - Figure -\begin_inset space ~ + +\end_layout + +\begin_layout Standard +This file type has the extension +\begin_inset Quotes eld \end_inset -\begin_inset CommandInset ref -LatexCommand ref -reference "fig:This-is-a" +\family typewriter +.ps +\family default +\begin_inset Quotes erd \end_inset - is an example text wrap float with a width of 40 -\begin_inset space \thinspace{} +. + PostScript was developed by the company +\family typewriter +Adobe +\family default + as a printer language. + The file therefore contains commands that the printer uses to print the + file. + PostScript can be seen as a +\begin_inset Quotes eld \end_inset -col%, 1 -\begin_inset space \thinspace{} +programming language +\begin_inset Quotes erd \end_inset -cm overhang, set to the left. -\end_layout - -\begin_layout Standard -\begin_inset Note Greyedout -status open +; you can calculate with it and draw diagrams and images +\begin_inset Foot +status collapsed \begin_layout Plain Layout - +If you are interested to learn more about this, have a look at the LaTeX-package + \series bold -Note: +PSTricks \series default - Text -\begin_inset space ~ -\end_inset + +\begin_inset CommandInset citation +LatexCommand cite +key "pstricks" -wrap float floats are fragile! E. -\begin_inset space \thinspace{} \end_inset -g. -\begin_inset space \space{} +. +\end_layout + \end_inset -having a figure too close to the bottom of the page can mess things up in - such a way that the float does not appear in the output or that it is placed - over some other text. +. + Due to this ability, the files are often bigger than PDFs. \end_layout +\begin_layout Standard +PostScript can only contain images in the format +\begin_inset Quotes eld \end_inset +Encapsulated PostScript +\begin_inset Quotes erd +\end_inset -\end_layout + (EPS, file extension +\begin_inset Quotes eld +\end_inset -\begin_layout Standard -In general, the following applies for wrap floats: -\end_layout -\begin_layout Itemize -They should not be placed in paragraphs that run over a page break. - That means that wrap floats are better inserted in their exact place when - the document is almost finished and you are able to estimate where page - breaks will appear. -\end_layout +\family typewriter +.eps +\family default -\begin_layout Itemize -They should either be placed in their own paragraph before the paragraph - where they should wrap into or within a paragraph. -\end_layout +\begin_inset Quotes erd +\end_inset -\begin_layout Itemize -In consecutive paragraphs they may cause troubles, so ensure that there - is a text paragraph between them as separator. -\end_layout +). + As LyX allows you to use any known image format in your document, it has + to convert images in the background to EPS. + If you have e.g. +\begin_inset space ~ +\end_inset -\begin_layout Itemize -They are not allowed in section headings or tables. -\end_layout +50 +\begin_inset space ~ +\end_inset -\begin_layout Itemize -Their numbering and referencing works as described in chap. -\begin_inset space \thinspace{} +images in your document, LyX has to do 50 +\begin_inset space ~ \end_inset +conversions whenever you view or export your document. + This will slow down your work flow with LyX drastically. + So if you plan to use PostScript, you can insert your images directly as + EPS to avoid this problem. +\end_layout -\begin_inset CommandInset ref -LatexCommand ref -reference "chap:Floats" +\begin_layout Standard +You can export your document to PostScript using the menu +\family sans +File\SpecialChar \menuseparator +Export\SpecialChar \menuseparator +Postscript +\family default +. + You can view your document as PostScript via the +\family sans +View +\family default + menu or by using the toolbar button +\begin_inset Graphics + filename ../images/buffer-view_ps.png + scale 85 + scaleBeforeRotation \end_inset @@ -32016,561 +40059,475 @@ reference "chap:Floats" \end_layout \begin_layout Section -Surrounded Fixed Objects +PDF \begin_inset Index idx status collapsed \begin_layout Plain Layout -Surrounded by text ! Fixed objects +File Formats ! PDF \end_layout \end_inset +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +PDF \end_layout -\begin_layout Standard -The wrap floats described in sec. -\begin_inset space \thinspace{} \end_inset -\begin_inset CommandInset ref -LatexCommand ref -reference "sec:Wrap-Floats" - -\end_inset - - have these positions in the paragraph: \end_layout \begin_layout Standard -\noindent -\align center -\begin_inset Tabular - - - - - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Graphics - filename ../images/dialog-show-new-inset_graphics.png - scale 70 - scaleBeforeRotation - BoundingBox 0bp 6bp 22bp 22bp - +This file type has the extension +\begin_inset Quotes eld \end_inset -\end_layout +\family typewriter +.pdf +\family default +\begin_inset Quotes erd \end_inset - - -\begin_inset Text -\begin_layout Plain Layout -text -\end_layout +. + The +\begin_inset Quotes eld +\end_inset +Portable Document Format +\begin_inset Quotes erd \end_inset - - - - -\begin_inset Text -\begin_layout Plain Layout -text -\end_layout + (PDF) was developed by +\family typewriter +Adobe +\family default + as a derivative of PostScript. + It is more compressed and it uses fewer commands than PostScript. + As the name +\begin_inset Quotes eld +\end_inset +portable +\begin_inset Quotes erd \end_inset - - -\begin_inset Text -\begin_layout Plain Layout -text + implies, it can be processed at any computer system and the printed output + looks exactly the same. \end_layout +\begin_layout Standard +PDF can contain images in its own PDF format, in the format +\begin_inset Quotes eld \end_inset - - - +Joint Photographic Experts Group +\begin_inset Quotes erd \end_inset - or -\begin_inset Tabular - - - - - - -\begin_inset Text + (JPG, file extension +\begin_inset Quotes eld +\end_inset -\begin_layout Plain Layout -text -\end_layout -\end_inset - - -\begin_inset Text +\family typewriter +.jpg +\family default -\begin_layout Plain Layout -\begin_inset Graphics - filename ../images/dialog-show-new-inset_graphics.png - scale 70 - scaleBeforeRotation - BoundingBox 0bp 6bp 22bp 22bp +\begin_inset Quotes erd +\end_inset + or +\begin_inset Quotes eld \end_inset -\end_layout +\family typewriter +.jpeg +\family default +\begin_inset Quotes erd \end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -text -\end_layout +), and in the format +\begin_inset Quotes eld \end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -text -\end_layout +Portable Network Graphics +\begin_inset Quotes erd \end_inset - - - + (PNG, file extension +\begin_inset Quotes eld \end_inset -\end_layout +\family typewriter +.png +\family default -\begin_layout Standard -To get an object exactly at the position where it is inserted, for example - to get one of these positions: -\begin_inset VSpace defskip +\begin_inset Quotes erd \end_inset - +). + Nevertheless you can use any other image format, because LyX converts them + in the background to one of these formats. + But as described in the section about PostScript, the image conversion + will slow down your work flow. + So it is recommended that you use images in one of the three mentioned + formats. \end_layout \begin_layout Standard -\noindent -\align center -\begin_inset Tabular - - - - - - -\begin_inset Text - -\begin_layout Plain Layout -text +You can export your document to PDF via the menu +\family sans +File\SpecialChar \menuseparator +Export +\family default + in three different ways: \end_layout +\begin_layout Description +PDF +\begin_inset space ~ \end_inset - - -\begin_inset Text -\begin_layout Plain Layout -text +(ps2pdf) This uses the program +\family typewriter +ps2pdf +\family default + that creates a PDF from a PostScript-version of your file. + The PostScript-version is produced by the program +\family typewriter +dvips +\family default + which uses a DVI-version as intermediate step. + So this export variant consists of three conversions. \end_layout +\begin_layout Description +PDF +\begin_inset space ~ \end_inset - - - - -\begin_inset Text -\begin_layout Plain Layout -\begin_inset Graphics - filename ../images/dialog-show-new-inset_graphics.png - scale 70 - scaleBeforeRotation - BoundingBox 0bp 6bp 22bp 22bp +(dvipdfm) This uses the program +\family typewriter +dvipdfm +\family default + that converts your file in the background to DVI and in a second step to + PDF. +\end_layout +\begin_layout Description +PDF +\begin_inset space ~ \end_inset - +(pdflatex) This uses the program +\family typewriter +pdftex +\family default + that converts your file directly to PDF. \end_layout +\begin_layout Standard +It is recommended that you use +\family sans +PDF +\begin_inset space ~ \end_inset - - -\begin_inset Text -\begin_layout Plain Layout -text +(pdflatex) +\family default + because +\family typewriter +pdftex +\family default + supports all features of actual PDF-versions, is quick and works stable. + The program +\family typewriter +dvipdfm +\family default + is not under development and therefore a bit outdated. \end_layout -\end_inset - - - +\begin_layout Standard +You can view your document as PDF via the +\family sans +View +\family default + menu or by using the toolbar button +\begin_inset Graphics + filename ../images/buffer-view_pdf2.png + scale 85 + scaleBeforeRotation \end_inset -\begin_inset Tabular - - - - - - -\begin_inset Text - -\begin_layout Plain Layout -text -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -text -\end_layout - +\family sans +( +\family default +that uses +\family sans +PDF +\begin_inset space ~ \end_inset - - - - -\begin_inset Text -\begin_layout Plain Layout -text +(pdflatex) +\family default +). \end_layout -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Graphics - filename ../images/dialog-show-new-inset_graphics.png - scale 70 - scaleBeforeRotation - BoundingBox 0bp 6bp 22bp 22bp +\begin_layout Chapter +List of dvips color names +\begin_inset CommandInset label +LatexCommand label +name "chap:List-of-dvips-colornames" \end_inset \end_layout -\end_inset - - - - -\end_inset - - +\begin_layout Standard \begin_inset Tabular - + - - - + + + + - + \begin_inset Text \begin_layout Plain Layout -text -\end_layout - -\end_inset - - -\begin_inset Text +\begin_inset ERT +status collapsed \begin_layout Plain Layout -\begin_inset Graphics - filename ../images/dialog-show-new-inset_graphics.png - scale 70 - scaleBeforeRotation - BoundingBox 0bp 6bp 22bp 22bp - -\end_inset +\backslash +fcolorbox{black}{ \end_layout \end_inset - - -\begin_inset Text + +white +\begin_inset ERT +status collapsed \begin_layout Plain Layout -text + +}{ \end_layout \end_inset - - - - -\begin_inset Text + +Color +\begin_inset ERT +status collapsed \begin_layout Plain Layout -text + +} \end_layout \end_inset - - -\begin_inset Text -\begin_layout Plain Layout -text + Color name \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -text -\end_layout - -\end_inset - - - +\begin_inset ERT +status collapsed -\end_inset +\begin_layout Plain Layout - -\begin_inset Tabular - - - - - - - -\begin_inset Text -\begin_layout Plain Layout -text +\backslash +fcolorbox{black}{ \end_layout \end_inset - - -\begin_inset Text + +white +\begin_inset ERT +status collapsed \begin_layout Plain Layout -text + +}{ \end_layout \end_inset - - -\begin_inset Text + +Color +\begin_inset ERT +status collapsed \begin_layout Plain Layout -text + +} \end_layout \end_inset - - - - -\begin_inset Text -\begin_layout Plain Layout -text + Color name \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -\begin_inset Graphics - filename ../images/dialog-show-new-inset_graphics.png - scale 70 - scaleBeforeRotation - BoundingBox 0bp 6bp 22bp 22bp +\begin_inset ERT +status collapsed -\end_inset +\begin_layout Plain Layout +\backslash +fcolorbox{black}{ \end_layout \end_inset - - -\begin_inset Text + +white +\begin_inset ERT +status collapsed \begin_layout Plain Layout -text + +}{ \end_layout \end_inset - - - -\end_inset +Color +\begin_inset ERT +status collapsed +\begin_layout Plain Layout +} \end_layout -\begin_layout Standard -\noindent -\align center -\begin_inset Tabular - - - - - - -\begin_inset Text +\end_inset -\begin_layout Plain Layout -text + Color name \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -text +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +fcolorbox{black}{ \end_layout \end_inset - - - - -\begin_inset Text + +white +\begin_inset ERT +status collapsed \begin_layout Plain Layout -\begin_inset Graphics - filename ../images/dialog-show-new-inset_graphics.png - scale 70 - scaleBeforeRotation - BoundingBox 0bp 6bp 22bp 22bp + +}{ +\end_layout \end_inset +Color +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +} \end_layout \end_inset - - -\begin_inset Text -\begin_layout Plain Layout -text + Color name \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -text +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +fcolorbox{black}{ \end_layout \end_inset - - -\begin_inset Text + +Apricot +\begin_inset ERT +status collapsed \begin_layout Plain Layout -text + +}{ \end_layout \end_inset - - - -\end_inset - -\begin_inset Tabular - - - - - - - -\begin_inset Text +\begin_inset Phantom Phantom +status open \begin_layout Plain Layout -text +W \end_layout \end_inset - - -\begin_inset Text -\begin_layout Plain Layout -text -\end_layout -\end_inset - - -\begin_inset Text +\begin_inset ERT +status collapsed \begin_layout Plain Layout -text + +} \end_layout \end_inset - - - - -\begin_inset Text -\begin_layout Plain Layout -text + Apricot \end_layout \end_inset @@ -32579,213 +40536,197 @@ text \begin_inset Text \begin_layout Plain Layout -\begin_inset Graphics - filename ../images/dialog-show-new-inset_graphics.png - scale 70 - scaleBeforeRotation - BoundingBox 0bp 6bp 22bp 22bp +\begin_inset ERT +status collapsed -\end_inset +\begin_layout Plain Layout +\backslash +fcolorbox{black}{ \end_layout \end_inset - - -\begin_inset Text + +Aquamarine +\begin_inset ERT +status collapsed \begin_layout Plain Layout -text + +}{ \end_layout \end_inset - - - - -\begin_inset Text + + +\begin_inset Phantom Phantom +status open \begin_layout Plain Layout -text +W \end_layout \end_inset - - -\begin_inset Text + + +\begin_inset ERT +status collapsed \begin_layout Plain Layout -text + +} \end_layout \end_inset - - -\begin_inset Text -\begin_layout Plain Layout -text + Aquamarine \end_layout \end_inset - - - -\end_inset - - -\begin_inset Tabular - - - - - - + \begin_inset Text \begin_layout Plain Layout -text +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +fcolorbox{black}{ \end_layout \end_inset - - -\begin_inset Text + +Bittersweet +\begin_inset ERT +status collapsed \begin_layout Plain Layout -text + +}{ \end_layout \end_inset - - - - -\begin_inset Text + + +\begin_inset Phantom Phantom +status open \begin_layout Plain Layout -text +W \end_layout \end_inset - - -\begin_inset Text -\begin_layout Plain Layout -\begin_inset Graphics - filename ../images/dialog-show-new-inset_graphics.png - scale 70 - scaleBeforeRotation - BoundingBox 0bp 6bp 22bp 22bp -\end_inset +\begin_inset ERT +status collapsed +\begin_layout Plain Layout +} \end_layout \end_inset - - - - -\begin_inset Text -\begin_layout Plain Layout -text + Bittersweet \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -text +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +fcolorbox{black}{ \end_layout \end_inset - - - -\end_inset +BlueGreen +\begin_inset ERT +status collapsed +\begin_layout Plain Layout +}{ \end_layout -\begin_layout Standard -\noindent -you can use the LaTeX-package -\series bold -picinpar -\series default +\end_inset -\begin_inset Index idx -status collapsed + +\begin_inset Phantom Phantom +status open \begin_layout Plain Layout -LaTeX-packages ! picinpar +W \end_layout \end_inset -. - Here is an example: -\end_layout -\begin_layout Standard \begin_inset ERT status collapsed \begin_layout Plain Layout - -\backslash -ifpicinpar +} \end_layout \end_inset + BlueGreen +\end_layout -\begin_inset Note Note -status open +\end_inset + + + + +\begin_inset Text \begin_layout Plain Layout -The following section will only be displayed when the LaTeX-package -\series bold -picinpar -\series default - is installed. -\end_layout +\begin_inset ERT +status collapsed -\end_inset +\begin_layout Plain Layout +\backslash +fcolorbox{black}{ \end_layout -\begin_layout Standard +\end_inset + +BlueViolet \begin_inset ERT status collapsed \begin_layout Plain Layout - -\backslash -begin{window}[2,c,{ +}{ \end_layout \end_inset -\begin_inset Graphics - filename clipart/mobius.eps - lyxscale 60 - width 40col% - scaleBeforeRotation - rotateOrigin center +\begin_inset Phantom Phantom +status open + +\begin_layout Plain Layout +W +\end_layout \end_inset @@ -32795,24 +40736,20 @@ status collapsed \begin_layout Plain Layout -},] +} \end_layout -\begin_layout Plain Layout +\end_inset -{} + BlueViolet \end_layout \end_inset + + +\begin_inset Text - -\size small -It was in the spring of the year 1894 that all London was interested, and - the fashionable world dismayed, by the murder of the Honourable Ronald - Adair under most unusual and inexplicable circumstances. - The public has already learned those particulars of the crime which -\size default - +\begin_layout Plain Layout \begin_inset ERT status collapsed @@ -32820,49 +40757,33 @@ status collapsed \backslash -footnotemark{} +fcolorbox{black}{ \end_layout \end_inset - -\size small - came out in the police investigation, but a good deal was suppressed upon - that occasion, since the case for the prosecution was so overwhelmingly - strong that it was not necessary to bring forward all the facts. - Only now, at the end of nearly ten years, am I allowed to supply those - missing links which make up the whole of that remarkable chain. -\size default - +BrickRed \begin_inset ERT status collapsed \begin_layout Plain Layout - -\backslash -end{window} +}{ \end_layout \end_inset -\end_layout - -\begin_layout Standard -\begin_inset ERT -status collapsed +\begin_inset Phantom Phantom +status open \begin_layout Plain Layout - - -\backslash -footnotetext{ +W \end_layout \end_inset -Footnote of the paragraph with the fixed object. + \begin_inset ERT status collapsed @@ -32873,154 +40794,123 @@ status collapsed \end_inset - + BrickRed \end_layout -\begin_layout Standard -Surrounded fixed objects are used to let text float around them, at which - the object's position in the paragraph can be determined by the number - of lines above it. - In contrary to floats is it not possible to have a numbered caption. -\end_layout +\end_inset + + +\begin_inset Text -\begin_layout Standard -A fixed object is inserted by adding the command -\end_layout +\begin_layout Plain Layout +\begin_inset ERT +status collapsed -\begin_layout Standard +\begin_layout Plain Layout -\series bold \backslash -begin{window}[2,c,{ +fcolorbox{black}{ \end_layout -\begin_layout Standard -as TeX Code at the beginning of the paragraph. - The first parameter in the bracket, here '2', defines the number of lines - above the object, the second, here 'c', the position of the object. - The positions 'l', 'c' and 'r' (for left, center, right) are possible. - Behind the command you insert the object. - In this example an image with a width of 40 -\begin_inset space \thinspace{} \end_inset -% of the text column width was inserted. - The object can also be a table, a box or an equation. - Behind the object the command -\end_layout - -\begin_layout Standard +Brown +\begin_inset ERT +status collapsed -\series bold -},description text] -\begin_inset Newline newline -\end_inset +\begin_layout Plain Layout -{} +}{ \end_layout -\begin_layout Standard -is inserted. - Note that the -\begin_inset Quotes eld \end_inset -\series bold -{} -\series default +\begin_inset Phantom Phantom +status open + +\begin_layout Plain Layout +W +\end_layout -\begin_inset Quotes erd \end_inset - is in the second line. - The description text is optional. - The text surrounding the object must be in the same paragraph as the object, - so it must begin directly after the -\series bold -{} -\series default -. - At the end of the paragraph insert the command: -\end_layout -\begin_layout Standard +\begin_inset ERT +status collapsed -\series bold +\begin_layout Plain Layout -\backslash -end{window} +} \end_layout -\begin_layout Standard -Within a paragraph with a fixed object, you cannot insert footnotes in the - normal way. - You have to use instead the command -\series bold +\end_inset -\backslash -footnotemark -\series default - inside the paragraph and outside the command -\series bold + Brown +\end_layout -\backslash -footnotetext -\series default - as described in sec. -\begin_inset space \thinspace{} \end_inset + + +\begin_inset Text +\begin_layout Plain Layout +\begin_inset ERT +status collapsed -\begin_inset CommandInset ref -LatexCommand ref -reference "sec:Footnotes" +\begin_layout Plain Layout -\end_inset -. +\backslash +fcolorbox{black}{ \end_layout -\begin_layout Standard +\end_inset + +BurntOrange \begin_inset ERT status collapsed \begin_layout Plain Layout - -\backslash -else +}{ \end_layout \end_inset -\begin_inset Note Note +\begin_inset Phantom Phantom status open \begin_layout Plain Layout -The following will be displayed when the LaTeX-package -\series bold -picinpar -\series default - is not installed: +W \end_layout \end_inset +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} \end_layout -\begin_layout Standard -You need to install the LaTeX-package -\series bold -picinpar -\series default - to see the following part of this section in the output. +\end_inset + + BurntOrange \end_layout -\begin_layout Standard +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout \begin_inset ERT status collapsed @@ -33028,199 +40918,187 @@ status collapsed \backslash -fi +fcolorbox{black}{ \end_layout \end_inset +CadetBlue +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +}{ \end_layout -\begin_layout Section -Initials -\begin_inset Index idx -status collapsed +\end_inset + + +\begin_inset Phantom Phantom +status open \begin_layout Plain Layout -Initials +W \end_layout \end_inset -\begin_inset Index idx +\begin_inset ERT status collapsed \begin_layout Plain Layout -Surrounded by text ! Initials + +} \end_layout \end_inset - + CadetBlue \end_layout -\begin_layout Standard -To use initials, you must have the LaTeX package -\series bold -lettrine -\series default +\end_inset + + +\begin_inset Text -\begin_inset Index idx +\begin_layout Plain Layout +\begin_inset ERT status collapsed \begin_layout Plain Layout -LaTeX-packages ! lettrine + + +\backslash +fcolorbox{black}{ \end_layout \end_inset - installed and use the module -\family sans -Initials -\family default - in your document (menu -\family sans -Document\SpecialChar \menuseparator -Settings\SpecialChar \menuseparator -Modules -\family default -). - To insert an initial, use the style -\family sans -Initial -\family default -. - This style has a mandatory and an optional argument. - The mandatory argument is inserted via the menu -\family sans -Insert\SpecialChar \menuseparator -Short -\begin_inset space ~ -\end_inset +CarnationPink +\begin_inset ERT +status collapsed -Title -\family default - and contains the letter that is the initial. - To use the also the optional argument, insert another argument in front - of the mandatory argument. - This one contains parameters to modify the initial. - For more information about the possible parameters see the documentation - of -\series bold -lettrine -\series default -, -\begin_inset CommandInset citation -LatexCommand cite -key "lettrine" +\begin_layout Plain Layout + +}{ +\end_layout \end_inset -. - The style itself contains the text that is surrounding the initial. - The usual style is hereby that the word whose first letter is the initial, - is printed with -\shape smallcaps -small caps -\shape default -. - To tell LaTeX where this word is finished, add a closing brace ' -\series bold -} -\series default -' as TeX Code behind it. - At the end of the style there must be an opening brace ' -\series bold -{ -\series default -' as TeX Code. + +\begin_inset Phantom Phantom +status open + +\begin_layout Plain Layout +W \end_layout -\begin_layout Standard -Here are some examples: +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} \end_layout -\begin_layout Enumerate -No optional argument, the initial is the letter 'I' in the math font -\begin_inset Formula $\mathfrak{Fraktur}$ \end_inset -: + CarnationPink \end_layout -\begin_deeper -\begin_layout Initial -\begin_inset Argument -status open +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed \begin_layout Plain Layout -\begin_inset Formula $\mathfrak{I}$ -\end_inset +\backslash +fcolorbox{black}{ \end_layout \end_inset -t +Cerulean \begin_inset ERT status collapsed \begin_layout Plain Layout -} +}{ \end_layout \end_inset - was in the spring of the year 1894 that all London was interested, and - the fashionable world dismayed, by the murder of the Honourable Ronald - Adair under most unusual and inexplicable circumstances. - The public has already learned those particulars of the crime which came - out in the police investigation, but a good deal was suppressed upon that - occasion, since the case for the prosecution was so overwhelmingly strong - that it was not necessary to bring forward all the facts. + +\begin_inset Phantom Phantom +status open + +\begin_layout Plain Layout +W +\end_layout + +\end_inset + + \begin_inset ERT status collapsed \begin_layout Plain Layout -{ +} \end_layout \end_inset + Cerulean +\end_layout -\begin_inset Newpage newpage \end_inset + + +\begin_inset Text +\begin_layout Plain Layout +\begin_inset ERT +status collapsed -\end_layout +\begin_layout Plain Layout -\end_deeper -\begin_layout Enumerate -Only one line is surrounding the initial, which is formed by two letters - in standard font and no text is printed in small caps: + +\backslash +fcolorbox{black}{ \end_layout -\begin_deeper -\begin_layout Initial -\begin_inset Argument -status open +\end_inset + +CornflowerBlue +\begin_inset ERT +status collapsed \begin_layout Plain Layout -lines=1 + +}{ \end_layout \end_inset -\begin_inset Argument +\begin_inset Phantom Phantom status open \begin_layout Plain Layout -It +W \end_layout \end_inset @@ -33236,157 +41114,176 @@ status collapsed \end_inset - was in the spring of the year 1894 that all London was interested, and - the fashionable world dismayed, by the murder of the Honourable Ronald - Adair under most unusual and inexplicable circumstances. - The public has already learned those particulars of the crime which came - out in the police investigation, but a good deal was suppressed upon that - occasion, since the case for the prosecution was so overwhelmingly strong - that it was not necessary to bring forward all the facts. + CornflowerBlue +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout \begin_inset ERT status collapsed \begin_layout Plain Layout -{ + +\backslash +fcolorbox{black}{ \end_layout \end_inset +Dandelion +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +}{ \end_layout -\end_deeper -\begin_layout Enumerate -Magenta, hanging initial over 3 -\begin_inset space ~ \end_inset -lines in the math font -\begin_inset Formula $\mathcal{CALLIGRAPHIC}$ -\end_inset -, the text -\begin_inset Quotes eld +\begin_inset Phantom Phantom +status open + +\begin_layout Plain Layout +W +\end_layout + \end_inset -t was in the spring -\begin_inset Quotes erd + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout + \end_inset - is in -\shape smallcaps -small caps -\shape default -; to color the initial, you must insert this command before the initial: -\begin_inset Newline newline + Dandelion +\end_layout + \end_inset + + +\begin_inset Text +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout -\series bold \backslash -renewcommand{ -\backslash -LettrineFontHook}{ -\backslash -color{color}} -\series default +fcolorbox{black}{ +\end_layout -\begin_inset Newline newline \end_inset -where the second -\emph on -color -\emph default - can be -\begin_inset Quotes eld -\end_inset +DarkOrchid +\begin_inset ERT +status collapsed -red -\begin_inset Quotes erd -\end_inset +\begin_layout Plain Layout -, -\begin_inset Quotes eld -\end_inset +}{ +\end_layout -blue -\begin_inset Quotes erd \end_inset -, -\begin_inset Quotes eld -\end_inset -green -\begin_inset Quotes erd -\end_inset +\begin_inset Phantom Phantom +status open -, -\begin_inset Quotes eld -\end_inset +\begin_layout Plain Layout +W +\end_layout -yellow -\begin_inset Quotes erd \end_inset -, -\begin_inset Quotes eld -\end_inset -cyan -\begin_inset Quotes erd -\end_inset +\begin_inset ERT +status collapsed -, -\begin_inset Quotes eld -\end_inset +\begin_layout Plain Layout -magenta -\begin_inset Quotes erd -\end_inset +} +\end_layout -, -\begin_inset Quotes eld \end_inset -black -\begin_inset Quotes erd -\end_inset + DarkOrchid +\end_layout - or -\begin_inset Quotes eld \end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +fcolorbox{black}{ +\end_layout -white -\begin_inset Quotes erd \end_inset -, and add this command to the document preamble: -\begin_inset Newline newline +Emerald +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +}{ +\end_layout + \end_inset -\series bold +\begin_inset Phantom Phantom +status open + +\begin_layout Plain Layout +W +\end_layout -\backslash -@ifundefined{textcolor} -\begin_inset Newline newline \end_inset -\begin_inset space ~ +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout + \end_inset -{ -\backslash -usepackage{color}}{} + Emerald \end_layout -\begin_deeper -\begin_layout Standard +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout \begin_inset ERT status collapsed @@ -33394,892 +41291,696 @@ status collapsed \backslash -renewcommand{ -\backslash -LettrineFontHook}{ -\backslash -color{magenta}} +fcolorbox{black}{ \end_layout \end_inset - -\begin_inset Note Note +ForestGreen +\begin_inset ERT status collapsed \begin_layout Plain Layout -makes the initial magenta + +}{ \end_layout \end_inset -\end_layout - -\begin_layout Initial -\begin_inset Argument +\begin_inset Phantom Phantom status open \begin_layout Plain Layout -lines=3, lhang=0.33, loversize=0.25 +W \end_layout \end_inset -\begin_inset Argument -status open +\begin_inset ERT +status collapsed \begin_layout Plain Layout -\begin_inset Formula $\mathcal{I}$ -\end_inset +} +\end_layout + +\end_inset + ForestGreen \end_layout \end_inset + + + + +\begin_inset Text -t was in the spring +\begin_layout Plain Layout \begin_inset ERT status collapsed \begin_layout Plain Layout -} + +\backslash +fcolorbox{black}{ \end_layout \end_inset - of the year 1894 that all London was interested, and the fashionable world - dismayed, by the murder of the Honourable Ronald Adair under most unusual - and inexplicable circumstances. - The public has already learned those particulars of the crime which came - out in the police investigation, but a good deal was suppressed upon that - occasion, since the case for the prosecution was so overwhelmingly strong - that it was not necessary to bring forward all the facts. +Fuchsia \begin_inset ERT status collapsed \begin_layout Plain Layout -{ +}{ \end_layout \end_inset +\begin_inset Phantom Phantom +status open + +\begin_layout Plain Layout +W \end_layout -\end_deeper -\begin_layout Chapter -External Document Parts -\begin_inset Index idx +\end_inset + + +\begin_inset ERT status collapsed \begin_layout Plain Layout -External Document Parts + +} \end_layout \end_inset - + Fuchsia \end_layout -\begin_layout Standard -With the menu -\family sans -Insert\SpecialChar \menuseparator -File -\family default - you can insert external material to your document. - This can be: +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +fcolorbox{black}{ \end_layout -\begin_layout Description -LyX -\begin_inset space ~ \end_inset -Document Another LyX document; its content is directly inserted to your - document. +Goldenrod +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +}{ \end_layout -\begin_layout Description -Plain -\begin_inset space ~ \end_inset -Text A text document; each line is inserted in your document as a separate - paragraph. + +\begin_inset Phantom Phantom +status open + +\begin_layout Plain Layout +W \end_layout -\begin_layout Description -Plain -\begin_inset space ~ \end_inset -Text, -\begin_inset space ~ -\end_inset -Join -\begin_inset space ~ -\end_inset +\begin_inset ERT +status collapsed -Lines A text document; text lines are inserted in your document continuously - but an empty text line creates a new paragraph. +\begin_layout Plain Layout + +} \end_layout -\begin_layout Description -External -\begin_inset space ~ \end_inset -Material Files in various formats. + Goldenrod \end_layout -\begin_layout Description -Child -\begin_inset space ~ \end_inset + + +\begin_inset Text -Document LyX or LaTeX-documents. +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +fcolorbox{black}{ \end_layout -\begin_layout Section -External Material -\begin_inset Index idx +\end_inset + +Gray +\begin_inset ERT status collapsed \begin_layout Plain Layout -External Document Parts ! External Material + +}{ \end_layout \end_inset +\begin_inset Phantom Phantom +status open + +\begin_layout Plain Layout +W \end_layout -\begin_layout Standard -The external material feature allows you to insert files in to your document - without converting them to a format that can be read by the document output - format. - LyX takes care of the necessary conversions. - This is similar to images that can be inserted in various image formats - in LyX documents. - When you have enabled Instant Preview in LyX's preferences under -\family sans -Look -\begin_inset space ~ \end_inset -and -\begin_inset space ~ -\end_inset -feel\SpecialChar \menuseparator -Graphics -\family default -, the external material types Dia and Xfig are directly shown in LyX. +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} \end_layout -\begin_layout Standard -External material can be inserted via the -\family sans -External Material -\family default - dialog that is accessible with the menu -\family sans -Insert\SpecialChar \menuseparator -File\SpecialChar \menuseparator -External -\begin_inset space ~ \end_inset -Material -\family default -. - Currently the following file types ( -\family sans -Templates -\family default -) are allowed: + Gray \end_layout -\begin_layout Description -ChessDiagram This template supports chess position diagrams made with the - program -\series bold +\end_inset + + +\begin_inset Text -\begin_inset CommandInset href -LatexCommand href -name "XBoard" -target "http://en.wikipedia.org/wiki/XBoard" +\begin_layout Plain Layout +\begin_inset ERT +status collapsed -\end_inset +\begin_layout Plain Layout -\series default -. +\backslash +fcolorbox{black}{ \end_layout -\begin_layout Description -Date This inserts the date in the form -\emph on -Day-Month-Year -\emph default -. - This is a date inserted as external material: -\begin_inset External - template Date - filename . - \end_inset +GreenYellow +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +}{ +\end_layout -\begin_inset space ~ \end_inset -\begin_inset Note Note +\begin_inset Phantom Phantom status open \begin_layout Plain Layout -Remove the protected space when bug 4398 is fixed! +W \end_layout \end_inset -\begin_inset Newline newline -\end_inset - -The date is not shown within LyX, only in the output. - There are two other methods of inserting a date: Via menu -\family sans -Insert\SpecialChar \menuseparator -Date -\family default - and with the LaTeX command -\series bold - -\backslash -today -\series default - as TeX-Code. - The different methods are compared in Table -\begin_inset space ~ -\end_inset +\begin_inset ERT +status collapsed +\begin_layout Plain Layout -\begin_inset CommandInset ref -LatexCommand ref -reference "tab:Comparison-of-the" +} +\end_layout \end_inset -. + GreenYellow \end_layout -\begin_layout Description -Dia This template supports diagrams created with the program -\series bold +\end_inset + + + + +\begin_inset Text -\begin_inset CommandInset href -LatexCommand href -name "Dia" -target "http://en.wikipedia.org/wiki/Dia_(software)" +\begin_layout Plain Layout +\begin_inset ERT +status collapsed -\end_inset +\begin_layout Plain Layout -\series default -. +\backslash +fcolorbox{black}{ \end_layout -\begin_layout Description -LilyPond This template is used for music notation typeset with the program -\begin_inset Newline linebreak \end_inset +JungleGreen +\begin_inset ERT +status collapsed -\series bold +\begin_layout Plain Layout -\begin_inset CommandInset href -LatexCommand href -name "LilyPond" -target "http://en.wikipedia.org/wiki/LilyPond" +}{ +\end_layout \end_inset -\series default -. -\end_layout +\begin_inset Phantom Phantom +status open -\begin_layout Description -PDFPages With this template you can insert PDF documents to your document. - To insert certain or all pages of a PDF, use the -\emph on -pages -\emph default - option in the -\family sans -Option -\family default - field in the -\family sans -LaTeX and LyX options -\family default - tab according to the template description in the dialog. - When no -\emph on -pages -\emph default - option is given, only the first page of the PDF will be inserted. +\begin_layout Plain Layout +W \end_layout -\begin_layout Description -RasterImage This can be used for bitmap images. - Nearly all popular image formats are supported. - The image can be treated in the -\family sans -External material -\family default - dialog like the images that are usually included via the -\family sans -Graphics -\family default - dialog as described in section -\begin_inset space ~ \end_inset -\begin_inset CommandInset ref -LatexCommand ref -reference "sec:Graphics-Dialog" +\begin_inset ERT +status collapsed -\end_inset +\begin_layout Plain Layout -. - The difference is that only raster images are allowed; that means that - PDF and EPS-images are not supported. +} \end_layout -\begin_layout Description -XFig This template supports images created with the program -\series bold - -\begin_inset CommandInset href -LatexCommand href -name "Xfig" -target "http://en.wikipedia.org/wiki/Xfig" - \end_inset - -\series default -. + JungleGreen \end_layout -\begin_layout Standard -\begin_inset Float table -placement h -wide false -sideways false -status open +\end_inset + + +\begin_inset Text \begin_layout Plain Layout -\begin_inset Caption +\begin_inset ERT +status collapsed \begin_layout Plain Layout -\begin_inset CommandInset label -LatexCommand label -name "tab:Comparison-of-the" -\end_inset -Comparison of the date input methods. +\backslash +fcolorbox{black}{ \end_layout \end_inset +Lavender +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +}{ \end_layout -\begin_layout Plain Layout -\align center -\begin_inset Tabular - - - - - - - - -\begin_inset Text +\end_inset + + +\begin_inset Phantom Phantom +status open \begin_layout Plain Layout -Document format +W \end_layout \end_inset - - -\begin_inset Text + + +\begin_inset ERT +status collapsed \begin_layout Plain Layout -\family sans -External Material\SpecialChar \menuseparator -Date +} \end_layout \end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\family sans -Insert\SpecialChar \menuseparator -Date + Lavender \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -command -\series bold +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + \backslash -today +fcolorbox{black}{ \end_layout \end_inset - - - - -\begin_inset Text + +LimeGreen +\begin_inset ERT +status collapsed \begin_layout Plain Layout -LyX + +}{ \end_layout \end_inset - - -\begin_inset Text + + +\begin_inset Phantom Phantom +status open \begin_layout Plain Layout -as inset box +W \end_layout \end_inset - - -\begin_inset Text + + +\begin_inset ERT +status collapsed \begin_layout Plain Layout -as date + +} \end_layout \end_inset - - -\begin_inset Text -\begin_layout Plain Layout -as TeX-Code inset box + LimeGreen \end_layout \end_inset - - - + \begin_inset Text \begin_layout Plain Layout -LaTeX +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +fcolorbox{black}{ \end_layout \end_inset - - -\begin_inset Text + +Mahogany +\begin_inset ERT +status collapsed \begin_layout Plain Layout -as date + +}{ \end_layout \end_inset - - -\begin_inset Text + + +\begin_inset Phantom Phantom +status open \begin_layout Plain Layout -as date +W \end_layout \end_inset - - -\begin_inset Text + + +\begin_inset ERT +status collapsed \begin_layout Plain Layout -as command + +} \end_layout \end_inset - - - - -\begin_inset Text -\begin_layout Plain Layout -DVI, PDF, PS + Mahogany \end_layout \end_inset - + + + \begin_inset Text \begin_layout Plain Layout -as date +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +fcolorbox{black}{ \end_layout \end_inset - - -\begin_inset Text + +Mahogany +\begin_inset ERT +status collapsed \begin_layout Plain Layout -as date + +}{ \end_layout \end_inset - - -\begin_inset Text + + +\begin_inset Phantom Phantom +status open \begin_layout Plain Layout -as date +W \end_layout \end_inset - - - -\end_inset +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +} \end_layout \end_inset - + Mahogany \end_layout -\begin_layout Standard -When you use the option -\family sans -Draft -\family default - in the -\family sans -File -\family default - tab of the -\family sans -External Material -\family default - dialog, only the path to the inserted file is shown in the output. -\begin_inset Newline newline \end_inset + + +\begin_inset Text -External material is displayed in LyX either as a box like this: -\begin_inset Graphics - filename clipart/ExternalMaterialQt4.png - scale 85 - scaleBeforeRotation +\begin_layout Plain Layout +\begin_inset ERT +status collapsed -\end_inset +\begin_layout Plain Layout - or as image, depending on the option -\family sans -Show in LyX -\family default - in the -\family sans -LaTeX and LyX options -\family default - tab of the dialog. -\end_layout -\begin_layout Standard -The -\family sans -\emph on -Customization -\family default -\emph default - manual explains how you can define your own templates. +\backslash +fcolorbox{black}{ \end_layout -\begin_layout Section -Child Documents -\begin_inset CommandInset label -LatexCommand label -name "sec:Child-Documents" - \end_inset - -\begin_inset Index idx +Maroon +\begin_inset ERT status collapsed \begin_layout Plain Layout -External Document Parts ! Child Documents + +}{ \end_layout \end_inset -\begin_inset Index idx -status collapsed +\begin_inset Phantom Phantom +status open \begin_layout Plain Layout -Files ! Include +W \end_layout \end_inset -\end_layout - -\begin_layout Standard -Child documents are used if you have a long document consisting of several - larger parts or sections. - For maintenance it is often useful and sometimes even required to split - the document into several files that can be revised separately. - The different documents are then the so called -\begin_inset Quotes eld -\end_inset +\begin_inset ERT +status collapsed -child documents -\begin_inset Quotes erd -\end_inset +\begin_layout Plain Layout -, and a master document connects them to print the full document or parts - of it. - A child document inherits elements of its master, for example the LaTeX - preamble, the bibliography, and labels for cross-references. +} \end_layout -\begin_layout Standard -To be able to work on child documents without the need to open their master, - specify in the child document the master in the menu -\family sans - Document\SpecialChar \menuseparator -Settings\SpecialChar \menuseparator -Document -\begin_inset space ~ \end_inset -Class -\family default -. - This master document will then be used in the background by LyX when you - edit the child document. + Maroon \end_layout -\begin_layout Standard -Included documents are displayed in LyX as a box like this: -\begin_inset Graphics - filename clipart/ChildDocumentQt4.png - scale 85 - scaleBeforeRotation - \end_inset + + +\begin_inset Text - To include child documents in a master document use the menu -\family sans -Insert\SpecialChar \menuseparator -File\SpecialChar \menuseparator -Child -\begin_inset space ~ -\end_inset +\begin_layout Plain Layout +\begin_inset ERT +status collapsed -Documents -\family default -. - A dialog pops up where you can choose between four include methods: +\begin_layout Plain Layout + + +\backslash +fcolorbox{black}{ \end_layout -\begin_layout Description -Include You can include LyX- and LaTeX-documents. - When you press the -\family sans -Load -\family default - button in the -\family sans -Child Document -\family default - dialog, the included documents will be opened in LyX in a new file tab - so that you can modify them. -\begin_inset Newline newline \end_inset +Melon +\begin_inset ERT +status collapsed -\end_layout +\begin_layout Plain Layout -\begin_layout Standard -Here is a child document inserted using -\family sans -Include -\family default -: -\begin_inset CommandInset include -LatexCommand include -filename "DummyDocument1.lyx" +}{ +\end_layout \end_inset +\begin_inset Phantom Phantom +status open + +\begin_layout Plain Layout +W \end_layout -\begin_layout Standard -The section numbering includes the sections of the included files in the - order they are inserted in the master document. - The included example document has for example a subsection that is numbered - as a subsection of this section. - Labels of included documents can be referenced: Subsection -\begin_inset space ~ \end_inset -\begin_inset CommandInset ref -LatexCommand ref -reference "sub:External-Subsection-1" +\begin_inset ERT +status collapsed -\end_inset +\begin_layout Plain Layout -. +} \end_layout -\begin_layout Standard -The preamble of the child document is ignored; only the preamble of the - master document is used. - Branches in child documents will be ignored by the master document when - the master document does not have a branch with the same name. - Included documents are inserted starting on a new page and ending with - a page break. +\end_inset + + Melon \end_layout -\begin_layout Standard -\begin_inset Note Greyedout -status open +\end_inset + + +\begin_inset Text \begin_layout Plain Layout +\begin_inset ERT +status collapsed -\series bold -Note: -\series default - If you have included a LyX- or LaTeX-file, you are warned when you export/view - the document in case the child document uses another document class than - the master document as this will lead to unexpected outputs. +\begin_layout Plain Layout + + +\backslash +fcolorbox{black}{ \end_layout \end_inset +MidnightBlue +\begin_inset ERT +status collapsed -\end_layout - -\begin_layout Description -Input This method is very similar to the Include method. - The differences are: -\end_layout +\begin_layout Plain Layout -\begin_deeper -\begin_layout Itemize -Input files don't start with a new page and don't end with a page break. +}{ \end_layout -\begin_layout Itemize -Input files can be previewed in LyX when -\family sans -Instant -\begin_inset space ~ \end_inset -Preview -\family default - is enabled in LyX's preferences under -\family sans -Look -\begin_inset space ~ -\end_inset -and -\begin_inset space ~ -\end_inset +\begin_inset Phantom Phantom +status open -feel\SpecialChar \menuseparator -Graphics -\family default -. +\begin_layout Plain Layout +W \end_layout -\begin_layout Itemize -You cannot exclude Input files via the menu -\family sans -Document\SpecialChar \menuseparator -Settings\SpecialChar \menuseparator -Child Documents -\family default -. -\end_layout +\end_inset -\end_deeper -\begin_layout Standard -Here is a child document inserted using -\family sans -Input -\family default -: -\begin_inset CommandInset include -LatexCommand input -filename "DummyDocument2.lyx" + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout \end_inset - + MidnightBlue \end_layout -\begin_layout Description -Verbatim With this method any text file can be included. - The file is shown in the output with its source code; no command used in - the text is invoked. - You can use the option -\family sans -Mark spaces in output -\family default - that displays the character -\begin_inset Quotes eld \end_inset + + + + +\begin_inset Text - +\begin_layout Plain Layout \begin_inset ERT status collapsed @@ -34287,2056 +41988,1793 @@ status collapsed \backslash -textvisiblespace +fcolorbox{black}{ \end_layout \end_inset +Mulberry +\begin_inset ERT +status collapsed -\begin_inset Quotes erd -\end_inset - - for every space character in the source code. - The difference from the method via the menu -\family sans -Insert\SpecialChar \menuseparator -File\SpecialChar \menuseparator -Plain -\begin_inset space ~ -\end_inset +\begin_layout Plain Layout -Text -\family default - is that the document content is not shown in LyX. +}{ \end_layout -\begin_layout Standard -Here is a child document inserted as Verbatim: -\begin_inset CommandInset include -LatexCommand verbatiminput -filename "DummyTextDocument.txt" - \end_inset -\begin_inset VSpace bigskip -\end_inset +\begin_inset Phantom Phantom +status open - Here is a child document inserted as Verbatim using the -\family sans -Mark spaces in output -\family default - option: -\begin_inset CommandInset include -LatexCommand verbatiminput* -filename "DummyTextDocument.txt" +\begin_layout Plain Layout +W +\end_layout \end_inset +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} \end_layout -\begin_layout Standard -\begin_inset VSpace bigskip \end_inset - + Mulberry \end_layout -\begin_layout Standard -\begin_inset Note Greyedout -status open +\end_inset + + +\begin_inset Text \begin_layout Plain Layout +\begin_inset ERT +status collapsed -\series bold -Note: -\series default - As you can see in the examples above, the text of the documents included - as -\family sans -verbatim -\family default - is not broken at the end of the document lines. -\end_layout - -\end_inset +\begin_layout Plain Layout +\backslash +fcolorbox{black}{ \end_layout -\begin_layout Description -Listings This type is described in chapter -\begin_inset space ~ \end_inset +NavyBlue +\begin_inset ERT +status collapsed -\begin_inset CommandInset ref -LatexCommand ref -reference "cha:Program-Code-Listings" +\begin_layout Plain Layout + +}{ +\end_layout \end_inset -. -\end_layout -\begin_layout Standard -\begin_inset Note Greyedout +\begin_inset Phantom Phantom status open \begin_layout Plain Layout - -\series bold -Note: -\series default - Including the same document twice in a document using different methods - could cause LaTeX-problems. +W \end_layout \end_inset +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} \end_layout -\begin_layout Standard -If you want to view/export only selected children of your master document, - either because you want to save compiling time or because you want to distribut -e single chapters of the book you are just writing, you can exclude children - from the output. - This is done via the menu -\family sans -Document\SpecialChar \menuseparator -Settings\SpecialChar \menuseparator -Child Documents -\family default -. - You can exclude\SpecialChar \slash{} -include children by double-clicking on the -\family sans -include to output -\family default - column of the respective child document in the list (note that this only - works for documents embedded via -\begin_inset Quotes eld \end_inset -Include -\begin_inset Quotes erd -\end_inset + NavyBlue +\end_layout -, not with -\begin_inset Quotes eld \end_inset + + +\begin_inset Text -Input -\begin_inset Quotes erd -\end_inset +\begin_layout Plain Layout +\begin_inset ERT +status collapsed -). - If the option -\family sans -Maintain counters and references -\family default - is enabled, LyX will assure that all page numbers, references etc. -\begin_inset space ~ -\end_inset +\begin_layout Plain Layout -are correct as if the whole document was processed. - This is useful if you want the selected sub-documents to look exactly as - in the context of the whole document. - However, LyX needs to process the whole document in the background for - this feature. - So if you want to save compile time and if counters and references do not - need to be correct, disable this checkbox. + +\backslash +fcolorbox{black}{ \end_layout -\begin_layout Standard -Alternatively, you can put each included file into a branch. -\begin_inset Foot +\end_inset + +OliveGreen +\begin_inset ERT status collapsed \begin_layout Plain Layout -Branches are described in section -\emph on -Branches -\emph default - of the LyX -\emph on -Userguide -\emph default -. + +}{ \end_layout \end_inset - By enabling\SpecialChar \slash{} -disabling branches you can decide which included files will - appear in the output. - This has the advantage that it also works with Input'ed sub-documents. - However, counters and references will not be maintained with this approach. -\end_layout -\begin_layout Chapter -Program Code Listings -\begin_inset CommandInset label -LatexCommand label -name "cha:Program-Code-Listings" +\begin_inset Phantom Phantom +status open + +\begin_layout Plain Layout +W +\end_layout \end_inset -\begin_inset Index idx +\begin_inset ERT status collapsed \begin_layout Plain Layout -Listings + +} \end_layout \end_inset + OliveGreen +\end_layout -\begin_inset Index idx +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT status collapsed \begin_layout Plain Layout -Program Code + + +\backslash +fcolorbox{black}{ \end_layout \end_inset - -\begin_inset Index idx +Orange +\begin_inset ERT status collapsed \begin_layout Plain Layout -Floats ! Listings + +}{ \end_layout \end_inset +\begin_inset Phantom Phantom +status open + +\begin_layout Plain Layout +W \end_layout -\begin_layout Standard -To include and typeset program code you can use the -\family sans -Listings -\family default - inset that can be inserted via the menu -\family sans -Insert\SpecialChar \menuseparator -Program Listing -\family default -. - The LaTeX-package -\series bold -listings -\series default +\end_inset -\begin_inset Index idx + +\begin_inset ERT status collapsed \begin_layout Plain Layout -LaTeX-packages ! listings + +} \end_layout \end_inset - provides a powerful and flexible way to insert program source code into - your document. -\end_layout - -\begin_layout Standard -Right-clicking on a listings inset opens the context menu containing where - you can set the listings format. + Orange \end_layout -\begin_layout Standard -By default, a listing starts a new paragraph in the output. - The placement option -\family sans -Inline -\begin_inset space ~ \end_inset + + + + +\begin_inset Text -listing -\family default - prints the listing inline like this: -\begin_inset listings -lstparams "language={C++}" -inline true -status open +\begin_layout Plain Layout +\begin_inset ERT +status collapsed \begin_layout Plain Layout -int a=5; + +\backslash +fcolorbox{black}{ \end_layout \end_inset +OrangeRed +\begin_inset ERT +status collapsed -\begin_inset Newline newline -\end_inset +\begin_layout Plain Layout + +}{ +\end_layout -The option -\family sans -Float -\family default - creates a listings float where you can specify the placement options -\begin_inset Quotes eld \end_inset -\family sans -h -\family default +\begin_inset Phantom Phantom +status open -\begin_inset Quotes erd -\end_inset +\begin_layout Plain Layout +W +\end_layout -, -\begin_inset Quotes eld \end_inset -\family sans -t -\family default +\begin_inset ERT +status collapsed -\begin_inset Quotes erd -\end_inset +\begin_layout Plain Layout -, -\begin_inset Quotes eld -\end_inset +} +\end_layout +\end_inset -\family sans -b -\family default + OrangeRed +\end_layout -\begin_inset Quotes erd \end_inset + + +\begin_inset Text -, and -\begin_inset Quotes eld -\end_inset +\begin_layout Plain Layout +\begin_inset ERT +status collapsed +\begin_layout Plain Layout -\family sans -p -\family default -\begin_inset Quotes erd -\end_inset +\backslash +fcolorbox{black}{ +\end_layout - corresponding to the float placement options described in section -\begin_inset space ~ \end_inset +Orchid +\begin_inset ERT +status collapsed -\begin_inset CommandInset ref -LatexCommand ref -reference "sec:Float-Placement" +\begin_layout Plain Layout -\end_inset +}{ +\end_layout -. - The placement options can be mixed and are inserted without any separation, - e. -\begin_inset space \thinspace{} \end_inset -g. -\begin_inset space \space{} -\end_inset +\begin_inset Phantom Phantom +status open + +\begin_layout Plain Layout +W +\end_layout -\begin_inset Quotes eld \end_inset -\family sans -htbp -\family default +\begin_inset ERT +status collapsed -\begin_inset Quotes erd -\end_inset +\begin_layout Plain Layout -. - The option -\begin_inset Quotes eld -\end_inset +} +\end_layout -h -\begin_inset Quotes erd \end_inset - has sometimes no effect, but you don't need to use the -\family sans -Float -\family default - option in this case as also non-float listings can have captions and be - referenced. + Orchid \end_layout -\begin_layout Standard -You can add captions to listings with the menu -\family sans -Insert\SpecialChar \menuseparator -Caption -\family default -. - Listings can be referenced like floats: Listing -\begin_inset space ~ \end_inset + + +\begin_inset Text +\begin_layout Plain Layout +\begin_inset ERT +status collapsed -\begin_inset CommandInset ref -LatexCommand ref -reference "lst:Example-Listing" +\begin_layout Plain Layout + + +\backslash +fcolorbox{black}{ +\end_layout \end_inset +Peach +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +}{ \end_layout -\begin_layout Standard -\begin_inset listings -lstparams "language=Python" -inline false +\end_inset + + +\begin_inset Phantom Phantom status open \begin_layout Plain Layout +W +\end_layout -\begin_inset Caption +\end_inset + + +\begin_inset ERT +status collapsed \begin_layout Plain Layout -\begin_inset CommandInset label -LatexCommand label -name "lst:Example-Listing" + +} +\end_layout \end_inset -Example Listing float + Peach \end_layout \end_inset + + +\begin_inset Text -# Example listing float -\end_layout +\begin_layout Plain Layout +\begin_inset ERT +status collapsed \begin_layout Plain Layout -def func(param): + +\backslash +fcolorbox{black}{ \end_layout +\end_inset + +Periwinkle +\begin_inset ERT +status collapsed + \begin_layout Plain Layout - 'this is a python function' +}{ \end_layout -\begin_layout Plain Layout +\end_inset - pass + +\begin_inset Phantom Phantom +status open + +\begin_layout Plain Layout +W \end_layout \end_inset +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} \end_layout -\begin_layout Standard -When you have set a programming language in the listings dialog, the keywords - of this language will be recognized and specially typeset in the output. - In the example listings the Python keyword -\begin_inset Quotes eld \end_inset -def -\begin_inset Quotes erd + Periwinkle +\end_layout + \end_inset + + + + +\begin_inset Text - is recognized and printed bold in the output. +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +fcolorbox{black}{ \end_layout -\begin_layout Standard -\begin_inset Note Greyedout -status open +\end_inset + +PineGreen +\begin_inset ERT +status collapsed \begin_layout Plain Layout -\series bold -Note: -\series default - If you don't get bold keywords when using typewriter fonts, your -\family typewriter -typewriter -\family default - font probably doesn't provide a bold shape. - In this case select a different one in the menu -\family sans -Document\SpecialChar \menuseparator -Settings\SpecialChar \menuseparator -Fonts -\family default -. - (The fonts -\emph on -LuxiMono, BeraMono -\emph default - and -\emph on -Courier -\emph default - provide bold shapes.) +}{ +\end_layout + +\end_inset + + +\begin_inset Phantom Phantom +status open + +\begin_layout Plain Layout +W \end_layout \end_inset +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} \end_layout -\begin_layout Standard -In section -\family sans -Line -\begin_inset space ~ \end_inset -numbering -\family default - of the listings dialog you can specify the line numbering style. - You can insert a number to specify which lines are numbered in the field - -\family sans -Step -\family default -. - When you insert e. -\begin_inset space \thinspace{} -\end_inset + PineGreen +\end_layout -g. -\begin_inset space \space{} \end_inset + + +\begin_inset Text +\begin_layout Plain Layout +\begin_inset ERT +status collapsed -\begin_inset Quotes eld -\end_inset +\begin_layout Plain Layout -3 -\begin_inset Quotes erd -\end_inset -, only every 3rd line will be numbered. +\backslash +fcolorbox{black}{ \end_layout -\begin_layout Standard -You can furthermore specify a range of lines; only these will then appear - in the output. - The option -\family sans -Extended character table -\family default - should be used when you use national characters like the German umlauts - in the listing. -\begin_inset Newline newline \end_inset -Here is an example listing with left line numbering, step -\begin_inset Quotes eld -\end_inset +Plum +\begin_inset ERT +status collapsed -3 -\begin_inset Quotes erd -\end_inset +\begin_layout Plain Layout -, language -\begin_inset Quotes eld -\end_inset +}{ +\end_layout -Python -\begin_inset Quotes erd \end_inset -, options -\begin_inset Quotes eld -\end_inset -Extended character table -\begin_inset Quotes erd -\end_inset +\begin_inset Phantom Phantom +status open - and -\begin_inset Quotes eld -\end_inset +\begin_layout Plain Layout +W +\end_layout -Space -\begin_inset space ~ \end_inset -as -\begin_inset space ~ -\end_inset -symbol -\begin_inset Quotes erd -\end_inset +\begin_inset ERT +status collapsed -, range lines 3 -\begin_inset space \thinspace{} -\end_inset +\begin_layout Plain Layout + +} +\end_layout -- -\begin_inset space \thinspace{} \end_inset -8: + Plum \end_layout -\begin_layout Standard -\begin_inset listings -lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3" -inline false -status open +\end_inset + + +\begin_inset Text \begin_layout Plain Layout - -def func(param): -\end_layout +\begin_inset ERT +status collapsed \begin_layout Plain Layout - 'this is a python function' + +\backslash +fcolorbox{black}{ \end_layout -\begin_layout Plain Layout +\end_inset - pass -\end_layout +ProcessBlue +\begin_inset ERT +status collapsed \begin_layout Plain Layout -def func(param): +}{ \end_layout -\begin_layout Plain Layout +\end_inset -'This is a German word: Tschüß' -\end_layout -\begin_layout Plain Layout +\begin_inset Phantom Phantom +status open -pass +\begin_layout Plain Layout +W \end_layout +\end_inset + + +\begin_inset ERT +status collapsed + \begin_layout Plain Layout -def func(param): +} \end_layout -\begin_layout Plain Layout +\end_inset -'this is a python function' + ProcessBlue \end_layout +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + \begin_layout Plain Layout -pass + +\backslash +fcolorbox{black}{ \end_layout \end_inset +Purple +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +}{ \end_layout -\begin_layout Standard -When you have tabulators in your listing, you can specify the number of - characters that are spanned by a tabulator in the field -\family sans -Tabulator -\begin_inset space ~ \end_inset -size -\family default -. -\end_layout -\begin_layout Standard -\begin_inset Note Greyedout +\begin_inset Phantom Phantom status open \begin_layout Plain Layout - -\series bold -Note: -\series default - Due to a bug in the -\series bold -listings -\series default - package the line numbering is shifted by a line by every previous listing. - That's the reason why the lines 2 and 5 are numbered in the above listing - and not the lines 3 and 6. +W \end_layout \end_inset +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} \end_layout -\begin_layout Standard -\begin_inset VSpace bigskip \end_inset - + Purple \end_layout -\begin_layout Standard -It is also possible to print lines from a file as listing. - To do this, use the menu -\family sans -Insert\SpecialChar \menuseparator -File\SpecialChar \menuseparator -Child Document -\family default - and choose the type -\family sans -Listings -\family default -. -\begin_inset Foot +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT status collapsed \begin_layout Plain Layout -The other child document types are described in section -\begin_inset space ~ -\end_inset -\begin_inset CommandInset ref -LatexCommand ref -reference "sec:Child-Documents" +\backslash +fcolorbox{black}{ +\end_layout \end_inset -. -\end_layout +RawSienna +\begin_inset ERT +status collapsed -\end_inset +\begin_layout Plain Layout - In the child document dialog you can specify the listing parameters in - a text box. - To show a list of all available parameters, type in a question mark -\begin_inset Quotes eld -\end_inset +}{ +\end_layout -? -\begin_inset Quotes erd \end_inset - in the text box. -\end_layout -\begin_layout Standard -To reference child document listings, write a label text into the corresponding - field of the child document dialog. - The label can then be referenced using the menu -\family sans -Insert\SpecialChar \menuseparator -Cross-Reference -\family default -. +\begin_inset Phantom Phantom +status open + +\begin_layout Plain Layout +W \end_layout -\begin_layout Standard -Listing -\begin_inset space ~ \end_inset -\begin_inset CommandInset ref -LatexCommand ref -reference "lst:file-listing" +\begin_inset ERT +status collapsed -\end_inset +\begin_layout Plain Layout - is an example for a listing of a file; there the lines 10 -\begin_inset space \thinspace{} -\end_inset +} +\end_layout -- -\begin_inset space \thinspace{} \end_inset -15 of this LyX file are listed. + RawSienna \end_layout -\begin_layout Standard -\begin_inset CommandInset include -LatexCommand lstinputlisting -filename "EmbeddedObjects.lyx" -lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15" - \end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +\backslash +fcolorbox{black}{ \end_layout -\begin_layout Standard -\begin_inset VSpace bigskip \end_inset +RedOrange +\begin_inset ERT +status collapsed -\end_layout +\begin_layout Plain Layout -\begin_layout Standard -Inserting a formula into a listing can be done the following way: +}{ \end_layout -\begin_layout Enumerate -Open the listings dialog and add -\begin_inset Newline newline \end_inset -\family sans -mathescape=true -\family default +\begin_inset Phantom Phantom +status open + +\begin_layout Plain Layout +W +\end_layout -\begin_inset Newline newline \end_inset -to the field of the -\family sans -Advanced -\family default - tab. -\end_layout -\begin_layout Enumerate -Create a formula outside the listing +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} \end_layout -\begin_layout Enumerate -Copy the content of the formula (not the formula inset) to the clipboard - (shortcut -\begin_inset Info -type "shortcut" -arg "copy" \end_inset -) + RedOrange \end_layout -\begin_layout Enumerate -In the listing write -\begin_inset Quotes eld \end_inset + + +\begin_inset Text +\begin_layout Plain Layout +\begin_inset ERT +status collapsed -\family sans -$$ -\family default +\begin_layout Plain Layout -\begin_inset Quotes erd -\end_inset - and copy from the clipboard between the dollar-signs (shortcut -\begin_inset Info -type "shortcut" -arg "paste" +\backslash +fcolorbox{black}{ +\end_layout + \end_inset -) +RedViolet +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +}{ \end_layout -\begin_layout Standard -\begin_inset listings -lstparams "language=Python,mathescape=true" -inline false -status open +\end_inset -\begin_layout Plain Layout -\begin_inset Caption +\begin_inset Phantom Phantom +status open \begin_layout Plain Layout -Example Listing float containing a formula +W \end_layout \end_inset -# Example listing float -\end_layout + +\begin_inset ERT +status collapsed \begin_layout Plain Layout -def func(param): +} \end_layout -\begin_layout Plain Layout +\end_inset - # $ -\backslash -prod_{n=1}^{ -\backslash -infty} -\backslash -, -\backslash -frac{1}{x^{2}}$ + RedViolet \end_layout +\end_inset + + +\begin_inset Text + \begin_layout Plain Layout +\begin_inset ERT +status collapsed - pass +\begin_layout Plain Layout + + +\backslash +fcolorbox{black}{ \end_layout \end_inset +Rhodamine +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +}{ \end_layout -\begin_layout Standard -\begin_inset VSpace bigskip \end_inset -\end_layout +\begin_inset Phantom Phantom +status open -\begin_layout Standard -Global listings settings can be set in the -\family sans -Document\SpecialChar \menuseparator -Settings\SpecialChar \menuseparator -Listings -\family default - dialog. - To get there a list of available options, type in a question mark -\begin_inset Quotes eld -\end_inset +\begin_layout Plain Layout +W +\end_layout -? -\begin_inset Quotes erd \end_inset -. -\end_layout -\begin_layout Standard -For more information about the -\series bold -listings -\series default - package, we refer to its documentation -\begin_inset CommandInset citation -LatexCommand cite -key "listings" +\begin_inset ERT +status collapsed -\end_inset +\begin_layout Plain Layout -. +} \end_layout -\begin_layout Standard -\begin_inset Newpage newpage \end_inset - + Rhodamine \end_layout -\begin_layout Chapter -\start_of_appendix -Units available in LyX -\begin_inset Index idx +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT status collapsed \begin_layout Plain Layout -Units + + +\backslash +fcolorbox{black}{ \end_layout \end_inset +RoyalBlue +\begin_inset ERT +status collapsed -\begin_inset CommandInset label -LatexCommand label -name "cha:Units-available-in" +\begin_layout Plain Layout + +}{ +\end_layout \end_inset +\begin_inset Phantom Phantom +status open + +\begin_layout Plain Layout +W \end_layout -\begin_layout Standard -To understand the units described in this documentation, Table -\begin_inset space ~ \end_inset -\begin_inset CommandInset ref -LatexCommand ref -reference "tab:Units" +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout \end_inset - explains all units available in LyX. + RoyalBlue \end_layout -\begin_layout Standard -\begin_inset Float table -placement h -wide false -sideways false -status open +\end_inset + + +\begin_inset Text \begin_layout Plain Layout -\begin_inset Caption +\begin_inset ERT +status collapsed \begin_layout Plain Layout -\begin_inset CommandInset label -LatexCommand label -name "tab:Units" -\end_inset -Units +\backslash +fcolorbox{black}{ \end_layout \end_inset +RoyalPurple +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +}{ \end_layout -\begin_layout Plain Layout -\begin_inset VSpace medskip \end_inset +\begin_inset Phantom Phantom +status open + +\begin_layout Plain Layout +W \end_layout +\end_inset + + +\begin_inset ERT +status collapsed + \begin_layout Plain Layout -\align center -\begin_inset Tabular - - - - - - -\begin_inset Text -\begin_layout Plain Layout -unit +} +\end_layout + +\end_inset + + RoyalPurple \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -name/description +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +fcolorbox{black}{ \end_layout \end_inset - - - - -\begin_inset Text + +RubineRed +\begin_inset ERT +status collapsed \begin_layout Plain Layout -mm + +}{ \end_layout \end_inset - - -\begin_inset Text + + +\begin_inset Phantom Phantom +status open \begin_layout Plain Layout -millimeter +W \end_layout \end_inset - - - - -\begin_inset Text + + +\begin_inset ERT +status collapsed \begin_layout Plain Layout -cm + +} \end_layout \end_inset - - -\begin_inset Text -\begin_layout Plain Layout -centimeter + RubineRed \end_layout \end_inset - - - + \begin_inset Text \begin_layout Plain Layout -in +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +fcolorbox{black}{ \end_layout \end_inset - - -\begin_inset Text + +Salmon +\begin_inset ERT +status collapsed \begin_layout Plain Layout -inch + +}{ \end_layout \end_inset - - - - -\begin_inset Text + + +\begin_inset Phantom Phantom +status open \begin_layout Plain Layout -pt +W \end_layout \end_inset - - -\begin_inset Text + + +\begin_inset ERT +status collapsed \begin_layout Plain Layout -point (72.27 -\begin_inset space \thinspace{} -\end_inset -pt = 1 -\begin_inset space \thinspace{} +} +\end_layout + \end_inset -in) + Salmon \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -pc +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +fcolorbox{black}{ \end_layout \end_inset - - -\begin_inset Text -\begin_layout Plain Layout -pica (1 -\begin_inset space \thinspace{} -\end_inset +SeaGreen +\begin_inset ERT +status collapsed -pc = 12 -\begin_inset space \thinspace{} -\end_inset +\begin_layout Plain Layout -pt) +}{ \end_layout \end_inset - - - - -\begin_inset Text + + +\begin_inset Phantom Phantom +status open \begin_layout Plain Layout -sp +W \end_layout \end_inset - - -\begin_inset Text + + +\begin_inset ERT +status collapsed \begin_layout Plain Layout -scaled point (65536 -\begin_inset space \thinspace{} -\end_inset -sp = 1 -\begin_inset space \thinspace{} +} +\end_layout + \end_inset -pt) + SeaGreen \end_layout \end_inset - - - + \begin_inset Text \begin_layout Plain Layout -bp +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +fcolorbox{black}{ \end_layout \end_inset - - -\begin_inset Text -\begin_layout Plain Layout -big point (72 -\begin_inset space \thinspace{} -\end_inset +Sepia +\begin_inset ERT +status collapsed -bp = 1 -\begin_inset space \thinspace{} -\end_inset +\begin_layout Plain Layout -in) +}{ \end_layout \end_inset - - - - -\begin_inset Text + + +\begin_inset Phantom Phantom +status open \begin_layout Plain Layout -dd +W \end_layout \end_inset - - -\begin_inset Text + + +\begin_inset ERT +status collapsed \begin_layout Plain Layout -didot (1 -\begin_inset space \thinspace{} -\end_inset -dd -\begin_inset Formula $\approx$ -\end_inset +} +\end_layout - 0.376 -\begin_inset space \thinspace{} \end_inset -mm) + Sepia \end_layout \end_inset - - - + \begin_inset Text \begin_layout Plain Layout -cc +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +fcolorbox{black}{ \end_layout \end_inset - - -\begin_inset Text -\begin_layout Plain Layout -cicero (1 -\begin_inset space \thinspace{} -\end_inset +SkyBlue +\begin_inset ERT +status collapsed -cc = 12 -\begin_inset space \thinspace{} -\end_inset +\begin_layout Plain Layout -dd) +}{ \end_layout \end_inset - - - - -\begin_inset Text + + +\begin_inset Phantom Phantom +status open \begin_layout Plain Layout -Scale% +W \end_layout \end_inset - - -\begin_inset Text + + +\begin_inset ERT +status collapsed \begin_layout Plain Layout -% of original image width + +} \end_layout \end_inset - - - - -\begin_inset Text -\begin_layout Plain Layout -text% + SkyBlue \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -% of text width +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +fcolorbox{black}{ \end_layout \end_inset - - - - -\begin_inset Text + +SpringGreen +\begin_inset ERT +status collapsed \begin_layout Plain Layout -col% + +}{ \end_layout \end_inset - - -\begin_inset Text + + +\begin_inset Phantom Phantom +status open \begin_layout Plain Layout -% of column width +W \end_layout \end_inset - - - - -\begin_inset Text + + +\begin_inset ERT +status collapsed \begin_layout Plain Layout -page% + +} \end_layout \end_inset - - -\begin_inset Text -\begin_layout Plain Layout -% of paper width + SpringGreen \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -line% -\end_layout - -\end_inset - - -\begin_inset Text +\begin_inset ERT +status collapsed \begin_layout Plain Layout -% of line width + + +\backslash +fcolorbox{black}{ \end_layout \end_inset - - - - -\begin_inset Text + +Tan +\begin_inset ERT +status collapsed \begin_layout Plain Layout -theight% + +}{ \end_layout \end_inset - - -\begin_inset Text + + +\begin_inset Phantom Phantom +status open \begin_layout Plain Layout -% of text height +W \end_layout \end_inset - - - - -\begin_inset Text + + +\begin_inset ERT +status collapsed \begin_layout Plain Layout -pheight% + +} \end_layout \end_inset - - -\begin_inset Text -\begin_layout Plain Layout -% of paper height + Tan \end_layout \end_inset - - - + \begin_inset Text \begin_layout Plain Layout -ex +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +fcolorbox{black}{ \end_layout \end_inset - - -\begin_inset Text + +TealBlue +\begin_inset ERT +status collapsed \begin_layout Plain Layout -height of letter -\emph on -x -\emph default - in current font + +}{ \end_layout \end_inset - - - - -\begin_inset Text + + +\begin_inset Phantom Phantom +status open \begin_layout Plain Layout -em +W \end_layout \end_inset - - -\begin_inset Text + + +\begin_inset ERT +status collapsed \begin_layout Plain Layout -width of letter -\emph on -M -\emph default - in current font + +} \end_layout \end_inset - - - - -\begin_inset Text -\begin_layout Plain Layout -mu + TealBlue \end_layout \end_inset - + \begin_inset Text \begin_layout Plain Layout -math unit (1 -\begin_inset space \thinspace{} -\end_inset +\begin_inset ERT +status collapsed -mu = 1/18 -\begin_inset space \thinspace{} -\end_inset +\begin_layout Plain Layout -em) + +\backslash +fcolorbox{black}{ \end_layout \end_inset - - - -\end_inset +Thistle +\begin_inset ERT +status collapsed +\begin_layout Plain Layout +}{ \end_layout \end_inset -\end_layout +\begin_inset Phantom Phantom +status open -\begin_layout Chapter -Output File Formats with Graphics -\begin_inset CommandInset label -LatexCommand label -name "cha:Output-File-Formats" +\begin_layout Plain Layout +W +\end_layout \end_inset -\end_layout - -\begin_layout Section -DVI -\begin_inset Index idx +\begin_inset ERT status collapsed \begin_layout Plain Layout -File Formats ! DVI + +} \end_layout \end_inset + Thistle +\end_layout -\begin_inset Index idx -status collapsed +\end_inset + + +\begin_inset Text \begin_layout Plain Layout -DVI|see \begin_inset ERT status collapsed \begin_layout Plain Layout -{ + +\backslash +fcolorbox{black}{ \end_layout \end_inset -File Formats +Turquoise \begin_inset ERT status collapsed \begin_layout Plain Layout -} +}{ \end_layout \end_inset -\end_layout - -\end_inset - +\begin_inset Phantom Phantom +status open +\begin_layout Plain Layout +W \end_layout -\begin_layout Standard -This file type has the extension -\begin_inset Quotes eld \end_inset -\family typewriter -.dvi -\family default +\begin_inset ERT +status collapsed -\begin_inset Quotes erd -\end_inset +\begin_layout Plain Layout -. - It is called -\begin_inset Quotes eld -\end_inset +} +\end_layout -device-independent -\begin_inset Quotes erd \end_inset - (DVI), because it is completely portable; you can move them from one machine - to another without needing to do any sort of conversion. - At the time when this file-format was developed, this was no matter of - course. - DVIs are used for quick previews and as pre-stage for other output formats, - like PostScript. + Turquoise \end_layout -\begin_layout Standard -\begin_inset Note Greyedout -status open +\end_inset + + + + +\begin_inset Text \begin_layout Plain Layout +\begin_inset ERT +status collapsed -\series bold -Note: -\series default - DVI-files do not contain images; they will only be a linked. -\end_layout - -\end_inset - - So don't forget this, if you move your -\family typewriter -.dvi -\family default - file to another computer. - This property can also slow down your computer when you view the DVI, because - the DVI-viewer has to convert the image in the background to make it visible - when you scroll in the DVI. - So it is recommended that you use PDF for files with many images. -\end_layout +\begin_layout Plain Layout -\begin_layout Standard -You can export your document to DVI by using the menu -\family sans -File\SpecialChar \menuseparator -Export\SpecialChar \menuseparator -DVI -\family default -. - You can view your document as DVI via the -\family sans -View -\family default - menu or by using the toolbar button -\begin_inset Graphics - filename ../images/buffer-view_dvi.png - scale 85 - scaleBeforeRotation + +\backslash +fcolorbox{black}{ +\end_layout \end_inset -. +Violet +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +}{ \end_layout -\begin_layout Section -PostScript -\begin_inset CommandInset label -LatexCommand label -name "sec:PostScript" +\end_inset + + +\begin_inset Phantom Phantom +status open + +\begin_layout Plain Layout +W +\end_layout \end_inset -\begin_inset Index idx +\begin_inset ERT status collapsed \begin_layout Plain Layout -File Formats ! PostScript + +} \end_layout \end_inset + Violet +\end_layout -\begin_inset Index idx -status collapsed +\end_inset + + +\begin_inset Text \begin_layout Plain Layout -PostScript|see \begin_inset ERT status collapsed \begin_layout Plain Layout -{ + +\backslash +fcolorbox{black}{ \end_layout \end_inset -File Formats +VioletRed \begin_inset ERT status collapsed \begin_layout Plain Layout -} +}{ \end_layout \end_inset +\begin_inset Phantom Phantom +status open + +\begin_layout Plain Layout +W \end_layout \end_inset -\end_layout - -\begin_layout Standard -This file type has the extension -\begin_inset Quotes eld -\end_inset +\begin_inset ERT +status collapsed +\begin_layout Plain Layout -\family typewriter -.ps -\family default +} +\end_layout -\begin_inset Quotes erd \end_inset -. - PostScript was developed by the company -\family typewriter -Adobe -\family default - as a printer language. - The file therefore contains commands that the printer uses to print the - file. - PostScript can be seen as a -\begin_inset Quotes eld -\end_inset + VioletRed +\end_layout -programming language -\begin_inset Quotes erd \end_inset + + +\begin_inset Text -; you can calculate with it and draw diagrams and images -\begin_inset Foot +\begin_layout Plain Layout +\begin_inset ERT status collapsed \begin_layout Plain Layout -If you are interested to learn more about this, have a look at the LaTeX-package - -\series bold -PSTricks -\series default - -\begin_inset CommandInset citation -LatexCommand cite -key "pstricks" -\end_inset -. +\backslash +fcolorbox{black}{ \end_layout \end_inset -. - Due to this ability, the files are often bigger than PDFs. -\end_layout +WildStrawberry +\begin_inset ERT +status collapsed -\begin_layout Standard -PostScript can only contain images in the format -\begin_inset Quotes eld -\end_inset +\begin_layout Plain Layout -Encapsulated PostScript -\begin_inset Quotes erd -\end_inset +}{ +\end_layout - (EPS, file extension -\begin_inset Quotes eld \end_inset -\family typewriter -.eps -\family default +\begin_inset Phantom Phantom +status open -\begin_inset Quotes erd -\end_inset +\begin_layout Plain Layout +W +\end_layout -). - As LyX allows you to use any known image format in your document, it has - to convert images in the background to EPS. - If you have e.g. -\begin_inset space ~ \end_inset -50 -\begin_inset space ~ -\end_inset -images in your document, LyX has to do 50 -\begin_inset space ~ -\end_inset +\begin_inset ERT +status collapsed -conversions whenever you view or export your document. - This will slow down your work flow with LyX drastically. - So if you plan to use PostScript, you can insert your images directly as - EPS to avoid this problem. -\end_layout +\begin_layout Plain Layout -\begin_layout Standard -You can export your document to PostScript using the menu -\family sans -File\SpecialChar \menuseparator -Export\SpecialChar \menuseparator -Postscript -\family default -. - You can view your document as PostScript via the -\family sans -View -\family default - menu or by using the toolbar button -\begin_inset Graphics - filename ../images/buffer-view_ps.png - scale 85 - scaleBeforeRotation +} +\end_layout \end_inset -. + WildStrawberry \end_layout -\begin_layout Section -PDF -\begin_inset Index idx +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT status collapsed \begin_layout Plain Layout -File Formats ! PDF + + +\backslash +fcolorbox{black}{ \end_layout \end_inset - -\begin_inset Index idx +YellowGreen +\begin_inset ERT status collapsed \begin_layout Plain Layout -PDF + +}{ \end_layout \end_inset +\begin_inset Phantom Phantom +status open + +\begin_layout Plain Layout +W \end_layout -\begin_layout Standard -This file type has the extension -\begin_inset Quotes eld \end_inset -\family typewriter -.pdf -\family default - -\begin_inset Quotes erd -\end_inset - -. - The -\begin_inset Quotes eld -\end_inset +\begin_inset ERT +status collapsed -Portable Document Format -\begin_inset Quotes erd -\end_inset +\begin_layout Plain Layout - (PDF) was developed by -\family typewriter -Adobe -\family default - as a derivative of PostScript. - It is more compressed and it uses fewer commands than PostScript. - As the name -\begin_inset Quotes eld -\end_inset +} +\end_layout -portable -\begin_inset Quotes erd \end_inset - implies, it can be processed at any computer system and the printed output - looks exactly the same. + YellowGreen \end_layout -\begin_layout Standard -PDF can contain images in its own PDF format, in the format -\begin_inset Quotes eld \end_inset + + + + +\begin_inset Text -Joint Photographic Experts Group -\begin_inset Quotes erd -\end_inset +\begin_layout Plain Layout +\begin_inset ERT +status collapsed - (JPG, file extension -\begin_inset Quotes eld -\end_inset +\begin_layout Plain Layout -\family typewriter -.jpg -\family default +\backslash +fcolorbox{black}{ +\end_layout -\begin_inset Quotes erd \end_inset - or -\begin_inset Quotes eld -\end_inset +YellowOrange +\begin_inset ERT +status collapsed +\begin_layout Plain Layout -\family typewriter -.jpeg -\family default +}{ +\end_layout -\begin_inset Quotes erd \end_inset -), and in the format -\begin_inset Quotes eld -\end_inset -Portable Network Graphics -\begin_inset Quotes erd -\end_inset +\begin_inset Phantom Phantom +status open - (PNG, file extension -\begin_inset Quotes eld -\end_inset +\begin_layout Plain Layout +W +\end_layout +\end_inset -\family typewriter -.png -\family default -\begin_inset Quotes erd -\end_inset +\begin_inset ERT +status collapsed -). - Nevertheless you can use any other image format, because LyX converts them - in the background to one of these formats. - But as described in the section about PostScript, the image conversion - will slow down your work flow. - So it is recommended that you use images in one of the three mentioned - formats. -\end_layout +\begin_layout Plain Layout -\begin_layout Standard -You can export your document to PDF via the menu -\family sans -File\SpecialChar \menuseparator -Export -\family default - in three different ways: +} \end_layout -\begin_layout Description -PDF -\begin_inset space ~ \end_inset -(ps2pdf) This uses the program -\family typewriter -ps2pdf -\family default - that creates a PDF from a PostScript-version of your file. - The PostScript-version is produced by the program -\family typewriter -dvips -\family default - which uses a DVI-version as intermediate step. - So this export variant consists of three conversions. + YellowOrange \end_layout -\begin_layout Description -PDF -\begin_inset space ~ \end_inset + + +\begin_inset Text + +\begin_layout Plain Layout -(dvipdfm) This uses the program -\family typewriter -dvipdfm -\family default - that converts your file in the background to DVI and in a second step to - PDF. \end_layout -\begin_layout Description -PDF -\begin_inset space ~ \end_inset + + +\begin_inset Text + +\begin_layout Plain Layout -(pdflatex) This uses the program -\family typewriter -pdftex -\family default - that converts your file directly to PDF. \end_layout -\begin_layout Standard -It is recommended that you use -\family sans -PDF -\begin_inset space ~ \end_inset + + +\begin_inset Text -(pdflatex) -\family default - because -\family typewriter -pdftex -\family default - supports all features of actual PDF-versions, is quick and works stable. - The program -\family typewriter -dvipdfm -\family default - is not under development and therefore a bit outdated. -\end_layout +\begin_layout Plain Layout -\begin_layout Standard -You can view your document as PDF via the -\family sans -View -\family default - menu or by using the toolbar button -\begin_inset Graphics - filename ../images/buffer-view_pdf2.png - scale 85 - scaleBeforeRotation +\end_layout \end_inset + + + - -\family sans -( -\family default -that uses -\family sans -PDF -\begin_inset space ~ \end_inset -(pdflatex) -\family default -). + \end_layout \begin_layout Chapter @@ -36371,9 +43809,6 @@ n \end_inset as follows: -\end_layout - -\begin_layout Standard \begin_inset Formula \begin{equation} W_{\mathrm{tot}\, n}=n\cdot(W_{g\, n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n} @@ -36427,9 +43862,6 @@ reference "eq:Wtot_n" \end_inset is -\end_layout - -\begin_layout Standard \begin_inset Formula \begin{equation} W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult} @@ -36472,12 +43904,9 @@ n \end_inset : -\end_layout - -\begin_layout Standard \begin_inset Formula \begin{equation} -W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n +W_{g\, n}=\frac{W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth})}{n} \end{equation} \end_inset @@ -36538,7 +43967,7 @@ LaTeX: A Document Preparation System. \labelwidthstring Bibliography \begin_inset CommandInset bibitem LatexCommand bibitem -key "booktabs" +key "arydshln" \end_inset @@ -36547,8 +43976,8 @@ Documentation of the LaTeX-package \begin_inset CommandInset href LatexCommand href -name "booktabs" -target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf" +name "arydshln" +target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/arydshln/arydshln.pdf" \end_inset @@ -36559,7 +43988,7 @@ target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktab status collapsed \begin_layout Plain Layout -LaTeX-packages ! booktabs +LaTeX-packages ! arydshln \end_layout \end_inset @@ -36571,7 +44000,7 @@ LaTeX-packages ! booktabs \labelwidthstring Bibliography \begin_inset CommandInset bibitem LatexCommand bibitem -key "caption" +key "booktabs" \end_inset @@ -36580,8 +44009,8 @@ Documentation of the LaTeX-package \begin_inset CommandInset href LatexCommand href -name "caption" -target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf" +name "booktabs" +target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf" \end_inset @@ -36592,7 +44021,7 @@ target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption. status collapsed \begin_layout Plain Layout -LaTeX-packages ! caption +LaTeX-packages ! booktabs \end_layout \end_inset @@ -36604,7 +44033,7 @@ LaTeX-packages ! caption \labelwidthstring Bibliography \begin_inset CommandInset bibitem LatexCommand bibitem -key "endfloat" +key "caption" \end_inset @@ -36613,8 +44042,8 @@ Documentation of the LaTeX-package \begin_inset CommandInset href LatexCommand href -name "endfloat" -target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf" +name "caption" +target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf" \end_inset @@ -36625,7 +44054,7 @@ target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloa status collapsed \begin_layout Plain Layout -LaTeX-packages ! endfloat +LaTeX-packages ! caption \end_layout \end_inset @@ -36637,7 +44066,7 @@ LaTeX-packages ! endfloat \labelwidthstring Bibliography \begin_inset CommandInset bibitem LatexCommand bibitem -key "wrapfig" +key "diagbox" \end_inset @@ -36646,8 +44075,8 @@ Documentation of the LaTeX-package \begin_inset CommandInset href LatexCommand href -name "wrapfig" -target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/wrapfig/wrapfig.sty" +name "diagbox" +target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/diagbox/diagbox.pdf" \end_inset @@ -36658,20 +44087,40 @@ target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/wrapfig/wrapfig. status collapsed \begin_layout Plain Layout -LaTeX-packages ! wrapfig -\begin_inset ERT -status collapsed +LaTeX-packages ! diagbox +\end_layout -\begin_layout Plain Layout +\end_inset -\backslash -vspace{4mm} \end_layout +\begin_layout Bibliography +\labelwidthstring Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "endfloat" + +\end_inset + +Documentation of the LaTeX-package +\series bold + +\begin_inset CommandInset href +LatexCommand href +name "endfloat" +target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf" + \end_inset +\series default + +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +LaTeX-packages ! endfloat \end_layout \end_inset @@ -36809,6 +44258,47 @@ LaTeX-packages ! KOMA-Script \end_inset +\end_layout + +\begin_layout Bibliography +\labelwidthstring Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "lettrine" + +\end_inset + +Documentation of the LaTeX-package +\series bold + +\begin_inset CommandInset href +LatexCommand href +name "lettrine" +target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/lettrine.pdf" + +\end_inset + + +\series default + and an +\begin_inset CommandInset href +LatexCommand href +name "example" +target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/demo.pdf" + +\end_inset + + +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +LaTeX-packages ! lettrine +\end_layout + +\end_inset + + \end_layout \begin_layout Bibliography @@ -36881,7 +44371,7 @@ LaTeX-packages ! marginnote \labelwidthstring Bibliography \begin_inset CommandInset bibitem LatexCommand bibitem -key "lettrine" +key "pdfpages" \end_inset @@ -36890,27 +44380,19 @@ Documentation of the LaTeX-package \begin_inset CommandInset href LatexCommand href -name "lettrine" -target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/lettrine.pdf" +name "pdfpages" +target "http://www.ctan.org/tex-archive/macros/latex/contrib/pdfpages/pdfpages.pdf" \end_inset \series default - and an -\begin_inset CommandInset href -LatexCommand href -name "example" -target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/demo.pdf" - -\end_inset - \begin_inset Index idx status collapsed \begin_layout Plain Layout -LaTeX-packages ! lettrine +LaTeX-packages ! pdfpages \end_layout \end_inset @@ -36922,17 +44404,17 @@ LaTeX-packages ! lettrine \labelwidthstring Bibliography \begin_inset CommandInset bibitem LatexCommand bibitem -key "pstricks" +key "prettyref" \end_inset -Web page of the LaTeX-package +Documentation of the LaTeX-package \series bold \begin_inset CommandInset href LatexCommand href -name "PSTricks" -target "http://tug.org/PSTricks/" +name "prettyref" +target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf" \end_inset @@ -36943,7 +44425,7 @@ target "http://tug.org/PSTricks/" status collapsed \begin_layout Plain Layout -LaTeX-packages ! PSTricks +LaTeX-packages ! prettyref \end_layout \end_inset @@ -36955,17 +44437,17 @@ LaTeX-packages ! PSTricks \labelwidthstring Bibliography \begin_inset CommandInset bibitem LatexCommand bibitem -key "sidecap" +key "pstricks" \end_inset -Documentation of the LaTeX-package +Web page of the LaTeX-package \series bold \begin_inset CommandInset href LatexCommand href -name "sidecap" -target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf" +name "PSTricks" +target "http://tug.org/PSTricks/" \end_inset @@ -36976,7 +44458,7 @@ target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap. status collapsed \begin_layout Plain Layout -LaTeX-packages ! sidecap +LaTeX-packages ! PSTricks \end_layout \end_inset @@ -36988,7 +44470,7 @@ LaTeX-packages ! sidecap \labelwidthstring Bibliography \begin_inset CommandInset bibitem LatexCommand bibitem -key "prettyref" +key "refstyle" \end_inset @@ -36997,8 +44479,8 @@ Documentation of the LaTeX-package \begin_inset CommandInset href LatexCommand href -name "prettyref" -target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf" +name "refstyle" +target "http://mirrors.ctan.org/macros/latex/contrib/refstyle/refstyle.pdf" \end_inset @@ -37009,7 +44491,7 @@ target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref status collapsed \begin_layout Plain Layout -LaTeX-packages ! prettyref +LaTeX-packages ! refstyle \end_layout \end_inset @@ -37021,7 +44503,7 @@ LaTeX-packages ! prettyref \labelwidthstring Bibliography \begin_inset CommandInset bibitem LatexCommand bibitem -key "refstyle" +key "sidecap" \end_inset @@ -37030,8 +44512,8 @@ Documentation of the LaTeX-package \begin_inset CommandInset href LatexCommand href -name "refstyle" -target "http://www.ctan.org/tex-archive/macros/latex/contrib/refstyle/doc/latex/refstyle/refstyle.pdf" +name "sidecap" +target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf" \end_inset @@ -37042,7 +44524,7 @@ target "http://www.ctan.org/tex-archive/macros/latex/contrib/refstyle/doc/latex/ status collapsed \begin_layout Plain Layout -LaTeX-packages ! refstyle +LaTeX-packages ! sidecap \end_layout \end_inset