1 #LyX 1.6.6svn created this file. For more info see http://www.lyx.org/
11 % set fonts for nicer pdf view
12 \IfFileExists{lmodern.sty}
13 {\usepackage{lmodern}}{}
15 \fi % end if pdflatex is used
17 % that links to image floats jumps
18 % to the beginning of the float and
20 \usepackage[figure]{hypcap}
22 % the pages of the TOC is numbered roman
23 % and a PDF-bookmark for the TOC is added
24 \let\myTOC\tableofcontents
25 \renewcommand\tableofcontents{%
27 \pdfbookmark[1]{\contentsname}{}
31 % provides caption formatting
32 \usepackage[labelfont={bf,sf}, tableposition=top]{caption}[2004/07/16]
34 % provides commands to set caption
35 % beside tables/images
38 \newcommand{\TabBesBeg}{%
40 \let\MyEndtable\endtable
41 \renewenvironment{table}{\begin{SCtable}}{\end{SCtable}}}
43 \newcommand{\TabBesEnd}{%
45 \let\endtable\MyEndtable}
47 \newcommand{\FigBesBeg}{%
49 \let\MyEndfigure\endfigure
50 \renewenvironment{figure}{\begin{SCfigure}}{\end{SCfigure}}}
52 \newcommand{\FigBesEnd}{%
54 \let\endfigure\MyEndfigure}
56 % enables calculation of values,
59 % provides special table cell alignments
62 % increase the bottom float placement fraction
63 \renewcommand{\bottomfraction}{0.5}
65 % avoids that floats are placed before their
66 % corresponding section starts
67 \let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
69 % speed up the longtable calculation
70 \setcounter{LTchunksize}{100}
72 % used for scaled and rotated boxes
73 \@ifundefined{rotatebox}{\usepackage{graphicx}}{}
75 % used for colored tables
76 \@ifundefined{textcolor}
77 {\usepackage{color}}{}
78 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
79 \definecolor{lightgrey}{gray}{0.8}
81 % check for package colortbl
82 % used for colored table cells
84 \IfFileExists{colortbl.sty}
85 {\usepackage{colortbl}
86 \setboolean{colortbl}{true}}
87 {\setboolean{colortbl}{false}}
91 %\renewcommand{\multirowsetup}{\centering}
93 % used for book-style tables
96 % used to have extra space in table cells
97 \@ifundefined{extrarowheight}
98 {\usepackage{array}}{}
99 \setlength{\extrarowheight}{2pt}
101 % used for customized tables
104 {>{\centering\hspace{0pt}}m{#1}}
107 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
110 {>{\columncolor{#1}\hspace{0pt}}c}
112 \newcolumntype{V}{!{\vrule width 1.5pt}}
114 \newcolumntype{W}{!{\color{green}\vline}}
117 % insert additional vertical space of
118 % 1.5 mm between footnotes
120 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
122 % number algorithm floats within chapters
123 \numberwithin{algorithm}{chapter}
125 % redefine the greyed out note
126 \renewenvironment{lyxgreyedout}
127 {\textcolor{blue}\bgroup}{\egroup}
129 % ------------------------------------
130 % used to check for needed LaTeX packages
133 % check for package arydshln
134 % used for tables with dashed lines
135 \newboolean{arydshln}
136 \IfFileExists{arydshln.sty}
137 {\usepackage{arydshln}
138 \setboolean{arydshln}{true}}
139 {\setboolean{arydshln}{false}}
141 % check for package marginnote
142 % used for margin notes
143 \newboolean{marginnote}
144 \IfFileExists{marginnote.sty}
145 {\usepackage{marginnote}
146 \let\marginpar\marginnote
147 \setboolean{marginnote}{true}}
148 {\setboolean{marginnote}{false}}
150 % check for package sidecap
151 % used for captions on the side
153 \IfFileExists{sidecap.sty}
154 {\usepackage{sidecap}
155 \setboolean{sidecap}{true}}
156 {\setboolean{sidecap}{false}}
158 % redefine the \LyX macro for PDF bookmarks
159 \def\LyX{\texorpdfstring{%
160 L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
163 \options fleqn,liststotoc,bibtotoc,idxtotoc,BCOR7.5mm,titlepage,tablecaptionabove
164 \use_default_options false
169 \font_typewriter default
170 \font_default_family default
180 \pdf_title "LyX's Figure, Table, Floats, Notes, and Boxes manual"
181 \pdf_author "LyX Team, Uwe Stöhr"
182 \pdf_subject "LyX-documentation about figures, tables, floats, notes, and boxes"
183 \pdf_keywords "LyX, Tables, Figures, Floats, Boxes, Notes"
185 \pdf_bookmarksnumbered true
186 \pdf_bookmarksopen true
187 \pdf_bookmarksopenlevel 1
188 \pdf_breaklinks false
192 \pdf_pdfusetitle false
193 \pdf_quoted_options " linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
200 \paperorientation portrait
203 \paragraph_separation skip
205 \quotes_language english
208 \paperpagestyle default
212 \tracking_changes false
213 \output_changes false
221 LyX's detailed Figure, Table, Floats, Notes, Boxes and External Material
230 \begin_layout Plain Layout
232 If you have comments or error corrections, please send them to the LyX Documenta
234 \begin_inset CommandInset href
236 name "lyx-docs@lists.lyx.org"
237 target "lyx-docs@lists.lyx.org?subject=EmbeddedObjects manual"
248 \begin_inset Note Note
251 \begin_layout Plain Layout
258 \begin_inset Newline newline
262 \begin_inset Newline newline
270 \begin_layout Standard
271 \begin_inset CommandInset toc
272 LatexCommand tableofcontents
279 \begin_layout Standard
280 \begin_inset Note Note
283 \begin_layout Plain Layout
284 To export all parts of this document to PDF, PS, or DVI the LaTeX-packages
302 If they are not installed you can export the document anyway but the sections
303 where the packages are required won't appear in the output.
306 \begin_layout Plain Layout
307 The latest PDF-version of this document can be found here:
308 \begin_inset Newline newline
313 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
321 \begin_layout Chapter
326 \begin_layout Plain Layout
336 \begin_layout Plain Layout
341 \begin_layout Plain Layout
352 \begin_layout Plain Layout
367 \begin_layout Section
372 \begin_layout Plain Layout
373 Figures ! Graphics Dialog
379 \begin_inset CommandInset label
381 name "sec:Graphics-Dialog"
388 \begin_layout Standard
389 To insert an image into your document, place the cursor at the text position
390 you want and click on the toolbar icon
391 \begin_inset Graphics
392 filename ../images/dialog-show-new-inset_graphics.png
400 Insert\SpecialChar \menuseparator
404 Then a dialog will appear to choose the file to load.
405 The image will appear in the output exactly at the position where it is
409 \begin_layout Standard
410 The graphics dialog can be called at any time by clicking on an image.
411 This dialog has three tabs:
414 \begin_layout Description
419 Here you can choose an image file and adjust its appearance in the output.
420 The available units for the image size are explained in appendix
425 \begin_inset CommandInset ref
427 reference "cha:Units-available-in"
432 \begin_inset Newline newline
439 \begin_layout Plain Layout
445 You can rotate images counter-clockwise by setting a rotation angle and
447 The image will also be rotated inside LyX.
448 \begin_inset Newline newline
455 \begin_layout Plain Layout
461 Images can be scaled by using a percentage value or by setting the width
462 and height explicitly.
463 If you set only the width or only the height, the other size will be determined
465 If you set both, then the image will be transformed to the given size,
466 possibly distorting it.
467 To prevent the image from distortion, use the option
469 Maintain aspect ratio
472 The image will then be scaled so that its width and height don't exceed
473 the specified dimensions.
474 \begin_inset Newline newline
477 Images can be opened in a program of your choice by right-clicking on it
478 and choosing the entry
487 The program can be set for every image format in the file format settings
488 in LyX's preferences.
491 \begin_layout Description
496 Alternatively to the usage of scaling units it is possible to set image
497 coordinates to adjust the height and width of the image in the output.
498 The coordinates can also be calculated automatically by pressing the button
528 will only print the image region within the given coordinates.
529 Normally you don't need to take care about image coordinates and can ignore
533 \begin_layout Description
550 In this tab you can modify the appearance of the image within LyX and LaTeX
551 experts can specify additional LaTeX options.
552 \begin_inset Newline newline
563 makes the image appear in the output only as a frame with the size of the
565 \begin_inset Newline newline
584 option only affects zipped EPS-graphics, e.
585 \begin_inset space \thinspace{}
589 \begin_inset space \space{}
597 When the option is used the images will not be unzipped on export, since
598 LaTeX can handle them as they are.
599 \begin_inset Newline newline
602 Zipped EPS-graphics are useful to save disk space when you choose PostScript
603 as output format, see appendix
608 \begin_inset CommandInset ref
610 reference "sec:PostScript"
615 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
617 \begin_inset Newline newline
625 \begin_inset Newline newline
630 zgrep %%Bounding x.eps.gz > x.eps.bb
633 \begin_inset Newline newline
636 The second command creates the bounding box file
637 \begin_inset Quotes eld
641 \begin_inset Quotes erd
644 that is needed by LaTeX for zipped graphics.
645 \begin_inset Newline newline
660 allows you define or join an image settings group.
664 \begin_layout Plain Layout
665 Figures ! Settings grouping
670 Images within such a group share their settings, so adjusting one image
671 of the group automatically also adjusts all other images of the group in
673 So you can for example change the size for a bunch of images without the
674 need to manually change each of them.
675 Joining an existing group can also be done using the context menu of the
676 image by checking the name of the desired group.
679 \begin_layout Standard
680 \begin_inset VSpace bigskip
686 \begin_layout Standard
687 This is an example image in EPS format
691 \begin_layout Plain Layout
692 Image formats are explained in section
697 \begin_inset CommandInset ref
699 reference "sec:Image-Formats"
708 within a separate, horizontally centered paragraph:
711 \begin_layout Standard
713 \begin_inset Graphics
714 filename clipart/mobius.eps
724 \begin_layout Standard
725 This is the same image like the one above but in draft mode:
728 \begin_layout Standard
730 \begin_inset Graphics
731 filename clipart/mobius.eps
742 \begin_layout Standard
743 \begin_inset Newpage newpage
749 \begin_layout Section
751 \begin_inset CommandInset label
753 name "sec:Figure-Floats"
761 \begin_layout Plain Layout
771 \begin_layout Plain Layout
780 \begin_layout Standard
781 For general explanations about floats, have a look at section
786 \begin_inset CommandInset ref
788 reference "sec:FloatIntroduction"
795 \begin_layout Standard
797 \begin_inset Graphics
798 filename ../images/float-insert_figure.png
806 Insert\SpecialChar \menuseparator
807 Float\SpecialChar \menuseparator
810 inserts a float with a caption that has the label
811 \begin_inset Quotes eld
819 \begin_inset Quotes erd
822 (# is the actual number).
823 You can insert the image above the caption, like in Figure
828 \begin_inset CommandInset ref
830 reference "fig:kill-plat"
834 or below the caption, like in Figure
839 \begin_inset CommandInset ref
841 reference "fig:escher"
846 More about caption placement is described in section
851 \begin_inset CommandInset ref
853 reference "sec:Caption-Placement"
860 \begin_layout Standard
861 \begin_inset Float figure
866 \begin_layout Plain Layout
868 \begin_inset Graphics
869 filename clipart/platypus.eps
879 \begin_layout Plain Layout
882 \begin_layout Plain Layout
883 \begin_inset CommandInset label
889 A severely distorted platypus in a float.
902 \begin_layout Standard
903 \begin_inset Float figure
908 \begin_layout Plain Layout
911 \begin_layout Plain Layout
912 \begin_inset CommandInset label
927 \begin_layout Plain Layout
929 \begin_inset Graphics
930 filename clipart/escher-lsd.eps
945 \begin_layout Standard
949 \begin_layout Plain Layout
950 References ! to Figures
960 \begin_inset CommandInset ref
962 reference "fig:kill-plat"
967 \begin_inset CommandInset ref
969 reference "fig:escher"
973 are examples of referenced figures.
974 Figures can be referenced in the text by referencing their label.
975 To do this insert a label in the caption using the menu
977 Insert\SpecialChar \menuseparator
980 or the toolbar button
981 \begin_inset Graphics
982 filename ../images/label-insert.png
989 You can now refer to the label using the menu
991 Insert\SpecialChar \menuseparator
998 or the toolbar button
999 \begin_inset Graphics
1000 filename ../images/dialog-show-new-inset_ref.png
1007 It is important to use references to floats, rather than using vague references
1009 \begin_inset Quotes eld
1013 \begin_inset Quotes erd
1016 , because LaTeX will reposition the floats in the final document and it
1018 \begin_inset Quotes eld
1022 \begin_inset Quotes erd
1026 \begin_inset Newline newline
1029 Referencing is explained in detail in section
1030 \begin_inset space ~
1034 \begin_inset CommandInset ref
1036 reference "sec:Referencing-Floats"
1043 \begin_layout Standard
1044 Normally only one image is inserted to a figure float, but sometimes you
1045 might want to use two images with separate subcaptions.
1046 This can be done by inserting image floats into existing image floats.
1047 Note that only the main caption of the float is added to the List of Figures.
1049 \begin_inset space ~
1053 \begin_inset CommandInset ref
1055 reference "fig:Two-distorted-images"
1059 is an example of a figure float with two images set side by side.
1060 You can also set the images one below the other.
1062 \begin_inset space ~
1066 \begin_inset CommandInset ref
1068 reference "fig:Undefinable-structure"
1073 \begin_inset CommandInset ref
1075 reference "fig:A-Platypus"
1082 \begin_layout Standard
1083 \begin_inset Float figure
1088 \begin_layout Plain Layout
1089 \begin_inset space \hfill{}
1093 \begin_inset Float figure
1098 \begin_layout Plain Layout
1099 \begin_inset Caption
1101 \begin_layout Plain Layout
1102 \begin_inset CommandInset label
1104 name "fig:Undefinable-structure"
1108 Undefinable structure.
1116 \begin_layout Plain Layout
1117 \begin_inset Graphics
1118 filename clipart/escher-lsd.eps
1131 \begin_inset space \hfill{}
1135 \begin_inset Float figure
1140 \begin_layout Plain Layout
1141 \begin_inset Caption
1143 \begin_layout Plain Layout
1144 \begin_inset CommandInset label
1146 name "fig:A-Platypus"
1158 \begin_layout Plain Layout
1159 \begin_inset Graphics
1160 filename clipart/platypus.eps
1173 \begin_inset space \hfill{}
1179 \begin_layout Plain Layout
1180 \begin_inset Caption
1182 \begin_layout Plain Layout
1183 \begin_inset CommandInset label
1185 name "fig:Two-distorted-images"
1189 Two distorted images.
1190 Both images are in the image settings group named
1191 \begin_inset Quotes eld
1195 \begin_inset Quotes erd
1211 \begin_layout Standard
1212 \begin_inset Newpage newpage
1218 \begin_layout Section
1220 \begin_inset CommandInset label
1222 name "sec:Image-Formats"
1230 \begin_layout Plain Layout
1240 \begin_layout Plain Layout
1241 Figures ! Image Formats
1249 \begin_layout Standard
1250 You can insert images in any known file format.
1251 But as explained in appendix
1252 \begin_inset space ~
1256 \begin_inset CommandInset ref
1258 reference "cha:Output-File-Formats"
1262 , each output document format allows only a few image formats.
1263 LyX uses therefore the program
1267 in the background to convert the images to the right format.
1268 To increase your work flow by avoiding these conversions in the background,
1269 you can use only the image formats that can directly be embedded in the
1271 The output file formats are explained in appendix
1272 \begin_inset space ~
1276 \begin_inset CommandInset ref
1278 reference "cha:Output-File-Formats"
1285 \begin_layout Standard
1286 Similar to fonts there are two types of image formats:
1289 \begin_layout Description
1291 \begin_inset space ~
1294 images consist of pixel values, often in a compressed form.
1295 They are therefore not fully scalable and look pixelated in large zooms.
1296 Well-known bitmap image formats are
1297 \begin_inset Quotes eld
1300 Graphics Interchange Format
1301 \begin_inset Quotes erd
1304 (GIF, file extension
1305 \begin_inset Quotes eld
1313 \begin_inset Quotes erd
1320 \begin_layout Plain Layout
1325 \begin_layout Plain Layout
1336 \begin_layout Plain Layout
1349 \begin_inset Quotes eld
1352 Portable Network Graphics
1353 \begin_inset Quotes erd
1356 (PNG, file extension
1357 \begin_inset Quotes eld
1365 \begin_inset Quotes erd
1372 \begin_layout Plain Layout
1377 \begin_layout Plain Layout
1388 \begin_layout Plain Layout
1401 \begin_inset Quotes eld
1404 Joint Photographic Experts Group
1405 \begin_inset Quotes erd
1408 (JPG, file extension
1409 \begin_inset Quotes eld
1417 \begin_inset Quotes erd
1421 \begin_inset Quotes eld
1429 \begin_inset Quotes erd
1436 \begin_layout Plain Layout
1441 \begin_layout Plain Layout
1452 \begin_layout Plain Layout
1467 \begin_layout Description
1469 \begin_inset space ~
1472 images consist of vectors and can therefore be scaled to any size without
1474 The scaling ability is necessary if you want to create presentations, because
1475 presentations are always scaled by the video projector.
1476 Scaling is also useful for online documents to let the user zoom into diagrams.
1477 \begin_inset Newline newline
1480 Well-known scalable image formats are
1481 \begin_inset Quotes eld
1484 Scalable Vector Graphics
1485 \begin_inset Quotes erd
1488 (SVG, file extension
1489 \begin_inset Quotes eld
1497 \begin_inset Quotes erd
1504 \begin_layout Plain Layout
1509 \begin_layout Plain Layout
1520 \begin_layout Plain Layout
1533 \begin_inset Quotes eld
1536 Encapsulated PostScript
1537 \begin_inset Quotes erd
1540 (EPS, file extension
1541 \begin_inset Quotes eld
1549 \begin_inset Quotes erd
1556 \begin_layout Plain Layout
1561 \begin_layout Plain Layout
1572 \begin_layout Plain Layout
1585 \begin_inset Quotes eld
1588 Portable Document Format
1589 \begin_inset Quotes erd
1592 (PDF, file extension
1593 \begin_inset Quotes eld
1601 \begin_inset Quotes erd
1608 \begin_layout Plain Layout
1615 \begin_inset Quotes eld
1619 \begin_inset Quotes erd
1622 (WMF, file extension
1623 \begin_inset Quotes eld
1631 \begin_inset Quotes erd
1638 \begin_layout Plain Layout
1643 \begin_layout Plain Layout
1654 \begin_layout Plain Layout
1668 \begin_inset Quotes eld
1672 \begin_inset Quotes erd
1675 , because you can convert any bitmap image to a PDF or EPS-image and the
1676 result will still be a bitmap image.
1677 In such cases only a header with the image properties is added to the original
1682 \begin_layout Plain Layout
1683 In the case of PDF, the original image is additionally compressed.
1689 The PDF-files generated by
1693 are for example bitmap images.
1696 \begin_layout Standard
1697 Normally it is not possible to convert a bitmap image into a scalable one,
1699 Only the image formats PDF and EPS can directly be embedded to PDF and
1700 PostScript output files, respectively.
1701 SVG and WMF-images are recalculated to bitmaps when the output file is
1702 generated because there is currently no adequate WMF/SVG
1703 \begin_inset Formula $\to$
1706 PDF/EPS converter available.
1709 \begin_layout Chapter
1714 \begin_layout Plain Layout
1723 \begin_layout Section
1728 \begin_layout Plain Layout
1729 Table ! Introduction
1737 \begin_layout Standard
1738 You can insert a table using either the toolbar button
1739 \begin_inset Graphics
1740 filename ../images/tabular-insert.png
1748 Insert\SpecialChar \menuseparator
1752 The toolbar button offers you a graphical selection: move the mouse to
1753 set the column/row number of the table that should be created and then
1754 press a mouse button.
1755 When you use the menu to create a table, a dialog will appear, asking you
1756 for the number of rows and columns.
1757 \begin_inset Newline newline
1760 The default table has lines around any cell and the first row appears separated
1761 from the rest of the table.
1762 This separation occurs due to a double line: The cells of the first row
1763 have a line below them and the cells of the second row have a line above
1765 Here is an example table:
1768 \begin_layout Standard
1770 \begin_inset Tabular
1771 <lyxtabular version="3" rows="4" columns="4">
1773 <column alignment="center" valignment="top" width="0">
1774 <column alignment="center" valignment="top" width="0">
1775 <column alignment="center" valignment="top" width="0">
1776 <column alignment="center" valignment="top" width="0">
1778 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1781 \begin_layout Plain Layout
1787 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1790 \begin_layout Plain Layout
1805 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1808 \begin_layout Plain Layout
1814 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1817 \begin_layout Plain Layout
1825 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1828 \begin_layout Plain Layout
1843 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1846 \begin_layout Plain Layout
1852 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1855 \begin_layout Plain Layout
1861 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1864 \begin_layout Plain Layout
1872 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1875 \begin_layout Plain Layout
1890 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1893 \begin_layout Plain Layout
1899 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1902 \begin_layout Plain Layout
1908 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1911 \begin_layout Plain Layout
1919 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1922 \begin_layout Plain Layout
1937 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1940 \begin_layout Plain Layout
1946 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1949 \begin_layout Plain Layout
1955 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1958 \begin_layout Plain Layout
1972 \begin_layout Section
1977 \begin_layout Plain Layout
1986 \begin_layout Standard
1987 You can alter a table by clicking on it with the right mouse button, which
1988 brings up the table dialog.
1989 Here you can adjust the settings of that cell and row/column respectively
1990 where the cursor is currently placed.
1991 Most of the dialog options also work on selections.
1992 This means if you select more cells, columns or rows, the action is done
1993 for the whole selection.
1994 Note that there is a difference between selecting the
1998 of the cell, and the cell itself.
1999 You can alter tables with the following tabs of the table dialog:
2002 \begin_layout Description
2006 \begin_inset space ~
2011 Here you can set the horizontal alignment and the width of the current
2013 When you have set a width you can also adjust the vertical alignment of
2015 A given width will allow the cell to have line breaks and multiple paragraphs
2016 of text, see section
2017 \begin_inset space ~
2021 \begin_inset CommandInset ref
2023 reference "sub:Multiple-Lines-in"
2028 If you set no width, the column is as wide as the content of the widest
2030 \begin_inset Newline newline
2033 Furthermore, you can mark one or multiple cells of one row as a multicolumn
2035 \begin_inset space ~
2039 \begin_inset CommandInset ref
2041 reference "sub:Multicolumns"
2046 \begin_inset Newline newline
2049 The rotate check boxes rotate the current cell, a selection, or the whole
2050 table counter-clockwise by 90°.
2051 The rotation is not shown within LyX, only in the output.
2052 \begin_inset Newline newline
2056 \begin_inset Note Greyedout
2059 \begin_layout Plain Layout
2064 Not all DVI-viewers are able to display rotations.
2070 \begin_inset Newline newline
2073 It is also possible to enter a LaTeX-argument which is needed for special
2074 table formattings, see section
2075 \begin_inset space ~
2079 \begin_inset CommandInset ref
2081 reference "sub:Multicolumn-Calculations"
2086 \begin_inset CommandInset ref
2088 reference "sec:Colored-Tables"
2095 \begin_layout Description
2100 In this tab you can add and delete border lines for the current row/column.
2101 \begin_inset Newline newline
2104 Using the style option
2108 will convert the table to a formal table as described in section
2109 \begin_inset space ~
2113 \begin_inset CommandInset ref
2115 reference "sec:Formal-Tables"
2120 \begin_inset Newline newline
2123 You can also add here space to table rows as described in section
2124 \begin_inset space ~
2128 \begin_inset CommandInset ref
2130 reference "sub:Row-Spacing"
2137 \begin_layout Description
2142 This tab is to make a table a so called
2143 \begin_inset Quotes eld
2151 \begin_inset Quotes erd
2154 that can run over several pages.
2156 \begin_inset space ~
2160 \begin_inset CommandInset ref
2162 reference "sec:Longtables"
2167 \begin_inset CommandInset ref
2169 reference "sec:Special-Longtable-Issues"
2173 describe the longtable features in detail.
2176 \begin_layout Standard
2177 When the table dialog is open, you can move the cursor with the arrow keys
2178 from cell to cell and the property of the current cell will immediately
2179 be displayed in the dialog.
2182 \begin_layout Section
2187 \begin_layout Plain Layout
2196 \begin_layout Standard
2197 The table toolbar is an alternative to the table dialog to be able to alter
2199 It should normally appear at the bottom of LyX's main window when the cursor
2201 You can alternatively switch it on to appear always, by right-clicking
2202 in LyX's main menu bar.
2205 \begin_layout Standard
2206 The toolbar has the following icons:
2209 \begin_layout Labeling
2210 \labelwidthstring 00.00.0000
2211 \begin_inset Graphics
2212 filename ../images/tabular-feature_append-row.png
2217 adds a row below the current cell or selection
2220 \begin_layout Labeling
2221 \labelwidthstring 00.00.0000
2222 \begin_inset Graphics
2223 filename ../images/tabular-feature_append-column.png
2228 adds a column right beside the current cell or selection
2231 \begin_layout Labeling
2232 \labelwidthstring 00.00.0000
2233 \begin_inset Graphics
2234 filename ../images/tabular-feature_delete-row.png
2239 deletes the current row or selection
2242 \begin_layout Labeling
2243 \labelwidthstring 00.00.0000
2244 \begin_inset Graphics
2245 filename ../images/tabular-feature_delete-column.png
2250 deletes the current column or selection
2253 \begin_layout Labeling
2254 \labelwidthstring 00.00.0000
2255 \begin_inset Graphics
2256 filename ../images/tabular-feature_toggle-line-top.png
2261 adds a line at the top of the current cell / row or of a selection
2264 \begin_layout Labeling
2265 \labelwidthstring 00.00.0000
2266 \begin_inset Graphics
2267 filename ../images/tabular-feature_toggle-line-bottom.png
2272 adds a line at the bottom of the current cell / row or of a selection
2275 \begin_layout Labeling
2276 \labelwidthstring 00.00.0000
2277 \begin_inset Graphics
2278 filename ../images/tabular-feature_toggle-line-left.png
2283 adds a line at the left side of the current cell / row or of a selection
2286 \begin_layout Labeling
2287 \labelwidthstring 00.00.0000
2288 \begin_inset Graphics
2289 filename ../images/tabular-feature_toggle-line-right.png
2294 adds a line at the right side of the current cell / row or of a selection
2297 \begin_layout Labeling
2298 \labelwidthstring 00.00.0000
2299 \begin_inset Graphics
2300 filename ../images/tabular-feature_set-all-lines.png
2305 adds lines around the current or selected cells - if the current cell no
2306 multicolumn cell this also affects the current row and column
2309 \begin_layout Labeling
2310 \labelwidthstring 00.00.0000
2311 \begin_inset Graphics
2312 filename ../images/tabular-feature_unset-all-lines.png
2317 deletes all lines of the current or selected cells - if the current cell
2318 no multicolumn cell this also affects the current row and column
2321 \begin_layout Labeling
2322 \labelwidthstring 00.00.0000
2323 \begin_inset Graphics
2324 filename ../images/tabular-feature_m-align-left.png
2329 left-aligns the content of the current cell / column
2332 \begin_layout Labeling
2333 \labelwidthstring 00.00.0000
2334 \begin_inset Graphics
2335 filename ../images/tabular-feature_m-align-center.png
2340 centers the content of the current cell / column horizontally
2343 \begin_layout Labeling
2344 \labelwidthstring 00.00.0000
2345 \begin_inset Graphics
2346 filename ../images/tabular-feature_m-align-right.png
2351 right-aligns the content of the current cell / column
2354 \begin_layout Labeling
2355 \labelwidthstring 00.00.0000
2356 \begin_inset Graphics
2357 filename ../images/tabular-feature_m-valign-top.png
2362 aligns the content of the current cell vertically to the top
2365 \begin_layout Labeling
2366 \labelwidthstring 00.00.0000
2367 \begin_inset Graphics
2368 filename ../images/tabular-feature_m-valign-middle.png
2373 centers the content of the current cell vertically
2376 \begin_layout Labeling
2377 \labelwidthstring 00.00.0000
2378 \begin_inset Graphics
2379 filename ../images/tabular-feature_m-valign-bottom.png
2384 aligns the content of the current cell vertically to the bottom
2387 \begin_layout Labeling
2388 \labelwidthstring 00.00.0000
2389 \begin_inset Graphics
2390 filename ../images/tabular-feature_set-rotate-cell.png
2395 rotates the current cell or selection counter-clockwise by 90°
2398 \begin_layout Labeling
2399 \labelwidthstring 00.00.0000
2400 \begin_inset Graphics
2401 filename ../images/tabular-feature_set-rotate-tabular.png
2406 rotates the whole table counter-clockwise by 90°
2409 \begin_layout Labeling
2410 \labelwidthstring 00.00.0000
2411 \begin_inset Graphics
2412 filename ../images/tabular-feature_multicolumn.png
2417 sets the current cell or selection as a multicolumn
2420 \begin_layout Standard
2421 \begin_inset Note Greyedout
2424 \begin_layout Plain Layout
2429 For the output the vertical alignment of the first cell in a row is used
2430 for all following cells in the row.
2438 \begin_layout Section
2443 \begin_layout Plain Layout
2452 \begin_layout Standard
2453 Additionally to the table dialog and toolbar, the menu
2455 Edit\SpecialChar \menuseparator
2458 allows you to add and delete border lines for the current row/column and
2459 to set the current selection as multicolumn.
2460 The menu is only available when the cursor is inside a table.
2463 \begin_layout Section
2465 \begin_inset CommandInset label
2467 name "sec:Table-Floats"
2475 \begin_layout Plain Layout
2485 \begin_layout Plain Layout
2494 \begin_layout Standard
2495 For general explanations about floats, have a look at section
2496 \begin_inset space ~
2500 \begin_inset CommandInset ref
2502 reference "sec:FloatIntroduction"
2509 \begin_layout Standard
2510 \begin_inset Float table
2516 \begin_layout Plain Layout
2517 \begin_inset Caption
2519 \begin_layout Plain Layout
2520 \begin_inset CommandInset label
2522 name "tab:a table float"
2534 \begin_layout Plain Layout
2536 \begin_inset Tabular
2537 <lyxtabular version="3" rows="3" columns="3">
2539 <column alignment="center" valignment="top" width="0pt">
2540 <column alignment="center" valignment="top" width="0pt">
2541 <column alignment="center" valignment="top" width="0pt">
2543 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2546 \begin_layout Plain Layout
2561 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2564 \begin_layout Plain Layout
2579 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2582 \begin_layout Plain Layout
2599 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2602 \begin_layout Plain Layout
2617 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2620 \begin_layout Plain Layout
2635 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2638 \begin_layout Plain Layout
2655 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2658 \begin_layout Plain Layout
2668 \begin_inset Formula $\int x^{2}dx$
2676 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2679 \begin_layout Plain Layout
2689 \begin_inset Formula $\left[\begin{array}{cc}
2691 c & d\end{array}\right]$
2699 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2702 \begin_layout Plain Layout
2712 \begin_inset Formula $1+1=2$
2733 \begin_layout Standard
2734 Table floats can be inserted using the menu
2736 Insert\SpecialChar \menuseparator
2737 Float\SpecialChar \menuseparator
2740 or the toolbar button
2741 \begin_inset Graphics
2742 filename ../images/float-insert_table.png
2751 \begin_layout Standard
2752 The float appears as a collapsible box with a caption that has the label
2754 \begin_inset Quotes eld
2758 \begin_inset space ~
2762 \begin_inset Quotes erd
2765 (# is the actual table number).
2766 You can insert tables in the float above or below the caption.
2769 \begin_layout Standard
2771 \begin_inset space ~
2775 \begin_inset CommandInset ref
2777 reference "tab:a table float"
2781 is an example table within a table float.
2784 \begin_layout Standard
2785 Having the caption above the table is the common rule that is unfortunately
2786 not supported in LaTeX's standard classes.
2787 This means that, if you are using the document classes
2803 , there will be no space between the caption and the table.
2804 To insert the needed space, add the following option to the load command
2805 of the LaTeX-package
2813 \begin_layout Plain Layout
2814 LaTeX-packages ! caption
2819 in your document preamble
2823 \begin_layout Plain Layout
2824 For more information have a look at section
2825 \begin_inset space ~
2829 \begin_inset CommandInset ref
2831 reference "sec:Caption-Placement"
2843 \begin_layout Standard
2849 \begin_layout Standard
2854 , which is described in section
2855 \begin_inset space ~
2859 \begin_inset CommandInset ref
2861 reference "sec:Caption-Formatting"
2865 , is used to adjust the caption format.
2868 \begin_layout Standard
2872 \begin_layout Plain Layout
2873 References ! to Tables
2878 Tables can be cross-referenced in the text by referencing their label.
2879 To do this insert a label in the caption using the menu
2881 Insert\SpecialChar \menuseparator
2884 or the toolbar button
2885 \begin_inset Graphics
2886 filename ../images/label-insert.png
2893 You can now refer to the label using the menu
2895 Insert\SpecialChar \menuseparator
2897 \begin_inset space ~
2902 or the toolbar button
2903 \begin_inset Graphics
2904 filename ../images/dialog-show-new-inset_ref.png
2911 \begin_inset Newline newline
2914 Referencing is explained in detail in section
2915 \begin_inset space ~
2919 \begin_inset CommandInset ref
2921 reference "sec:Referencing-Floats"
2928 \begin_layout Section
2930 \begin_inset CommandInset label
2932 name "sec:Longtables"
2940 \begin_layout Plain Layout
2950 \begin_layout Plain Layout
2959 \begin_layout Standard
2960 If the table is too long to fit on one page, you can use the option
2963 \begin_inset space ~
2967 \begin_inset space ~
2976 of the table dialog to split the table automatically over more pages.
2977 Doing this enables the following options:
2980 \begin_layout Description
2981 Header: The current row is defined to be a header row that appears on all
2982 pages of the longtable; except for the first page, if
2985 \begin_inset space ~
2991 This is therefore called the main header.
2994 \begin_layout Description
2996 \begin_inset space ~
2999 header: The current row is defined to be a header row that appears on the
3000 first page of the longtable.
3003 \begin_layout Description
3004 Footer: The current row is defined to be a footer row that appears on all
3005 pages of the longtable; except for the last page, if
3008 \begin_inset space ~
3016 \begin_layout Description
3018 \begin_inset space ~
3021 footer: The current row is defined to be a footer row that appears on the
3022 last page of the longtable.
3025 \begin_layout Description
3026 Caption: The current row contains the table caption.
3027 The row is reset as single column and a caption is inserted.
3028 More about longtable captions is explained in sec.
3029 \begin_inset space \thinspace{}
3033 \begin_inset CommandInset ref
3035 reference "sub:Longtable-Captions"
3042 \begin_layout Standard
3043 You can also specify a row where the table is split.
3044 See the following longtable to see how it works:
3047 \begin_layout Standard
3049 \begin_inset Tabular
3050 <lyxtabular version="3" rows="69" columns="3">
3051 <features islongtable="true">
3052 <column alignment="left" valignment="top" width="0cm">
3053 <column alignment="left" valignment="top" width="0pt">
3054 <column alignment="center" valignment="top" width="0pt">
3055 <row endfirsthead="true">
3056 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3059 \begin_layout Plain Layout
3062 Example Phone List (ignore the names)
3067 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3070 \begin_layout Plain Layout
3076 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3079 \begin_layout Plain Layout
3086 <row endfirsthead="true">
3087 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3090 \begin_layout Plain Layout
3098 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3101 \begin_layout Plain Layout
3107 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3110 \begin_layout Plain Layout
3119 <row endhead="true">
3120 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3123 \begin_layout Plain Layout
3131 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3134 \begin_layout Plain Layout
3140 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3143 \begin_layout Plain Layout
3150 <row endhead="true">
3151 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3154 \begin_layout Plain Layout
3162 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3165 \begin_layout Plain Layout
3171 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3174 \begin_layout Plain Layout
3183 <row endfoot="true">
3184 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
3187 \begin_layout Plain Layout
3188 continued on next page
3193 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3196 \begin_layout Plain Layout
3202 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3205 \begin_layout Plain Layout
3213 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3216 \begin_layout Plain Layout
3224 <cell alignment="center" valignment="top" usebox="none">
3227 \begin_layout Plain Layout
3233 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3236 \begin_layout Plain Layout
3244 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3247 \begin_layout Plain Layout
3255 <cell alignment="center" valignment="top" usebox="none">
3258 \begin_layout Plain Layout
3264 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3267 \begin_layout Plain Layout
3275 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3278 \begin_layout Plain Layout
3286 <cell alignment="center" valignment="top" usebox="none">
3289 \begin_layout Plain Layout
3295 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3298 \begin_layout Plain Layout
3306 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3309 \begin_layout Plain Layout
3317 <cell alignment="center" valignment="top" usebox="none">
3320 \begin_layout Plain Layout
3326 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3329 \begin_layout Plain Layout
3337 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3340 \begin_layout Plain Layout
3348 <cell alignment="center" valignment="top" usebox="none">
3351 \begin_layout Plain Layout
3357 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3360 \begin_layout Plain Layout
3368 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3371 \begin_layout Plain Layout
3379 <cell alignment="center" valignment="top" usebox="none">
3382 \begin_layout Plain Layout
3388 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3391 \begin_layout Plain Layout
3399 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3402 \begin_layout Plain Layout
3410 <cell alignment="center" valignment="top" usebox="none">
3413 \begin_layout Plain Layout
3419 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3422 \begin_layout Plain Layout
3430 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3433 \begin_layout Plain Layout
3441 <cell alignment="center" valignment="top" usebox="none">
3444 \begin_layout Plain Layout
3450 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3453 \begin_layout Plain Layout
3461 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3464 \begin_layout Plain Layout
3472 <cell alignment="center" valignment="top" usebox="none">
3475 \begin_layout Plain Layout
3481 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3484 \begin_layout Plain Layout
3492 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3495 \begin_layout Plain Layout
3503 <cell alignment="center" valignment="top" usebox="none">
3506 \begin_layout Plain Layout
3512 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3515 \begin_layout Plain Layout
3523 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3526 \begin_layout Plain Layout
3534 <cell alignment="center" valignment="top" usebox="none">
3537 \begin_layout Plain Layout
3543 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3546 \begin_layout Plain Layout
3554 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3557 \begin_layout Plain Layout
3565 <cell alignment="center" valignment="top" usebox="none">
3568 \begin_layout Plain Layout
3574 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3577 \begin_layout Plain Layout
3585 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3588 \begin_layout Plain Layout
3596 <cell alignment="center" valignment="top" usebox="none">
3599 \begin_layout Plain Layout
3605 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3608 \begin_layout Plain Layout
3616 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3619 \begin_layout Plain Layout
3627 <cell alignment="center" valignment="top" usebox="none">
3630 \begin_layout Plain Layout
3636 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3639 \begin_layout Plain Layout
3647 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3650 \begin_layout Plain Layout
3658 <cell alignment="center" valignment="top" usebox="none">
3661 \begin_layout Plain Layout
3667 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3670 \begin_layout Plain Layout
3678 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3681 \begin_layout Plain Layout
3689 <cell alignment="center" valignment="top" usebox="none">
3692 \begin_layout Plain Layout
3698 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3701 \begin_layout Plain Layout
3709 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3712 \begin_layout Plain Layout
3720 <cell alignment="center" valignment="top" usebox="none">
3723 \begin_layout Plain Layout
3729 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3732 \begin_layout Plain Layout
3740 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3743 \begin_layout Plain Layout
3751 <cell alignment="center" valignment="top" usebox="none">
3754 \begin_layout Plain Layout
3760 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3763 \begin_layout Plain Layout
3771 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3774 \begin_layout Plain Layout
3782 <cell alignment="center" valignment="top" usebox="none">
3785 \begin_layout Plain Layout
3791 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3794 \begin_layout Plain Layout
3802 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3805 \begin_layout Plain Layout
3813 <cell alignment="center" valignment="top" usebox="none">
3816 \begin_layout Plain Layout
3822 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3825 \begin_layout Plain Layout
3833 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3836 \begin_layout Plain Layout
3844 <cell alignment="center" valignment="top" usebox="none">
3847 \begin_layout Plain Layout
3853 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3856 \begin_layout Plain Layout
3864 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3867 \begin_layout Plain Layout
3875 <cell alignment="center" valignment="top" usebox="none">
3878 \begin_layout Plain Layout
3884 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3887 \begin_layout Plain Layout
3895 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3898 \begin_layout Plain Layout
3906 <cell alignment="center" valignment="top" usebox="none">
3909 \begin_layout Plain Layout
3915 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3918 \begin_layout Plain Layout
3926 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3929 \begin_layout Plain Layout
3937 <cell alignment="center" valignment="top" usebox="none">
3940 \begin_layout Plain Layout
3946 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3949 \begin_layout Plain Layout
3957 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3960 \begin_layout Plain Layout
3968 <cell alignment="center" valignment="top" usebox="none">
3971 \begin_layout Plain Layout
3977 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3980 \begin_layout Plain Layout
3988 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3991 \begin_layout Plain Layout
3999 <cell alignment="center" valignment="top" usebox="none">
4002 \begin_layout Plain Layout
4008 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4011 \begin_layout Plain Layout
4019 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4022 \begin_layout Plain Layout
4030 <cell alignment="center" valignment="top" usebox="none">
4033 \begin_layout Plain Layout
4039 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4042 \begin_layout Plain Layout
4050 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4053 \begin_layout Plain Layout
4061 <cell alignment="center" valignment="top" usebox="none">
4064 \begin_layout Plain Layout
4070 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4073 \begin_layout Plain Layout
4081 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4084 \begin_layout Plain Layout
4092 <cell alignment="center" valignment="top" usebox="none">
4095 \begin_layout Plain Layout
4101 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4104 \begin_layout Plain Layout
4112 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4115 \begin_layout Plain Layout
4123 <cell alignment="center" valignment="top" usebox="none">
4126 \begin_layout Plain Layout
4132 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4135 \begin_layout Plain Layout
4143 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4146 \begin_layout Plain Layout
4154 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4157 \begin_layout Plain Layout
4163 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4166 \begin_layout Plain Layout
4174 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4177 \begin_layout Plain Layout
4183 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4186 \begin_layout Plain Layout
4192 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4195 \begin_layout Plain Layout
4203 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4206 \begin_layout Plain Layout
4214 <cell alignment="center" valignment="top" usebox="none">
4217 \begin_layout Plain Layout
4223 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4226 \begin_layout Plain Layout
4234 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4237 \begin_layout Plain Layout
4245 <cell alignment="center" valignment="top" usebox="none">
4248 \begin_layout Plain Layout
4254 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4257 \begin_layout Plain Layout
4265 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4268 \begin_layout Plain Layout
4276 <cell alignment="center" valignment="top" usebox="none">
4279 \begin_layout Plain Layout
4285 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4288 \begin_layout Plain Layout
4296 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4299 \begin_layout Plain Layout
4307 <cell alignment="center" valignment="top" usebox="none">
4310 \begin_layout Plain Layout
4316 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4319 \begin_layout Plain Layout
4327 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4330 \begin_layout Plain Layout
4338 <cell alignment="center" valignment="top" usebox="none">
4341 \begin_layout Plain Layout
4347 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4350 \begin_layout Plain Layout
4358 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4361 \begin_layout Plain Layout
4369 <cell alignment="center" valignment="top" usebox="none">
4372 \begin_layout Plain Layout
4378 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4381 \begin_layout Plain Layout
4389 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4392 \begin_layout Plain Layout
4400 <cell alignment="center" valignment="top" usebox="none">
4403 \begin_layout Plain Layout
4409 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4412 \begin_layout Plain Layout
4420 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4423 \begin_layout Plain Layout
4431 <cell alignment="center" valignment="top" usebox="none">
4434 \begin_layout Plain Layout
4440 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4443 \begin_layout Plain Layout
4451 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4454 \begin_layout Plain Layout
4462 <cell alignment="center" valignment="top" usebox="none">
4465 \begin_layout Plain Layout
4471 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4474 \begin_layout Plain Layout
4482 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4485 \begin_layout Plain Layout
4493 <cell alignment="center" valignment="top" usebox="none">
4496 \begin_layout Plain Layout
4502 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4505 \begin_layout Plain Layout
4513 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4516 \begin_layout Plain Layout
4524 <cell alignment="center" valignment="top" usebox="none">
4527 \begin_layout Plain Layout
4533 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4536 \begin_layout Plain Layout
4544 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4547 \begin_layout Plain Layout
4555 <cell alignment="center" valignment="top" usebox="none">
4558 \begin_layout Plain Layout
4564 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4567 \begin_layout Plain Layout
4575 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4578 \begin_layout Plain Layout
4586 <cell alignment="center" valignment="top" usebox="none">
4589 \begin_layout Plain Layout
4595 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4598 \begin_layout Plain Layout
4606 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4609 \begin_layout Plain Layout
4617 <cell alignment="center" valignment="top" usebox="none">
4620 \begin_layout Plain Layout
4626 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4629 \begin_layout Plain Layout
4637 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4640 \begin_layout Plain Layout
4648 <cell alignment="center" valignment="top" usebox="none">
4651 \begin_layout Plain Layout
4657 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4660 \begin_layout Plain Layout
4668 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4671 \begin_layout Plain Layout
4679 <cell alignment="center" valignment="top" usebox="none">
4682 \begin_layout Plain Layout
4688 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4691 \begin_layout Plain Layout
4699 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4702 \begin_layout Plain Layout
4710 <cell alignment="center" valignment="top" usebox="none">
4713 \begin_layout Plain Layout
4719 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4722 \begin_layout Plain Layout
4730 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4733 \begin_layout Plain Layout
4741 <cell alignment="center" valignment="top" usebox="none">
4744 \begin_layout Plain Layout
4750 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4753 \begin_layout Plain Layout
4761 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4764 \begin_layout Plain Layout
4772 <cell alignment="center" valignment="top" usebox="none">
4775 \begin_layout Plain Layout
4781 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4784 \begin_layout Plain Layout
4792 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4795 \begin_layout Plain Layout
4803 <cell alignment="center" valignment="top" usebox="none">
4806 \begin_layout Plain Layout
4812 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4815 \begin_layout Plain Layout
4823 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4826 \begin_layout Plain Layout
4834 <cell alignment="center" valignment="top" usebox="none">
4837 \begin_layout Plain Layout
4843 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4846 \begin_layout Plain Layout
4854 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4857 \begin_layout Plain Layout
4865 <cell alignment="center" valignment="top" usebox="none">
4868 \begin_layout Plain Layout
4874 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4877 \begin_layout Plain Layout
4885 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4888 \begin_layout Plain Layout
4896 <cell alignment="center" valignment="top" usebox="none">
4899 \begin_layout Plain Layout
4905 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4908 \begin_layout Plain Layout
4916 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4919 \begin_layout Plain Layout
4927 <cell alignment="center" valignment="top" usebox="none">
4930 \begin_layout Plain Layout
4936 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4939 \begin_layout Plain Layout
4947 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4950 \begin_layout Plain Layout
4958 <cell alignment="center" valignment="top" usebox="none">
4961 \begin_layout Plain Layout
4967 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4970 \begin_layout Plain Layout
4978 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4981 \begin_layout Plain Layout
4989 <cell alignment="center" valignment="top" usebox="none">
4992 \begin_layout Plain Layout
4998 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5001 \begin_layout Plain Layout
5009 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5012 \begin_layout Plain Layout
5020 <cell alignment="center" valignment="top" usebox="none">
5023 \begin_layout Plain Layout
5029 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5032 \begin_layout Plain Layout
5040 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5043 \begin_layout Plain Layout
5051 <cell alignment="center" valignment="top" usebox="none">
5054 \begin_layout Plain Layout
5060 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5063 \begin_layout Plain Layout
5071 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5074 \begin_layout Plain Layout
5082 <cell alignment="center" valignment="top" usebox="none">
5085 \begin_layout Plain Layout
5091 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5094 \begin_layout Plain Layout
5102 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5105 \begin_layout Plain Layout
5113 <cell alignment="center" valignment="top" usebox="none">
5116 \begin_layout Plain Layout
5122 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5125 \begin_layout Plain Layout
5133 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5136 \begin_layout Plain Layout
5144 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5147 \begin_layout Plain Layout
5153 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5156 \begin_layout Plain Layout
5163 <row endlastfoot="true">
5164 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5167 \begin_layout Plain Layout
5173 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5176 \begin_layout Plain Layout
5182 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5185 \begin_layout Plain Layout
5200 \begin_layout Plain Layout
5204 addtocounter{table}{-1}
5210 \begin_inset Note Note
5213 \begin_layout Plain Layout
5214 See the first greyed-out note in section
5215 \begin_inset space ~
5219 \begin_inset CommandInset ref
5221 reference "sub:Longtable-Captions"
5225 for an explanation of this command.
5233 \begin_layout Subsection
5234 Footnotes in Longtables
5235 \begin_inset CommandInset label
5237 name "sub:Footnotes-in-Longtables"
5245 \begin_layout Plain Layout
5246 Longtables ! Footnotes
5254 \begin_layout Standard
5255 Footnotes can be inserted to every longtable cell.
5256 They appear at the bottom of the page where the table cell with the footnote
5259 \begin_inset space ~
5263 \begin_inset CommandInset ref
5265 reference "tab:DiffCaptions"
5269 has for example a footnote.
5272 \begin_layout Subsection
5277 \begin_layout Plain Layout
5278 Longtables ! Alignment
5286 \begin_layout Standard
5287 Longtables are by default centered.
5288 Unlike the alignment of the table columns and rows, the table alignment
5289 can currently not be changed in the table dialog.
5290 To change the alignment of longtables you have to change the value of the
5303 by inserting this line as TeX-Code before the corresponding longtable:
5306 \begin_layout Standard
5316 \begin_layout Standard
5317 where the value can have any of the units listed in Table
5318 \begin_inset space ~
5322 \begin_inset CommandInset ref
5324 reference "tab:Units"
5335 controls the horizontal distance from the left page border to the longtable,
5342 the distance from the right side.
5343 The default value for both lengths is
5349 , which is in this case the same as an horizontal fill in LyX.
5352 \begin_layout Standard
5353 The following longtable was left-aligned by setting
5360 \begin_inset space \thinspace{}
5367 \begin_layout Plain Layout
5381 \begin_layout Standard
5382 \begin_inset Tabular
5383 <lyxtabular version="3" rows="5" columns="5">
5384 <features islongtable="true">
5385 <column alignment="center" valignment="top" width="0">
5386 <column alignment="center" valignment="top" width="0">
5387 <column alignment="center" valignment="top" width="0">
5388 <column alignment="center" valignment="top" width="0">
5389 <column alignment="center" valignment="top" width="0">
5391 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5394 \begin_layout Plain Layout
5400 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5403 \begin_layout Plain Layout
5409 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5412 \begin_layout Plain Layout
5418 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5421 \begin_layout Plain Layout
5427 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5430 \begin_layout Plain Layout
5438 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5441 \begin_layout Plain Layout
5447 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5450 \begin_layout Plain Layout
5456 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5459 \begin_layout Plain Layout
5465 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5468 \begin_layout Plain Layout
5474 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5477 \begin_layout Plain Layout
5485 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5488 \begin_layout Plain Layout
5494 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5497 \begin_layout Plain Layout
5503 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5506 \begin_layout Plain Layout
5512 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5515 \begin_layout Plain Layout
5521 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5524 \begin_layout Plain Layout
5532 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5535 \begin_layout Plain Layout
5541 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5544 \begin_layout Plain Layout
5550 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5553 \begin_layout Plain Layout
5559 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5562 \begin_layout Plain Layout
5568 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5571 \begin_layout Plain Layout
5579 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5582 \begin_layout Plain Layout
5588 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5591 \begin_layout Plain Layout
5597 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5600 \begin_layout Plain Layout
5606 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5609 \begin_layout Plain Layout
5615 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5618 \begin_layout Plain Layout
5633 \begin_layout Plain Layout
5650 \begin_layout Plain Layout
5654 addtocounter{table}{-1}
5660 \begin_inset Note Note
5663 \begin_layout Plain Layout
5664 See the first greyed-out note in section
5665 \begin_inset space ~
5669 \begin_inset CommandInset ref
5671 reference "sub:Longtable-Captions"
5675 for an explanation of this command.
5683 \begin_layout Subsection
5688 \begin_layout Plain Layout
5689 Longtables ! Captions
5695 \begin_inset CommandInset label
5697 name "sub:Longtable-Captions"
5704 \begin_layout Standard
5705 A longtable cannot be put into a table float because floats can only be
5707 But the caption environment of floats can also be used for longtables when
5708 you use the longtable option
5712 as described in sec.
5713 \begin_inset space \thinspace{}
5717 \begin_inset CommandInset ref
5719 reference "sec:Longtables"
5724 Only one table row can contain the caption.
5727 \begin_layout Standard
5728 Here is a short longtable to see how it works:
5731 \begin_layout Standard
5732 \begin_inset Tabular
5733 <lyxtabular version="3" rows="6" columns="5">
5734 <features islongtable="true">
5735 <column alignment="center" valignment="top" width="0">
5736 <column alignment="center" valignment="top" width="0">
5737 <column alignment="center" valignment="top" width="0">
5738 <column alignment="center" valignment="top" width="0">
5739 <column alignment="center" valignment="top" width="0">
5740 <row caption="true">
5741 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
5744 \begin_layout Plain Layout
5745 \begin_inset Caption
5747 \begin_layout Plain Layout
5748 Longtable with caption
5752 \begin_layout Plain Layout
5768 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5771 \begin_layout Plain Layout
5777 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5780 \begin_layout Plain Layout
5786 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5789 \begin_layout Plain Layout
5795 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5798 \begin_layout Plain Layout
5806 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5809 \begin_layout Plain Layout
5815 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5818 \begin_layout Plain Layout
5824 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5827 \begin_layout Plain Layout
5833 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5836 \begin_layout Plain Layout
5842 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5845 \begin_layout Plain Layout
5853 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5856 \begin_layout Plain Layout
5862 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5865 \begin_layout Plain Layout
5871 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5874 \begin_layout Plain Layout
5880 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5883 \begin_layout Plain Layout
5889 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5892 \begin_layout Plain Layout
5900 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5903 \begin_layout Plain Layout
5909 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5912 \begin_layout Plain Layout
5918 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5921 \begin_layout Plain Layout
5927 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5930 \begin_layout Plain Layout
5936 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5939 \begin_layout Plain Layout
5947 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5950 \begin_layout Plain Layout
5956 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5959 \begin_layout Plain Layout
5965 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5968 \begin_layout Plain Layout
5974 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5977 \begin_layout Plain Layout
5983 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5986 \begin_layout Plain Layout
5994 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5997 \begin_layout Plain Layout
6003 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6006 \begin_layout Plain Layout
6012 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6015 \begin_layout Plain Layout
6021 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6024 \begin_layout Plain Layout
6030 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6033 \begin_layout Plain Layout
6047 \begin_layout Standard
6048 \begin_inset VSpace medskip
6052 \begin_inset Note Greyedout
6055 \begin_layout Plain Layout
6059 \begin_inset space ~
6064 The table number is increased for for every longtable, even if you did
6065 not set a caption for it.
6066 For this reason you could have the case that e.
6067 \begin_inset space \thinspace{}
6071 \begin_inset space \space{}
6075 \begin_inset space ~
6079 \begin_inset space ~
6082 2.1 in the list of tables if there are two longtables without captions.
6083 To avoid this you can add the following command in TeX-Code after every
6084 longtable without a caption:
6087 \begin_layout Plain Layout
6092 addtocounter{table}{-1}
6095 \begin_layout Plain Layout
6096 This is not needed when none of your longtables have a caption and you add
6097 the following code to the document preamble:
6100 \begin_layout Plain Layout
6110 \begin_inset Newline newline
6121 addtocounter{table}{-1}}
6129 \begin_layout Standard
6130 \begin_inset Note Greyedout
6133 \begin_layout Plain Layout
6137 \begin_inset space ~
6150 \begin_layout Plain Layout
6151 LaTeX-packages ! hyperref
6164 dialog to link cross-references, the link to a longtable caption will always
6165 point to the beginning of the document.
6173 \begin_layout Subsubsection
6174 References to Longtables
6178 \begin_layout Plain Layout
6179 Longtables ! References
6187 \begin_layout Standard
6188 \begin_inset Tabular
6189 <lyxtabular version="3" rows="6" columns="5">
6190 <features islongtable="true">
6191 <column alignment="center" valignment="top" width="0">
6192 <column alignment="center" valignment="top" width="0">
6193 <column alignment="center" valignment="top" width="0">
6194 <column alignment="center" valignment="top" width="0">
6195 <column alignment="center" valignment="top" width="0">
6196 <row caption="true">
6197 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6200 \begin_layout Plain Layout
6201 \begin_inset Caption
6203 \begin_layout Plain Layout
6204 Referenced longtable
6205 \begin_inset CommandInset label
6207 name "tab:RefExample"
6221 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6224 \begin_layout Plain Layout
6230 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6233 \begin_layout Plain Layout
6239 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6242 \begin_layout Plain Layout
6248 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6251 \begin_layout Plain Layout
6259 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6262 \begin_layout Plain Layout
6268 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6271 \begin_layout Plain Layout
6277 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6280 \begin_layout Plain Layout
6286 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6289 \begin_layout Plain Layout
6295 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6298 \begin_layout Plain Layout
6306 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6309 \begin_layout Plain Layout
6315 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6318 \begin_layout Plain Layout
6324 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6327 \begin_layout Plain Layout
6333 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6336 \begin_layout Plain Layout
6342 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6345 \begin_layout Plain Layout
6353 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6356 \begin_layout Plain Layout
6362 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6365 \begin_layout Plain Layout
6371 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6374 \begin_layout Plain Layout
6380 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6383 \begin_layout Plain Layout
6389 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6392 \begin_layout Plain Layout
6400 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6403 \begin_layout Plain Layout
6409 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6412 \begin_layout Plain Layout
6418 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6421 \begin_layout Plain Layout
6427 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6430 \begin_layout Plain Layout
6436 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6439 \begin_layout Plain Layout
6447 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6450 \begin_layout Plain Layout
6456 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6459 \begin_layout Plain Layout
6465 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6468 \begin_layout Plain Layout
6474 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6477 \begin_layout Plain Layout
6483 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6486 \begin_layout Plain Layout
6500 \begin_layout Standard
6501 To reference a longtable, insert a label into the caption.
6504 \begin_layout Standard
6505 This is a reference to Table
6506 \begin_inset space ~
6510 \begin_inset CommandInset ref
6512 reference "tab:RefExample"
6519 \begin_layout Standard
6520 The caption layout can be set together with all other captions of your document
6521 using the LaTeX-package
6529 \begin_layout Plain Layout
6530 LaTeX-packages ! caption
6536 \begin_inset space ~
6540 \begin_inset CommandInset ref
6542 reference "sec:Caption-Formatting"
6549 \begin_layout Subsubsection
6554 \begin_layout Plain Layout
6555 Longtables ! Caption Width
6563 \begin_layout Standard
6564 The maximal width of of caption lines is defined by the length
6571 Its default value is 4
6572 \begin_inset space \thinspace{}
6576 To change it add the following command to your document preamble or as
6577 TeX-Code into your document before the longtable that should be affected
6580 \begin_layout Standard
6590 \begin_layout Standard
6591 where the width could have one of the units listed in appendix
6592 \begin_inset space ~
6596 \begin_inset CommandInset ref
6598 reference "cha:Units-available-in"
6605 \begin_layout Standard
6606 The following tables show the difference:
6609 \begin_layout Standard
6610 \begin_inset Tabular
6611 <lyxtabular version="3" rows="6" columns="5">
6612 <features islongtable="true">
6613 <column alignment="center" valignment="top" width="0">
6614 <column alignment="center" valignment="top" width="0">
6615 <column alignment="center" valignment="top" width="0">
6616 <column alignment="center" valignment="top" width="0">
6617 <column alignment="center" valignment="top" width="0">
6618 <row caption="true">
6619 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6622 \begin_layout Plain Layout
6623 \begin_inset Caption
6625 \begin_layout Plain Layout
6626 long full title with default width long full title with default width long
6627 full title with default width
6631 \begin_layout Plain Layout
6632 caption with default width
6647 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6650 \begin_layout Plain Layout
6656 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6659 \begin_layout Plain Layout
6665 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6668 \begin_layout Plain Layout
6674 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6677 \begin_layout Plain Layout
6685 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6688 \begin_layout Plain Layout
6694 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6697 \begin_layout Plain Layout
6703 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6706 \begin_layout Plain Layout
6712 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6715 \begin_layout Plain Layout
6721 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6724 \begin_layout Plain Layout
6732 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6735 \begin_layout Plain Layout
6741 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6744 \begin_layout Plain Layout
6750 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6753 \begin_layout Plain Layout
6759 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6762 \begin_layout Plain Layout
6768 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6771 \begin_layout Plain Layout
6779 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6782 \begin_layout Plain Layout
6788 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6791 \begin_layout Plain Layout
6797 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6800 \begin_layout Plain Layout
6806 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6809 \begin_layout Plain Layout
6815 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6818 \begin_layout Plain Layout
6826 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6829 \begin_layout Plain Layout
6835 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6838 \begin_layout Plain Layout
6844 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6847 \begin_layout Plain Layout
6853 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6856 \begin_layout Plain Layout
6862 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6865 \begin_layout Plain Layout
6873 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6876 \begin_layout Plain Layout
6882 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6885 \begin_layout Plain Layout
6891 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6894 \begin_layout Plain Layout
6900 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6903 \begin_layout Plain Layout
6909 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6912 \begin_layout Plain Layout
6926 \begin_layout Standard
6930 \begin_layout Plain Layout
6942 \begin_inset Tabular
6943 <lyxtabular version="3" rows="6" columns="5">
6944 <features islongtable="true">
6945 <column alignment="center" valignment="top" width="0">
6946 <column alignment="center" valignment="top" width="0">
6947 <column alignment="center" valignment="top" width="0">
6948 <column alignment="center" valignment="top" width="0">
6949 <column alignment="center" valignment="top" width="0">
6950 <row caption="true">
6951 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6954 \begin_layout Plain Layout
6955 \begin_inset Caption
6957 \begin_layout Plain Layout
6958 long full title with width set to 5
6959 \begin_inset space \thinspace{}
6962 cm long full title with width set to 5
6963 \begin_inset space \thinspace{}
6966 cm long full title with width set to 5
6967 \begin_inset space \thinspace{}
6974 \begin_layout Plain Layout
6976 \begin_inset space \thinspace{}
6980 \begin_inset space \thinspace{}
6984 \begin_inset space \thinspace{}
7002 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7005 \begin_layout Plain Layout
7011 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7014 \begin_layout Plain Layout
7020 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7023 \begin_layout Plain Layout
7029 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7032 \begin_layout Plain Layout
7040 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7043 \begin_layout Plain Layout
7049 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7052 \begin_layout Plain Layout
7058 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7061 \begin_layout Plain Layout
7067 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7070 \begin_layout Plain Layout
7076 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7079 \begin_layout Plain Layout
7087 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7090 \begin_layout Plain Layout
7096 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7099 \begin_layout Plain Layout
7105 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7108 \begin_layout Plain Layout
7114 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7117 \begin_layout Plain Layout
7123 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7126 \begin_layout Plain Layout
7134 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7137 \begin_layout Plain Layout
7143 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7146 \begin_layout Plain Layout
7152 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7155 \begin_layout Plain Layout
7161 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7164 \begin_layout Plain Layout
7170 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7173 \begin_layout Plain Layout
7181 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7184 \begin_layout Plain Layout
7190 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7193 \begin_layout Plain Layout
7199 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7202 \begin_layout Plain Layout
7208 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7211 \begin_layout Plain Layout
7217 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7220 \begin_layout Plain Layout
7228 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7231 \begin_layout Plain Layout
7237 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7240 \begin_layout Plain Layout
7246 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7249 \begin_layout Plain Layout
7255 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7258 \begin_layout Plain Layout
7264 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7267 \begin_layout Plain Layout
7281 \begin_layout Standard
7285 \begin_layout Plain Layout
7299 \begin_layout Standard
7300 \begin_inset Note Greyedout
7303 \begin_layout Plain Layout
7308 When the LaTeX-package
7316 \begin_layout Plain Layout
7317 LaTeX-packages ! caption
7322 is used, as in this document, the full page width is used for the caption
7323 when you use the default value of 4
7324 \begin_inset space \thinspace{}
7334 To get in this case exactly a 4
7335 \begin_inset space \thinspace{}
7338 in wide caption, you can either use a value slightly different from 4.0
7339 \begin_inset space \thinspace{}
7343 \begin_inset space \thinspace{}
7347 \begin_inset space \space{}
7351 \begin_inset space \thinspace{}
7354 in, or the LaTeX-command
7358 captionsetup{width=value}
7360 that is provided by the
7372 \begin_layout Subsubsection
7373 Different Captions for Table Pages
7377 \begin_layout Plain Layout
7378 Longtables ! Different Captions for Pages
7386 \begin_layout Standard
7387 When the table captions for the following pages should differ from the one
7388 of the first table page, insert a caption with the TeX code command
7391 \begin_layout Standard
7396 caption*{caption text}
7403 \begin_layout Standard
7404 in a dummy caption row that is marked as a header.
7406 \begin_inset space ~
7410 \begin_inset CommandInset ref
7412 reference "tab:DiffCaptions"
7416 is an example of a longtable with different heading where the second caption
7417 doesn't include the table number.
7420 \begin_layout Standard
7422 \begin_inset Tabular
7423 <lyxtabular version="3" rows="59" columns="3">
7424 <features islongtable="true" lastFootEmpty="true">
7425 <column alignment="left" valignment="top" width="0cm">
7426 <column alignment="left" valignment="top" width="0pt">
7427 <column alignment="center" valignment="top" width="0pt">
7428 <row caption="true">
7429 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7432 \begin_layout Plain Layout
7433 \begin_inset Caption
7435 \begin_layout Plain Layout
7437 \begin_inset CommandInset label
7439 name "tab:DiffCaptions"
7447 \begin_layout Plain Layout
7463 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7466 \begin_layout Plain Layout
7472 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7475 \begin_layout Plain Layout
7482 <row endfirsthead="true">
7483 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7486 \begin_layout Plain Layout
7489 Example Phone List (ignore the names)
7494 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7497 \begin_layout Plain Layout
7503 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7506 \begin_layout Plain Layout
7513 <row endfirsthead="true">
7514 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7517 \begin_layout Plain Layout
7525 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7528 \begin_layout Plain Layout
7534 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7537 \begin_layout Plain Layout
7546 <row endhead="true">
7547 <cell alignment="left" valignment="top" leftline="true" usebox="none">
7550 \begin_layout Plain Layout
7554 \begin_layout Plain Layout
7558 caption*{Continued Example Phone List}
7572 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7575 \begin_layout Plain Layout
7581 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7584 \begin_layout Plain Layout
7591 <row endhead="true">
7592 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7595 \begin_layout Plain Layout
7603 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7606 \begin_layout Plain Layout
7612 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7615 \begin_layout Plain Layout
7622 <row endhead="true">
7623 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7626 \begin_layout Plain Layout
7634 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7637 \begin_layout Plain Layout
7643 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7646 \begin_layout Plain Layout
7655 <row endfoot="true">
7656 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
7659 \begin_layout Plain Layout
7660 continued on next page
7665 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7668 \begin_layout Plain Layout
7674 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7677 \begin_layout Plain Layout
7685 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7688 \begin_layout Plain Layout
7696 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7699 \begin_layout Plain Layout
7705 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
7708 \begin_layout Plain Layout
7716 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7719 \begin_layout Plain Layout
7727 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7730 \begin_layout Plain Layout
7736 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7739 \begin_layout Plain Layout
7747 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7750 \begin_layout Plain Layout
7758 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7761 \begin_layout Plain Layout
7767 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7770 \begin_layout Plain Layout
7778 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7781 \begin_layout Plain Layout
7789 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7792 \begin_layout Plain Layout
7798 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7801 \begin_layout Plain Layout
7809 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7812 \begin_layout Plain Layout
7820 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7823 \begin_layout Plain Layout
7829 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7832 \begin_layout Plain Layout
7840 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7843 \begin_layout Plain Layout
7851 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7854 \begin_layout Plain Layout
7860 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7863 \begin_layout Plain Layout
7871 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7874 \begin_layout Plain Layout
7882 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7885 \begin_layout Plain Layout
7891 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7894 \begin_layout Plain Layout
7902 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7905 \begin_layout Plain Layout
7913 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7916 \begin_layout Plain Layout
7922 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7925 \begin_layout Plain Layout
7933 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7936 \begin_layout Plain Layout
7944 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7947 \begin_layout Plain Layout
7953 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7956 \begin_layout Plain Layout
7964 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7967 \begin_layout Plain Layout
7975 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7978 \begin_layout Plain Layout
7984 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7987 \begin_layout Plain Layout
7995 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7998 \begin_layout Plain Layout
8006 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8009 \begin_layout Plain Layout
8015 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8018 \begin_layout Plain Layout
8026 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8029 \begin_layout Plain Layout
8037 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8040 \begin_layout Plain Layout
8046 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8049 \begin_layout Plain Layout
8057 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8060 \begin_layout Plain Layout
8068 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8071 \begin_layout Plain Layout
8077 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8080 \begin_layout Plain Layout
8088 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8091 \begin_layout Plain Layout
8099 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8102 \begin_layout Plain Layout
8108 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8111 \begin_layout Plain Layout
8119 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8122 \begin_layout Plain Layout
8131 \begin_layout Plain Layout
8142 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8145 \begin_layout Plain Layout
8151 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8154 \begin_layout Plain Layout
8162 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8165 \begin_layout Plain Layout
8173 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8176 \begin_layout Plain Layout
8182 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8185 \begin_layout Plain Layout
8193 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8196 \begin_layout Plain Layout
8204 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8207 \begin_layout Plain Layout
8213 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8216 \begin_layout Plain Layout
8224 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8227 \begin_layout Plain Layout
8235 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8238 \begin_layout Plain Layout
8244 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8247 \begin_layout Plain Layout
8255 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8258 \begin_layout Plain Layout
8266 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8269 \begin_layout Plain Layout
8275 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8278 \begin_layout Plain Layout
8286 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8289 \begin_layout Plain Layout
8297 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8300 \begin_layout Plain Layout
8306 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8309 \begin_layout Plain Layout
8317 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8320 \begin_layout Plain Layout
8328 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8331 \begin_layout Plain Layout
8337 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8340 \begin_layout Plain Layout
8348 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8351 \begin_layout Plain Layout
8359 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8362 \begin_layout Plain Layout
8368 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8371 \begin_layout Plain Layout
8379 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8382 \begin_layout Plain Layout
8390 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8393 \begin_layout Plain Layout
8399 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8402 \begin_layout Plain Layout
8410 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8413 \begin_layout Plain Layout
8421 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8424 \begin_layout Plain Layout
8430 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8433 \begin_layout Plain Layout
8441 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8444 \begin_layout Plain Layout
8452 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8455 \begin_layout Plain Layout
8461 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8464 \begin_layout Plain Layout
8472 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8475 \begin_layout Plain Layout
8483 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8486 \begin_layout Plain Layout
8492 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8495 \begin_layout Plain Layout
8503 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8506 \begin_layout Plain Layout
8514 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8517 \begin_layout Plain Layout
8523 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8526 \begin_layout Plain Layout
8534 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8537 \begin_layout Plain Layout
8545 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8548 \begin_layout Plain Layout
8554 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8557 \begin_layout Plain Layout
8565 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8568 \begin_layout Plain Layout
8576 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8579 \begin_layout Plain Layout
8585 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8588 \begin_layout Plain Layout
8596 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8599 \begin_layout Plain Layout
8607 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8610 \begin_layout Plain Layout
8616 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8619 \begin_layout Plain Layout
8627 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8630 \begin_layout Plain Layout
8638 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8641 \begin_layout Plain Layout
8647 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8650 \begin_layout Plain Layout
8658 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8661 \begin_layout Plain Layout
8667 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8670 \begin_layout Plain Layout
8676 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8679 \begin_layout Plain Layout
8687 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8690 \begin_layout Plain Layout
8698 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8701 \begin_layout Plain Layout
8707 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8710 \begin_layout Plain Layout
8718 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8721 \begin_layout Plain Layout
8729 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8732 \begin_layout Plain Layout
8738 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8741 \begin_layout Plain Layout
8749 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8752 \begin_layout Plain Layout
8760 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8763 \begin_layout Plain Layout
8769 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8772 \begin_layout Plain Layout
8780 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8783 \begin_layout Plain Layout
8791 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8794 \begin_layout Plain Layout
8800 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8803 \begin_layout Plain Layout
8811 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8814 \begin_layout Plain Layout
8822 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8825 \begin_layout Plain Layout
8831 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8834 \begin_layout Plain Layout
8842 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8845 \begin_layout Plain Layout
8853 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8856 \begin_layout Plain Layout
8862 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8865 \begin_layout Plain Layout
8873 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8876 \begin_layout Plain Layout
8884 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8887 \begin_layout Plain Layout
8893 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8896 \begin_layout Plain Layout
8904 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8907 \begin_layout Plain Layout
8915 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8918 \begin_layout Plain Layout
8924 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8927 \begin_layout Plain Layout
8935 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8938 \begin_layout Plain Layout
8946 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8949 \begin_layout Plain Layout
8955 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8958 \begin_layout Plain Layout
8966 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8969 \begin_layout Plain Layout
8977 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8980 \begin_layout Plain Layout
8986 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8989 \begin_layout Plain Layout
8997 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9000 \begin_layout Plain Layout
9008 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9011 \begin_layout Plain Layout
9017 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9020 \begin_layout Plain Layout
9028 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9031 \begin_layout Plain Layout
9039 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9042 \begin_layout Plain Layout
9048 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9051 \begin_layout Plain Layout
9059 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9062 \begin_layout Plain Layout
9070 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9073 \begin_layout Plain Layout
9079 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9082 \begin_layout Plain Layout
9090 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9093 \begin_layout Plain Layout
9101 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9104 \begin_layout Plain Layout
9110 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9113 \begin_layout Plain Layout
9121 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9124 \begin_layout Plain Layout
9132 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9135 \begin_layout Plain Layout
9141 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9144 \begin_layout Plain Layout
9152 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9155 \begin_layout Plain Layout
9163 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9166 \begin_layout Plain Layout
9172 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9175 \begin_layout Plain Layout
9183 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9186 \begin_layout Plain Layout
9194 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9197 \begin_layout Plain Layout
9203 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9206 \begin_layout Plain Layout
9214 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9217 \begin_layout Plain Layout
9225 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9228 \begin_layout Plain Layout
9234 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9237 \begin_layout Plain Layout
9245 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9248 \begin_layout Plain Layout
9256 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9259 \begin_layout Plain Layout
9265 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9268 \begin_layout Plain Layout
9276 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9279 \begin_layout Plain Layout
9287 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9290 \begin_layout Plain Layout
9296 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9299 \begin_layout Plain Layout
9313 \begin_layout Section
9314 Special Longtable Issues
9315 \begin_inset CommandInset label
9317 name "sec:Special-Longtable-Issues"
9324 \begin_layout Subsection
9325 Longtable Calculation
9329 \begin_layout Plain Layout
9330 Longtables ! Calculation
9338 \begin_layout Standard
9339 LaTeX calculates the height of table pages and their page breaks using so
9341 Chunks are parts of tables that held at the same time in LaTeX's memory.
9342 The default value was historically set to only 20 table rows.
9343 If you are using longtables with many pages this may slow down the creation
9345 You can safely increase the chunk size to values of 100-1000 by adding
9346 this command line to your document preamble:
9349 \begin_layout Standard
9354 setcounter{LTchunksize}{100}
9357 \begin_layout Subsection
9358 Floats and Longtables
9362 \begin_layout Plain Layout
9371 \begin_layout Standard
9372 There might be problems when a float appears on the same page where a longtable
9374 To avoid such a situation, insert a
9375 \begin_inset Quotes eld
9379 \begin_inset Quotes erd
9384 Insert\SpecialChar \menuseparator
9385 Formatting\SpecialChar \menuseparator
9387 \begin_inset space ~
9392 ) before your longtable.
9395 \begin_layout Subsection
9400 \begin_layout Plain Layout
9401 Longtables ! Forced Page Breaks
9409 \begin_layout Standard
9410 By default tables are only broken between rows.
9411 If you have a cell with multiples lines and want to have a page break within
9412 the cell, insert the new line command
9413 \begin_inset Quotes eld
9425 \begin_inset Quotes erd
9428 as TeX-Code at the point of the cell where it can be broken.
9437 command you have to insert in TeX-Code as many
9438 \begin_inset Quotes eld
9446 \begin_inset Quotes erd
9449 characters as the number of the following table columns.
9454 is the character to separate table cells.
9455 Write in TeX-Code after each
9459 the content of the corresponding following cell and delete the content
9461 \begin_inset Newline newline
9472 command, insert as many
9476 characters as the number of table columns before the current column.
9478 \begin_inset space ~
9482 \begin_inset CommandInset ref
9484 reference "tab:ForcedPagebreak"
9488 the cell that should be broken is in the second column followed by another
9490 Therefore the following command was inserted in the cell as TeX-Code after
9492 \begin_inset Quotes eld
9500 \begin_inset Quotes erd
9506 \begin_layout Standard
9516 \begin_inset Newline newline
9522 \begin_layout Standard
9524 \begin_inset Quotes eld
9528 \begin_inset Quotes erd
9531 in the third column of the row was deleted.
9538 is only needed when a page break should definitely occur at this position,
9539 otherwise it would be a conditional break.
9540 If your footer row of the longtable has for a certain reason no upper line
9541 but you would have a horizontal line where the cell is broken, use this
9545 \begin_layout Standard
9553 \begin_inset Newline newline
9561 \begin_layout Standard
9562 When the cell to be broken is in the last column, the command
9565 \begin_layout Standard
9575 \begin_layout Standard
9576 must be inserted as TeX-Code at the beginning of the cell.
9577 This ensures that the part of the cell that will be displayed on the new
9578 page appears with the full width.
9581 \begin_layout Standard
9583 \begin_inset Tabular
9584 <lyxtabular version="3" rows="38" columns="3">
9585 <features islongtable="true" lastFootEmpty="true">
9586 <column alignment="left" valignment="top" width="0cm">
9587 <column alignment="left" valignment="top" width="3cm">
9588 <column alignment="center" valignment="top" width="0pt">
9589 <row caption="true">
9590 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9593 \begin_layout Plain Layout
9594 \begin_inset Caption
9596 \begin_layout Plain Layout
9597 Table with forced page break in table cell
9598 \begin_inset CommandInset label
9600 name "tab:ForcedPagebreak"
9608 \begin_layout Plain Layout
9609 Table with forced page break in table cell
9624 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9627 \begin_layout Plain Layout
9633 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9636 \begin_layout Plain Layout
9643 <row endfirsthead="true">
9644 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9647 \begin_layout Plain Layout
9650 Example Phone List (ignore the names)
9655 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9658 \begin_layout Plain Layout
9664 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9667 \begin_layout Plain Layout
9674 <row endfirsthead="true">
9675 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9678 \begin_layout Plain Layout
9686 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9689 \begin_layout Plain Layout
9695 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9698 \begin_layout Plain Layout
9707 <row endhead="true">
9708 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9711 \begin_layout Plain Layout
9715 \begin_layout Plain Layout
9719 caption*{Continued Example Phone List}
9733 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9736 \begin_layout Plain Layout
9742 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9745 \begin_layout Plain Layout
9752 <row endhead="true">
9753 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9756 \begin_layout Plain Layout
9764 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9767 \begin_layout Plain Layout
9773 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9776 \begin_layout Plain Layout
9783 <row endhead="true">
9784 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9787 \begin_layout Plain Layout
9795 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9798 \begin_layout Plain Layout
9804 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9807 \begin_layout Plain Layout
9816 <row endfoot="true">
9817 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
9820 \begin_layout Plain Layout
9821 continued on next page
9826 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9829 \begin_layout Plain Layout
9835 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9838 \begin_layout Plain Layout
9846 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9849 \begin_layout Plain Layout
9857 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9860 \begin_layout Plain Layout
9866 <cell alignment="right" valignment="top" rightline="true" usebox="none">
9869 \begin_layout Plain Layout
9877 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9880 \begin_layout Plain Layout
9888 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9891 \begin_layout Plain Layout
9897 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9900 \begin_layout Plain Layout
9908 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9911 \begin_layout Plain Layout
9919 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9922 \begin_layout Plain Layout
9928 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9931 \begin_layout Plain Layout
9939 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9942 \begin_layout Plain Layout
9950 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9953 \begin_layout Plain Layout
9959 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9962 \begin_layout Plain Layout
9970 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9973 \begin_layout Plain Layout
9981 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9984 \begin_layout Plain Layout
9990 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9993 \begin_layout Plain Layout
10001 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10004 \begin_layout Plain Layout
10012 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10015 \begin_layout Plain Layout
10021 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10024 \begin_layout Plain Layout
10032 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10035 \begin_layout Plain Layout
10043 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10046 \begin_layout Plain Layout
10052 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10055 \begin_layout Plain Layout
10063 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10066 \begin_layout Plain Layout
10074 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10077 \begin_layout Plain Layout
10083 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10086 \begin_layout Plain Layout
10094 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10097 \begin_layout Plain Layout
10105 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10108 \begin_layout Plain Layout
10114 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10117 \begin_layout Plain Layout
10125 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10128 \begin_layout Plain Layout
10136 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10139 \begin_layout Plain Layout
10145 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10148 \begin_layout Plain Layout
10156 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10159 \begin_layout Plain Layout
10167 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10170 \begin_layout Plain Layout
10176 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10179 \begin_layout Plain Layout
10187 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10190 \begin_layout Plain Layout
10198 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10201 \begin_layout Plain Layout
10207 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10210 \begin_layout Plain Layout
10218 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10221 \begin_layout Plain Layout
10229 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10232 \begin_layout Plain Layout
10238 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10241 \begin_layout Plain Layout
10249 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10252 \begin_layout Plain Layout
10260 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10263 \begin_layout Plain Layout
10269 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10272 \begin_layout Plain Layout
10280 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10283 \begin_layout Plain Layout
10291 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10294 \begin_layout Plain Layout
10300 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10303 \begin_layout Plain Layout
10311 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10314 \begin_layout Plain Layout
10322 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10325 \begin_layout Plain Layout
10331 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10334 \begin_layout Plain Layout
10342 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10345 \begin_layout Plain Layout
10353 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10356 \begin_layout Plain Layout
10362 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10365 \begin_layout Plain Layout
10373 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10376 \begin_layout Plain Layout
10384 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10387 \begin_layout Plain Layout
10393 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10396 \begin_layout Plain Layout
10404 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10407 \begin_layout Plain Layout
10415 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10418 \begin_layout Plain Layout
10424 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10427 \begin_layout Plain Layout
10435 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10438 \begin_layout Plain Layout
10446 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10449 \begin_layout Plain Layout
10455 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10458 \begin_layout Plain Layout
10466 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10469 \begin_layout Plain Layout
10477 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10480 \begin_layout Plain Layout
10486 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10489 \begin_layout Plain Layout
10497 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10500 \begin_layout Plain Layout
10508 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10511 \begin_layout Plain Layout
10517 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10520 \begin_layout Plain Layout
10528 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10531 \begin_layout Plain Layout
10539 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10542 \begin_layout Plain Layout
10544 Fürst von Montecompatri, 11.
10545 Fürst von Sulmona und Vivaro, 10.
10546 Fürst von Rossano, 5.
10547 Herzog von Canemorte, 11.
10548 Herzog von Palombara, 5.
10549 Herzog von Castelchiodato,
10553 \begin_layout Plain Layout
10564 \begin_layout Plain Layout
10572 Herzog von Poggionativo, 11.
10573 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10574 Graf von Valinfreda, 11.
10575 Baron von Cropalati, 11.
10576 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10581 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10584 \begin_layout Plain Layout
10592 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10595 \begin_layout Plain Layout
10603 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10606 \begin_layout Plain Layout
10612 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10615 \begin_layout Plain Layout
10623 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10626 \begin_layout Plain Layout
10634 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10637 \begin_layout Plain Layout
10643 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10646 \begin_layout Plain Layout
10654 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10657 \begin_layout Plain Layout
10665 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10668 \begin_layout Plain Layout
10674 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10677 \begin_layout Plain Layout
10685 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10688 \begin_layout Plain Layout
10696 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10699 \begin_layout Plain Layout
10705 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10708 \begin_layout Plain Layout
10716 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10719 \begin_layout Plain Layout
10727 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10730 \begin_layout Plain Layout
10736 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10739 \begin_layout Plain Layout
10747 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10750 \begin_layout Plain Layout
10758 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10761 \begin_layout Plain Layout
10767 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10770 \begin_layout Plain Layout
10778 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10781 \begin_layout Plain Layout
10789 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10792 \begin_layout Plain Layout
10798 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10801 \begin_layout Plain Layout
10809 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10812 \begin_layout Plain Layout
10820 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
10823 \begin_layout Plain Layout
10829 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
10832 \begin_layout Plain Layout
10846 \begin_layout Section
10847 Multiple Lines Columns and Rows
10850 \begin_layout Subsection
10851 Multiple Lines in Table Cells
10852 \begin_inset CommandInset label
10854 name "sub:Multiple-Lines-in"
10862 \begin_layout Plain Layout
10863 Multiple Lines in Table Cells
10872 \begin_layout Plain Layout
10881 \begin_layout Standard
10883 \begin_inset Float table
10889 \begin_layout Plain Layout
10890 \begin_inset Caption
10892 \begin_layout Plain Layout
10893 \begin_inset CommandInset label
10895 name "tab:Table-with-multiple"
10899 Table with multiple lines in cells
10907 \begin_layout Plain Layout
10909 \begin_inset Tabular
10910 <lyxtabular version="3" rows="3" columns="3">
10912 <column alignment="center" valignment="middle" width="2.5cm">
10913 <column alignment="center" valignment="middle" width="0">
10914 <column alignment="center" valignment="middle" width="0">
10916 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10919 \begin_layout Plain Layout
10921 \begin_inset Newline linebreak
10929 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10932 \begin_layout Plain Layout
10938 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10941 \begin_layout Plain Layout
10949 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10952 \begin_layout Plain Layout
10958 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10961 \begin_layout Plain Layout
10967 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10970 \begin_layout Plain Layout
10978 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10981 \begin_layout Plain Layout
10987 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10990 \begin_layout Plain Layout
10996 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10999 \begin_layout Plain Layout
11018 \begin_layout Standard
11019 Setting a fixed width for a column enables you to enter text as a paragraph
11020 with multiple lines and hyphenation.
11023 \begin_layout Standard
11025 \begin_inset space ~
11029 \begin_inset CommandInset ref
11031 reference "tab:Table-with-multiple"
11035 , create a 3×3 table, mark the first cell and right-click on it.
11036 In the appearing table dialog we set a cell width of 2.5
11037 \begin_inset space \thinspace{}
11040 cm and choose centered for the vertical and horizontal alignment.
11041 The vertical alignment is used for all cells of the row.
11042 As our text is smaller than 2.5
11043 \begin_inset space \thinspace{}
11046 cm, only one line will appear.
11047 To get two lines, a justified line break (shortcut
11050 arg "newline-insert linebreak"
11054 If the text is wider than the set cell width, it will automatically be
11055 broken to several lines.
11058 \begin_layout Standard
11059 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11060 by LaTeX if it is the first entry.
11061 Therefore you need to insert something to prevent the word not being the
11063 So add a horizontal space of 0
11064 \begin_inset space \thinspace{}
11067 pt before the word.
11068 As the space is zero, it doesn't change the output.
11070 \begin_inset space ~
11074 \begin_inset CommandInset ref
11076 reference "tab:Table-with-and"
11083 \begin_layout Standard
11084 \begin_inset Float table
11090 \begin_layout Plain Layout
11091 \begin_inset Caption
11093 \begin_layout Plain Layout
11094 \begin_inset CommandInset label
11096 name "tab:Table-with-and"
11100 Table with and without hyphenation
11108 \begin_layout Plain Layout
11109 \begin_inset space \hfill{}
11113 \begin_inset Tabular
11114 <lyxtabular version="3" rows="3" columns="3">
11116 <column alignment="center" valignment="middle" width="2.5cm">
11117 <column alignment="center" valignment="middle" width="0">
11118 <column alignment="center" valignment="middle" width="0">
11120 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11123 \begin_layout Plain Layout
11124 verylongtablecellword
11129 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11132 \begin_layout Plain Layout
11138 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11141 \begin_layout Plain Layout
11149 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11152 \begin_layout Plain Layout
11158 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11161 \begin_layout Plain Layout
11167 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11170 \begin_layout Plain Layout
11178 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11181 \begin_layout Plain Layout
11187 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11190 \begin_layout Plain Layout
11196 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11199 \begin_layout Plain Layout
11211 \begin_inset space \hfill{}
11215 \begin_inset Tabular
11216 <lyxtabular version="3" rows="3" columns="3">
11218 <column alignment="center" valignment="middle" width="2.5cm">
11219 <column alignment="center" valignment="middle" width="0">
11220 <column alignment="center" valignment="middle" width="0">
11222 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11225 \begin_layout Plain Layout
11226 \begin_inset space \hspace{}
11230 verylongtablecellword
11235 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11238 \begin_layout Plain Layout
11244 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11247 \begin_layout Plain Layout
11255 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11258 \begin_layout Plain Layout
11264 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11267 \begin_layout Plain Layout
11273 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11276 \begin_layout Plain Layout
11284 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11287 \begin_layout Plain Layout
11293 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11296 \begin_layout Plain Layout
11302 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11305 \begin_layout Plain Layout
11317 \begin_inset space \hfill{}
11328 \begin_layout Subsection
11330 \begin_inset CommandInset label
11332 name "sub:Multicolumns"
11340 \begin_layout Plain Layout
11350 \begin_layout Plain Layout
11351 Table ! Multicolumns
11359 \begin_layout Subsubsection
11363 \begin_layout Standard
11364 To merge cells over multiple columns, select as many cells within a row
11365 as you want to merge and use either the table-toolbar button
11366 \begin_inset Graphics
11367 filename ../images/tabular-feature_multicolumn.png
11369 scaleBeforeRotation
11375 Edit\SpecialChar \menuseparator
11376 Table\SpecialChar \menuseparator
11379 , or right click on the marked cells and choose
11383 in the appearing context menu.
11386 \begin_layout Standard
11387 Multicolumns have there own cell settings.
11388 That means changing cell borders, cell alignment, and the width only affects
11390 Here is an example table with a multicolumn cell in the first row and one
11391 in the last row without the upper border:
11394 \begin_layout Standard
11396 \begin_inset Tabular
11397 <lyxtabular version="3" rows="3" columns="4">
11398 <features firstHeadTopDL="true" firstHeadBottomDL="true">
11399 <column alignment="center" valignment="top" width="0pt">
11400 <column alignment="center" valignment="middle" width="0">
11401 <column alignment="center" valignment="top" width="0in">
11402 <column alignment="center" valignment="top" width="0pt">
11404 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11407 \begin_layout Plain Layout
11413 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11416 \begin_layout Plain Layout
11422 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11425 \begin_layout Plain Layout
11431 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11434 \begin_layout Plain Layout
11442 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11445 \begin_layout Plain Layout
11460 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11463 \begin_layout Plain Layout
11469 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11472 \begin_layout Plain Layout
11478 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11481 \begin_layout Plain Layout
11489 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11492 \begin_layout Plain Layout
11498 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11501 \begin_layout Plain Layout
11507 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11510 \begin_layout Plain Layout
11516 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11519 \begin_layout Plain Layout
11533 \begin_layout Subsubsection
11534 Multicolumn Calculations
11535 \begin_inset CommandInset label
11537 name "sub:Multicolumn-Calculations"
11545 \begin_layout Plain Layout
11546 Multicolumns ! Calculations
11554 \begin_layout Standard
11555 LyX supports multicolumns directly, but we have to take account of the cell
11556 width of the columns spanned by the multicolumn cell.
11559 \begin_layout Standard
11560 \begin_inset Float table
11566 \begin_layout Plain Layout
11567 \begin_inset Caption
11569 \begin_layout Plain Layout
11570 \begin_inset CommandInset label
11572 name "tab:Table-with-centered"
11576 Table with centered multicolumn text above two columns that have exactly
11577 half the width of the multicolumn cell
11578 \begin_inset OptArg
11581 \begin_layout Plain Layout
11582 Perfect multicolumn table
11595 \begin_layout Plain Layout
11597 \begin_inset Tabular
11598 <lyxtabular version="3" rows="3" columns="3">
11600 <column alignment="center" valignment="middle" width="0" special=">{\centering}m{1.25cm-6.2pt}">
11601 <column alignment="center" valignment="middle" width="0">
11602 <column alignment="center" valignment="top" width="0">
11604 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11607 \begin_layout Plain Layout
11608 multiple lines multicolumn
11613 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11616 \begin_layout Plain Layout
11622 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11625 \begin_layout Plain Layout
11633 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11636 \begin_layout Plain Layout
11642 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11645 \begin_layout Plain Layout
11651 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11654 \begin_layout Plain Layout
11662 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11665 \begin_layout Plain Layout
11671 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11674 \begin_layout Plain Layout
11680 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11683 \begin_layout Plain Layout
11702 \begin_layout Standard
11703 To create for example Table
11704 \begin_inset space ~
11708 \begin_inset CommandInset ref
11710 reference "tab:Table-with-centered"
11714 , mark the first two cells in the first row of a 3×3 table and right-click
11716 Now choose for this cell
11725 \begin_inset space \thinspace{}
11728 cm in the table dialog.
11729 The merged columns should have exactly half the width of the multicolumn
11730 cell, so that you would set a width of 1.25
11731 \begin_inset space \thinspace{}
11734 cm for the first column.
11735 The second column has then automatically a width of 1.25
11736 \begin_inset space \thinspace{}
11739 cm (multicolumn width - width of first column).
11740 This was done for Table
11741 \begin_inset space ~
11745 \begin_inset CommandInset ref
11747 reference "tab:Table-without-half"
11754 \begin_layout Standard
11755 \begin_inset Float table
11760 \begin_layout Plain Layout
11761 \begin_inset Caption
11763 \begin_layout Plain Layout
11764 \begin_inset CommandInset label
11766 name "tab:Table-without-half"
11770 Table where the spanned table columns have not exactly half the width of
11771 the multicolumn cell
11772 \begin_inset OptArg
11775 \begin_layout Plain Layout
11776 Imperfect multicolumn table
11789 \begin_layout Plain Layout
11791 \begin_inset Tabular
11792 <lyxtabular version="3" rows="3" columns="3">
11794 <column alignment="center" valignment="top" width="1.25cm">
11795 <column alignment="center" valignment="top" width="0">
11796 <column alignment="center" valignment="top" width="0">
11798 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
11801 \begin_layout Plain Layout
11802 multiple lines multicolumn
11807 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11810 \begin_layout Plain Layout
11816 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11819 \begin_layout Plain Layout
11827 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11830 \begin_layout Plain Layout
11836 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11839 \begin_layout Plain Layout
11845 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11848 \begin_layout Plain Layout
11856 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11859 \begin_layout Plain Layout
11865 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11868 \begin_layout Plain Layout
11874 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11877 \begin_layout Plain Layout
11896 \begin_layout Standard
11897 You can see that the first column has not half the width of the multicolumn
11898 cell, it is a bit bigger.
11899 The reason is that the given width of a cell
11900 \begin_inset Formula $W_{g}$
11903 is not its total width
11904 \begin_inset Formula $W_{\mathrm{tot}}$
11907 because a cell is always a bit larger than its given width.
11909 \begin_inset space ~
11913 \begin_inset CommandInset ref
11915 reference "cha:Explanation-of-Equation"
11919 explains this in detail.
11922 \begin_layout Standard
11924 \begin_inset Formula $W_{g\, n}$
11931 columns are spanned can be calculated, so that each column has a total
11933 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
11937 \begin_inset Formula \begin{equation}
11938 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}\end{equation}
11945 \begin_layout Standard
11946 In our case we have
11947 \begin_inset Formula $n=2$
11951 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
11954 cm and the default values for the lengths, so that equation
11955 \begin_inset CommandInset ref
11962 \begin_inset Formula \begin{equation}
11963 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}\end{equation}
11970 \begin_layout Standard
11971 To enable calculations in LaTeX, the LaTeX-package
11975 must be loaded with the document preamble line
11979 \begin_layout Plain Layout
11980 LaTeX-packages ! calc
11988 \begin_layout Standard
11996 \begin_layout Standard
11997 LyX does not allow you to calculate lengths in the
12001 field of the table dialog.
12002 Therefore you have to format the column by inserting a LaTeX-argument in
12004 Here is an overview about the arguments:
12007 \begin_layout Itemize
12012 creates cell with a fixed width, its text is vertically top-aligned
12015 \begin_layout Itemize
12020 creates cell with a fixed width, its text is vertically centered
12023 \begin_layout Itemize
12028 creates cell with a fixed width, its text is vertically bottom-aligned
12031 \begin_layout Standard
12032 By entering a LaTeX-argument, all cell settings set in the table dialog
12036 \begin_layout Standard
12037 \begin_inset Note Greyedout
12040 \begin_layout Plain Layout
12045 Due to a bug, LyX shows the overwritten settings anyway.
12053 \begin_layout Standard
12054 As the text should be horizontally centered, the command
12061 You can now enter the following LaTeX-argument for the first spanned column:
12064 \begin_layout Standard
12069 centering}m{1.25cm-6.2pt}
12072 \begin_layout Standard
12077 means, that the commands inside the braces are applied before the cell
12081 \begin_layout Standard
12082 Although we have chosen centered alignment for the text of the multicolumn
12083 cell, it is still left aligned.
12084 This is because LyX only applies the alignment to single columns.
12085 So for the multicolumn cell we have to use the LaTeX-argument
12088 \begin_layout Standard
12096 \begin_layout Subsection
12101 \begin_layout Plain Layout
12111 \begin_layout Plain Layout
12120 \begin_layout Standard
12121 Unlike multicolumns multirows are not yet supported by LyX; so a bit of
12122 TeX-Code needs to be used.
12123 To use multirows load the LaTeX-package
12131 \begin_layout Plain Layout
12132 LaTeX-packages ! multirow
12137 in your document preamble with the command
12140 \begin_layout Standard
12145 usepackage{multirow}
12148 \begin_layout Standard
12149 Multirows are created with the command
12152 \begin_layout Standard
12157 multirow{number of rows}{cell width}{cell entry}
12160 \begin_layout Standard
12161 To create the following table:
12164 \begin_layout Standard
12169 \begin_layout Plain Layout
12183 \begin_inset Tabular
12184 <lyxtabular version="3" rows="3" columns="3">
12186 <column alignment="center" valignment="top" width="0">
12187 <column alignment="center" valignment="top" width="0">
12188 <column alignment="center" valignment="top" width="0">
12190 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12193 \begin_layout Plain Layout
12199 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12202 \begin_layout Plain Layout
12208 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12211 \begin_layout Plain Layout
12219 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12222 \begin_layout Plain Layout
12226 \begin_layout Plain Layout
12230 multirow{2}{2.5cm}{
12239 \begin_layout Plain Layout
12251 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12254 \begin_layout Plain Layout
12260 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12263 \begin_layout Plain Layout
12271 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
12274 \begin_layout Plain Layout
12280 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12283 \begin_layout Plain Layout
12289 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12292 \begin_layout Plain Layout
12307 \begin_layout Plain Layout
12323 \begin_layout Standard
12324 create a 3×3 table.
12325 Unset the upper border of the last cell in the first column.
12326 The multirow is now created in the second row of the first column by inserting
12330 \begin_layout Standard
12335 multirow{2}{2.5cm}{
12338 \begin_layout Standard
12340 According to the command parameters the multirow spans now two rows and
12342 \begin_inset space \thinspace{}
12346 The content of the multirow cell follows outside the TeX-Code box and the
12347 command is finished with a right brace
12351 in another TeX-Code-box after the text.
12354 \begin_layout Standard
12361 left-aligns its content by default.
12362 To override the default, renew the command
12371 \begin_layout Standard
12383 \begin_layout Standard
12384 in TeX-Code in the document preamble.
12385 Then all entries of multirow cells in the document are centered.
12386 If centering is only needed for several tables, you can renew the command
12387 in a TeX-Code box just before the table instead of the preamble.
12388 If the text should be right-aligned, replace
12401 To return to left-alignment
12410 \begin_layout Section
12412 \begin_inset CommandInset label
12414 name "sec:Formal-Tables"
12422 \begin_layout Plain Layout
12431 \begin_layout Standard
12432 Tables are often typeset in books similar to Table
12433 \begin_inset space ~
12437 \begin_inset CommandInset ref
12439 reference "tab:Example-booktabs-table"
12444 This kind of tables is called
12445 \begin_inset Quotes eld
12453 \begin_inset Quotes erd
12457 To make a table a formal table use the option
12465 tab of the table dialog.
12468 \begin_layout Standard
12469 \begin_inset Float table
12475 \begin_layout Plain Layout
12476 \begin_inset Caption
12478 \begin_layout Plain Layout
12479 \begin_inset CommandInset label
12481 name "tab:Example-booktabs-table"
12485 Example booktabs-table
12493 \begin_layout Plain Layout
12495 \begin_inset Tabular
12496 <lyxtabular version="3" rows="8" columns="4">
12497 <features booktabs="true">
12498 <column alignment="center" valignment="top" width="0">
12499 <column alignment="center" valignment="top" width="0">
12500 <column alignment="center" valignment="top" width="0">
12501 <column alignment="center" valignment="top" width="0">
12503 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12506 \begin_layout Plain Layout
12512 <cell alignment="center" valignment="top" topline="true" usebox="none">
12515 \begin_layout Plain Layout
12517 \begin_inset space \thinspace{}
12525 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
12528 \begin_layout Plain Layout
12530 \begin_inset space \thinspace{}
12538 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12541 \begin_layout Plain Layout
12549 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12552 \begin_layout Plain Layout
12556 \begin_layout Plain Layout
12569 \begin_layout Plain Layout
12578 Detector thickness [µm]
12583 <cell alignment="center" valignment="top" usebox="none">
12586 \begin_layout Plain Layout
12592 <cell alignment="center" valignment="top" usebox="none">
12595 \begin_layout Plain Layout
12601 <cell alignment="center" valignment="top" usebox="none">
12604 \begin_layout Plain Layout
12612 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12615 \begin_layout Plain Layout
12621 <cell alignment="center" valignment="top" topline="true" usebox="none">
12624 \begin_layout Plain Layout
12630 <cell alignment="center" valignment="top" topline="true" usebox="none">
12633 \begin_layout Plain Layout
12639 <cell alignment="center" valignment="top" topline="true" usebox="none">
12642 \begin_layout Plain Layout
12649 <row topspace="default">
12650 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12653 \begin_layout Plain Layout
12654 Spatial resolution [µm]
12659 <cell alignment="center" valignment="top" usebox="none">
12662 \begin_layout Plain Layout
12668 <cell alignment="center" valignment="top" usebox="none">
12671 \begin_layout Plain Layout
12677 <cell alignment="center" valignment="top" usebox="none">
12680 \begin_layout Plain Layout
12687 <row topspace="default">
12688 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12691 \begin_layout Plain Layout
12693 \begin_inset Formula $f_{\mathrm{max}}$
12701 <cell alignment="center" valignment="top" usebox="none">
12704 \begin_layout Plain Layout
12710 <cell alignment="center" valignment="top" usebox="none">
12713 \begin_layout Plain Layout
12719 <cell alignment="center" valignment="top" usebox="none">
12722 \begin_layout Plain Layout
12729 <row topspace="default">
12730 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12733 \begin_layout Plain Layout
12737 \begin_layout Plain Layout
12741 cmidrule(l{10pt}){1-1}
12746 LSF-spatial resolution
12751 <cell alignment="center" valignment="top" usebox="none">
12754 \begin_layout Plain Layout
12760 <cell alignment="center" valignment="top" usebox="none">
12763 \begin_layout Plain Layout
12769 <cell alignment="center" valignment="top" usebox="none">
12772 \begin_layout Plain Layout
12780 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12783 \begin_layout Plain Layout
12789 <cell alignment="center" valignment="top" usebox="none">
12792 \begin_layout Plain Layout
12798 <cell alignment="center" valignment="top" usebox="none">
12801 \begin_layout Plain Layout
12807 <cell alignment="center" valignment="top" usebox="none">
12810 \begin_layout Plain Layout
12818 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
12821 \begin_layout Plain Layout
12827 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12830 \begin_layout Plain Layout
12836 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12839 \begin_layout Plain Layout
12845 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12848 \begin_layout Plain Layout
12867 \begin_layout Standard
12868 Spaces to table rows can be added using the
12872 tab of the table dialog as described in section
12873 \begin_inset space ~
12877 \begin_inset CommandInset ref
12879 reference "sub:Row-Spacing"
12886 \begin_layout Standard
12887 In contrary to normal tables, formal tables have no vertical table lines.
12888 The horizontal table lines can be set like for normal tables but they appear
12889 with different width in the output:
12890 \begin_inset Newline newline
12893 The first and the last table line have a default width of 0.08
12894 \begin_inset space \thinspace{}
12897 em while the other lines have a default width of 0.05
12898 \begin_inset space \thinspace{}
12904 \begin_layout Standard
12905 The default widths can be changed with the following preamble lines
12908 \begin_layout Standard
12918 \begin_inset Newline newline
12930 \begin_layout Standard
12931 This example is for the first line, the so called
12936 If you want to change the width for the last line, replace
12945 To change the width for the other lines replace
12954 You can use all units listed in appendix
12955 \begin_inset space ~
12959 \begin_inset CommandInset ref
12961 reference "cha:Units-available-in"
12968 \begin_layout Standard
12969 Lines that don't span over all table columns can be created by setting a
12970 table line for multicolumn cells.
12971 LyX will then internally use the command
12977 to create this line.
12981 \begin_layout Standard
12986 cmidrule[width](trim){startcol-endcol}
12989 \begin_layout Standard
12996 are are currently not supported by LyX so you have to use TeX-Code to be
13004 s can manually be created by inserting the command as TeX-Code as first
13005 cell entry of the first cell of a row.
13006 The line is then drawn in the output above the current row.
13009 \begin_layout Standard
13010 The default for the width is 0.03
13011 \begin_inset space \thinspace{}
13015 Startcol is the number of the column where the line starts and endcol the
13016 column number where the line ends.
13017 The endcol always needs to be specified, also when the line should span
13019 The optional parameter trim could be either
13027 where the trimwidth is also optional.
13028 Using for example the parameter
13032 means that the line is trimmed from its left end by 2
13033 \begin_inset space \thinspace{}
13037 If you don't specify the trimwidth the lines are trimmed by the default
13039 \begin_inset space \thinspace{}
13045 \begin_layout Standard
13046 \begin_inset VSpace bigskip
13050 \begin_inset space ~
13054 \begin_inset CommandInset ref
13056 reference "tab:Example-booktabs-table"
13060 was created using the commands
13063 \begin_layout Standard
13073 \begin_layout Standard
13074 at the beginning of the in the second row and
13077 \begin_layout Standard
13082 cmidrule(l{10pt}){1-1}
13085 \begin_layout Standard
13089 \begin_layout Standard
13090 \begin_inset VSpace bigskip
13096 \begin_layout Standard
13097 You might want to have overlapping
13104 \begin_inset space ~
13108 \begin_inset CommandInset ref
13110 reference "tab:Special-booktabs-table"
13115 This can be achieved with the TeX-Code command
13118 \begin_layout Standard
13126 \begin_layout Standard
13127 The command that was used for the second row of Table
13128 \begin_inset space ~
13132 \begin_inset CommandInset ref
13134 reference "tab:Special-booktabs-table"
13141 \begin_layout Standard
13155 \begin_layout Standard
13156 The command for the sixth row is
13159 \begin_layout Standard
13171 \begin_layout Standard
13172 \begin_inset VSpace bigskip
13178 \begin_layout Standard
13179 If you are anyway not satisfied with the border line spacing, you can use
13180 the following command to produce lines that span over all table columns
13185 \begin_layout Standard
13190 specialrule{width}{space above}{space below}
13193 \begin_layout Standard
13194 For more information about these specialties, we refer to the manual of
13200 \begin_inset CommandInset citation
13210 \begin_layout Plain Layout
13211 LaTeX-packages ! booktabs
13219 \begin_layout Standard
13220 \begin_inset Float table
13226 \begin_layout Plain Layout
13227 \begin_inset Caption
13229 \begin_layout Plain Layout
13230 \begin_inset CommandInset label
13232 name "tab:Special-booktabs-table"
13236 Special booktabs-table
13244 \begin_layout Plain Layout
13246 \begin_inset Tabular
13247 <lyxtabular version="3" rows="8" columns="4">
13248 <features booktabs="true">
13249 <column alignment="center" valignment="top" width="0">
13250 <column alignment="center" valignment="top" width="0">
13251 <column alignment="center" valignment="top" width="0">
13252 <column alignment="center" valignment="top" width="0">
13254 <cell alignment="center" valignment="top" topline="true" usebox="none">
13257 \begin_layout Plain Layout
13263 <cell alignment="center" valignment="top" topline="true" usebox="none">
13266 \begin_layout Plain Layout
13268 \begin_inset space \thinspace{}
13276 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
13279 \begin_layout Plain Layout
13281 \begin_inset space \thinspace{}
13289 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13292 \begin_layout Plain Layout
13300 <cell alignment="center" valignment="top" usebox="none">
13303 \begin_layout Plain Layout
13307 \begin_layout Plain Layout
13320 \begin_layout Plain Layout
13333 \begin_layout Plain Layout
13346 \begin_layout Plain Layout
13355 Detector thickness [µm]
13360 <cell alignment="center" valignment="top" usebox="none">
13363 \begin_layout Plain Layout
13369 <cell alignment="center" valignment="top" usebox="none">
13372 \begin_layout Plain Layout
13378 <cell alignment="center" valignment="top" usebox="none">
13381 \begin_layout Plain Layout
13389 <cell alignment="center" valignment="top" topline="true" usebox="none">
13392 \begin_layout Plain Layout
13398 <cell alignment="center" valignment="top" topline="true" usebox="none">
13401 \begin_layout Plain Layout
13407 <cell alignment="center" valignment="top" topline="true" usebox="none">
13410 \begin_layout Plain Layout
13416 <cell alignment="center" valignment="top" topline="true" usebox="none">
13419 \begin_layout Plain Layout
13426 <row topspace="default">
13427 <cell alignment="center" valignment="top" usebox="none">
13430 \begin_layout Plain Layout
13431 Spatial resolution [µm]
13436 <cell alignment="center" valignment="top" usebox="none">
13439 \begin_layout Plain Layout
13445 <cell alignment="center" valignment="top" usebox="none">
13448 \begin_layout Plain Layout
13454 <cell alignment="center" valignment="top" usebox="none">
13457 \begin_layout Plain Layout
13464 <row topspace="default">
13465 <cell alignment="center" valignment="top" usebox="none">
13468 \begin_layout Plain Layout
13470 \begin_inset Formula $f_{\mathrm{max}}$
13478 <cell alignment="center" valignment="top" usebox="none">
13481 \begin_layout Plain Layout
13487 <cell alignment="center" valignment="top" usebox="none">
13490 \begin_layout Plain Layout
13496 <cell alignment="center" valignment="top" usebox="none">
13499 \begin_layout Plain Layout
13507 <cell alignment="center" valignment="top" topline="true" usebox="none">
13510 \begin_layout Plain Layout
13514 \begin_layout Plain Layout
13527 \begin_layout Plain Layout
13536 LSF-spatial resolution
13541 <cell alignment="center" valignment="top" topline="true" usebox="none">
13544 \begin_layout Plain Layout
13550 <cell alignment="center" valignment="top" topline="true" usebox="none">
13553 \begin_layout Plain Layout
13559 <cell alignment="center" valignment="top" topline="true" usebox="none">
13562 \begin_layout Plain Layout
13570 <cell alignment="center" valignment="top" usebox="none">
13573 \begin_layout Plain Layout
13579 <cell alignment="center" valignment="top" usebox="none">
13582 \begin_layout Plain Layout
13588 <cell alignment="center" valignment="top" usebox="none">
13591 \begin_layout Plain Layout
13597 <cell alignment="center" valignment="top" usebox="none">
13600 \begin_layout Plain Layout
13608 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13611 \begin_layout Plain Layout
13617 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13620 \begin_layout Plain Layout
13626 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13629 \begin_layout Plain Layout
13635 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13638 \begin_layout Plain Layout
13657 \begin_layout Section
13658 Vertical Table Alignment
13662 \begin_layout Plain Layout
13671 \begin_layout Standard
13672 To align tables vertically in a text line the table must be inside a box.
13673 The box can then be vertically aligned as described in section
13674 \begin_inset space ~
13678 \begin_inset CommandInset ref
13680 reference "sec:Box-Dialog"
13687 \begin_layout Standard
13688 In the following example the tables are inside a minipage
13692 \begin_layout Plain Layout
13693 Minipages are described in section
13694 \begin_inset space ~
13698 \begin_inset CommandInset ref
13700 reference "sec:Minipages"
13709 box that has a width of 15
13710 \begin_inset space \thinspace{}
13716 \begin_layout Itemize
13718 \begin_inset Box Frameless
13727 height_special "totalheight"
13730 \begin_layout Plain Layout
13731 \begin_inset Tabular
13732 <lyxtabular version="3" rows="3" columns="3">
13734 <column alignment="center" valignment="top" width="0">
13735 <column alignment="center" valignment="top" width="0">
13736 <column alignment="center" valignment="top" width="0">
13738 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13741 \begin_layout Plain Layout
13747 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13750 \begin_layout Plain Layout
13756 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13759 \begin_layout Plain Layout
13767 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13770 \begin_layout Plain Layout
13776 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13779 \begin_layout Plain Layout
13785 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13788 \begin_layout Plain Layout
13796 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13799 \begin_layout Plain Layout
13805 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13808 \begin_layout Plain Layout
13814 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13817 \begin_layout Plain Layout
13837 \begin_layout Plain Layout
13849 \begin_inset Box Frameless
13858 height_special "totalheight"
13861 \begin_layout Plain Layout
13862 \begin_inset Tabular
13863 <lyxtabular version="3" rows="3" columns="3">
13865 <column alignment="center" valignment="top" width="0">
13866 <column alignment="center" valignment="top" width="0">
13867 <column alignment="center" valignment="top" width="0">
13869 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13872 \begin_layout Plain Layout
13878 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13881 \begin_layout Plain Layout
13887 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13890 \begin_layout Plain Layout
13898 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13901 \begin_layout Plain Layout
13907 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13910 \begin_layout Plain Layout
13916 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13919 \begin_layout Plain Layout
13927 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13930 \begin_layout Plain Layout
13936 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13939 \begin_layout Plain Layout
13945 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13948 \begin_layout Plain Layout
13968 \begin_layout Plain Layout
13978 \begin_layout Itemize
13980 \begin_inset Box Frameless
13989 height_special "totalheight"
13992 \begin_layout Plain Layout
13993 \begin_inset Tabular
13994 <lyxtabular version="3" rows="3" columns="3">
13996 <column alignment="center" valignment="top" width="0">
13997 <column alignment="center" valignment="top" width="0">
13998 <column alignment="center" valignment="top" width="0">
14000 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14003 \begin_layout Plain Layout
14009 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14012 \begin_layout Plain Layout
14018 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14021 \begin_layout Plain Layout
14029 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14032 \begin_layout Plain Layout
14038 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14041 \begin_layout Plain Layout
14047 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14050 \begin_layout Plain Layout
14058 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14061 \begin_layout Plain Layout
14067 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14070 \begin_layout Plain Layout
14076 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14079 \begin_layout Plain Layout
14098 \begin_layout Itemize
14100 \begin_inset Box Frameless
14109 height_special "totalheight"
14112 \begin_layout Plain Layout
14113 \begin_inset Tabular
14114 <lyxtabular version="3" rows="3" columns="3">
14116 <column alignment="center" valignment="top" width="0">
14117 <column alignment="center" valignment="top" width="0">
14118 <column alignment="center" valignment="top" width="0">
14120 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14123 \begin_layout Plain Layout
14129 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14132 \begin_layout Plain Layout
14138 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14141 \begin_layout Plain Layout
14149 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14152 \begin_layout Plain Layout
14158 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14161 \begin_layout Plain Layout
14167 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14170 \begin_layout Plain Layout
14178 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14181 \begin_layout Plain Layout
14187 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14190 \begin_layout Plain Layout
14196 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14199 \begin_layout Plain Layout
14219 \begin_layout Plain Layout
14231 \begin_inset Box Frameless
14240 height_special "totalheight"
14243 \begin_layout Plain Layout
14244 \begin_inset Tabular
14245 <lyxtabular version="3" rows="3" columns="3">
14247 <column alignment="center" valignment="top" width="0">
14248 <column alignment="center" valignment="top" width="0">
14249 <column alignment="center" valignment="top" width="0">
14251 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14254 \begin_layout Plain Layout
14260 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14263 \begin_layout Plain Layout
14269 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14272 \begin_layout Plain Layout
14280 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14283 \begin_layout Plain Layout
14289 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14292 \begin_layout Plain Layout
14298 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14301 \begin_layout Plain Layout
14309 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14312 \begin_layout Plain Layout
14318 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14321 \begin_layout Plain Layout
14327 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14330 \begin_layout Plain Layout
14350 \begin_layout Plain Layout
14360 \begin_layout Standard
14361 As you can see, the content of the first and last table row is not correctly
14362 aligned with the text line where the table is in.
14363 To get this alignment, the minipage box must be set into a raisebox
14367 \begin_layout Plain Layout
14368 Raiseboxes are described in section
14369 \begin_inset space ~
14373 \begin_inset CommandInset ref
14375 reference "sub:Vertical-Alignment"
14385 In the example above the second table in the first item is aligned using
14386 the TeX-Code-command
14389 \begin_layout Standard
14399 \begin_layout Standard
14401 Behind the box the closing brace
14405 is inserted as TeX-Code.
14406 For the second table in the last item the command
14409 \begin_layout Standard
14419 \begin_layout Standard
14423 \begin_layout Standard
14424 \begin_inset Note Greyedout
14427 \begin_layout Plain Layout
14432 The alignment of the table row content to the surrounding text line is
14434 The needed factor of the
14440 command for this alignment depends on the document font, the font size,
14441 and the table line thickness.
14449 \begin_layout Section
14451 \begin_inset CommandInset label
14453 name "sec:Colored-Tables"
14461 \begin_layout Plain Layout
14470 \begin_layout Subsection
14475 \begin_layout Plain Layout
14476 Table Color ! for Cells
14485 \begin_layout Plain Layout
14486 Color ! for Table Cells
14494 \begin_layout Standard
14495 \begin_inset Float table
14501 \begin_layout Plain Layout
14502 \begin_inset Caption
14504 \begin_layout Plain Layout
14505 \begin_inset CommandInset label
14507 name "tab:Table-colored-without"
14511 Table colored without using the package
14516 \begin_inset OptArg
14519 \begin_layout Plain Layout
14520 Table without colortbl
14533 \begin_layout Plain Layout
14535 \begin_inset Tabular
14536 <lyxtabular version="3" rows="3" columns="3">
14538 <column alignment="center" valignment="top" width="0">
14539 <column alignment="center" valignment="top" width="0">
14540 <column alignment="center" valignment="top" width="0">
14542 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14545 \begin_layout Plain Layout
14553 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14556 \begin_layout Plain Layout
14564 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14567 \begin_layout Plain Layout
14577 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14580 \begin_layout Plain Layout
14588 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14591 \begin_layout Plain Layout
14599 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14602 \begin_layout Plain Layout
14612 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14615 \begin_layout Plain Layout
14623 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14626 \begin_layout Plain Layout
14634 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14637 \begin_layout Plain Layout
14658 \begin_layout Standard
14659 If you only need colored text, mark the cells and choose a color in the
14662 Edit\SpecialChar \menuseparator
14664 \begin_inset space ~
14670 This was used to create Table
14671 \begin_inset space ~
14675 \begin_inset CommandInset ref
14677 reference "tab:Table-colored-without"
14682 In any other case you have to use the LaTeX-package
14690 \begin_layout Plain Layout
14691 LaTeX-packages ! colortbl
14699 \begin_layout Standard
14703 \begin_layout Plain Layout
14713 \begin_inset Note Note
14716 \begin_layout Plain Layout
14717 The following section part will only be displayed when the LaTeX-package
14730 \begin_layout Standard
14731 To create colored tables,
14735 must be loaded in the preamble with the line
14738 \begin_layout Standard
14743 usepackage{colortbl}
14746 \begin_layout Standard
14747 The color of a column is adjusted with the command
14750 \begin_layout Standard
14755 columncolor{name of color}
14758 \begin_layout Standard
14764 More about the command
14768 is described in section
14769 \begin_inset space ~
14773 \begin_inset CommandInset ref
14775 reference "sub:Multicolumn-Calculations"
14782 \begin_layout Standard
14783 The following color names are predefined:
14786 \begin_layout Standard
14820 \begin_layout Standard
14821 \begin_inset VSpace medskip
14827 \begin_layout Standard
14828 You can also define your own color with the command
14831 \begin_layout Standard
14836 definecolor{color name}{color model}{color values}
14839 \begin_layout Standard
14840 The color model can be
14843 \begin_layout Labeling
14844 \labelwidthstring 00.00.0000
14845 cmyk: cyan, magenta, yellow, black
14848 \begin_layout Labeling
14849 \labelwidthstring 00.00.0000
14850 rgb: red, green blue
14853 \begin_layout Labeling
14854 \labelwidthstring 00.00.0000
14858 \begin_layout Standard
14859 and the color values are comma separated numbers between 0 and 1 describing
14860 the factor for the corresponding color of the color model.
14863 \begin_layout Standard
14865 \begin_inset space \thinspace{}
14869 \begin_inset space \space{}
14876 " in the preamble with
14879 \begin_layout Standard
14884 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
14887 \begin_layout Standard
14895 \begin_layout Standard
14900 definecolor{lightgray}{gray}{0.8}
14903 \begin_layout Standard
14904 \begin_inset VSpace medskip
14910 \begin_layout Standard
14911 Lines are colored with the command
14914 \begin_layout Standard
14919 rowcolor{name of color}
14922 \begin_layout Standard
14923 and cells are colored with the command
14926 \begin_layout Standard
14931 cellcolor{name of color}
14934 \begin_layout Standard
14935 Both commands are inserted at the beginning of a cell as TeX-Code.
14938 \begin_layout Standard
14939 To color characters in the table, mark the cells and use the LyX menu
14941 Edit\SpecialChar \menuseparator
14943 \begin_inset space ~
14949 If a cell contains TeX-Code mark only the characters, otherwise the colored
14950 TeX-Code will cause LaTeX-errors.
14953 \begin_layout Standard
14954 \begin_inset Note Greyedout
14957 \begin_layout Plain Layout
14962 Not all DVI-viewers are able to display self-defined colors.
14970 \begin_layout Standard
14971 \begin_inset VSpace bigskip
14977 \begin_layout Standard
14979 \begin_inset space ~
14983 \begin_inset CommandInset ref
14985 reference "tab:Table-colored-using"
14989 do the following: The color of the first column should be
14997 \begin_layout Standard
15002 columncolor{darkgreen}
15007 \begin_layout Standard
15008 as LaTeX-argument for this column.
15009 The first row should be blue, therefore the TeX-Code command
15012 \begin_layout Standard
15020 \begin_layout Standard
15021 is inserted to the first cell of this row.
15022 Note that this overwrites the column color for the first cell.
15023 The last cell of the last row is colored magenta by inserting the TeX-Code
15027 \begin_layout Standard
15035 \begin_layout Standard
15036 The characters could now be colored using the menu
15038 Edit\SpecialChar \menuseparator
15040 \begin_inset space ~
15048 \begin_layout Standard
15049 \begin_inset Float table
15055 \begin_layout Plain Layout
15056 \begin_inset Caption
15058 \begin_layout Plain Layout
15059 \begin_inset CommandInset label
15061 name "tab:Table-colored-using"
15065 Table colored using the package
15070 \begin_inset OptArg
15073 \begin_layout Plain Layout
15074 Table with colortbl
15087 \begin_layout Plain Layout
15089 \begin_inset Tabular
15090 <lyxtabular version="3" rows="3" columns="3">
15092 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
15093 <column alignment="center" valignment="top" width="0">
15094 <column alignment="center" valignment="top" width="0">
15096 <cell alignment="center" valignment="top" usebox="none">
15099 \begin_layout Plain Layout
15103 \begin_layout Plain Layout
15119 <cell alignment="center" valignment="top" usebox="none">
15122 \begin_layout Plain Layout
15130 <cell alignment="center" valignment="top" usebox="none">
15133 \begin_layout Plain Layout
15143 <cell alignment="center" valignment="top" usebox="none">
15146 \begin_layout Plain Layout
15154 <cell alignment="center" valignment="top" usebox="none">
15157 \begin_layout Plain Layout
15165 <cell alignment="center" valignment="top" usebox="none">
15168 \begin_layout Plain Layout
15178 <cell alignment="center" valignment="top" usebox="none">
15181 \begin_layout Plain Layout
15189 <cell alignment="center" valignment="top" usebox="none">
15192 \begin_layout Plain Layout
15200 <cell alignment="center" valignment="top" usebox="none">
15203 \begin_layout Plain Layout
15207 \begin_layout Plain Layout
15236 \begin_layout Standard
15240 \begin_layout Plain Layout
15250 \begin_inset Note Note
15253 \begin_layout Plain Layout
15254 The following will be displayed when the LaTeX-package
15266 \begin_layout Standard
15267 You need to install the package
15271 to see the content of this section in the output.
15274 \begin_layout Standard
15278 \begin_layout Plain Layout
15290 \begin_layout Subsection
15295 \begin_layout Plain Layout
15296 Table Color ! for Lines
15305 \begin_layout Plain Layout
15306 Color ! for Table Lines
15314 \begin_layout Standard
15315 As described in section
15316 \begin_inset space ~
15320 \begin_inset CommandInset ref
15322 reference "sub:Line-Thickness"
15326 , the line thickness for all lines in a table can be adjusted with the length
15335 \begin_inset space \thinspace{}
15338 pt for all tables of this section.
15342 \begin_layout Plain Layout
15348 arrayrulewidth}{1.5pt}
15356 \begin_layout Standard
15357 To color vertical lines for example with green, create the following column
15358 format in the document preamble, according to the description in section
15359 \begin_inset space ~
15363 \begin_inset CommandInset ref
15365 reference "sub:Customized-Format"
15372 \begin_layout Standard
15377 newcolumntype{W}{!{
15384 \begin_layout Standard
15386 \begin_inset space ~
15390 \begin_inset CommandInset ref
15392 reference "tab:Table-with-vertical-colored"
15400 was used for the last column and
15404 for the other columns.
15407 \begin_layout Standard
15408 If you want to have several colors, define more column formats.
15411 \begin_layout Standard
15412 \begin_inset Float table
15418 \begin_layout Plain Layout
15419 \begin_inset Caption
15421 \begin_layout Plain Layout
15422 \begin_inset CommandInset label
15424 name "tab:Table-with-vertical-colored"
15428 Table with colored vertical lines
15436 \begin_layout Plain Layout
15438 \begin_inset Tabular
15439 <lyxtabular version="3" rows="3" columns="3">
15441 <column alignment="center" valignment="top" width="0" special="Wc">
15442 <column alignment="center" valignment="top" width="0" special="Wc">
15443 <column alignment="center" valignment="top" width="0" special="WcW">
15445 <cell alignment="center" valignment="top" topline="true" usebox="none">
15448 \begin_layout Plain Layout
15454 <cell alignment="center" valignment="top" topline="true" usebox="none">
15457 \begin_layout Plain Layout
15463 <cell alignment="center" valignment="top" topline="true" usebox="none">
15466 \begin_layout Plain Layout
15474 <cell alignment="center" valignment="top" topline="true" usebox="none">
15477 \begin_layout Plain Layout
15483 <cell alignment="center" valignment="top" topline="true" usebox="none">
15486 \begin_layout Plain Layout
15492 <cell alignment="center" valignment="top" topline="true" usebox="none">
15495 \begin_layout Plain Layout
15503 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15506 \begin_layout Plain Layout
15512 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15515 \begin_layout Plain Layout
15521 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15524 \begin_layout Plain Layout
15543 \begin_layout Standard
15544 \begin_inset VSpace bigskip
15547 To color horizontal lines for example with red, like in Table
15548 \begin_inset space ~
15552 \begin_inset CommandInset ref
15554 reference "tab:Table-with-horizontal-colored"
15558 , insert these commands in TeX-Code before the table or table float:
15561 \begin_layout Standard
15571 \begin_inset Newline newline
15579 \begin_inset Newline newline
15586 \begin_layout Plain Layout
15597 arrayrulecolor{red}
15601 arrayrulecolor{black}}
15604 \begin_layout Standard
15608 \begin_layout Plain Layout
15619 \begin_layout Plain Layout
15628 \begin_layout Plain Layout
15632 arrayrulecolor{red}
15636 arrayrulecolor{black}}
15642 \begin_inset Float table
15648 \begin_layout Plain Layout
15649 \begin_inset Caption
15651 \begin_layout Plain Layout
15652 \begin_inset CommandInset label
15654 name "tab:Table-with-horizontal-colored"
15658 Table with colored horizontal lines
15666 \begin_layout Plain Layout
15668 \begin_inset Tabular
15669 <lyxtabular version="3" rows="3" columns="3">
15671 <column alignment="center" valignment="top" width="0">
15672 <column alignment="center" valignment="top" width="0">
15673 <column alignment="center" valignment="top" width="0">
15675 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15678 \begin_layout Plain Layout
15684 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15687 \begin_layout Plain Layout
15693 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15696 \begin_layout Plain Layout
15704 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15707 \begin_layout Plain Layout
15713 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15716 \begin_layout Plain Layout
15722 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15725 \begin_layout Plain Layout
15733 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15736 \begin_layout Plain Layout
15742 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15745 \begin_layout Plain Layout
15751 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
15754 \begin_layout Plain Layout
15773 \begin_layout Standard
15774 To return to the default line color black, insert this command in TeX-Code
15775 behind the table or table float:
15778 \begin_layout Standard
15790 \begin_layout Standard
15792 \begin_inset space ~
15796 \begin_inset CommandInset ref
15798 reference "tab:Table-with-colored"
15802 is an example with colored vertical and horizontal lines.
15805 \begin_layout Standard
15806 \begin_inset Float table
15812 \begin_layout Plain Layout
15813 \begin_inset Caption
15815 \begin_layout Plain Layout
15816 \begin_inset CommandInset label
15818 name "tab:Table-with-colored"
15822 Table with colored lines
15830 \begin_layout Plain Layout
15832 \begin_inset Tabular
15833 <lyxtabular version="3" rows="3" columns="3">
15835 <column alignment="center" valignment="top" width="0" special="Wc">
15836 <column alignment="center" valignment="top" width="0" special="Wc">
15837 <column alignment="center" valignment="top" width="0" special="WcW">
15839 <cell alignment="center" valignment="top" topline="true" usebox="none">
15842 \begin_layout Plain Layout
15848 <cell alignment="center" valignment="top" topline="true" usebox="none">
15851 \begin_layout Plain Layout
15857 <cell alignment="center" valignment="top" topline="true" usebox="none">
15860 \begin_layout Plain Layout
15868 <cell alignment="center" valignment="top" topline="true" usebox="none">
15871 \begin_layout Plain Layout
15877 <cell alignment="center" valignment="top" topline="true" usebox="none">
15880 \begin_layout Plain Layout
15886 <cell alignment="center" valignment="top" topline="true" usebox="none">
15889 \begin_layout Plain Layout
15896 <row topspace="default">
15897 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15900 \begin_layout Plain Layout
15906 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15909 \begin_layout Plain Layout
15915 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15918 \begin_layout Plain Layout
15937 \begin_layout Standard
15941 \begin_layout Plain Layout
15957 \begin_layout Standard
15961 \begin_layout Plain Layout
15967 arrayrulewidth}{0.4pt}
15975 \begin_layout Section
15976 Table Customization
15980 \begin_layout Plain Layout
15981 Table Customization
15990 \begin_layout Plain Layout
15991 Table ! Customization
15999 \begin_layout Subsection
16001 \begin_inset CommandInset label
16003 name "sub:Row-Spacing"
16011 \begin_layout Plain Layout
16012 Table Customization ! Row Spacing
16020 \begin_layout Standard
16021 You can add vertical space to table rows in the
16025 tab of the table dialog.
16026 You find there three possibilities:
16029 \begin_layout Description
16031 \begin_inset space ~
16035 \begin_inset space ~
16038 row will add space above the characters of the table row.
16039 If the table is a formal table
16043 \begin_layout Plain Layout
16044 Formal tables are explained in section
16045 \begin_inset space ~
16049 \begin_inset CommandInset ref
16051 reference "sec:Formal-Tables"
16060 LyX will insert as default 0.5
16061 \begin_inset space \thinspace{}
16065 For normal tables the inserted space will unfortunately destroy the vertical
16066 table lines as in the following table:
16067 \begin_inset VSpace medskip
16071 \begin_inset Newline newline
16075 \begin_inset space \hspace*{}
16080 \begin_inset space \hfill{}
16084 \begin_inset Tabular
16085 <lyxtabular version="3" rows="3" columns="1">
16087 <column alignment="center" valignment="top" width="0">
16089 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16092 \begin_layout Plain Layout
16099 <row topspace="3mm">
16100 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16103 \begin_layout Plain Layout
16105 \begin_inset space \thinspace{}
16108 mm space top of row
16115 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16118 \begin_layout Plain Layout
16130 \begin_inset space \hfill{}
16134 \begin_inset space \hspace*{}
16139 \begin_inset VSpace medskip
16143 \begin_inset Newline newline
16146 So inserting space to the top of row for normal tables is only useful when
16147 you don't have vertical lines.
16150 \begin_layout Description
16152 \begin_inset space ~
16156 \begin_inset space ~
16159 row will add space below the characters of the table row.
16160 If the table is a formal table LyX will insert as default 0.5
16161 \begin_inset space \thinspace{}
16164 em space, for normal tables the default size is 2
16165 \begin_inset space \thinspace{}
16171 \begin_layout Description
16173 \begin_inset space ~
16176 rows adds space between the current and the following row.
16177 If the table is a formal table LyX will insert as default 0.5
16178 \begin_inset space \thinspace{}
16182 For normal tables the inserted space will unfortunately destroy the vertical
16183 table lines as in the following table:
16184 \begin_inset VSpace medskip
16188 \begin_inset Newline newline
16192 \begin_inset space \hspace*{}
16197 \begin_inset space \hfill{}
16201 \begin_inset Tabular
16202 <lyxtabular version="3" rows="3" columns="1">
16204 <column alignment="center" valignment="top" width="0">
16206 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16209 \begin_layout Plain Layout
16216 <row interlinespace="3mm">
16217 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16220 \begin_layout Plain Layout
16221 \begin_inset Formula $\downarrow$
16225 \begin_inset space \thinspace{}
16228 mm space between row
16229 \begin_inset Formula $\downarrow$
16239 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16242 \begin_layout Plain Layout
16243 \begin_inset Formula $\uparrow$
16247 \begin_inset space \thinspace{}
16250 mm space between row
16251 \begin_inset Formula $\uparrow$
16265 \begin_inset space \hfill{}
16269 \begin_inset space \hspace*{}
16274 \begin_inset VSpace medskip
16278 \begin_inset Newline newline
16281 So inserting space between rows for normal tables is only useful when you
16282 don't have vertical lines.
16285 \begin_layout Standard
16286 \begin_inset VSpace bigskip
16289 When you want to add extra height to all cells of all tables, you can do
16290 this with the following preamble lines:
16293 \begin_layout Standard
16298 @ifundefined{extrarowheight}
16299 \begin_inset Newline newline
16306 \begin_layout Plain Layout
16317 usepackage{array}}{}
16318 \begin_inset Newline newline
16325 extrarowheight}{height}
16328 \begin_layout Standard
16329 But this has the disadvantage that the cell texts are no longer exactly
16330 vertically centered.
16335 will be loaded automatically by LyX when you use self defined table formats.
16336 To avoid that it is loaded twice the command
16342 is used in the above command.)
16345 \begin_layout Standard
16346 In case you are using font sizes larger than the normal size, the table
16347 borders are often too close to the letters.
16348 This can be corrected by inserting the command
16354 in TeX code at the beginning of a table row.
16356 \begin_inset space ~
16360 \begin_inset CommandInset ref
16362 reference "tab:Vertical-alignment-of"
16366 visualizes the effect.
16369 \begin_layout Standard
16371 \begin_inset Float table
16377 \begin_layout Plain Layout
16378 \begin_inset Caption
16380 \begin_layout Plain Layout
16381 \begin_inset CommandInset label
16383 name "tab:Vertical-alignment-of"
16387 Vertical alignment of text with large font sizes.
16395 \begin_layout Plain Layout
16396 \begin_inset space \hfill{}
16400 \begin_inset Float table
16405 \begin_layout Plain Layout
16406 \begin_inset Caption
16408 \begin_layout Plain Layout
16417 \begin_layout Plain Layout
16420 \begin_inset Tabular
16421 <lyxtabular version="3" rows="6" columns="1">
16423 <column alignment="left" valignment="top" width="0">
16425 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16428 \begin_layout Plain Layout
16436 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16439 \begin_layout Plain Layout
16449 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16452 \begin_layout Plain Layout
16462 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16465 \begin_layout Plain Layout
16475 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16478 \begin_layout Plain Layout
16488 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16491 \begin_layout Plain Layout
16510 \begin_inset space \hfill{}
16514 \begin_inset Float table
16519 \begin_layout Plain Layout
16520 \begin_inset Caption
16522 \begin_layout Plain Layout
16523 Table using the command
16537 \begin_layout Plain Layout
16540 \begin_inset Tabular
16541 <lyxtabular version="3" rows="6" columns="1">
16543 <column alignment="left" valignment="top" width="0">
16545 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16548 \begin_layout Plain Layout
16556 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16559 \begin_layout Plain Layout
16565 \begin_layout Plain Layout
16581 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16584 \begin_layout Plain Layout
16590 \begin_layout Plain Layout
16606 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16609 \begin_layout Plain Layout
16615 \begin_layout Plain Layout
16631 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16634 \begin_layout Plain Layout
16640 \begin_layout Plain Layout
16656 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16659 \begin_layout Plain Layout
16665 \begin_layout Plain Layout
16692 \begin_inset space \hfill{}
16703 \begin_layout Subsection
16704 Special Cell Alignment
16708 \begin_layout Plain Layout
16709 Table Customization ! Special Cell Alignment
16717 \begin_layout Standard
16718 Sometimes it looks better when the cell entries of a column are aligned
16719 with a special character, e.
16720 \begin_inset space \thinspace{}
16724 \begin_inset space \space{}
16727 with the decimal separator as in Table
16728 \begin_inset space ~
16732 \begin_inset CommandInset ref
16734 reference "tab:Table-cells-of"
16741 \begin_layout Standard
16742 \begin_inset Float table
16748 \begin_layout Plain Layout
16749 \begin_inset Caption
16751 \begin_layout Plain Layout
16752 \begin_inset CommandInset label
16754 name "tab:Table-cells-of"
16758 Table cells of a column aligned with the decimal separator.
16766 \begin_layout Plain Layout
16768 \begin_inset Tabular
16769 <lyxtabular version="3" rows="4" columns="2">
16771 <column alignment="right" valignment="top" width="0">
16772 <column alignment="left" valignment="top" width="0" special="@{}l">
16774 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16777 \begin_layout Plain Layout
16783 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16786 \begin_layout Plain Layout
16794 <cell alignment="center" valignment="top" usebox="none">
16797 \begin_layout Plain Layout
16803 <cell alignment="center" valignment="top" usebox="none">
16806 \begin_layout Plain Layout
16814 <cell alignment="center" valignment="top" usebox="none">
16817 \begin_layout Plain Layout
16823 <cell alignment="center" valignment="top" usebox="none">
16826 \begin_layout Plain Layout
16834 <cell alignment="center" valignment="top" usebox="none">
16837 \begin_layout Plain Layout
16843 <cell alignment="center" valignment="top" usebox="none">
16846 \begin_layout Plain Layout
16865 \begin_layout Standard
16866 This table was created with a 4×2 table.
16867 The heading is a centered multicolumn.
16868 The first column is right-aligned and contains the digits before the decimal
16869 point and the decimal point.
16870 The second column is left aligned and contains the digits after the decimal
16872 To omit the space that is normally between two table columns, use the following
16873 LaTeX-argument for the second column:
16876 \begin_layout Standard
16882 \begin_layout Standard
16884 \begin_inset space ~
16888 \begin_inset CommandInset ref
16890 reference "tab:Several-table-cell"
16894 shows some example alignments.
16895 For the alignment with the relation sign, you must add the second smallest
16896 math-space at the beginning of the last column to get the correct space
16897 surrounding the relation sign.
16900 \begin_layout Standard
16901 \begin_inset Float table
16907 \begin_layout Plain Layout
16908 \begin_inset Caption
16910 \begin_layout Plain Layout
16911 \begin_inset CommandInset label
16913 name "tab:Several-table-cell"
16917 Several table cell alignments.
16925 \begin_layout Plain Layout
16927 \begin_inset Tabular
16928 <lyxtabular version="3" rows="4" columns="6">
16930 <column alignment="right" valignment="top" width="0">
16931 <column alignment="left" valignment="top" width="0" special="@{}l">
16932 <column alignment="right" valignment="top" width="0">
16933 <column alignment="left" valignment="top" width="0" special="@{}l">
16934 <column alignment="right" valignment="top" width="0">
16935 <column alignment="left" valignment="top" width="0" special="@{}l">
16937 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16940 \begin_layout Plain Layout
16946 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16949 \begin_layout Plain Layout
16955 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16958 \begin_layout Plain Layout
16964 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16967 \begin_layout Plain Layout
16973 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16976 \begin_layout Plain Layout
16982 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16985 \begin_layout Plain Layout
16993 <cell alignment="center" valignment="top" usebox="none">
16996 \begin_layout Plain Layout
17002 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17005 \begin_layout Plain Layout
17007 \begin_inset space \thinspace{}
17015 <cell alignment="center" valignment="top" usebox="none">
17018 \begin_layout Plain Layout
17019 \begin_inset Formula $10\cdot$
17027 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17030 \begin_layout Plain Layout
17031 \begin_inset Formula $10^{\mbox{-}17}$
17039 <cell alignment="center" valignment="top" usebox="none">
17042 \begin_layout Plain Layout
17043 \begin_inset Formula $\Gamma(t)\propto$
17051 <cell alignment="center" valignment="top" usebox="none">
17054 \begin_layout Plain Layout
17055 \begin_inset Formula $\:\Upsilon(t)$
17065 <cell alignment="center" valignment="top" usebox="none">
17068 \begin_layout Plain Layout
17074 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17077 \begin_layout Plain Layout
17079 \begin_inset space \thinspace{}
17087 <cell alignment="center" valignment="top" usebox="none">
17090 \begin_layout Plain Layout
17091 \begin_inset Formula $5.78\cdot$
17099 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17102 \begin_layout Plain Layout
17103 \begin_inset Formula $10^{7}$
17111 <cell alignment="center" valignment="top" usebox="none">
17114 \begin_layout Plain Layout
17115 \begin_inset Formula $A\ne$
17123 <cell alignment="center" valignment="top" usebox="none">
17126 \begin_layout Plain Layout
17127 \begin_inset Formula $\: B_{\mathrm{red}}$
17137 <cell alignment="center" valignment="top" usebox="none">
17140 \begin_layout Plain Layout
17146 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17149 \begin_layout Plain Layout
17151 \begin_inset space \thinspace{}
17159 <cell alignment="center" valignment="top" usebox="none">
17162 \begin_layout Plain Layout
17164 \begin_inset Formula $33.5\cdot$
17172 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17175 \begin_layout Plain Layout
17176 \begin_inset Formula $10^{4}$
17184 <cell alignment="center" valignment="top" usebox="none">
17187 \begin_layout Plain Layout
17188 \begin_inset Formula $\sin(\alpha)\ge$
17196 <cell alignment="center" valignment="top" usebox="none">
17199 \begin_layout Plain Layout
17200 \begin_inset Formula $\:\sin(\beta)$
17221 \begin_layout Standard
17222 \begin_inset VSpace bigskip
17225 There is also the LaTeX-package
17233 \begin_layout Plain Layout
17234 LaTeX-packages ! dcolumn
17239 that provides table cell alignments.
17240 But this unfortunately treats the cell entries as math and does not allow
17241 formulas in table cells: The first column of Table
17242 \begin_inset space ~
17246 \begin_inset CommandInset ref
17248 reference "tab:Several-table-cell"
17256 like the first column in Table
17257 \begin_inset space ~
17261 \begin_inset CommandInset ref
17263 reference "tab:Alignments-when"
17267 and only with some tricks like the expected.
17268 The alignment of the second and third column of Table
17269 \begin_inset space ~
17273 \begin_inset CommandInset ref
17275 reference "tab:Several-table-cell"
17279 is not possible with
17286 \begin_layout Standard
17287 \begin_inset Newpage newpage
17293 \begin_layout Standard
17294 \begin_inset Float table
17300 \begin_layout Plain Layout
17301 \begin_inset Caption
17303 \begin_layout Plain Layout
17304 \begin_inset CommandInset label
17306 name "tab:Alignments-when"
17310 Alignments when LaTeX-package dcolumn is used.
17311 For all column alignments tricks have to be used to get the output.
17319 \begin_layout Plain Layout
17321 \begin_inset Tabular
17322 <lyxtabular version="3" rows="4" columns="3">
17324 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{-1}">
17325 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{4.9}">
17326 <column alignment="center" valignment="top" width="0" special="D{+}{\,}{9.7}">
17328 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17331 \begin_layout Plain Layout
17337 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17340 \begin_layout Plain Layout
17346 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
17349 \begin_layout Plain Layout
17357 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17360 \begin_layout Plain Layout
17362 \begin_inset space \thinspace{}
17370 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17373 \begin_layout Plain Layout
17375 \begin_inset space \thinspace{}
17379 \begin_inset Formula $\mbox{bottles}$
17387 <cell alignment="center" valignment="top" usebox="none">
17390 \begin_layout Plain Layout
17395 \begin_layout Plain Layout
17405 \begin_inset Formula $\mbox{bottles}$
17415 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17418 \begin_layout Plain Layout
17420 \begin_inset space \thinspace{}
17428 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17431 \begin_layout Plain Layout
17433 \begin_inset space \thinspace{}
17437 \begin_inset Formula $\mbox{Pixels}$
17445 <cell alignment="center" valignment="top" usebox="none">
17448 \begin_layout Plain Layout
17453 \begin_layout Plain Layout
17463 \begin_inset Formula $\mbox{Pixels}$
17473 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17476 \begin_layout Plain Layout
17478 \begin_inset space \thinspace{}
17486 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17489 \begin_layout Plain Layout
17491 \begin_inset space \thinspace{}
17495 \begin_inset Formula $\mbox{cm}$
17503 <cell alignment="center" valignment="top" usebox="none">
17506 \begin_layout Plain Layout
17511 \begin_layout Plain Layout
17521 \begin_inset Formula $\mbox{cm}$
17542 \begin_layout Subsection
17543 Customized Cell/Column Format
17544 \begin_inset CommandInset label
17546 name "sub:Customized-Format"
17554 \begin_layout Plain Layout
17555 Table Customization ! Cell/Column Format
17563 \begin_layout Standard
17564 Calculating the needed width for spanned columns like in section
17565 \begin_inset space ~
17569 \begin_inset CommandInset ref
17571 reference "sub:Multicolumn-Calculations"
17575 is very annoying if you have several tables with multicolumn cells.
17576 To make life easier, you can define a cell/column format in the preamble,
17577 so that it can be used in all tables of the document.
17578 The format is defined with the command
17581 \begin_layout Standard
17586 newcolumntype{name of format}[number of arguments]{commands}
17589 \begin_layout Standard
17590 The format name may only consist of one letter.
17615 are predefined and cannot be used.
17616 But all letters are allowed as capitals.
17619 \begin_layout Standard
17620 \begin_inset VSpace medskip
17626 \begin_layout Standard
17627 For vertically and horizontally centered multicolumn cells with a fixed
17628 width you can define the cell format
17631 \begin_layout Standard
17636 newcolumntype{M}[1]{>{
17643 \begin_layout Standard
17650 avoids the problem of hyphenating the first word, as described in section
17651 \begin_inset space ~
17655 \begin_inset CommandInset ref
17657 reference "sub:Multiple-Lines-in"
17662 Now you can simply enter
17665 \begin_layout Standard
17671 \begin_layout Standard
17672 as LaTeX-argument in the table dialog to create a multicolumn.
17675 \begin_layout Standard
17676 \begin_inset VSpace bigskip
17682 \begin_layout Standard
17683 For cells spanned by a multicolumn cell, you can define the format
17686 \begin_layout Standard
17691 newcolumntype{S}[2]{>{
17696 \begin_inset Newline newline
17703 \begin_layout Plain Layout
17718 \begin_layout Plain Layout
17729 arrayrulewidth)*(1-#2))/#2}}
17732 \begin_layout Standard
17733 This format uses equation
17734 \begin_inset CommandInset ref
17740 to calculate the needed width so that each spanned cell has the same width.
17743 \begin_layout Standard
17747 \begin_layout Standard
17750 S{width of multicolumn cell}{number of spanned columns}
17753 \begin_layout Standard
17754 as LaTeX-argument of the column.
17757 \begin_layout Standard
17758 \begin_inset VSpace bigskip
17764 \begin_layout Standard
17765 For colored columns, you can define
17768 \begin_layout Standard
17773 newcolumntype{K}[1]{>{
17780 \begin_layout Standard
17782 \begin_inset Quotes eld
17786 \begin_inset Quotes erd
17789 at the end creates a column with a flexible width whose text is horizontally
17794 \begin_layout Standard
17800 \begin_layout Standard
17804 \begin_layout Standard
17805 \begin_inset VSpace bigskip
17811 \begin_layout Standard
17813 \begin_inset space ~
17817 \begin_inset CommandInset ref
17819 reference "tab:Table-using-user-defined"
17823 use the LaTeX-arguments
17826 \begin_layout Standard
17832 \begin_layout Standard
17833 for the first column and the multicolumn,
17836 \begin_layout Standard
17842 \begin_layout Standard
17843 for the the last column, and
17846 \begin_layout Standard
17852 \begin_layout Standard
17853 for the cells in the second column.
17856 \begin_layout Standard
17857 \begin_inset Float table
17863 \begin_layout Plain Layout
17864 \begin_inset Caption
17866 \begin_layout Plain Layout
17867 \begin_inset CommandInset label
17869 name "tab:Table-using-user-defined"
17873 Table using user-defined table formats
17881 \begin_layout Plain Layout
17883 \begin_inset Tabular
17884 <lyxtabular version="3" rows="3" columns="4">
17886 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
17887 <column alignment="center" valignment="middle" width="0" special="S{2.5cm}{2}">
17888 <column alignment="center" valignment="middle" width="0">
17889 <column alignment="center" valignment="middle" width="0" special="K{red}">
17891 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17894 \begin_layout Plain Layout
17895 verylongtablecellword
17900 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
17903 \begin_layout Plain Layout
17904 multiple lines multicolumn
17909 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17912 \begin_layout Plain Layout
17918 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17921 \begin_layout Plain Layout
17929 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17932 \begin_layout Plain Layout
17938 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17941 \begin_layout Plain Layout
17947 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17950 \begin_layout Plain Layout
17956 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17959 \begin_layout Plain Layout
17967 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17970 \begin_layout Plain Layout
17976 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17979 \begin_layout Plain Layout
17985 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17988 \begin_layout Plain Layout
17994 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17997 \begin_layout Plain Layout
18016 \begin_layout Subsection
18018 \begin_inset CommandInset label
18020 name "sub:Line-Thickness"
18028 \begin_layout Plain Layout
18029 Table Customization ! Line Thickness
18037 \begin_layout Standard
18038 The line thickness for all lines in a table can be adjusted with the length
18046 To set for example a line thickness of 1.5
18047 \begin_inset space \thinspace{}
18051 \begin_inset space ~
18055 \begin_inset CommandInset ref
18057 reference "tab:Table-with-1.5"
18061 , insert the command
18064 \begin_layout Standard
18071 arrayrulewidth}{1.5pt}
18074 \begin_layout Standard
18075 in TeX-Code before the table or table float.
18076 The changed thickness is valid for all following tables.
18077 To use the default value again, set
18084 \begin_inset space \thinspace{}
18087 pt in TeX-Code behind the table or table float.
18090 \begin_layout Standard
18094 \begin_layout Plain Layout
18100 arrayrulewidth}{1.5pt}
18106 \begin_inset Float table
18111 \begin_layout Plain Layout
18112 \begin_inset Caption
18114 \begin_layout Plain Layout
18115 \begin_inset CommandInset label
18117 name "tab:Table-with-1.5"
18122 \begin_inset space \thinspace{}
18133 \begin_layout Plain Layout
18135 \begin_inset Tabular
18136 <lyxtabular version="3" rows="3" columns="3">
18138 <column alignment="center" valignment="top" width="0">
18139 <column alignment="center" valignment="top" width="0">
18140 <column alignment="center" valignment="top" width="0">
18142 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18145 \begin_layout Plain Layout
18151 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18154 \begin_layout Plain Layout
18160 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18163 \begin_layout Plain Layout
18171 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18174 \begin_layout Plain Layout
18180 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18183 \begin_layout Plain Layout
18189 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18192 \begin_layout Plain Layout
18200 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18203 \begin_layout Plain Layout
18209 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18212 \begin_layout Plain Layout
18218 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18221 \begin_layout Plain Layout
18241 \begin_layout Plain Layout
18247 arrayrulewidth}{0.4pt}
18255 \begin_layout Standard
18256 \begin_inset VSpace bigskip
18259 To set the line thickness to 1.5
18260 \begin_inset space \thinspace{}
18263 pt only for horizontal lines, like in Table
18264 \begin_inset space ~
18268 \begin_inset CommandInset ref
18270 reference "tab:Table-with-horizontal"
18274 , insert these commands in TeX-Code before the table or table float:
18277 \begin_layout Standard
18287 \begin_inset Newline newline
18295 \begin_inset Newline newline
18304 arrayrulewidth 1.5pt}
18305 \begin_inset Newline newline
18316 arrayrulewidth 0.4pt}}
18319 \begin_layout Standard
18320 To return to the default line thickness, insert this command in TeX-Code
18321 behind the table or table float:
18324 \begin_layout Standard
18336 \begin_layout Standard
18340 \begin_layout Plain Layout
18351 \begin_layout Plain Layout
18360 \begin_layout Plain Layout
18368 arrayrulewidth 1.5pt}
18371 \begin_layout Plain Layout
18381 arrayrulewidth 0.4pt}}
18387 \begin_inset Float table
18392 \begin_layout Plain Layout
18393 \begin_inset Caption
18395 \begin_layout Plain Layout
18396 \begin_inset CommandInset label
18398 name "tab:Table-with-horizontal"
18403 \begin_inset space \thinspace{}
18406 pt thick horizontal lines
18414 \begin_layout Plain Layout
18416 \begin_inset Tabular
18417 <lyxtabular version="3" rows="3" columns="3">
18419 <column alignment="center" valignment="top" width="0">
18420 <column alignment="center" valignment="top" width="0">
18421 <column alignment="center" valignment="top" width="0">
18423 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18426 \begin_layout Plain Layout
18432 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18435 \begin_layout Plain Layout
18441 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18444 \begin_layout Plain Layout
18452 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18455 \begin_layout Plain Layout
18461 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18464 \begin_layout Plain Layout
18470 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18473 \begin_layout Plain Layout
18481 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18484 \begin_layout Plain Layout
18490 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18493 \begin_layout Plain Layout
18499 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18502 \begin_layout Plain Layout
18522 \begin_layout Plain Layout
18538 \begin_layout Standard
18539 \begin_inset VSpace bigskip
18542 To set the line thickness to 1.5
18543 \begin_inset space \thinspace{}
18546 pt only for vertical lines, create the following column format in the document
18547 preamble, according to the description in section
18548 \begin_inset space ~
18552 \begin_inset CommandInset ref
18554 reference "sub:Customized-Format"
18561 \begin_layout Standard
18566 newcolumntype{V}{!{
18568 vrule width 1.5pt}}
18571 \begin_layout Standard
18573 \begin_inset space ~
18577 \begin_inset CommandInset ref
18579 reference "tab:Table-with-vertical"
18586 \begin_layout Standard
18592 \begin_layout Standard
18593 was used for the last column and
18596 \begin_layout Standard
18602 \begin_layout Standard
18603 for the other columns.
18606 \begin_layout Standard
18607 \begin_inset Float table
18612 \begin_layout Plain Layout
18613 \begin_inset Caption
18615 \begin_layout Plain Layout
18616 \begin_inset CommandInset label
18618 name "tab:Table-with-vertical"
18623 \begin_inset space \thinspace{}
18626 pt thick vertical lines
18634 \begin_layout Plain Layout
18636 \begin_inset Tabular
18637 <lyxtabular version="3" rows="3" columns="3">
18639 <column alignment="center" valignment="top" width="0" special="Vc">
18640 <column alignment="center" valignment="top" width="0" special="Vc">
18641 <column alignment="center" valignment="top" width="0" special="VcV">
18643 <cell alignment="center" valignment="top" topline="true" usebox="none">
18646 \begin_layout Plain Layout
18652 <cell alignment="center" valignment="top" topline="true" usebox="none">
18655 \begin_layout Plain Layout
18661 <cell alignment="center" valignment="top" topline="true" usebox="none">
18664 \begin_layout Plain Layout
18672 <cell alignment="center" valignment="top" topline="true" usebox="none">
18675 \begin_layout Plain Layout
18681 <cell alignment="center" valignment="top" topline="true" usebox="none">
18684 \begin_layout Plain Layout
18690 <cell alignment="center" valignment="top" topline="true" usebox="none">
18693 \begin_layout Plain Layout
18701 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18704 \begin_layout Plain Layout
18710 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18713 \begin_layout Plain Layout
18719 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18722 \begin_layout Plain Layout
18741 \begin_layout Subsection
18746 \begin_layout Plain Layout
18747 Table Customization ! Dashed Lines
18755 \begin_layout Standard
18759 \begin_layout Plain Layout
18769 \begin_inset Note Note
18772 \begin_layout Plain Layout
18773 The following section will only be displayed when the LaTeX-package
18785 \begin_layout Standard
18786 \begin_inset Float table
18792 \begin_layout Plain Layout
18793 \begin_inset Caption
18795 \begin_layout Plain Layout
18796 \begin_inset CommandInset label
18798 name "tab:Table-with-dashed"
18802 Table with dashed lines
18810 \begin_layout Plain Layout
18812 \begin_inset Tabular
18813 <lyxtabular version="3" rows="5" columns="5">
18815 <column alignment="center" valignment="top" width="0">
18816 <column alignment="center" valignment="top" width="0">
18817 <column alignment="center" valignment="top" width="0" special=":c">
18818 <column alignment="center" valignment="top" width="0">
18819 <column alignment="center" valignment="top" width="0">
18821 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18824 \begin_layout Plain Layout
18830 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18833 \begin_layout Plain Layout
18839 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18842 \begin_layout Plain Layout
18848 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18851 \begin_layout Plain Layout
18857 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18860 \begin_layout Plain Layout
18868 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18871 \begin_layout Plain Layout
18877 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18880 \begin_layout Plain Layout
18886 <cell alignment="center" valignment="top" topline="true" usebox="none">
18889 \begin_layout Plain Layout
18895 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18898 \begin_layout Plain Layout
18904 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18907 \begin_layout Plain Layout
18915 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18918 \begin_layout Plain Layout
18922 \begin_layout Plain Layout
18936 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18939 \begin_layout Plain Layout
18945 <cell alignment="center" valignment="top" usebox="none">
18948 \begin_layout Plain Layout
18954 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18957 \begin_layout Plain Layout
18963 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
18966 \begin_layout Plain Layout
18974 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18977 \begin_layout Plain Layout
18981 \begin_layout Plain Layout
18995 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18998 \begin_layout Plain Layout
19004 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
19007 \begin_layout Plain Layout
19013 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none" special="c:">
19016 \begin_layout Plain Layout
19022 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19025 \begin_layout Plain Layout
19033 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19036 \begin_layout Plain Layout
19042 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19045 \begin_layout Plain Layout
19051 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19054 \begin_layout Plain Layout
19060 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19063 \begin_layout Plain Layout
19069 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19072 \begin_layout Plain Layout
19091 \begin_layout Standard
19092 LyX doesn't natively support dashed lines, so you have to use TeX-Code.
19093 As prerequisite the LaTeX-package
19101 \begin_layout Plain Layout
19102 LaTeX-packages ! arydshln
19107 must be loaded in the document preamble with the command
19110 \begin_layout Standard
19115 usepackage{arydshln}
19118 \begin_layout Standard
19119 To make a vertical line dashed, enter the colon
19120 \begin_inset Quotes eld
19124 \begin_inset Quotes erd
19127 together with the character for the horizontal alignment as LaTeX-argument
19128 in the table cell dialog.
19131 \begin_layout Standard
19132 For a horizontal dashed line add the command
19135 \begin_layout Standard
19143 \begin_layout Standard
19144 in TeX-Code as first element of the first cell in the table row.
19147 \begin_layout Standard
19148 For dashed multicolumn lines use the command
19151 \begin_layout Standard
19156 cdashline{line number
19161 \begin_layout Standard
19162 in TeX-Code as first element of the first cell in the table row.
19163 If you have for example a multicolumn spanning over columns 2 to 4 and
19164 you want to have a dashed line above, add the command
19167 \begin_layout Standard
19175 \begin_layout Standard
19176 as first element of the first cell in the row of the multicolumn.
19179 \begin_layout Standard
19180 \begin_inset VSpace bigskip
19186 \begin_layout Standard
19188 \begin_inset space ~
19192 \begin_inset CommandInset ref
19194 reference "tab:Table-with-dashed"
19199 \begin_inset Quotes eld
19207 \begin_inset Quotes erd
19210 as LaTeX-argument of the third column.
19211 The TeX-Code command
19217 was inserted to the first cell of the third row and the the TeX-Code command
19218 \begin_inset Newline newline
19227 was inserted to the first cell of the fourth row.
19230 \begin_layout Standard
19231 \begin_inset Note Greyedout
19234 \begin_layout Plain Layout
19239 The used LaTeX-package
19243 is apparently not compatible with the LaTeX-package
19251 \begin_layout Plain Layout
19252 LaTeX-packages ! colortbl
19257 that is used for colored tables in section
19258 \begin_inset space ~
19262 \begin_inset CommandInset ref
19264 reference "sec:Colored-Tables"
19269 That means colored tables cannot have dashed lines.
19277 \begin_layout Standard
19281 \begin_layout Plain Layout
19291 \begin_inset Note Note
19294 \begin_layout Plain Layout
19295 The following will be displayed when the LaTeX-package
19307 \begin_layout Standard
19308 You need to install the package
19312 to see the content of this section in the output.
19315 \begin_layout Standard
19319 \begin_layout Plain Layout
19331 \begin_layout Chapter
19336 \begin_layout Plain Layout
19345 \begin_layout Section
19347 \begin_inset CommandInset label
19349 name "sec:FloatIntroduction"
19357 \begin_layout Plain Layout
19358 Floats ! Introduction
19366 \begin_layout Standard
19367 A float is a block of text associated with some sort of label, which doesn't
19368 have a fixed location.
19370 \begin_inset Quotes eld
19374 \begin_inset Quotes erd
19377 forward or backward a page or two, to wherever it fits best.
19385 \begin_inset space ~
19390 are also floats, because they can float to the next page when there are
19391 too many notes at the page.
19394 \begin_layout Standard
19395 Floats allow a high quality layout.
19396 Images and tables can evenly be spread to the pages to avoid white space
19397 and pages without text.
19398 As the floating often destroys the context between the text and the image/table
19399 , every float can be referenced in the text.
19400 Floats are therefore numbered.
19401 Referencing is described in section
19402 \begin_inset space ~
19406 \begin_inset CommandInset ref
19408 reference "sec:Referencing-Floats"
19415 \begin_layout Standard
19416 To insert a float, use the menu
19418 Insert\SpecialChar \menuseparator
19426 inset, a box with a label.
19427 The label will automatically be translated to the document language in
19429 Behind the label you can insert the caption text.
19430 The image or table is inserted above or below the caption in a separate
19431 paragraph within the float.
19432 More about the caption placement is described in section
19433 \begin_inset space ~
19437 \begin_inset CommandInset ref
19439 reference "sec:Caption-Placement"
19444 To keep your LyX-document readable, you can open and close the float box
19445 by left-clicking on the box label.
19446 A closed float box looks like this:
19447 \begin_inset Graphics
19448 filename clipart/floatQt4.png
19450 scaleBeforeRotation
19454 – a gray button with a red label.
19457 \begin_layout Standard
19458 It is recommended to insert floats as a separate paragraph to avoid possible
19459 LaTeX-errors that can occur when the surrounding text is specially formatted.
19462 \begin_layout Standard
19463 Existing figures or tables can be put into a float by marking them and then
19464 pressing the corresponding toolbar button for a new float.
19467 \begin_layout Section
19471 \begin_layout Standard
19472 Besides figure and table floats that are described in section
19473 \begin_inset space ~
19477 \begin_inset CommandInset ref
19479 reference "sec:Figure-Floats"
19484 \begin_inset CommandInset ref
19486 reference "sec:Table-Floats"
19490 , respectively, LyX offers the float types
19501 \begin_layout Subsection
19506 \begin_layout Plain Layout
19507 Floats ! Algorithms
19515 \begin_layout Standard
19516 \begin_inset Float algorithm
19522 \begin_layout Plain Layout
19523 \begin_inset Caption
19525 \begin_layout Plain Layout
19526 \begin_inset CommandInset label
19528 name "alg:Example-Algorithm-float"
19532 Example Algorithm float
19540 \begin_layout LyX-Code
19542 \begin_inset Newline newline
19545 Sum:= Sum + A(I); /*comment*/
19546 \begin_inset Newline newline
19550 \begin_inset VSpace -4mm
19561 \begin_layout Standard
19562 This float type is inserted with the menu
19564 Insert\SpecialChar \menuseparator
19565 Floats\SpecialChar \menuseparator
19569 It is used for program codes and descriptions of algorithms and can be
19570 seen as an alternative to program code listings that are explained in chapter
19571 \begin_inset space ~
19575 \begin_inset CommandInset ref
19577 reference "cha:Program-Code-Listings"
19582 A possible environment for algorithms is the
19586 , described in LyX's
19592 \begin_inset space ~
19596 \begin_inset CommandInset ref
19598 reference "alg:Example-Algorithm-float"
19602 is an example of an algorithm float where -4
19603 \begin_inset space \thinspace{}
19606 mm vertical space was added at the end of the float to have the bottom rule
19607 exactly below the last text line.
19610 \begin_layout Standard
19611 The float label is not automatically translated into the document language.
19612 If your document is not in English, you have to do this manually by adding
19613 the following line to the document preamble
19618 \begin_layout Standard
19623 floatname{algorithm}{your
19624 \begin_inset space ~
19630 \begin_layout Standard
19634 \begin_inset space ~
19640 \begin_inset Quotes eld
19648 \begin_inset Quotes erd
19654 \begin_layout Standard
19655 To insert the list of algorithms you can use the menu
19657 Insert\SpecialChar \menuseparator
19659 \begin_inset space \thinspace{}
19663 \begin_inset space \thinspace{}
19666 TOC\SpecialChar \menuseparator
19669 when your document has the same language as LyX's menu names.
19670 In other cases use this command in TeX-Code instead:
19673 \begin_layout Standard
19678 listof{algorithm}{your
19679 \begin_inset space ~
19685 \begin_layout Standard
19689 \begin_inset space ~
19695 \begin_inset Quotes eld
19703 \begin_inset Quotes erd
19709 \begin_layout Standard
19710 Algorithm floats are not by default numbered in the scheme
19711 \begin_inset Quotes eld
19715 \begin_inset Quotes erd
19718 like it is the case for table and figure floats in many document-classes.
19719 To number algorithm floats in the same scheme, add this command to your
19723 \begin_layout Standard
19728 numberwithin{algorithm}{chapter}
19731 \begin_layout Standard
19732 To be able to use the command
19741 \begin_inset space ~
19746 in the document settings the option
19749 \begin_inset space ~
19753 \begin_inset space ~
19757 \begin_inset space ~
19765 \begin_layout Subsection
19770 \begin_layout Plain Layout
19771 Floats ! Wrap Floats
19779 \begin_layout Standard
19780 \begin_inset Wrap figure
19787 \begin_layout Plain Layout
19788 \begin_inset Graphics
19789 filename clipart/mobius.eps
19791 scaleBeforeRotation
19792 rotateOrigin center
19799 \begin_layout Plain Layout
19800 \begin_inset Caption
19802 \begin_layout Plain Layout
19803 \begin_inset CommandInset label
19805 name "fig:This-is-a"
19809 This is a figure wrap float.
19819 This float type is used if you want to wrap text around a figure or table
19820 so that it only occupies some fraction of the column width.
19821 It can be inserted using the menu
19823 Insert\SpecialChar \menuseparator
19824 Floats\SpecialChar \menuseparator
19826 \begin_inset space ~
19830 \begin_inset space ~
19838 \begin_inset space ~
19842 \begin_inset space ~
19847 if the LaTeX-package
19855 \begin_layout Plain Layout
19856 LaTeX-packages ! wrapfig
19860 \begin_layout Plain Layout
19878 \begin_layout Plain Layout
19879 Installing a LaTeX-package is explained it in the
19882 \begin_inset space ~
19892 The settings of the float can be modified by right-clicking on the float
19894 The mandatory settings are the float
19907 that specifies how much the float is set into the paragraph
19908 \begin_inset space \thinspace{}
19912 \begin_inset space \thinspace{}
19915 page margin, and the
19918 \begin_inset space ~
19923 that specifies how many text lines the float will approximately need.
19924 The line span is often hard to be approximated, so better only use it when
19925 you encounter float placement problems.
19926 You can furthermore decide if LaTeX is allowed to let the float float within
19927 the paragraph or to surrounding paragraphs.
19929 \begin_inset space ~
19933 \begin_inset CommandInset ref
19935 reference "fig:This-is-a"
19939 is an example text wrap float with a width of 40
19940 \begin_inset space \thinspace{}
19944 \begin_inset space \thinspace{}
19947 cm overhang, set to the left.
19951 \begin_layout Plain Layout
19952 Available units are explained in appendix
19953 \begin_inset space ~
19957 \begin_inset CommandInset ref
19959 reference "cha:Units-available-in"
19971 \begin_layout Standard
19972 \begin_inset Note Greyedout
19975 \begin_layout Plain Layout
19981 \begin_inset space ~
19984 wrap float floats are fragile! E.
19985 \begin_inset space \thinspace{}
19989 \begin_inset space \space{}
19992 having a figure too close to the bottom of the page can mess things up in
19993 the way that the float doesn't appear in the output or that it is placed
19994 over some other text.
20002 \begin_layout Standard
20006 \begin_layout Itemize
20007 Wrap floats should not be placed in paragraphs that run over a page break.
20008 That means that wrap floats should better be inserted to the exact place
20009 when the document is nearly finished and you are able to estimate where
20010 page breaks will appear.
20013 \begin_layout Itemize
20014 Wrap floats should either be placed in an own paragraph before the paragraph
20015 where they should wrap into or within a paragraph.
20018 \begin_layout Itemize
20019 Wrap floats in consecutive paragraphs may cause troubles, so assure that
20020 there is a text paragraph between them as separator.
20023 \begin_layout Itemize
20024 Wrap floats are not allowed in section headings or tables.
20027 \begin_layout Section
20032 \begin_layout Plain Layout
20041 \begin_layout Standard
20042 Floats are usually numbered either independent from the sections the floats
20043 are in, or in the scheme
20044 \begin_inset Quotes eld
20048 \begin_inset Quotes erd
20052 \begin_inset Quotes eld
20056 \begin_inset Quotes erd
20060 This depends on the used document class.
20063 \begin_layout Standard
20064 To change the section independent numbering, you can use this command in
20065 the document preamble:
20068 \begin_layout Standard
20080 \begin_layout Standard
20087 is the command that prints the table number, for figure floats, the command
20101 prints in the command above the table number as small roman number.
20104 \begin_layout Standard
20105 To change the numbering scheme for example to
20106 \begin_inset Quotes eld
20110 \begin_inset Quotes erd
20113 , use this command in the preamble:
20116 \begin_layout Standard
20121 numberwithin{table}{subsection}
20124 \begin_layout Standard
20125 To be able to use the command
20134 \begin_inset space ~
20139 in the document settings the option
20142 \begin_inset space ~
20146 \begin_inset space ~
20150 \begin_inset space ~
20158 \begin_layout Standard
20159 Please also have a look at section
20160 \begin_inset space ~
20164 \begin_inset CommandInset ref
20166 reference "sub:Footnote-Numbering"
20170 for the details and important notes about the numbering commands.
20173 \begin_layout Section
20175 \begin_inset CommandInset label
20177 name "sec:Referencing-Floats"
20185 \begin_layout Plain Layout
20186 Floats ! References
20195 \begin_layout Plain Layout
20196 References ! to Floats
20204 \begin_layout Standard
20205 To reference a float, insert a label into its caption using the menu
20207 Insert\SpecialChar \menuseparator
20210 or the toolbar button
20211 \begin_inset Graphics
20212 filename ../images/label-insert.png
20214 scaleBeforeRotation
20219 A grey label box like this one:
20220 \begin_inset Graphics
20221 filename clipart/labelQt4.png
20223 scaleBeforeRotation
20227 will be inserted and the label window pops up asking for the label text.
20228 LyX offers as text the first words of the caption with a prefix.
20229 The prefix depends on the float type, e.
20230 \begin_inset space \thinspace{}
20234 \begin_inset space \space{}
20237 for figure floats the prefix will be "
20244 \begin_layout Standard
20245 The label is used as anchor and name for the reference.
20246 You can refer to the label using the menu
20248 Insert\SpecialChar \menuseparator
20251 or the toolbar button
20252 \begin_inset Graphics
20253 filename ../images/dialog-show-new-inset_ref.png
20255 scaleBeforeRotation
20260 A grey cross-reference box like this one:
20261 \begin_inset Graphics
20262 filename clipart/referenceQt4.png
20264 scaleBeforeRotation
20268 will be inserted and the cross-reference window appear showing all labels
20270 If you have multiple LyX-documents opened, choose the one you are working
20271 on from the drop-list at the top of the dialog.
20272 You can now sort the labels alphabetically and then choose one.
20273 At the position of the cross-reference box the float number will appear
20277 \begin_layout Standard
20278 It is recommended to use a protected space between the cross-reference name
20279 and its number to avoid line breaks between them.
20280 If a cross-reference refers to a non-existing label, you will see two question
20281 marks in the output instead of the reference.
20284 \begin_layout Standard
20285 You can change labels at any time by clicking on the label box.
20286 References to the changed label will automatically change its link to the
20287 new label text, so that you don't need to take care about this.
20290 \begin_layout Standard
20294 \begin_inset space ~
20298 \begin_inset space ~
20303 in the cross-reference window sets the cursor before the referred label.
20304 The button text changes then to Go
20305 \begin_inset space ~
20308 Back and you can use it to set the cursor back to the cross-reference.
20309 Right-clicking on a cross-reference box also sets the cursor before the
20310 referenced label but without a possibility to go back.
20313 \begin_layout Subsection
20314 Cross-Reference Formats
20315 \begin_inset CommandInset label
20317 name "sub:Cross-Reference-Formats"
20325 \begin_layout Plain Layout
20326 References ! Formats
20334 \begin_layout Standard
20335 There are six varieties of cross-references:
20338 \begin_layout Description
20339 <reference>: prints the float number, this is the default:
20340 \begin_inset CommandInset ref
20342 reference "fig:Two-distorted-images"
20349 \begin_layout Description
20350 (<reference>): prints the float number within two parentheses, this is the
20351 style normally used to reference formulas, especially when the reference
20353 \begin_inset Quotes eld
20357 \begin_inset Quotes erd
20361 \begin_inset CommandInset ref
20370 \begin_layout Description
20371 <page>: prints the page number: Page
20372 \begin_inset space ~
20376 \begin_inset CommandInset ref
20377 LatexCommand pageref
20378 reference "fig:Two-distorted-images"
20385 \begin_layout Description
20387 \begin_inset space ~
20391 \begin_inset space ~
20394 <page>: prints the text "on page" and the page number:
20395 \begin_inset CommandInset ref
20396 LatexCommand vpageref
20397 reference "fig:Two-distorted-images"
20404 \begin_layout Description
20406 \begin_inset space ~
20410 \begin_inset space ~
20414 \begin_inset space ~
20417 <page>: prints the float number, the text "on page", and the page number:
20419 \begin_inset CommandInset ref
20421 reference "fig:Two-distorted-images"
20428 \begin_layout Description
20430 \begin_inset space ~
20433 reference: prints a self defined cross-reference format.
20434 \begin_inset Newline newline
20438 \begin_inset Note Greyedout
20441 \begin_layout Plain Layout
20446 This feature is only available when you have the LaTeX-package
20454 \begin_layout Plain Layout
20455 LaTeX-packages ! prettyref
20468 \begin_layout Standard
20473 will not print the page number if the label is on the previous, the same,
20476 \begin_inset space \thinspace{}
20480 \begin_inset space \space{}
20484 \begin_inset Quotes eld
20492 \begin_inset Quotes erd
20498 <reference> on page <page>
20500 will not print anything about the page if the label is on the same page.
20503 \begin_layout Standard
20504 The number and current page of the referred document part in the output,
20505 is automatically calculated by LaTeX.
20506 The varieties are adjusted in the field
20510 of the cross-reference window, that appear when you click on the cross-referenc
20514 \begin_layout Standard
20515 \begin_inset Note Greyedout
20518 \begin_layout Plain Layout
20531 \begin_layout Plain Layout
20532 LaTeX-packages ! prettyref
20537 does not know all of LyX's possible label shortcuts
20541 \begin_layout Plain Layout
20542 \begin_inset Quotes eld
20546 \begin_inset Quotes erd
20549 is for example LyX's shortcut for labels in figure captions.
20554 and is not internationalized.
20559 new shortcuts and translations, have a look at its documentation
20560 \begin_inset CommandInset citation
20574 \begin_layout Standard
20575 \begin_inset Note Greyedout
20578 \begin_layout Plain Layout
20583 Due to a bug in the LaTeX-package
20587 version 1.4w, some cross-reference formats will cause LaTeX errors for document
20588 languages that make the period character active (like French).
20589 For a workaround, see
20590 \begin_inset Newline newline
20594 \begin_inset CommandInset href
20596 target "http://wiki.lyx.org/LaTeX/LatexBugs#toc5"
20608 \begin_layout Subsection
20609 Automatic Reference Naming
20613 \begin_layout Plain Layout
20614 References ! Automatic Reference Naming
20622 \begin_layout Standard
20631 \begin_layout Plain Layout
20632 LaTeX-packages ! hyperref
20637 , that is enabled in the
20645 dialog, provides a very useful feature that cross-references automatically
20646 include the name of the referenced floats (or text parts like
20651 So you will save to write e.
20652 \begin_inset space \thinspace{}
20656 \begin_inset space \space{}
20660 \begin_inset Quotes eld
20664 \begin_inset Quotes erd
20667 before every reference to a figure.
20668 To use this feature, enable
20672 and insert this line to the LaTeX preamble:
20675 \begin_layout Standard
20691 \begin_layout Standard
20692 When you prefer other reference names than the default ones, for example
20693 you want instead of
20694 \begin_inset Quotes eld
20698 \begin_inset Quotes erd
20702 \begin_inset Quotes eld
20706 \begin_inset space \thinspace{}
20710 \begin_inset Quotes eld
20713 , you can redefine the name by inserting this to the preamble:
20716 \begin_layout Standard
20727 sectionautorefname}
20728 \begin_inset Newline newline
20735 \begin_layout Plain Layout
20749 \begin_layout Standard
20750 When you are using another document language than English, replace
20751 \begin_inset Newline newline
20766 , where *** is the name of the used language.
20769 \begin_layout Standard
20770 To get automatic names, but not for certain reference types, for example
20771 not for equations, use this preamble code:
20774 \begin_layout Standard
20782 \begin_inset Newline newline
20792 \begin_inset Newline newline
20803 equationautorefname}
20804 \begin_inset Newline newline
20811 \begin_layout Plain Layout
20827 \begin_layout Standard
20828 More about this topic can be found in
20833 \begin_inset CommandInset citation
20842 \begin_layout Standard
20843 \begin_inset Note Greyedout
20846 \begin_layout Plain Layout
20851 Automatic reference naming cannot be used when you use cross-references
20855 \begin_inset space ~
20860 style, as described in section
20861 \begin_inset space ~
20865 \begin_inset CommandInset ref
20867 reference "sub:Cross-Reference-Formats"
20879 \begin_layout Standard
20884 manual is an example where automatic reference naming is used.
20887 \begin_layout Subsection
20889 \begin_inset CommandInset label
20891 name "sub:Reference-Position"
20899 \begin_layout Plain Layout
20900 References ! Reference Position
20908 \begin_layout Standard
20917 \begin_layout Plain Layout
20918 LaTeX-packages ! hyperref
20931 dialog to link cross-references in the output, you will see that clicking
20932 on an image float reference jumps to the image label.
20933 The caption will be the first text part on the screen, so that you cannot
20934 see the image without scrolling.
20935 This is because the reference link anchor is placed at the position of
20937 With the use of the package
20945 \begin_layout Plain Layout
20946 LaTeX-packages ! hypcap
20951 , which is part of the LaTeX-package
20959 \begin_layout Plain Layout
20960 LaTeX-packages ! oberdiek
20965 , the link anchor is placed at the beginning of a float.
20966 To use this feature for figure floats, load
20970 in the document preamble with the line
20973 \begin_layout Standard
20978 usepackage[figure]{hypcap}
20981 \begin_layout Standard
20986 for all float types but this is not recommended for stability reasons.
20987 For more information, have a look at
20992 \begin_inset CommandInset citation
21001 \begin_layout Standard
21002 \begin_inset Note Greyedout
21005 \begin_layout Plain Layout
21014 has no effect for references to subfigures.
21022 \begin_layout Section
21024 \begin_inset CommandInset label
21026 name "sec:Float-Placement"
21034 \begin_layout Plain Layout
21043 \begin_layout Standard
21044 Right-clicking on a float-box opens a dialog where you can alter the placement
21045 options that LaTeX uses for positioning the float.
21046 \begin_inset Newline newline
21052 \begin_inset space ~
21057 is only useful for two-column documents: If you select it, the float will
21058 span across both columns on the page instead of being confined to just
21060 \begin_inset Newline newline
21066 \begin_inset space ~
21071 is used to rotate floats, see section
21072 \begin_inset CommandInset ref
21074 reference "sec:Rotated-Floats"
21081 \begin_layout Standard
21082 You can use one ore more of the following options in the float dialog to
21083 set the placement for a particular float when you uncheck the option
21086 \begin_inset space ~
21090 \begin_inset space ~
21098 \begin_layout Description
21100 \begin_inset space ~
21104 \begin_inset space ~
21107 possible try to place the float on the position where it is inserted
21110 \begin_layout Description
21112 \begin_inset space ~
21116 \begin_inset space ~
21119 page try to place the float on the top of the current page
21122 \begin_layout Description
21124 \begin_inset space ~
21128 \begin_inset space ~
21131 page try to place the float on the bottom of the current page
21134 \begin_layout Description
21136 \begin_inset space ~
21140 \begin_inset space ~
21143 floats try to place the float on an own page
21146 \begin_layout Standard
21147 The order of the above option is
21152 That means, if you use the default placement, LaTeX will first try out
21156 \begin_inset space ~
21160 \begin_inset space ~
21168 \begin_inset space ~
21172 \begin_inset space ~
21177 , and then the others.
21178 If you don't use the default, LaTeX will try only the checked options but
21180 If none of the 4 placements are possible the procedure is internally repeated
21181 but it is tried to put the float on the following page.
21184 \begin_layout Standard
21185 By default, each option has its own rules:
21188 \begin_layout Labeling
21189 \labelwidthstring 00.00.0000
21193 \begin_inset space ~
21197 \begin_inset space ~
21202 only floats occupying less than 70
21203 \begin_inset space \thinspace{}
21206 % of the page can be placed at the top of a page (
21215 \begin_layout Labeling
21216 \labelwidthstring 00.00.0000
21220 \begin_inset space ~
21224 \begin_inset space ~
21229 : only floats occupying less than 30
21230 \begin_inset space \thinspace{}
21233 % of the page can be placed at the bottom of a page.
21243 \begin_layout Labeling
21244 \labelwidthstring 00.00.0000
21248 \begin_inset space ~
21252 \begin_inset space ~
21257 : only if more than 50
21258 \begin_inset space \thinspace{}
21261 % of the page are occupied by floats, several floats can be set together
21272 \begin_layout Standard
21273 If you don't like these rules, you can ignore them by using the additional
21277 \begin_inset space ~
21281 \begin_inset space ~
21287 \begin_inset Newline newline
21290 You can also redefine the rules with LaTeX-commands that are given in parenthese
21291 s behind the rules description above.
21292 To increase for example the often too small default of the bottom-rule
21294 \begin_inset space \thinspace{}
21297 % of the page, add this line to your document preamble:
21300 \begin_layout Standard
21307 bottomfraction}{0.5}
21310 \begin_layout Standard
21311 Sometimes you might need, under all circumstances, a float to be placed
21312 exactly at the position where it is inserted.
21313 For this case you can use the option
21316 \begin_inset space ~
21322 Use this option very rarely and only if the document is nearly ready to
21324 Because the float is then no longer able to
21325 \begin_inset Quotes eld
21329 \begin_inset Quotes erd
21332 when you change your document and this will often destroy the page layout.
21335 \begin_layout Standard
21336 There are no placement options for text wrap floats, because they are always
21337 surrounded by the text of a certain paragraph.
21338 \begin_inset VSpace bigskip
21344 \begin_layout Standard
21345 Sometimes you have the problem that a float is placed at the top of a page
21346 while its corresponding section starts at the middle of the page, so that
21347 the reader could think the float is part of the previous section.
21348 To avoid this the LaTeX-command
21355 It suppresses a given float placement for the page where it is inserted
21356 and can therefore be used to avoid that floats could be set before a section
21358 To get this, add these commands to your document preamble:
21361 \begin_layout Standard
21371 \begin_inset Newline newline
21385 \begin_layout Standard
21386 You can define the same for all section headings, like chapters and subsections.
21387 This definition is not recommended to be used for small text parts like
21388 subsubsections because LaTeX may then have problems to find a suitable
21392 \begin_layout Standard
21393 \begin_inset VSpace bigskip
21396 In some cases it is required to have all figures/tables at the end of the
21398 For this purpose the LaTeX-package
21406 \begin_layout Plain Layout
21407 LaTeX-packages ! endfloat
21413 It puts all figure and table floats at the end of the document into own
21415 At the original float position a text hint like
21416 \begin_inset Quotes eld
21422 \begin_inset space ~
21428 \begin_inset Quotes erd
21432 The endfloat-package is loaded in the preamble with the line
21435 \begin_layout Standard
21440 usepackage[options]{endfloat}
21443 \begin_layout Standard
21444 There are various package options to format the created figure/table sections.
21445 For more information we refer to the
21450 \begin_inset CommandInset citation
21457 \begin_inset Newline newline
21461 \begin_inset Note Greyedout
21464 \begin_layout Plain Layout
21469 doesn't provide an automatic translation for the text hint, you have to
21470 do this manually, see section
21471 \begin_inset space ~
21475 \begin_inset CommandInset citation
21487 \begin_inset Newline newline
21491 \begin_inset Note Greyedout
21494 \begin_layout Plain Layout
21499 There is currently a bug in
21503 when the caption contains a German
21504 \begin_inset Quotes eld
21508 \begin_inset Quotes erd
21512 Use in this case the command
21513 \begin_inset Quotes eld
21523 \begin_inset Quotes erd
21526 in TeX-Code instead of
21527 \begin_inset Quotes eld
21531 \begin_inset Quotes erd
21542 \begin_layout Standard
21543 \begin_inset VSpace bigskip
21546 For more details about float placements, have a look at LaTeX books,
21547 \begin_inset CommandInset citation
21549 key "latexcompanion,latexguide,latexbook"
21556 \begin_layout Section
21558 \begin_inset CommandInset label
21560 name "sec:Rotated-Floats"
21568 \begin_layout Plain Layout
21577 \begin_layout Standard
21578 Especially for wide tables you might have floats rotated.
21579 To rotate a whole float including the caption, right-click on the float-box
21583 \begin_inset space ~
21591 \begin_layout Standard
21592 Rotated floats are always placed on its own page (or column, in case you
21593 have a multi-column document).
21594 You can let them span several columns using the float settings option
21597 \begin_inset space ~
21603 Floats are rotated so that you can read them from the outside margin.
21604 To force a certain rotation direction for all pages, you can add either
21613 to the document class options.
21616 \begin_layout Standard
21617 Referencing rotated floats is the same like for normal floats, the caption
21618 format is also the same: Table
21619 \begin_inset space ~
21623 \begin_inset CommandInset ref
21625 reference "tab:Rotated-table"
21629 is an example of a rotated table float.
21632 \begin_layout Standard
21633 \begin_inset Note Greyedout
21636 \begin_layout Plain Layout
21641 Not all DVI-viewers are able to display rotated floats.
21649 \begin_layout Standard
21650 \begin_inset Float table
21655 \begin_layout Plain Layout
21656 \begin_inset Caption
21658 \begin_layout Plain Layout
21659 \begin_inset CommandInset label
21661 name "tab:Rotated-table"
21673 \begin_layout Plain Layout
21675 \begin_inset Tabular
21676 <lyxtabular version="3" rows="1" columns="5">
21678 <column alignment="center" valignment="top" width="0">
21679 <column alignment="center" valignment="top" width="0">
21680 <column alignment="center" valignment="top" width="0">
21681 <column alignment="center" valignment="top" width="0">
21682 <column alignment="center" valignment="top" width="0">
21684 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21687 \begin_layout Plain Layout
21693 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21696 \begin_layout Plain Layout
21702 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21705 \begin_layout Plain Layout
21711 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21714 \begin_layout Plain Layout
21720 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21723 \begin_layout Plain Layout
21742 \begin_layout Section
21747 \begin_layout Plain Layout
21756 \begin_layout Standard
21757 Subfloats are for example used when a figure consists of several images.
21758 They are created by inserting a float to an existing float.
21759 The placement of the subfloats can be controlled like for paragraphs as
21761 \begin_inset space ~
21765 \begin_inset CommandInset ref
21767 reference "tab:Two-subtables-side"
21772 \begin_inset CommandInset ref
21774 reference "tab:Two-subtables-upon"
21781 \begin_layout Standard
21782 Referencing subfloats works as for normal floats: Table
21783 \begin_inset space ~
21787 \begin_inset CommandInset ref
21789 reference "tab:This-is-subtable-a"
21794 \begin_inset CommandInset ref
21796 reference "tab:This-is-subtable-b"
21800 are subtables of table
21801 \begin_inset space ~
21805 \begin_inset CommandInset ref
21807 reference "tab:Two-subtables-side"
21814 \begin_layout Standard
21815 \begin_inset Float table
21820 \begin_layout Plain Layout
21821 \begin_inset Caption
21823 \begin_layout Plain Layout
21824 \begin_inset CommandInset label
21826 name "tab:Two-subtables-side"
21830 Two subtables placed side by side.
21838 \begin_layout Plain Layout
21840 \begin_inset space \hfill{}
21844 \begin_inset Float table
21849 \begin_layout Plain Layout
21850 \begin_inset Caption
21852 \begin_layout Plain Layout
21853 \begin_inset CommandInset label
21855 name "tab:This-is-subtable-a"
21859 This is subtable a.
21867 \begin_layout Plain Layout
21869 \begin_inset Tabular
21870 <lyxtabular version="3" rows="1" columns="5">
21872 <column alignment="center" valignment="top" width="0">
21873 <column alignment="center" valignment="top" width="0">
21874 <column alignment="center" valignment="top" width="0">
21875 <column alignment="center" valignment="top" width="0">
21876 <column alignment="center" valignment="top" width="0">
21878 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21881 \begin_layout Plain Layout
21887 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21890 \begin_layout Plain Layout
21896 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21899 \begin_layout Plain Layout
21905 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21908 \begin_layout Plain Layout
21914 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21917 \begin_layout Plain Layout
21934 \begin_inset space \hfill{}
21938 \begin_inset Float table
21943 \begin_layout Plain Layout
21944 \begin_inset Caption
21946 \begin_layout Plain Layout
21947 \begin_inset CommandInset label
21949 name "tab:This-is-subtable-b"
21953 This is subtable b.
21961 \begin_layout Plain Layout
21963 \begin_inset Tabular
21964 <lyxtabular version="3" rows="1" columns="5">
21966 <column alignment="center" valignment="top" width="0">
21967 <column alignment="center" valignment="top" width="0">
21968 <column alignment="center" valignment="top" width="0">
21969 <column alignment="center" valignment="top" width="0">
21970 <column alignment="center" valignment="top" width="0">
21972 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21975 \begin_layout Plain Layout
21981 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21984 \begin_layout Plain Layout
21990 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21993 \begin_layout Plain Layout
21999 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22002 \begin_layout Plain Layout
22008 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22011 \begin_layout Plain Layout
22028 \begin_inset space \hfill{}
22039 \begin_layout Standard
22040 \begin_inset Float table
22045 \begin_layout Plain Layout
22046 \begin_inset Caption
22048 \begin_layout Plain Layout
22049 \begin_inset CommandInset label
22051 name "tab:Two-subtables-upon"
22055 Two subtables placed one upon the other.
22056 (a) table with 4 cells, (b) table with 5 cells.
22064 \begin_layout Plain Layout
22066 \begin_inset Float table
22071 \begin_layout Plain Layout
22072 \begin_inset Caption
22074 \begin_layout Plain Layout
22083 \begin_layout Plain Layout
22085 \begin_inset Tabular
22086 <lyxtabular version="3" rows="1" columns="4">
22088 <column alignment="center" valignment="top" width="0">
22089 <column alignment="center" valignment="top" width="0">
22090 <column alignment="center" valignment="top" width="0">
22091 <column alignment="center" valignment="top" width="0">
22093 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22096 \begin_layout Plain Layout
22102 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22105 \begin_layout Plain Layout
22111 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22114 \begin_layout Plain Layout
22120 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22123 \begin_layout Plain Layout
22142 \begin_layout Plain Layout
22144 \begin_inset Float table
22149 \begin_layout Plain Layout
22150 \begin_inset Caption
22152 \begin_layout Plain Layout
22161 \begin_layout Plain Layout
22163 \begin_inset Tabular
22164 <lyxtabular version="3" rows="1" columns="5">
22166 <column alignment="center" valignment="top" width="0">
22167 <column alignment="center" valignment="top" width="0">
22168 <column alignment="center" valignment="top" width="0">
22169 <column alignment="center" valignment="top" width="0">
22170 <column alignment="center" valignment="top" width="0">
22172 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22175 \begin_layout Plain Layout
22181 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22184 \begin_layout Plain Layout
22190 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22193 \begin_layout Plain Layout
22199 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22202 \begin_layout Plain Layout
22208 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22211 \begin_layout Plain Layout
22235 \begin_layout Section
22236 Floats Side by Side
22240 \begin_layout Plain Layout
22241 Floats ! Side by side
22249 \begin_layout Standard
22250 To place floats side by side, like for Figure
22251 \begin_inset space ~
22255 \begin_inset CommandInset ref
22257 reference "fig:Float-left"
22262 \begin_inset CommandInset ref
22264 reference "fig:Float-right"
22273 In it two minipage boxes are inserted.
22277 \begin_layout Plain Layout
22278 Minipages are explained in section
22279 \begin_inset space ~
22283 \begin_inset CommandInset ref
22285 reference "sec:Minipages"
22294 The width is set to 45
22295 \begin_inset space \thinspace{}
22299 \begin_inset space \thinspace{}
22302 column% and the box alignment to
22307 The minipage boxes contain the image and the caption in the same way as
22308 they are in a float.
22309 The only difference is that the image unit
22312 \begin_inset space ~
22316 \begin_inset space ~
22321 is now calculated according to the width of the minipage boxes.
22324 \begin_layout Standard
22325 \begin_inset Float figure
22330 \begin_layout Plain Layout
22331 \begin_inset Box Frameless
22340 height_special "totalheight"
22343 \begin_layout Plain Layout
22345 \begin_inset Graphics
22346 filename clipart/mobius.eps
22349 scaleBeforeRotation
22356 \begin_layout Plain Layout
22357 \begin_inset Caption
22359 \begin_layout Plain Layout
22360 \begin_inset CommandInset label
22362 name "fig:Float-left"
22366 Float on the left side.
22377 \begin_inset space \hfill{}
22381 \begin_inset Box Frameless
22390 height_special "totalheight"
22393 \begin_layout Plain Layout
22395 \begin_inset Graphics
22396 filename clipart/platypus.eps
22399 scaleBeforeRotation
22406 \begin_layout Plain Layout
22407 \begin_inset Caption
22409 \begin_layout Plain Layout
22410 \begin_inset CommandInset label
22412 name "fig:Float-right"
22416 Float on the right side.
22429 \begin_layout Plain Layout
22438 \begin_layout Section
22443 \begin_layout Plain Layout
22444 Caption ! Formatting
22453 \begin_layout Plain Layout
22454 Floats ! Caption Formatting
22460 \begin_inset CommandInset label
22462 name "sec:Caption-Formatting"
22469 \begin_layout Standard
22474 environment is the default paragraph environment for
22479 On the LyX screen captions appear as label, e.
22480 \begin_inset space \thinspace{}
22484 \begin_inset space \space{}
22488 \begin_inset Quotes eld
22496 \begin_inset Quotes erd
22499 followed by the caption text.
22501 \begin_inset Quotes eld
22505 \begin_inset Quotes erd
22508 is the actual reference number.
22509 By default the label and the number are in the same font as the caption
22510 text and a colon follows the number to divide the label from the text.
22511 This caption format is not suitable for all document formats.
22515 \begin_layout Standard
22516 To change the default caption format, load the LaTeX-package
22524 \begin_layout Plain Layout
22525 LaTeX-packages ! caption
22530 in the document preamble with this line:
22533 \begin_layout Standard
22538 usepackage[format definition]{caption}
22541 \begin_layout Standard
22542 To have for example the label and the number in sans-serif bold font and
22543 the table captions always above the table like in this document, use the
22547 \begin_layout Standard
22552 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
22555 \begin_layout Standard
22556 You can also define different caption formats for the different float types.
22557 In this case load the
22561 package without format specific options and define the different formats
22562 with the help of the command
22565 \begin_layout Standard
22570 captionsetup[float type]{format definition}
22573 \begin_layout Standard
22574 in the document preamble.
22575 For example the caption formats of Figure
22576 \begin_inset space ~
22580 \begin_inset CommandInset ref
22582 reference "fig:This-is-an-fig"
22587 \begin_inset space ~
22591 \begin_inset CommandInset ref
22593 reference "tab:This-is-an-tab"
22597 can be created using these commands in the document preamble:
22600 \begin_layout Standard
22605 usepackage[tableposition=top]{caption}
22608 \begin_inset Newline newline
22615 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
22616 \begin_inset Newline newline
22623 \begin_layout Plain Layout
22631 captionsetup[figure]
22639 \begin_inset Newline newline
22644 captionsetup[table]{labelfont={bf,sf}}
22647 \begin_layout Standard
22648 \begin_inset Note Greyedout
22651 \begin_layout Plain Layout
22660 has no effect when a
22668 \begin_layout Plain Layout
22669 LaTeX-packages ! KOMA-Script
22674 document class is used.
22675 In this case the document class option
22687 \begin_layout Standard
22688 For more information about the package
22692 we refer to its documentation
22693 \begin_inset CommandInset citation
22702 \begin_layout Standard
22703 To change the label name from e.
22704 \begin_inset space \thinspace{}
22708 \begin_inset space \space{}
22712 \begin_inset Quotes eld
22716 \begin_inset Quotes erd
22720 \begin_inset Quotes eld
22724 \begin_inset Quotes erd
22727 use this preamble command:
22730 \begin_layout Standard
22737 fnum@figure}{Image~
22742 \begin_layout Standard
22749 inserts the figure number and
22752 \begin_inset Quotes eld
22758 \begin_inset Quotes erd
22761 creates a protected space.
22764 \begin_layout Standard
22765 \begin_inset VSpace bigskip
22776 \begin_layout Plain Layout
22777 LaTeX-packages ! KOMA-Script
22784 article (KOMA-Script)
22792 letter (KOMA-Script)
22796 report (KOMA-Script)
22799 \begin_inset space \thinspace{}
22802 ), you can alternatively to the
22810 's built-in command
22817 For example, to have the caption label in bold, add this command to your
22821 \begin_layout Standard
22826 setkomafont{captionlabel}{
22831 \begin_layout Standard
22832 For more information about
22843 \begin_inset CommandInset citation
22852 \begin_layout Standard
22856 \begin_layout Plain Layout
22860 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
22867 \begin_inset Note Note
22870 \begin_layout Plain Layout
22871 The caption format is changed only for this example.
22879 \begin_layout Standard
22880 \begin_inset Float figure
22886 \begin_layout Plain Layout
22888 \begin_inset Graphics
22889 filename clipart/mobius.eps
22892 scaleBeforeRotation
22899 \begin_layout Plain Layout
22900 \begin_inset Caption
22902 \begin_layout Plain Layout
22903 \begin_inset CommandInset label
22905 name "fig:This-is-an-fig"
22909 This is an example figure caption that is longer than one line to show the
22910 different caption format.
22911 Here a self-defined caption format is used.
22924 \begin_layout Standard
22928 \begin_layout Plain Layout
22932 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
22941 \begin_layout Standard
22942 \begin_inset Float table
22948 \begin_layout Plain Layout
22949 \begin_inset Caption
22951 \begin_layout Plain Layout
22952 \begin_inset CommandInset label
22954 name "tab:This-is-an-tab"
22958 This is an example table caption that is longer than one line to show the
22959 different caption format.
22960 Here the standard caption format for tables in this document is used.
22968 \begin_layout Plain Layout
22970 \begin_inset Tabular
22971 <lyxtabular version="3" rows="1" columns="5">
22973 <column alignment="center" valignment="top" width="0">
22974 <column alignment="center" valignment="top" width="0">
22975 <column alignment="center" valignment="top" width="0">
22976 <column alignment="center" valignment="top" width="0">
22977 <column alignment="center" valignment="top" width="0">
22979 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22982 \begin_layout Plain Layout
22988 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22991 \begin_layout Plain Layout
22997 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23000 \begin_layout Plain Layout
23006 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23009 \begin_layout Plain Layout
23015 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23018 \begin_layout Plain Layout
23037 \begin_layout Section
23042 \begin_layout Plain Layout
23043 Caption ! Placement
23052 \begin_layout Plain Layout
23053 Floats ! Caption Placement
23059 \begin_inset CommandInset label
23061 name "sec:Caption-Placement"
23068 \begin_layout Standard
23069 The common caption placement rule is:
23072 \begin_layout Description
23073 Figure: Caption is set below the figure
23076 \begin_layout Description
23077 Table: Caption is set above the table
23080 \begin_layout Standard
23081 Having the caption above the table is unfortunately not supported in LaTeX's
23083 That means if you are using the document classes
23099 there will be no space between the caption and the table.
23100 To insert the needed space, add the following option to the load command
23101 of the LaTeX-package
23105 in your document preamble
23109 \begin_layout Plain Layout
23111 \begin_inset space ~
23115 \begin_inset CommandInset ref
23117 reference "sec:Caption-Formatting"
23121 for more information of the package
23133 \begin_layout Standard
23139 \begin_layout Standard
23148 \begin_layout Plain Layout
23149 LaTeX-packages ! KOMA-Script
23156 article (KOMA-Script)
23164 letter (KOMA-Script)
23168 report (KOMA-Script)
23171 \begin_inset space \thinspace{}
23174 ), you can alternatively to the
23178 package set the document class option
23185 \begin_layout Standard
23186 \begin_inset VSpace bigskip
23189 It is also possible to set the caption beside a figure or table.
23190 To get this the LaTeX-package
23198 \begin_layout Plain Layout
23199 LaTeX-packages ! sidecap
23204 has to be loaded in the document preamble with the line
23207 \begin_layout Standard
23212 usepackage[option]{sidecap}
23215 \begin_layout Standard
23216 If you set no option, the caption is placed on the side of the outer page
23217 margin – to the right on odd pages, to the left on even pages.
23218 You can change the placement to inner margin with the option
23223 To force the placement always to the right or left, use the option
23234 \begin_layout Standard
23238 \begin_layout Plain Layout
23248 \begin_inset Note Note
23251 \begin_layout Plain Layout
23252 The following section will only be displayed when the LaTeX-package
23264 \begin_layout Standard
23265 To place in LyX the caption of a float on the side, it is necessary to add
23266 these commands to the document preamble:
23269 \begin_layout Standard
23275 \begin_layout Standard
23283 \begin_inset Newline newline
23290 \begin_layout Plain Layout
23306 \begin_inset Newline newline
23313 \begin_layout Plain Layout
23329 \begin_inset Newline newline
23336 \begin_layout Plain Layout
23347 renewenvironment{table}{
23354 \begin_layout Standard
23362 \begin_inset Newline newline
23369 \begin_layout Plain Layout
23385 \begin_inset Newline newline
23392 \begin_layout Plain Layout
23410 \begin_layout Standard
23418 \begin_inset Newline newline
23425 \begin_layout Plain Layout
23441 \begin_inset Newline newline
23448 \begin_layout Plain Layout
23464 \begin_inset Newline newline
23471 \begin_layout Plain Layout
23482 renewenvironment{figure}{
23489 \begin_layout Standard
23497 \begin_inset Newline newline
23504 \begin_layout Plain Layout
23520 \begin_inset Newline newline
23527 \begin_layout Plain Layout
23545 \begin_layout Standard
23551 \begin_layout Standard
23552 The commands allow you to redefine the floats so that the caption is set
23554 For figure floats use the command
23557 \begin_layout Standard
23565 \begin_layout Standard
23566 in TeX-Code before the float.
23567 Behind the float insert the command
23570 \begin_layout Standard
23578 \begin_layout Standard
23579 in TeX-Code to get back to the original float definition.
23582 \begin_layout Standard
23583 For table floats use the corresponding commands
23586 \begin_layout Standard
23600 \begin_layout Standard
23602 \begin_inset space ~
23606 \begin_inset CommandInset ref
23608 reference "fig:cap-beside-fig"
23613 \begin_inset space ~
23617 \begin_inset CommandInset ref
23619 reference "tab:cap-beside-tab"
23623 are examples where the caption is set beside.
23626 \begin_layout Standard
23627 You can see in the examples that the caption text appears at the top of
23628 the floats for table floats and at the bottom for figure floats.
23629 To change this, you can use the command
23632 \begin_layout Standard
23637 sidecaptionvpos{float type}{placement}
23640 \begin_layout Standard
23641 in the document preamble or in TeX-Code before the float.
23642 The float type is either
23650 , the placement can be
23651 \begin_inset Quotes eld
23659 \begin_inset Quotes erd
23663 \begin_inset Quotes eld
23671 \begin_inset Quotes erd
23675 \begin_inset Quotes eld
23683 \begin_inset Quotes erd
23687 To have for example the caption of figure floats vertically centered, use
23691 \begin_layout Standard
23696 sidecaptionvpos{figure}{c}
23699 \begin_layout Standard
23700 This was used for Figure
23701 \begin_inset space ~
23705 \begin_inset CommandInset ref
23707 reference "fig:cap-beside-fig-2"
23714 \begin_layout Standard
23715 \begin_inset VSpace medskip
23718 For more information about the package
23722 we refer to its documentation
23723 \begin_inset CommandInset citation
23732 \begin_layout Standard
23733 \begin_inset Note Greyedout
23736 \begin_layout Plain Layout
23749 \begin_layout Plain Layout
23750 LaTeX-packages ! hypcap
23755 , described in section
23756 \begin_inset space ~
23760 \begin_inset CommandInset ref
23762 reference "sub:Reference-Position"
23766 , has no effect on floats with the caption set beside.
23774 \begin_layout Standard
23778 \begin_layout Plain Layout
23790 \begin_layout Standard
23791 \begin_inset Float figure
23796 \begin_layout Plain Layout
23797 \begin_inset Graphics
23798 filename clipart/escher-lsd.eps
23800 scaleBeforeRotation
23807 \begin_layout Plain Layout
23808 \begin_inset Caption
23810 \begin_layout Plain Layout
23811 \begin_inset CommandInset label
23813 name "fig:cap-beside-fig"
23817 This is a caption beside a figure.
23830 \begin_layout Standard
23834 \begin_layout Plain Layout
23846 \begin_layout Standard
23847 \begin_inset Float table
23852 \begin_layout Plain Layout
23853 \begin_inset Caption
23855 \begin_layout Plain Layout
23856 \begin_inset CommandInset label
23858 name "tab:cap-beside-tab"
23862 This is a caption beside a table.
23870 \begin_layout Plain Layout
23871 \begin_inset Tabular
23872 <lyxtabular version="3" rows="4" columns="5">
23874 <column alignment="center" valignment="top" width="0">
23875 <column alignment="center" valignment="top" width="0">
23876 <column alignment="center" valignment="top" width="0">
23877 <column alignment="center" valignment="top" width="0">
23878 <column alignment="center" valignment="top" width="0">
23880 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23883 \begin_layout Plain Layout
23889 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23892 \begin_layout Plain Layout
23898 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23901 \begin_layout Plain Layout
23907 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23910 \begin_layout Plain Layout
23916 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23919 \begin_layout Plain Layout
23927 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23930 \begin_layout Plain Layout
23936 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23939 \begin_layout Plain Layout
23945 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23948 \begin_layout Plain Layout
23954 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23957 \begin_layout Plain Layout
23963 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23966 \begin_layout Plain Layout
23974 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23977 \begin_layout Plain Layout
23983 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23986 \begin_layout Plain Layout
23992 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23995 \begin_layout Plain Layout
24001 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24004 \begin_layout Plain Layout
24010 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24013 \begin_layout Plain Layout
24021 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24024 \begin_layout Plain Layout
24030 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24033 \begin_layout Plain Layout
24039 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24042 \begin_layout Plain Layout
24048 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24051 \begin_layout Plain Layout
24057 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24060 \begin_layout Plain Layout
24079 \begin_layout Standard
24083 \begin_layout Plain Layout
24095 \begin_layout Standard
24099 \begin_layout Plain Layout
24103 sidecaptionvpos{figure}{c}
24109 \begin_inset Float figure
24114 \begin_layout Plain Layout
24115 \begin_inset Graphics
24116 filename clipart/escher-lsd.eps
24118 scaleBeforeRotation
24125 \begin_layout Plain Layout
24126 \begin_inset Caption
24128 \begin_layout Plain Layout
24129 \begin_inset CommandInset label
24131 name "fig:cap-beside-fig-2"
24135 This is a vertically centered caption beside a figure.
24148 \begin_layout Standard
24152 \begin_layout Plain Layout
24164 \begin_layout Standard
24168 \begin_layout Plain Layout
24178 \begin_inset Note Note
24181 \begin_layout Plain Layout
24182 The following will be displayed when the LaTeX-package
24194 \begin_layout Standard
24195 You need to install the LaTeX-package
24199 to see the following part of this section in the output.
24202 \begin_layout Standard
24206 \begin_layout Plain Layout
24218 \begin_layout Section
24223 \begin_layout Plain Layout
24224 Floats ! Float Lists
24232 \begin_layout Standard
24233 Similar to the the table of contents where the sections of the document
24234 are listed, there are listings for all float types, like the figures of
24236 You can insert them via the
24238 Insert\SpecialChar \menuseparator
24240 \begin_inset space ~
24244 \begin_inset space ~
24252 \begin_layout Standard
24253 The list entries are the float captions or its short title, the float number,
24254 and the page number where they appear in the document.
24257 \begin_layout Standard
24258 You can find the list of figures and tables at the end of this document.
24261 \begin_layout Chapter
24265 \begin_layout Section
24270 \begin_layout Plain Layout
24279 \begin_layout Standard
24280 Notes are inserted with the toolbar button
24281 \begin_inset Graphics
24282 filename ../images/note-insert.png
24284 scaleBeforeRotation
24290 Insert\SpecialChar \menuseparator
24294 There are three types of notes:
24297 \begin_layout Description
24299 \begin_inset space ~
24302 Note This note type is for internal notes that won't appear in the output.
24303 Its note-box looks like this:
24304 \begin_inset Newline newline
24308 \begin_inset Newline newline
24312 \begin_inset Graphics
24313 filename clipart/LyXNoteImageQt4.png
24316 scaleBeforeRotation
24321 \begin_inset Note Note
24324 \begin_layout Plain Layout
24325 This is text in a note box that doesn't appear in the output.
24333 \begin_layout Description
24334 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
24335 ent, when you export the document to LaTeX via the menu
24337 File\SpecialChar \menuseparator
24338 Export\SpecialChar \menuseparator
24339 LaTeX (pdflatex) / (plain)
24342 Its note-box looks like this:
24343 \begin_inset Newline newline
24347 \begin_inset Newline newline
24351 \begin_inset Graphics
24352 filename clipart/CommentNoteImageQt4.png
24355 scaleBeforeRotation
24360 \begin_inset Note Comment
24363 \begin_layout Plain Layout
24364 This is text in a note box that only appears as comment in LaTeX-files.
24372 \begin_layout Description
24374 \begin_inset space ~
24377 Out This note will appear in the output as grey text.
24378 Its note-box looks like this:
24379 \begin_inset Newline newline
24383 \begin_inset Newline newline
24387 \begin_inset Graphics
24388 filename clipart/GreyedOutNoteImageQt4.png
24391 scaleBeforeRotation
24396 \begin_inset Newline newline
24403 \begin_layout Plain Layout
24407 renewenvironment{lyxgreyedout}
24410 \begin_layout Plain Layout
24414 textcolor[gray]{0.8}
24424 \begin_inset Note Greyedout
24427 \begin_layout Plain Layout
24432 \begin_layout Plain Layout
24433 This is an example footnote within a greyed out note.
24438 of a comment that appears in the output as grey text.
24447 \begin_layout Plain Layout
24451 renewenvironment{lyxgreyedout}
24454 \begin_layout Plain Layout
24468 \begin_inset Note Note
24471 \begin_layout Plain Layout
24472 The greyed out note is here redefined to show it with the original LyX definitio
24473 n because greyed out notes are redefined in the preamble of this document,
24474 as described below, to have blue text.
24480 \begin_inset Newline newline
24484 \begin_inset Newline newline
24487 As you can see in the example, the first line of greyed out notes is a bit
24488 indented and greyed out notes can have footnotes.
24491 \begin_layout Standard
24492 \begin_inset VSpace bigskip
24495 When you use the toolbar button
24496 \begin_inset Graphics
24497 filename ../images/note-insert.png
24499 scaleBeforeRotation
24506 \begin_inset space ~
24512 You can switch between the five note types by right-clicking on the note-box.
24517 If you want to turn existing text into a note, mark it and click on the
24531 To change a note to text, press the backspace key when the cursor is in
24532 the first position of a note, or press the delete key when the cursor is
24533 in the very last position of the note, respectively.
24536 \begin_layout Standard
24537 \begin_inset VSpace bigskip
24540 You can change the text color of the greyed out notes in the preamble with
24541 the following command:
24544 \begin_layout Standard
24549 renewenvironment{lyxgreyedout}
24550 \begin_inset Newline newline
24557 \begin_layout Plain Layout
24575 \begin_layout Standard
24576 The available colors and the method to define own colors is explained in
24578 \begin_inset space ~
24582 \begin_inset CommandInset ref
24584 reference "sec:Colored-Tables"
24591 \begin_layout Standard
24592 Notes that appear in blue in this document are set using greyed out notes
24596 \begin_layout Section
24598 \begin_inset CommandInset label
24600 name "sec:Footnotes"
24608 \begin_layout Plain Layout
24618 \begin_layout Plain Layout
24627 \begin_layout Standard
24628 Footnotes can be inserted using the toolbar button
24629 \begin_inset Graphics
24630 filename ../images/footnote-insert.png
24632 scaleBeforeRotation
24638 Insert\SpecialChar \menuseparator
24650 then the following footnote-box:
24651 \begin_inset Graphics
24652 filename clipart/footnoteQt4.png
24654 scaleBeforeRotation
24662 where you can enter the footnote text.
24663 If you want to turn existing text into a footnote, mark it and click on
24685 to text, press the Backspace key when the cursor is in the first position
24694 , or press the Delete key when the cursor is in the very last position of
24706 \begin_layout Standard
24707 Here is an example footnote:
24715 \begin_layout Plain Layout
24716 \begin_inset CommandInset label
24718 name "foot:This-is-an"
24722 This is an example footnote.
24735 \begin_layout Plain Layout
24739 newcounter{MyRepeatFoot}
24742 \begin_layout Plain Layout
24746 setcounter{MyRepeatFoot}{
24756 \begin_layout Standard
24757 The footnote will appear in the output as a superscript number at the text
24758 position where the footnote box is placed.
24759 The footnote text is placed at the bottom of the current page.
24760 The footnote number is calculated by LaTeX, the numbers are consecutive.
24761 It depends on your document-class, if the footnote number is reset for
24765 \begin_layout Standard
24766 Footnotes can be referenced like floats: Insert a label into the footnote
24767 and cross-reference this label in the text as described in section
24768 \begin_inset space ~
24772 \begin_inset CommandInset ref
24774 reference "sec:Referencing-Floats"
24779 \begin_inset Newline newline
24782 This is a cross-reference of Footnote
24783 \begin_inset space ~
24787 \begin_inset CommandInset ref
24789 reference "foot:This-is-an"
24796 \begin_layout Standard
24797 \begin_inset VSpace defskip
24800 To use footnotes within tables, you have to use minipages, see section
24801 \begin_inset space ~
24805 \begin_inset CommandInset ref
24807 reference "sec:Minipages"
24812 Footnotes within longtables are described in section
24813 \begin_inset space ~
24817 \begin_inset CommandInset ref
24819 reference "sub:Footnotes-in-Longtables"
24826 \begin_layout Standard
24827 \begin_inset VSpace defskip
24830 To create only a mark for a footnote, use the command
24834 footnotemark[number]
24837 This is used when you have the same annotation several times in a text
24838 but doesn't want to print the footnote text every time.
24839 \begin_inset Newline newline
24842 As you don't know the number of the repeating footnote while you are writing
24843 the text, you have to store its number.
24844 For the following footnote mark example, these commands were inserted in
24845 TeX-Code behind Footnote
24846 \begin_inset space ~
24850 \begin_inset CommandInset ref
24852 reference "foot:This-is-an"
24856 to store the footnote number:
24859 \begin_layout Standard
24864 newcounter{MyRepeatFoot}
24865 \begin_inset Newline newline
24870 setcounter{MyRepeatFoot}{
24875 \begin_layout Standard
24876 The footnote mark was then created with this command:
24879 \begin_layout Standard
24889 \begin_layout Standard
24890 Here is an example footnote mark:
24898 \begin_layout Plain Layout
24912 \begin_layout Subsection
24914 \begin_inset CommandInset label
24916 name "sub:Footnote-Numbering"
24924 \begin_layout Plain Layout
24925 Footnotes ! Numbering
24933 \begin_layout Standard
24934 To reset the footnote number back to 1 after each section
24936 , add this command to your document preamble:
24939 \begin_layout Standard
24944 @addtoreset{footnote}{section}
24947 \begin_layout Standard
24948 \begin_inset VSpace bigskip
24951 The following preamble command changes the footnote numbering style to small
24955 \begin_layout Standard
24967 \begin_layout Standard
24971 \begin_layout Plain Layout
24984 This is a footnote with roman numbering:
24988 \begin_layout Plain Layout
24989 This is an example footnote with roman numbering.
24997 \begin_layout Standard
24998 To change the numbering style to capital roman numerals replace in the command
25013 \begin_inset Quotes eld
25017 \begin_inset Quotes erd
25020 footnotes with capital or small Latin letters use
25034 \begin_inset Quotes eld
25038 \begin_inset Quotes erd
25041 footnotes with symbols use
25050 \begin_layout Standard
25051 \begin_inset Note Greyedout
25054 \begin_layout Plain Layout
25059 You can only number 26 footnotes with Latin letters, because this numbering
25060 is limited to single letters.
25066 \begin_inset Newline newline
25070 \begin_inset Note Greyedout
25073 \begin_layout Plain Layout
25078 You can only number 9 footnotes with symbols.
25086 \begin_layout Standard
25087 To return to the default numbering style when you changed to another one,
25100 in the command above.
25104 \begin_layout Plain Layout
25120 \begin_layout Standard
25121 \begin_inset VSpace bigskip
25127 \begin_layout Standard
25128 If you want to have footnotes numbered in the scheme
25129 \begin_inset Quotes eld
25133 \begin_inset Quotes erd
25136 , add the following command to your document preamble:
25139 \begin_layout Standard
25144 numberwithin{footnote}{chapter}
25147 \begin_layout Standard
25148 To be able to use the command
25157 \begin_inset space ~
25162 in the document settings the option
25165 \begin_inset space ~
25169 \begin_inset space ~
25173 \begin_inset space ~
25181 \begin_layout Standard
25185 \begin_layout Plain Layout
25189 numberwithin{footnote}{chapter}
25194 This is another example footnote:
25200 \begin_layout Plain Layout
25201 This is a footnote numbered in the scheme
25202 \begin_inset Quotes eld
25206 \begin_inset Quotes erd
25220 \begin_layout Plain Layout
25236 \begin_layout Standard
25237 \begin_inset Note Greyedout
25240 \begin_layout Plain Layout
25251 always prints out the footnote number as arabic number; previous redefinitions
25252 to get non-arabic numbers are overwritten.
25260 \begin_layout Standard
25261 So to get for example the scheme
25262 \begin_inset Quotes eld
25268 \begin_inset Quotes erd
25271 , use this command instead of
25280 \begin_layout Standard
25294 \begin_layout Subsection
25299 \begin_layout Plain Layout
25300 Footnotes ! Placement
25308 \begin_layout Standard
25309 If you have several footnotes in one page, they appear without vertical
25310 space between them at the bottom of the page.
25311 To make them better readable you can e.
25312 \begin_inset space \thinspace{}
25316 \begin_inset space \space{}
25320 \begin_inset space \thinspace{}
25323 mm space with the following preamble command:
25326 \begin_layout Standard
25336 \begin_inset Newline newline
25350 \begin_layout Standard
25351 \begin_inset VSpace bigskip
25354 In a two-column document the footnotes appear at the bottom of every column,
25356 \begin_inset space ~
25360 \begin_inset CommandInset ref
25362 reference "fig:Standard-footnote-placement"
25367 If the footnotes should only appear at the bottom of the right column,
25369 \begin_inset space ~
25373 \begin_inset CommandInset ref
25375 reference "fig:Footnote-placement-in"
25379 , use the LaTeX-package
25387 \begin_layout Plain Layout
25388 LaTeX-packages ! ftnright
25393 with this command in the document preamble:
25396 \begin_layout Standard
25401 usepackage{ftnright}
25404 \begin_layout Standard
25405 \begin_inset Float figure
25411 \begin_layout Plain Layout
25415 \begin_layout Plain Layout
25425 \begin_inset Graphics
25426 filename clipart/without_fntright.pdf
25428 scaleBeforeRotation
25436 \begin_layout Plain Layout
25446 \begin_layout Plain Layout
25447 \begin_inset Caption
25449 \begin_layout Plain Layout
25450 \begin_inset CommandInset label
25452 name "fig:Standard-footnote-placement"
25456 Standard footnote placement in two-column documents.
25469 \begin_layout Standard
25470 \begin_inset Float figure
25476 \begin_layout Plain Layout
25480 \begin_layout Plain Layout
25490 \begin_inset Graphics
25491 filename clipart/with_fntright.pdf
25493 scaleBeforeRotation
25501 \begin_layout Plain Layout
25511 \begin_layout Plain Layout
25512 \begin_inset Caption
25514 \begin_layout Plain Layout
25515 \begin_inset CommandInset label
25517 name "fig:Footnote-placement-in"
25521 Footnote placement in two-column documents when the LaTeX-package
25538 \begin_layout Standard
25539 \begin_inset VSpace bigskip
25542 In some scientific literature it is usual to collect the footnotes and print
25543 them in a separate paragraph at the the end of a section, like in Figure
25544 \begin_inset space ~
25548 \begin_inset CommandInset ref
25550 reference "fig:Endnotes"
25555 They are then so called
25556 \begin_inset Quotes eld
25560 \begin_inset Quotes erd
25567 \begin_layout Plain Layout
25573 To use endnotes instead of footnotes in your document, load in the menu
25576 Document\SpecialChar \menuseparator
25577 Settings\SpecialChar \menuseparator
25583 \begin_inset space ~
25587 \begin_inset space ~
25593 To insert the collected footnotes, insert the command
25596 \begin_layout Standard
25604 \begin_layout Standard
25605 in TeX-Code at the the end of a section or chapter.
25608 \begin_layout Standard
25609 \begin_inset Float figure
25614 \begin_layout Plain Layout
25619 \begin_layout Plain Layout
25629 \begin_inset Graphics
25630 filename clipart/endnotes.pdf
25631 scaleBeforeRotation
25639 \begin_layout Plain Layout
25649 \begin_layout Plain Layout
25650 \begin_inset Caption
25652 \begin_layout Plain Layout
25653 \begin_inset CommandInset label
25655 name "fig:Endnotes"
25659 Endnotes – footnotes are printed in a separate paragraph at the end of sections
25673 \begin_layout Standard
25674 \begin_inset VSpace medskip
25677 The paragraph heading for the endnotes isn't automatically translated into
25678 the document language, this must be done manually.
25679 The following preamble command translate the default English name
25680 \begin_inset Quotes eld
25684 \begin_inset Quotes erd
25687 to the German translation
25688 \begin_inset Quotes eld
25692 \begin_inset Quotes erd
25698 \begin_layout Standard
25705 notesname}{Anmerkungen}
25708 \begin_layout Standard
25709 \begin_inset VSpace medskip
25712 The numbering of endnotes can be changed like the footnote numbering as
25713 described in section
25714 \begin_inset space ~
25718 \begin_inset CommandInset ref
25720 reference "sub:Footnote-Numbering"
25724 ; just replace the command
25737 To reset the endnote number use the command
25743 as described in section
25744 \begin_inset space ~
25748 \begin_inset CommandInset ref
25750 reference "sub:Footnote-Numbering"
25754 and replace the command parameter
25765 \begin_layout Standard
25766 To create only a mark for an endnote, use the command
25770 endnotemark[number]
25772 similar to the command
25778 , described in section
25779 \begin_inset space ~
25783 \begin_inset CommandInset ref
25785 reference "sec:Footnotes"
25792 \begin_layout Standard
25793 \begin_inset VSpace bigskip
25796 Footnotes can also be placed in the page margin and the footnote text alignment
25797 can be changed, see the LaTeX-package
25805 \begin_layout Plain Layout
25806 LaTeX-packages ! footmisc
25812 \begin_inset CommandInset citation
25818 for more information about this.
25821 \begin_layout Standard
25822 For various further footnote formatting issues have a look at LaTeX-books,
25824 \begin_inset CommandInset citation
25826 key "latexcompanion,latexguide,latexbook"
25833 \begin_layout Section
25838 \begin_layout Plain Layout
25839 Notes ! Margin Notes
25847 \begin_layout Standard
25848 Margin notes look and behave in LyX like footnotes.
25849 They are inserted via the menu
25851 Insert\SpecialChar \menuseparator
25853 \begin_inset space ~
25858 or the toolbar button
25859 \begin_inset Graphics
25860 filename ../images/marginalnote-insert.png
25862 scaleBeforeRotation
25877 \begin_inset Quotes eld
25881 \begin_inset Quotes erd
25884 appears where you can enter the text of the margin note.
25887 \begin_layout Standard
25888 At the side is an example margin note.
25893 \begin_inset Marginal
25896 \begin_layout Plain Layout
25897 This is a margin note.
25905 \begin_layout Standard
25906 Margin notes appear at the right side in single-sided documents.
25907 In double-sided documents they appear in the outer margin – left on even
25908 pages, right on odd pages.
25909 The text of margin notes is aligned opposite to the outer margin – right-aligne
25910 d when the note appears in the left margin.
25911 The first line of the margin note is placed at the position of the text
25912 line where it is inserted in the document.
25915 \begin_layout Standard
25916 \begin_inset VSpace bigskip
25919 To place the margin note in the inner margin, add the command
25922 \begin_layout Standard
25930 \begin_layout Standard
25931 in TeX-Code before a margin note.
25932 The new placement is valid for all following margin notes.
25937 \begin_layout Plain Layout
25947 \begin_inset Marginal
25950 \begin_layout Plain Layout
25951 This is a margin note in the inner margin.
25959 \begin_inset Newline newline
25965 \begin_inset Note Greyedout
25968 \begin_layout Plain Layout
25973 There is often not enough space in the inner margin so that the notes are
25974 not correctly displayed in the output.
25982 \begin_layout Standard
25983 To return to the default placement insert the command
25986 \begin_layout Standard
25994 \begin_layout Standard
25999 \begin_layout Plain Layout
26009 \begin_inset Note Greyedout
26012 \begin_layout Plain Layout
26017 The command is ignored when it is within a paragraph where also the command
26032 \begin_layout Standard
26033 \begin_inset VSpace bigskip
26040 \begin_inset Marginal
26043 \begin_layout Plain Layout
26044 AVeryLongMarginParWord that isn't hyphenated.
26052 Similar to the case described in section
26053 \begin_inset space ~
26057 \begin_inset CommandInset ref
26059 reference "sub:Multiple-Lines-in"
26063 , long words cannot be hyphenated when they are the first word in a margin
26065 To avoid this, insert 0
26066 \begin_inset space \thinspace{}
26069 pt horizontal space before the word
26074 \begin_inset Marginal
26077 \begin_layout Plain Layout
26078 \begin_inset space \hspace*{}
26082 AVeryLongMarginParWord that is hyphenated.
26090 \begin_layout Standard
26091 \begin_inset VSpace bigskip
26097 \begin_layout Standard
26098 \begin_inset Note Greyedout
26101 \begin_layout Plain Layout
26106 Margin notes can normally not be used inside tables, floats, and footnotes.
26114 \begin_layout Standard
26115 \begin_inset VSpace bigskip
26121 \begin_layout Standard
26125 \begin_layout Plain Layout
26135 \begin_inset Note Note
26138 \begin_layout Plain Layout
26139 The following section will only be displayed when the LaTeX-package
26151 \begin_layout Standard
26152 This restriction can be evaded by using the LaTeX-package
26160 \begin_layout Plain Layout
26161 LaTeX-packages ! marginnote
26167 By adding these two lines to your document preamble, the command used by
26168 LyX for margin notes is redefined to use the command provided by the
26175 \begin_layout Standard
26180 usepackage{marginnote}
26181 \begin_inset Newline newline
26193 \begin_layout Standard
26194 This is also used in this document because
26198 has another useful feature: You can set a vertical offset for the note.
26199 This is often needed when too many margin notes are too close together
26200 or for a better page layout.
26201 The offset is set in LyX as TeX-Code directly behind the margin note in
26205 \begin_layout Standard
26211 \begin_layout Standard
26212 where the offset is a length with one of the units listed in Table
26213 \begin_inset space ~
26217 \begin_inset CommandInset ref
26219 reference "tab:Units"
26224 A negative value shifts the note up, a positive value shifts it down.
26228 For example the margin note beside this text line is shifted up 1.5
26229 \begin_inset space \thinspace{}
26232 cm with the TeX-Code-command
26233 \begin_inset Quotes eld
26243 \begin_inset Quotes erd
26247 \begin_inset Marginal
26250 \begin_layout Plain Layout
26251 This margin note is shifted up 1.5
26252 \begin_inset space \thinspace{}
26255 cm from its original position.
26267 \begin_layout Plain Layout
26277 \begin_layout Standard
26278 \begin_inset VSpace medskip
26285 you can also change the alignment of the text in the margin note.
26286 For example the commands
26289 \begin_layout Standard
26296 raggedleftmarginnote}{
26299 \begin_inset Newline newline
26306 raggedrightmarginnote}{
26311 \begin_layout Standard
26312 set the alignment to centered.
26317 raggedleftmarginnote
26319 denotes margin notes that appear at the left side.
26326 \begin_layout Plain Layout
26332 raggedleftmarginnote}{
26337 \begin_layout Plain Layout
26343 raggedrightmarginnote}{
26351 \begin_inset Marginal
26354 \begin_layout Plain Layout
26355 The text of this margin note is centered.
26366 \begin_layout Standard
26373 raggedleftmarginnote}{
26376 \begin_inset Newline newline
26383 raggedrightmarginnote}{
26392 \begin_layout Plain Layout
26398 raggedleftmarginnote}{
26403 \begin_layout Plain Layout
26409 raggedrightmarginnote}{
26419 \begin_layout Standard
26420 \begin_inset VSpace medskip
26423 For the other features of
26427 we refer to its documentation
26428 \begin_inset CommandInset citation
26437 \begin_layout Standard
26438 \begin_inset VSpace bigskip
26441 You can adjust the layout of margin notes by changing its definition.
26442 To create for example a header for all margin notes with the underlined,
26443 sans-serif, and bold header text
26444 \begin_inset Quotes eld
26456 \begin_inset Quotes erd
26459 , add this to your document preamble:
26462 \begin_layout Standard
26472 \begin_inset Newline newline
26482 \begin_inset Newline newline
26489 \begin_layout Plain Layout
26506 underbar{Attention!}}}%
26507 \begin_inset Newline newline
26514 \begin_layout Plain Layout
26532 \begin_layout Standard
26539 \begin_layout Plain Layout
26550 \begin_layout Plain Layout
26561 \begin_layout Plain Layout
26569 underbar{Attention!}}}%
26572 \begin_layout Plain Layout
26586 \begin_inset Marginal
26589 \begin_layout Plain Layout
26590 This is a margin note with a defined heading.
26602 \begin_layout Plain Layout
26616 \begin_layout Plain Layout
26633 \begin_inset Note Note
26636 \begin_layout Plain Layout
26637 The margin note format is changed only for this example.
26645 \begin_layout Standard
26649 \begin_layout Plain Layout
26659 \begin_inset Note Note
26662 \begin_layout Plain Layout
26663 The following will be displayed when the LaTeX-package
26675 \begin_layout Standard
26676 You need to install the LaTeX-package
26680 to see the following part of this section in the output.
26683 \begin_layout Standard
26687 \begin_layout Plain Layout
26699 \begin_layout Chapter
26703 \begin_layout Section
26708 \begin_layout Plain Layout
26709 Boxes ! Introduction
26717 \begin_layout Standard
26718 Boxes are used to format a block of text.
26719 Boxes can be used to write documents with multiple languages, see section
26720 \begin_inset space ~
26724 \begin_inset CommandInset ref
26726 reference "sec:Minipages"
26730 , to frame texts, see section
26731 \begin_inset space ~
26735 \begin_inset CommandInset ref
26737 reference "sec:Decoration"
26741 , to prevent words to be hyphenated, see section
26742 \begin_inset space ~
26746 \begin_inset CommandInset ref
26748 reference "sec:Prevent-Hyphenation"
26752 , to align text, see section
26753 \begin_inset space ~
26757 \begin_inset CommandInset ref
26759 reference "sub:Vertical-Alignment"
26763 , or to set the background color of texts, see section
26764 \begin_inset space ~
26768 \begin_inset CommandInset ref
26770 reference "sec:Colored-Boxes"
26777 \begin_layout Standard
26778 Boxes can be inserted with the menu
26780 Insert\SpecialChar \menuseparator
26783 or the toolbar button
26784 \begin_inset Graphics
26785 filename ../images/box-insert.png
26787 scaleBeforeRotation
26792 A grey box with the label
26797 \begin_inset Graphics
26798 filename clipart/BoxInsetDefaultQt4.png
26800 scaleBeforeRotation
26805 The box type can be specified by right-clicking on the box.
26806 The appearing box dialog offers the
26809 \begin_inset space ~
26827 is the default for new boxes and is explained in section
26828 \begin_inset space ~
26832 \begin_inset CommandInset ref
26834 reference "sec:Minipages"
26842 is described in section
26843 \begin_inset space ~
26847 \begin_inset CommandInset ref
26849 reference "sec:Parboxes"
26856 \begin_layout Standard
26857 Boxes are not numbered and can therefore not be referenced like floats or
26861 \begin_layout Standard
26862 \begin_inset Note Greyedout
26865 \begin_layout Plain Layout
26870 Boxes must not be the item in an
26886 \begin_layout Standard
26887 \begin_inset Note Greyedout
26890 \begin_layout Plain Layout
26895 For an unknown reason you can only set the
26898 \begin_inset space ~
26907 when you use a framed box.
26911 \begin_inset space ~
26916 type and without frames are explained in section
26917 \begin_inset space ~
26921 \begin_inset CommandInset ref
26923 reference "sec:Prevent-Hyphenation"
26935 \begin_layout Section
26937 \begin_inset CommandInset label
26939 name "sec:Box-Dialog"
26947 \begin_layout Plain Layout
26956 \begin_layout Subsection
26961 \begin_layout Plain Layout
26970 \begin_layout Standard
26971 In the box dialog you can adjust the box geometry in the fields
26980 The available units for the geometry are explained in Table
26981 \begin_inset space ~
26985 \begin_inset CommandInset ref
26987 reference "tab:Units"
26996 offers the following additional sizes:
26999 \begin_layout Description
27000 Depth This is the plain text
27001 \begin_inset Quotes eld
27005 \begin_inset Quotes erd
27009 It ignores the total depth when there are multiple text lines in the box:
27010 \begin_inset Newline newline
27014 \begin_inset Newline newline
27018 \begin_inset Newline newline
27022 \begin_inset Box Boxed
27031 height_special "depth"
27034 \begin_layout Plain Layout
27036 Box height set to 1
27037 \begin_inset space \thinspace{}
27046 \begin_inset Newline newline
27050 \begin_inset Newline newline
27056 \begin_layout Description
27057 Height This is the height of the text that is inside the box.
27059 \begin_inset space \thinspace{}
27063 \begin_inset space \space{}
27066 2 for this size will set the box height to 2
27067 \begin_inset space ~
27070 times the text height:
27071 \begin_inset Box Boxed
27080 height_special "height"
27083 \begin_layout Plain Layout
27085 Box height set to 2
27086 \begin_inset space \thinspace{}
27097 \begin_layout Description
27099 \begin_inset space ~
27102 Height This is the Height
27103 \begin_inset space \thinspace{}
27107 \begin_inset space \thinspace{}
27111 \begin_inset Box Boxed
27120 height_special "totalheight"
27123 \begin_layout Plain Layout
27125 Box height set to 1
27126 \begin_inset space \thinspace{}
27130 \begin_inset space ~
27141 \begin_layout Description
27142 Width This sets the width of the box as height:
27143 \begin_inset Box Boxed
27152 height_special "width"
27155 \begin_layout Plain Layout
27157 Box height set to 1
27158 \begin_inset space \thinspace{}
27169 \begin_layout Subsection
27174 \begin_layout Plain Layout
27183 \begin_layout Standard
27184 When you have chosen an
27187 \begin_inset space ~
27192 , the vertical box alignment can be:
27195 \begin_layout Description
27196 Top This is an example text line.
27198 \begin_inset Box Boxed
27207 height_special "totalheight"
27210 \begin_layout Plain Layout
27212 This box is top-aligned.
27217 This is an example text line.
27220 \begin_layout Description
27221 Middle This is an example text line.
27223 \begin_inset Box Boxed
27232 height_special "totalheight"
27235 \begin_layout Plain Layout
27237 This box is middle-aligned.
27242 This is an example text line.
27245 \begin_layout Description
27246 Bottom This is an example text line.
27248 \begin_inset Box Boxed
27257 height_special "totalheight"
27260 \begin_layout Plain Layout
27262 This box is bottom-aligned.
27267 This is an example text line.
27270 \begin_layout Standard
27271 \begin_inset Note Greyedout
27274 \begin_layout Plain Layout
27279 The vertical box alignment can be lost in the output when you have two
27280 boxes in a line and one has e.
27281 \begin_inset space \thinspace{}
27285 \begin_inset space \space{}
27288 a shadow and the other one not.
27296 \begin_layout Standard
27297 The horizontal box alignment can be set via LyX's paragraph dialog when
27298 you set the box into its own paragraph.
27301 \begin_layout Standard
27302 \begin_inset VSpace bigskip
27305 When you have chosen an
27308 \begin_inset space ~
27313 , the box content can be aligned vertically to:
27316 \begin_layout Description
27317 top This is an example text line.
27319 \begin_inset Box Boxed
27328 height_special "totalheight"
27331 \begin_layout Plain Layout
27333 This box text is top-aligned.
27338 This is an example text line.
27341 \begin_layout Description
27342 middle This is an example text line.
27344 \begin_inset Box Boxed
27353 height_special "totalheight"
27356 \begin_layout Plain Layout
27358 This box text is middle-aligned.
27363 This is an example text line.
27366 \begin_layout Description
27367 bottom This is an example text line.
27369 \begin_inset Box Boxed
27378 height_special "totalheight"
27381 \begin_layout Plain Layout
27383 This box text is bottom-aligned.
27388 This is an example text line.
27391 \begin_layout Description
27392 stretch This is an example text line.
27394 \begin_inset Box Boxed
27403 height_special "totalheight"
27406 \begin_layout Plain Layout
27411 \begin_layout Plain Layout
27416 \begin_layout Plain Layout
27423 This is an example text line.
27426 \begin_layout Standard
27427 To stretch the box content, it must consist of more than one paragraph.
27428 In the example above every text line is in an own paragraph.
27431 \begin_layout Standard
27432 \begin_inset VSpace bigskip
27435 To align the box content horizontally you can use LyX's paragraph dialog
27436 when you have chosen an
27439 \begin_inset space ~
27447 \begin_layout Standard
27449 \begin_inset Box Boxed
27458 height_special "totalheight"
27461 \begin_layout Plain Layout
27466 \begin_layout Plain Layout
27471 \begin_layout Plain Layout
27481 \begin_layout Standard
27482 If you have not set an
27485 \begin_inset space ~
27490 , you can align the box content horizontally in the box dialog.
27493 \begin_layout Standard
27495 \begin_inset Box Boxed
27504 height_special "totalheight"
27507 \begin_layout Plain Layout
27509 This box text is horizontally stretched.
27517 \begin_layout Subsection
27519 \begin_inset CommandInset label
27521 name "sec:Decoration"
27529 \begin_layout Plain Layout
27538 \begin_layout Standard
27539 The type of the box can be specified in the box dialog in the drop-down
27545 The following types are possible:
27548 \begin_layout Description
27550 \begin_inset space ~
27554 \begin_inset space ~
27557 frame This draws a rectangular frame around the box.
27558 The frame line thickness has the size of
27566 \begin_inset Box Boxed
27575 height_special "totalheight"
27578 \begin_layout Plain Layout
27588 \begin_layout Description
27590 \begin_inset space ~
27594 \begin_inset space ~
27597 break When you use the decoration
27599 simple rectangular frame
27601 and no inner box, you can allow page breaks within a box.
27602 Note that then, in contrary to other framed boxes, the frame always uses
27603 the whole column width, the box is set as its own paragraph, and
27615 have no effect on this box type.
27616 The frame line thickness has the size of
27624 \begin_inset Box Framed
27633 height_special "totalheight"
27636 \begin_layout Plain Layout
27637 Allow page break box
27645 \begin_layout Description
27647 \begin_inset space ~
27651 \begin_inset space ~
27654 thin This draws an oval frame around the box.
27655 The frame line thickness has the size 0.4
27656 \begin_inset space \thinspace{}
27661 \begin_inset Box ovalbox
27670 height_special "totalheight"
27673 \begin_layout Plain Layout
27683 \begin_layout Description
27685 \begin_inset space ~
27689 \begin_inset space ~
27692 thick This draws an oval frame around the box.
27693 The frame line thickness has the size 0.8
27694 \begin_inset space \thinspace{}
27699 \begin_inset Box Ovalbox
27708 height_special "totalheight"
27711 \begin_layout Plain Layout
27721 \begin_layout Description
27723 \begin_inset space ~
27726 shadow This draws a rectangular frame with a shadow around the box.
27727 The frame line thickness has the size of
27733 , the shadow has a width of 4
27734 \begin_inset space \thinspace{}
27739 \begin_inset Box Shadowbox
27748 height_special "totalheight"
27751 \begin_layout Plain Layout
27761 \begin_layout Description
27763 \begin_inset space ~
27766 background This draws a box with red background color.
27767 In contrary to colored boxes
27771 \begin_layout Plain Layout
27773 \begin_inset space \thinspace{}
27777 \begin_inset CommandInset ref
27779 reference "sec:Colored-Boxes"
27788 , it always uses the whole column width and the box is set as its own paragraph.
27790 \begin_inset Box Shaded
27799 height_special "totalheight"
27802 \begin_layout Plain Layout
27803 Shaded background box
27811 \begin_layout Description
27813 \begin_inset space ~
27817 \begin_inset space ~
27820 frame This draws a double-line rectangular frame around the box.
27821 The line thickness of the inner frame is 0.75
27822 \begin_inset space \thinspace{}
27831 , the thickness of the outer frame is 1.5
27832 \begin_inset space \thinspace{}
27842 The distance between the lines is 1.5
27843 \begin_inset space \thinspace{}
27853 \begin_inset space \thinspace{}
27857 \begin_inset space \thinspace{}
27861 \begin_inset space \thinspace{}
27866 \begin_inset Box Doublebox
27875 height_special "totalheight"
27878 \begin_layout Plain Layout
27880 Double rectangular box
27888 \begin_layout Standard
27889 \begin_inset VSpace bigskip
27892 LyX's box label will reflect the different frame types.
27893 To be able to use all types, the LaTeX-package
27901 \begin_layout Plain Layout
27902 LaTeX-packages ! fancybox
27910 \begin_layout Section
27915 \begin_layout Plain Layout
27916 Boxes ! Customization
27924 \begin_layout Standard
27925 The default value for the size
27932 \begin_inset space \thinspace{}
27936 It can be changed with the following command in TeX-Code to e.
27937 \begin_inset space \thinspace{}
27941 \begin_inset space \space{}
27945 \begin_inset space \thinspace{}
27951 \begin_layout Standard
27961 \begin_layout Standard
27965 \begin_layout Plain Layout
27977 \begin_inset Box Boxed
27986 height_special "totalheight"
27989 \begin_layout Plain Layout
27991 Rectangular box with
27998 \begin_inset space \thinspace{}
28002 \begin_inset space \thinspace{}
28006 \begin_inset space \thinspace{}
28018 \begin_layout Plain Layout
28032 \begin_layout Standard
28033 \begin_inset VSpace bigskip
28036 The space between the frame and the box content is for all frame styles
28038 \begin_inset space \thinspace{}
28042 You can change it by setting the length
28049 For example the command
28052 \begin_layout Standard
28062 \begin_layout Standard
28063 sets the value to 10
28064 \begin_inset space \thinspace{}
28067 pt, like for the following box:
28070 \begin_layout Standard
28074 \begin_layout Plain Layout
28086 \begin_inset Box Boxed
28095 height_special "totalheight"
28098 \begin_layout Plain Layout
28100 Rectangular box with
28107 \begin_inset space \thinspace{}
28111 \begin_inset space \thinspace{}
28115 \begin_inset space \thinspace{}
28127 \begin_layout Plain Layout
28141 \begin_layout Standard
28142 \begin_inset VSpace bigskip
28145 The diameter of the round corners of the oval boxes can be set with the
28156 \begin_layout Standard
28164 \begin_layout Standard
28165 sets the diameter to 1
28166 \begin_inset space \thinspace{}
28173 \begin_layout Standard
28181 \begin_layout Standard
28182 sets the diameter to
28185 \begin_inset space \thinspace{}
28189 \begin_inset space \thinspace{}
28192 minimum(width and heigth of box)
28204 \begin_layout Standard
28208 \begin_layout Plain Layout
28218 \begin_inset Box Ovalbox
28227 height_special "totalheight"
28230 \begin_layout Plain Layout
28239 \begin_inset space \thinspace{}
28243 \begin_inset space \thinspace{}
28247 \begin_inset space \thinspace{}
28259 \begin_layout Plain Layout
28271 \begin_layout Standard
28272 \begin_inset VSpace bigskip
28275 The size of the shadow can be adjusted by changing the length
28283 \begin_inset space \thinspace{}
28286 pt for the following box by this command:
28289 \begin_layout Standard
28299 \begin_layout Standard
28303 \begin_layout Plain Layout
28315 \begin_inset Box Shadowbox
28324 height_special "totalheight"
28327 \begin_layout Plain Layout
28336 \begin_inset space \thinspace{}
28340 \begin_inset space \thinspace{}
28344 \begin_inset space \thinspace{}
28356 \begin_layout Plain Layout
28370 \begin_layout Standard
28371 \begin_inset VSpace bigskip
28377 \begin_layout Standard
28378 The default value for the size
28385 \begin_inset space \thinspace{}
28389 The default space between the note content and the frame is 9
28390 \begin_inset space \thinspace{}
28393 pt and can be changed with the value of
28400 For example the frame appearance of the following
28404 is set with the TeX-Code commands
28407 \begin_layout Standard
28415 \begin_inset Newline newline
28425 \begin_layout Standard
28429 \begin_layout Plain Layout
28438 \begin_layout Plain Layout
28450 \begin_inset Box Framed
28459 height_special "totalheight"
28462 \begin_layout Plain Layout
28476 \begin_layout Plain Layout
28485 \begin_layout Plain Layout
28499 \begin_layout Standard
28500 \begin_inset VSpace bigskip
28506 \begin_layout Standard
28511 boxes the default space between the box content and the box border is 3
28512 \begin_inset space \thinspace{}
28515 pt and can be changed with the value of
28522 The default background color red can either be changed locally with the
28527 definecolor{shadecolor}
28529 or globally with the menu
28531 Tools\SpecialChar \menuseparator
28532 Preferences\SpecialChar \menuseparator
28533 Colors\SpecialChar \menuseparator
28535 \begin_inset space ~
28547 command is explained in section
28548 \begin_inset space ~
28552 \begin_inset CommandInset ref
28554 reference "sec:Colored-Tables"
28562 \begin_layout Plain Layout
28569 requires the LaTeX-package
28573 in the preamble, see section
28574 \begin_inset space ~
28578 \begin_inset CommandInset ref
28580 reference "sec:Colored-Boxes"
28589 For example the appearance of the following shaded background box is set
28590 with the TeX-Code commands
28593 \begin_layout Standard
28603 \begin_inset Newline newline
28610 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
28613 \begin_layout Standard
28617 \begin_layout Plain Layout
28626 \begin_layout Plain Layout
28630 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
28636 \begin_inset Box Shaded
28645 height_special "totalheight"
28648 \begin_layout Plain Layout
28651 This is yellow text in a
28661 box with dark green background.
28670 \begin_layout Plain Layout
28679 \begin_layout Plain Layout
28683 definecolor{shadecolor}{rgb}{1,0,0}
28691 \begin_layout Standard
28692 \begin_inset VSpace bigskip
28695 Changed lengths and widths are valid for all boxes following the commands
28699 \begin_layout Section
28701 \begin_inset CommandInset label
28703 name "sec:Minipages"
28711 \begin_layout Plain Layout
28720 \begin_layout Standard
28721 Minipages are treated by LaTeX as pages within pages and can therefore for
28722 example have their own footnotes.
28725 \begin_layout Standard
28726 Minipages are useful when you write documents with different languages.
28729 \begin_layout Standard
28730 Below are two example minipages side by side.
28731 Their width is set to 45
28732 \begin_inset space \thinspace{}
28735 col% and they are separated by a horizontal fill, that was inserted via
28738 Insert\SpecialChar \menuseparator
28740 \begin_inset space ~
28743 Formatting\SpecialChar \menuseparator
28745 \begin_inset space ~
28751 \begin_inset Newpage newpage
28757 \begin_layout Standard
28758 \begin_inset Box Frameless
28767 height_special "totalheight"
28770 \begin_layout Plain Layout
28773 Dies ist ein deutscher Text.
28774 Dies ist ein deutscher Text.
28775 Dies ist ein deutscher Text.
28776 Dies ist ein deutscher Text.
28777 Dies ist ein deutscher Text.
28778 Dies ist ein deutscher Text.
28779 Dies ist ein deutscher Text.
28780 Dies ist ein deutscher Text.
28781 Dies ist ein deutscher Text.
28782 Dies ist ein deutscher Text.
28783 Dies ist ein deutscher Text.
28784 Dies ist ein deutscher Text.
28785 Dies ist ein deutscher Text
28789 \begin_layout Plain Layout
28792 Dies ist eine deutsche Fußnote.
28798 Dies ist ein deutscher Text.
28799 Dies ist ein deutscher Text.
28805 \begin_inset space \hfill{}
28809 \begin_inset Box Frameless
28818 height_special "totalheight"
28821 \begin_layout Plain Layout
28822 This is an English Text.
28823 This is an English Text.
28824 This is an English Text.
28825 This is an English Text.
28826 This is an English Text.
28827 This is an English Text.
28828 This is an English Text.
28829 This is an English Text.
28830 This is an English Text.
28831 This is an English Text.
28832 This is an English Text.
28833 This is an English Text.
28834 This is an English Text.
28835 This is an English Text.
28836 This is an English Text.
28837 This is an English Text.
28841 \begin_layout Plain Layout
28842 This is an English footnote.
28847 This is an English Text.
28856 \begin_layout Standard
28857 \begin_inset VSpace bigskip
28860 Another application for minipages are footnotes within tables.
28861 Due to a LaTeX restriction footnotes within tables doesn't appear at the
28862 bottom of the current page.
28863 But when you put the table with the footnote to a minipage, the footnote
28864 will appear at its bottom, numbered with Latin letters.
28865 The footnote number is reset to 1 in every minipage but not outside the
28869 \begin_layout Standard
28870 The footnote of this table doesn't appear:
28871 \begin_inset Tabular
28872 <lyxtabular version="3" rows="3" columns="4">
28874 <column alignment="center" valignment="top" width="0pt">
28875 <column alignment="center" valignment="top" width="0pt">
28876 <column alignment="center" valignment="top" width="0pt">
28877 <column alignment="center" valignment="top" width="0pt">
28879 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28882 \begin_layout Plain Layout
28888 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28891 \begin_layout Plain Layout
28897 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28900 \begin_layout Plain Layout
28905 \begin_layout Plain Layout
28906 This is a footnote within a table.
28916 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28919 \begin_layout Plain Layout
28927 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28930 \begin_layout Plain Layout
28936 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28939 \begin_layout Plain Layout
28945 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28948 \begin_layout Plain Layout
28954 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28957 \begin_layout Plain Layout
28965 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28968 \begin_layout Plain Layout
28974 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28977 \begin_layout Plain Layout
28983 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28986 \begin_layout Plain Layout
28992 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28995 \begin_layout Plain Layout
29009 \begin_layout Standard
29011 \begin_inset Box Frameless
29020 height_special "totalheight"
29023 \begin_layout Plain Layout
29025 \begin_inset Tabular
29026 <lyxtabular version="3" rows="3" columns="4">
29028 <column alignment="center" valignment="top" width="0pt">
29029 <column alignment="center" valignment="top" width="0pt">
29030 <column alignment="center" valignment="top" width="0pt">
29031 <column alignment="center" valignment="top" width="0pt">
29033 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29036 \begin_layout Plain Layout
29042 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29045 \begin_layout Plain Layout
29051 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29054 \begin_layout Plain Layout
29059 \begin_layout Plain Layout
29060 This is a footnote within a table.
29070 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29073 \begin_layout Plain Layout
29081 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29084 \begin_layout Plain Layout
29090 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29093 \begin_layout Plain Layout
29099 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29102 \begin_layout Plain Layout
29108 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29111 \begin_layout Plain Layout
29119 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29122 \begin_layout Plain Layout
29128 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29131 \begin_layout Plain Layout
29137 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29140 \begin_layout Plain Layout
29146 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29149 \begin_layout Plain Layout
29168 \begin_layout Standard
29169 \begin_inset VSpace bigskip
29172 The document-wide paragraph settings are ignored within minipages.
29173 That means that there will be no space between paragraphs in minipages
29174 although you set it to e.
29175 \begin_inset space \thinspace{}
29179 \begin_inset space \space{}
29186 in the document settings.
29189 \begin_layout Standard
29190 Minipages can also be used to set a background color for text parts, see
29192 \begin_inset space ~
29196 \begin_inset CommandInset ref
29198 reference "sub:Color-for-Paragraphs"
29205 \begin_layout Standard
29206 \begin_inset Note Greyedout
29209 \begin_layout Plain Layout
29214 You cannot have floats or margin notes inside minipages but minipages can
29215 be used inside tables, floats, and other boxes.
29223 \begin_layout Section
29225 \begin_inset CommandInset label
29227 name "sec:Parboxes"
29235 \begin_layout Plain Layout
29244 \begin_layout Standard
29245 Parboxes are very similar to minipages with the difference that they cannot
29247 The main difference to minipages is that minipages are in contrary to parboxes
29248 no real boxes but LaTeX-environments.
29251 \begin_layout Standard
29253 \begin_inset Box Frameless
29262 height_special "totalheight"
29265 \begin_layout Plain Layout
29266 This a text within a parbox.
29267 This a text within a parbox.
29270 \begin_layout Plain Layout
29271 This footnote won't appear:
29275 \begin_layout Plain Layout
29276 This footnote is inside a parbox and will therefore not appear.
29289 \begin_layout Section
29290 Boxes for Words and Characters
29294 \begin_layout Plain Layout
29295 Boxes ! for Characters
29303 \begin_layout Subsection
29304 Prevent Hyphenation
29305 \begin_inset CommandInset label
29307 name "sec:Prevent-Hyphenation"
29315 \begin_layout Plain Layout
29316 Boxes ! to Prevent Hyphenation
29324 \begin_layout Standard
29325 You can use a special kind of boxes to prevent words or text to be hyphenated.
29326 \begin_inset Newline newline
29329 Here is an example text:
29332 \begin_layout Standard
29333 This line is an example to show how you can prevent the hyphenation of
29334 \begin_inset Quotes eld
29338 \begin_inset Quotes erd
29344 \begin_layout Standard
29345 To prevent the hyphenation of the word
29346 \begin_inset Quotes eld
29350 \begin_inset Quotes erd
29356 \begin_layout Standard
29364 \begin_layout Standard
29365 in TeX-Code before the word.
29366 Behind the word insert a closing brace
29367 \begin_inset Quotes eld
29375 \begin_inset Quotes erd
29381 \begin_layout Standard
29382 This is the result:
29385 \begin_layout Standard
29386 This line is an example to show how you can prevent the hyphenation of
29390 \begin_layout Plain Layout
29400 \begin_inset Quotes eld
29404 \begin_inset Quotes erd
29411 \begin_layout Plain Layout
29421 \begin_layout Standard
29422 You can alternatively set the command
29423 \begin_inset Quotes eld
29433 \begin_inset Quotes grd
29436 as TeX-Code directly before the word:
29439 \begin_layout Standard
29440 This line is an example to show how you can prevent the hyphenation of
29441 \begin_inset Quotes eld
29448 \begin_layout Plain Layout
29458 \begin_inset Quotes erd
29464 \begin_layout Standard
29465 Of course the word now protrudes over the side margin.
29466 To avoid this, add via the menu
29468 Insert\SpecialChar \menuseparator
29470 \begin_inset space ~
29473 Formatting\SpecialChar \menuseparator
29475 \begin_inset space ~
29483 arg "newline-insert newline"
29486 ) a line break before the word:
29489 \begin_layout Standard
29490 This line is an example to show how you can prevent the hyphenation of
29491 \begin_inset Newline newline
29498 \begin_layout Plain Layout
29508 \begin_inset Quotes eld
29512 \begin_inset Quotes erd
29519 \begin_layout Plain Layout
29529 \begin_layout Subsection
29531 \begin_inset CommandInset label
29533 name "sub:Vertical-Alignment"
29541 \begin_layout Plain Layout
29542 Boxes ! for Vertical Alignment
29551 \begin_layout Plain Layout
29560 \begin_layout Standard
29561 With the help of the command
29567 you can align words, characters or other boxes vertically to the surrounding
29575 is used with the following scheme:
29578 \begin_layout Standard
29583 raisebox{lift}[height][depth]{box content}
29586 \begin_layout Standard
29587 The lift can be a positive value to raise the box or a negative value to
29591 \begin_layout Standard
29592 To align for example the word
29593 \begin_inset Quotes eld
29597 \begin_inset Quotes erd
29600 so that the bottom of the
29601 \begin_inset Quotes eld
29605 \begin_inset Quotes erd
29609 \begin_inset Quotes eld
29613 \begin_inset Quotes erd
29616 is at the baseline, insert the command
29619 \begin_layout Standard
29629 \begin_layout Standard
29630 in TeX-Code before the word.
29631 Behind the word insert a closing brace
29632 \begin_inset Quotes eld
29640 \begin_inset Quotes erd
29644 \begin_inset Newline newline
29647 This is the result:
29650 \begin_layout Standard
29651 This is a text line with the word
29655 \begin_layout Plain Layout
29667 \begin_inset Quotes eld
29671 \begin_inset Quotes erd
29678 \begin_layout Plain Layout
29688 \begin_layout Standard
29689 \begin_inset VSpace bigskip
29692 When you raise or lower characters in a line, the line distance will be
29696 \begin_layout Standard
29697 This is a text line with the word
29701 \begin_layout Plain Layout
29713 \begin_inset Quotes eld
29717 \begin_inset Quotes erd
29724 \begin_layout Plain Layout
29732 \begin_inset Newline newline
29735 This is a text line with the word
29739 \begin_layout Plain Layout
29749 \begin_inset Quotes eld
29753 \begin_inset Quotes erd
29760 \begin_layout Plain Layout
29770 \begin_layout Standard
29771 If you want to prevent this for a certain reason, set the box height to
29776 \begin_layout Standard
29786 \begin_layout Standard
29787 This is a text line with the word
29791 \begin_layout Plain Layout
29803 \begin_inset Quotes eld
29807 \begin_inset Quotes erd
29814 \begin_layout Plain Layout
29822 \begin_inset Newline newline
29825 This is a text line with the word
29829 \begin_layout Plain Layout
29833 raisebox{0.5cm}[0pt]{
29839 \begin_inset Quotes eld
29843 \begin_inset Quotes erd
29850 \begin_layout Plain Layout
29860 \begin_layout Section
29862 \begin_inset CommandInset label
29864 name "sec:Colored-Boxes"
29872 \begin_layout Plain Layout
29881 \begin_layout Subsection
29886 \begin_layout Plain Layout
29895 \begin_layout Standard
29896 To color the background of text the text must be put into a so called
29897 \begin_inset Quotes eld
29901 \begin_inset Quotes erd
29905 This requires that the LaTeX-package
29913 \begin_layout Plain Layout
29914 LaTeX-packages ! color
29919 is loaded in the document preamble with the command
29922 \begin_layout Standard
29927 @ifundefined{textcolor}
29928 \begin_inset Newline newline
29935 \begin_layout Plain Layout
29946 usepackage{color}}{}
29949 \begin_layout Standard
29954 will be loaded automatically by LyX when you color text
29958 \begin_layout Plain Layout
29959 To avoid that it is loaded twice the command
29973 \begin_layout Standard
29974 \begin_inset VSpace medskip
29977 Colorboxes are created with the command
29984 This will be used with the following scheme:
29987 \begin_layout Standard
29992 colorbox{color}{box content}
29995 \begin_layout Standard
29996 The box content can also be a box and colorboxes can also be within other
30000 \begin_layout Standard
30001 The following colors are predefined:
30002 \begin_inset Newline newline
30041 \begin_inset Newline newline
30044 You can also define your own color as described in section
30045 \begin_inset space ~
30049 \begin_inset CommandInset ref
30051 reference "sec:Colored-Tables"
30058 \begin_layout Standard
30060 \begin_inset space \thinspace{}
30064 \begin_inset space \space{}
30067 a red background for a word, insert the command
30070 \begin_layout Standard
30078 \begin_layout Standard
30079 before the word in TeX-Code.
30080 Behind the word insert a closing brace
30081 \begin_inset Quotes eld
30089 \begin_inset Quotes erd
30093 \begin_inset Newline newline
30096 This is the result:
30099 \begin_layout Standard
30100 This is a line where the word
30104 \begin_layout Plain Layout
30114 \begin_inset Quotes eld
30118 \begin_inset Quotes erd
30125 \begin_layout Plain Layout
30132 has a red background.
30135 \begin_layout Standard
30136 \begin_inset VSpace bigskip
30139 If you would have the box frame in a different color, you can use the command
30146 with the following scheme:
30149 \begin_layout Standard
30154 fcolorbox{frame color}{box color}{box content}
30157 \begin_layout Standard
30171 The frame thickness and the space between the frame and the box content
30172 can be adjusted with the lengths
30184 , respectively, as described in section
30185 \begin_inset space ~
30189 \begin_inset CommandInset ref
30191 reference "sec:Decoration"
30198 \begin_layout Standard
30199 For the following example the command
30202 \begin_layout Standard
30207 fcolorbox{cyan}{magenta}{
30210 \begin_layout Standard
30214 \begin_layout Standard
30215 Here is an example where the frame line thickness was set to 1
30216 \begin_inset space \thinspace{}
30220 \begin_inset Newline newline
30227 \begin_layout Plain Layout
30242 \begin_layout Plain Layout
30246 fcolorbox{cyan}{magenta}{
30251 This is text within a colored, framed box.
30255 \begin_layout Plain Layout
30265 \begin_layout Standard
30266 \begin_inset VSpace bigskip
30269 Of course you can also have colored text inside a colorbox:
30270 \begin_inset Newline newline
30277 \begin_layout Plain Layout
30281 fcolorbox{cyan}{magenta}{
30288 This is colored text within a colored, framed box.
30294 \begin_layout Plain Layout
30305 \begin_layout Plain Layout
30319 \begin_layout Standard
30322 \begin_inset VSpace medskip
30328 \begin_layout Standard
30329 \begin_inset Note Greyedout
30332 \begin_layout Plain Layout
30337 Text in colorboxes cannot have line breaks.
30338 To color multiple text lines or paragraphs, use a box inside a colorbox
30339 as described in the following.
30347 \begin_layout Subsection
30348 Color for Paragraphs
30349 \begin_inset CommandInset label
30351 name "sub:Color-for-Paragraphs"
30359 \begin_layout Plain Layout
30360 Color ! for Paragraphs
30368 \begin_layout Standard
30369 To set the background color for more than one text line, put the text into
30371 Before the minipage insert the
30380 \begin_layout Standard
30388 \begin_layout Standard
30390 Behind the minipage insert a closing brace
30391 \begin_inset Quotes eld
30399 \begin_inset Quotes erd
30405 \begin_layout Standard
30409 \begin_layout Plain Layout
30413 colorbox{lightgrey}{
30419 \begin_inset Box Frameless
30428 height_special "totalheight"
30431 \begin_layout Plain Layout
30432 This is text with background color.
30433 This is text with background color.
30436 \begin_layout Plain Layout
30437 \begin_inset VSpace defskip
30440 The text can have footnotes
30444 \begin_layout Plain Layout
30445 Another example footnote
30450 and can include tables and figures.
30453 \begin_layout Plain Layout
30455 \begin_inset Tabular
30456 <lyxtabular version="3" rows="3" columns="3">
30458 <column alignment="center" valignment="top" width="0">
30459 <column alignment="center" valignment="top" width="0">
30460 <column alignment="center" valignment="top" width="0">
30462 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30465 \begin_layout Plain Layout
30471 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30474 \begin_layout Plain Layout
30480 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30483 \begin_layout Plain Layout
30491 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30494 \begin_layout Plain Layout
30500 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30503 \begin_layout Plain Layout
30505 \begin_inset Quotes erd
30513 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30516 \begin_layout Plain Layout
30524 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30527 \begin_layout Plain Layout
30533 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30536 \begin_layout Plain Layout
30542 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30545 \begin_layout Plain Layout
30565 \begin_layout Plain Layout
30575 \begin_layout Section
30576 Rotated and Scaled Boxes
30579 \begin_layout Standard
30580 To use the the commands described in this section, the LaTeX-package
30588 \begin_layout Plain Layout
30589 LaTeX-packages ! graphicx
30594 needs to be loaded in the document preamble with the command
30597 \begin_layout Standard
30602 @ifundefined{rotatebox}
30603 \begin_inset Newline newline
30610 \begin_layout Plain Layout
30621 usepackage{graphicx}}{}
30624 \begin_layout Standard
30625 \begin_inset Note Greyedout
30628 \begin_layout Plain Layout
30633 Some DVI-viewers can't display rotated or scaled material.
30641 \begin_layout Standard
30642 \begin_inset Note Greyedout
30645 \begin_layout Plain Layout
30650 Floats mustn't be inside a rotated or scaled box.
30658 \begin_layout Subsection
30663 \begin_layout Plain Layout
30673 \begin_layout Plain Layout
30683 \begin_layout Plain Layout
30693 \begin_layout Plain Layout
30694 Table Customization ! Rotating
30702 \begin_layout Standard
30703 To rotate material, you can put it into a rotated box.
30704 Such a box is created using the command
30710 in TeX-Code with the following scheme:
30713 \begin_layout Standard
30718 rotatebox[rotation origin]{rotation angle}{box content}
30721 \begin_layout Standard
30722 The rotation origin is specified in the form
30727 The following positions are possible:
30747 (top), and also expedient combinations of the four base positions.
30752 means, that the rotation origin is at the top left corner of the box.
30753 When no rotation origin is specified, the position
30758 The rotation angle is a number that can be negative that specifies the
30760 The rotation direction is counterclockwise.
30763 \begin_layout Standard
30764 In the following example the command
30768 rotatebox[origin=c]{60}{
30770 was inserted as TeX-Code before the text
30771 \begin_inset Quotes eld
30775 \begin_inset Quotes erd
30778 ; after the text the box was closed by a closing brace
30785 \begin_layout Standard
30790 \begin_layout Plain Layout
30794 rotatebox[origin=c]{60}{
30803 \begin_layout Plain Layout
30813 \begin_layout Standard
30814 The box content can also be another box or an inline formula:
30817 \begin_layout Standard
30822 \begin_layout Plain Layout
30826 rotatebox[origin=r]{-60}{
30832 \begin_inset Box Doublebox
30841 height_special "totalheight"
30844 \begin_layout Plain Layout
30854 \begin_layout Plain Layout
30865 \begin_layout Plain Layout
30869 rotatebox[origin=lb]{60}{
30875 \begin_inset Formula $\int A\,\mathrm{d}x=B$
30882 \begin_layout Plain Layout
30892 \begin_layout Standard
30893 or an image or table:
30896 \begin_layout Standard
30901 \begin_layout Plain Layout
30905 rotatebox[origin=lb]{90}{
30911 \begin_inset Graphics
30912 filename clipart/platypus.eps
30922 \begin_layout Plain Layout
30929 with a rotated image
30933 \begin_layout Plain Layout
30937 rotatebox[origin=l]{-90}{
30943 \begin_inset Tabular
30944 <lyxtabular version="3" rows="2" columns="2">
30946 <column alignment="center" valignment="top" width="0">
30947 <column alignment="center" valignment="top" width="0">
30949 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30952 \begin_layout Plain Layout
30958 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30961 \begin_layout Plain Layout
30969 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30972 \begin_layout Plain Layout
30978 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30981 \begin_layout Plain Layout
30996 \begin_layout Plain Layout
31006 \begin_layout Subsection
31011 \begin_layout Plain Layout
31021 \begin_layout Plain Layout
31031 \begin_layout Plain Layout
31041 \begin_layout Plain Layout
31042 Table Customization ! Scaling
31050 \begin_layout Standard
31051 To scale material the commands
31063 can be used as TeX-Code.
31066 \begin_layout Standard
31073 is used with the following scheme:
31076 \begin_layout Standard
31081 scalebox{horizontal}[vertical]{box content}
31084 \begin_layout Standard
31085 Horizontal and vertical are the corresponding scaling factors.
31086 If no vertical scaling factor is given, the horizontal factor will also
31087 be used as vertical one.
31090 \begin_layout Standard
31097 creates for example a double size
31101 \begin_layout Plain Layout
31114 \begin_layout Plain Layout
31121 , compared to the document text size.
31124 \begin_layout Standard
31129 scalebox{2}[1]{Hello}
31131 in contrary distorts the
31135 \begin_layout Plain Layout
31148 \begin_layout Plain Layout
31158 \begin_layout Standard
31159 If a the scaling factor is negative, the box content will be mirrored.
31160 Therefore the command
31164 scalebox{-1}[1]{Hello}
31166 can be used to create mirror writing:
31170 \begin_layout Plain Layout
31183 \begin_layout Plain Layout
31193 \begin_layout Standard
31198 scalebox{1}[-1]{Hello}
31204 \begin_layout Plain Layout
31217 \begin_layout Plain Layout
31227 \begin_layout Standard
31232 scalebox{-1}[1]{box content}
31234 there exists the command
31235 \begin_inset Newline newline
31242 reflectbox{box content}
31247 \begin_layout Standard
31248 \begin_inset VSpace bigskip
31257 is used to scale the box to a defined width and height.
31258 The command scheme is:
31261 \begin_layout Standard
31266 resizebox{width}{height}{box content}
31269 \begin_layout Standard
31270 Is one of the two command arguments given as exclamation mark
31274 , the size is set so that the aspect ratio of the box content is kept.
31277 \begin_layout Standard
31282 resizebox{2cm}{1cm}{Hello}
31288 \begin_layout Plain Layout
31292 resizebox{2cm}{1cm}{
31301 \begin_layout Plain Layout
31309 \begin_inset Newline newline
31316 resizebox{2cm}{!}{Hello}
31322 \begin_layout Plain Layout
31335 \begin_layout Plain Layout
31345 \begin_layout Standard
31346 \begin_inset VSpace bigskip
31350 \begin_inset Note Greyedout
31353 \begin_layout Plain Layout
31370 are set to zero, no LaTeX-errors occur when exporting the document but
31371 the exported files can not or only partly be displayed.
31379 \begin_layout Standard
31380 \begin_inset VSpace bigskip
31386 \begin_layout Standard
31387 The boxes can be combined in any order.
31389 \begin_inset space \thinspace{}
31393 \begin_inset space \space{}
31397 \begin_inset Newline newline
31404 rotatebox[origin=c]{-45}{
31408 reflectbox{Hello}}}
31409 \begin_inset Newline newline
31417 \begin_layout Standard
31422 \begin_layout Plain Layout
31426 rotatebox[origin=c]{-45}{
31439 \begin_layout Plain Layout
31449 \begin_layout Standard
31451 Images, tables, and inline formulas are allowed as box content:
31454 \begin_layout Standard
31459 \begin_layout Plain Layout
31463 rotatebox[origin=c]{-30}{
31473 \begin_inset Graphics
31474 filename clipart/platypus.eps
31484 \begin_layout Plain Layout
31495 \begin_layout Plain Layout
31499 rotatebox[origin=c]{-45}{
31509 \begin_inset Tabular
31510 <lyxtabular version="3" rows="2" columns="2">
31512 <column alignment="center" valignment="top" width="0">
31513 <column alignment="center" valignment="top" width="0">
31515 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31518 \begin_layout Plain Layout
31524 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31527 \begin_layout Plain Layout
31535 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31538 \begin_layout Plain Layout
31544 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31547 \begin_layout Plain Layout
31562 \begin_layout Plain Layout
31573 \begin_layout Plain Layout
31577 rotatebox[origin=c]{-45}{
31587 \begin_inset Formula $\int A\,\mathrm{d}x=B$
31594 \begin_layout Plain Layout
31604 \begin_layout Standard
31605 When the global formula style
31609 is used in the document
31613 \begin_layout Plain Layout
31615 \begin_inset Quotes eld
31619 \begin_inset Quotes erd
31622 is added to the document class options.
31627 , also display formulas can be scaled.
31630 \begin_layout Chapter
31631 External Document Parts
31635 \begin_layout Plain Layout
31636 External Document Parts
31644 \begin_layout Standard
31647 Insert\SpecialChar \menuseparator
31650 you can insert external material to your document.
31654 \begin_layout Description
31656 \begin_inset space ~
31659 Document Another LyX document; its content is directly inserted to your
31663 \begin_layout Description
31665 \begin_inset space ~
31668 Text A text document; every of its text lines is inserted to your document
31672 \begin_layout Description
31674 \begin_inset space ~
31678 \begin_inset space ~
31682 \begin_inset space ~
31685 Lines A text document; its text lines are inserted as they are.
31686 Empty text lines creates a new paragraph in your document.
31689 \begin_layout Description
31691 \begin_inset space ~
31694 Material Files in various formats.
31697 \begin_layout Description
31699 \begin_inset space ~
31702 Document LyX or LaTeX-documents.
31705 \begin_layout Section
31710 \begin_layout Plain Layout
31711 External Document Parts ! External Material
31719 \begin_layout Standard
31720 The external material feature allows you to insert files to your document
31721 without converting them previously to a format that can be read by the
31722 document output format because LyX takes care of needed conversions.
31723 This is similar to images that can be inserted in various image formats
31725 When you have enabled Instant Preview in LyX's preferences under
31728 \begin_inset space ~
31732 \begin_inset space ~
31735 feel\SpecialChar \menuseparator
31738 , the external material types Dia and Xfig is directly shown in LyX.
31741 \begin_layout Standard
31742 External material can be inserted via the
31746 dialog that is accessible with the menu
31748 Insert\SpecialChar \menuseparator
31749 File\SpecialChar \menuseparator
31751 \begin_inset space ~
31757 Currently the following file types (
31764 \begin_layout Description
31765 ChessDiagram This template supports chess position diagrams made with the
31769 \begin_inset CommandInset href
31772 target "http://en.wikipedia.org/wiki/XBoard"
31781 \begin_layout Description
31782 Date This inserts the date in the form
31787 This is a date inserted as external material:
31788 \begin_inset External
31795 \begin_inset space ~
31799 \begin_inset Note Note
31802 \begin_layout Plain Layout
31803 Remove the protected space when bug 4398 is fixed!
31809 \begin_inset Newline newline
31812 The date is not shown within LyX, only in the output.
31813 There are two other methods of inserting a date: Via menu
31815 Insert\SpecialChar \menuseparator
31818 and with the LaTeX command
31825 The different methods are compared in Table
31826 \begin_inset space ~
31830 \begin_inset CommandInset ref
31832 reference "tab:Comparison-of-the"
31839 \begin_layout Description
31840 Dia This template supports diagrams created with the program
31843 \begin_inset CommandInset href
31846 target "http://en.wikipedia.org/wiki/Dia_(software)"
31855 \begin_layout Description
31856 LilyPond This template is used for music notation typeset with the program
31857 \begin_inset Newline linebreak
31863 \begin_inset CommandInset href
31866 target "http://en.wikipedia.org/wiki/LilyPond"
31875 \begin_layout Description
31876 PDFPages With this template you can insert PDF documents to your document.
31877 To insert certain or all pages of a PDF, use the
31887 LaTeX and LyX options
31889 tab according to the template description in the dialog.
31894 option is given, only the first page of the PDF will be inserted.
31897 \begin_layout Description
31898 RasterImage This can be used for bitmap images.
31899 Nearly all popular image formats are supported.
31900 The image can be treated in the
31904 dialog like the images that are usually included via the
31908 dialog as described in section
31909 \begin_inset space ~
31913 \begin_inset CommandInset ref
31915 reference "sec:Graphics-Dialog"
31920 The difference is that only raster images are allowed, that means that
31921 PDF and EPS-images are not supported.
31924 \begin_layout Description
31925 XFig This template supports images created with the program
31928 \begin_inset CommandInset href
31931 target "http://en.wikipedia.org/wiki/Xfig"
31940 \begin_layout Standard
31941 \begin_inset Float table
31947 \begin_layout Plain Layout
31948 \begin_inset Caption
31950 \begin_layout Plain Layout
31951 \begin_inset CommandInset label
31953 name "tab:Comparison-of-the"
31957 Comparison of the date input methods.
31965 \begin_layout Plain Layout
31967 \begin_inset Tabular
31968 <lyxtabular version="3" rows="4" columns="4">
31970 <column alignment="center" valignment="top" width="0">
31971 <column alignment="center" valignment="top" width="0">
31972 <column alignment="center" valignment="top" width="0">
31973 <column alignment="center" valignment="top" width="0">
31975 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31978 \begin_layout Plain Layout
31984 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31987 \begin_layout Plain Layout
31990 External Material\SpecialChar \menuseparator
31996 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31999 \begin_layout Plain Layout
32002 Insert\SpecialChar \menuseparator
32008 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32011 \begin_layout Plain Layout
32023 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32026 \begin_layout Plain Layout
32032 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32035 \begin_layout Plain Layout
32041 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32044 \begin_layout Plain Layout
32050 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32053 \begin_layout Plain Layout
32054 as TeX-Code inset box
32061 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32064 \begin_layout Plain Layout
32070 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32073 \begin_layout Plain Layout
32079 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32082 \begin_layout Plain Layout
32088 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32091 \begin_layout Plain Layout
32099 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32102 \begin_layout Plain Layout
32108 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32111 \begin_layout Plain Layout
32117 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32120 \begin_layout Plain Layout
32126 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
32129 \begin_layout Plain Layout
32148 \begin_layout Standard
32149 When you use the option
32161 dialog, only the path to the inserted file is shown in the output.
32162 \begin_inset Newline newline
32165 External material is displayed in LyX either as box like this:
32166 \begin_inset Graphics
32167 filename clipart/ExternalMaterialQt4.png
32169 scaleBeforeRotation
32173 or as image, depending on the option
32179 LaTeX and LyX options
32184 \begin_layout Standard
32191 manual explains how you can define your own templates.
32194 \begin_layout Section
32196 \begin_inset CommandInset label
32198 name "sec:Child-Documents"
32206 \begin_layout Plain Layout
32207 External Document Parts ! Child Documents
32216 \begin_layout Plain Layout
32225 \begin_layout Standard
32226 Child documents are used when you have a long document consisting of several
32227 larger parts or sections.
32228 For maintenance it is often useful and sometimes even required to split
32229 the document in several files that can be revised separately.
32230 The different documents are then the so called child documents and a master
32231 document connects them to print the full document or parts of it.
32232 A child documents inherits contents of its master, for example the LaTeX
32233 preamble, the bibliography, and labels for cross-references.
32236 \begin_layout Standard
32237 To be able to work on child documents without the need to open its master,
32238 specify in the child document the master in the menu
32240 Document\SpecialChar \menuseparator
32241 Settings\SpecialChar \menuseparator
32243 \begin_inset space ~
32249 This master document will then be used in the background by LyX when you
32250 edit the child document.
32253 \begin_layout Standard
32254 Included documents are displayed in LyX as a box like this:
32255 \begin_inset Graphics
32256 filename clipart/ChildDocumentQt4.png
32258 scaleBeforeRotation
32262 To include child documents to a master document use the menu
32264 Insert\SpecialChar \menuseparator
32265 File\SpecialChar \menuseparator
32267 \begin_inset space ~
32273 A dialog pops up where you can choose between four include methods:
32276 \begin_layout Description
32277 Include You can include LyX and LaTeX-documents.
32286 dialog, the included documents will be opened in LyX in a new file tab
32287 so that you can modify it.
32288 \begin_inset Newline newline
32294 \begin_layout Standard
32295 Here is a child document inserted using
32300 \begin_inset CommandInset include
32301 LatexCommand include
32302 filename "DummyDocument1.lyx"
32309 \begin_layout Standard
32310 The section numbering includes the sections of the included files in the
32311 order they are inserted in the master document.
32312 The included example document has for example a subsection that is numbered
32313 as subsection of this section.
32314 Labels of included documents can be referenced: Subsection
32315 \begin_inset space ~
32319 \begin_inset CommandInset ref
32321 reference "sub:External-Subsection-1"
32328 \begin_layout Standard
32329 The preamble of the child document is ignored, only the preamble of the
32330 master document is used.
32331 Branches in child documents will be ignored by the master document when
32332 the master document does not have a branch with the same name.
32333 Included documents are inserted starting on a new page and end with a page
32337 \begin_layout Standard
32338 In case you are only working on a certain chapter of a large document and
32339 want to save compiling time, you can put each included file into a branch.
32343 \begin_layout Plain Layout
32344 Branches are described in section
32357 By enabling/disabling branches you can decide what included files will
32358 appear in the output.
32361 \begin_layout Standard
32362 \begin_inset Note Greyedout
32365 \begin_layout Plain Layout
32370 Due to a bug in LyX the LaTeX command
32376 can currently not be used as alternative to decide what files should be
32385 \begin_layout Standard
32386 \begin_inset Note Greyedout
32389 \begin_layout Plain Layout
32394 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
32395 w the document in case that the child document uses another document class
32396 than the master document as this will lead to unexpected outputs.
32404 \begin_layout Description
32405 Input This method is very similar to the Include method.
32406 The differences are:
32410 \begin_layout Itemize
32411 Input files don't start with a new page and don't end with a page break.
32414 \begin_layout Itemize
32415 Input files can be previewed in LyX when
32418 \begin_inset space ~
32423 is enabled in LyX's preferences under
32426 \begin_inset space ~
32430 \begin_inset space ~
32433 feel\SpecialChar \menuseparator
32439 \begin_layout Itemize
32450 \begin_layout Standard
32451 Here is a child document inserted using
32456 \begin_inset CommandInset include
32458 filename "DummyDocument2.lyx"
32465 \begin_layout Description
32466 Verbatim With this method every text file can be included.
32467 The file is shown in the output with its source code, no command used in
32468 the text is invoked.
32469 You can use the option
32471 Mark spaces in output
32473 that displays the character
32474 \begin_inset Quotes eld
32481 \begin_layout Plain Layout
32491 \begin_inset Quotes erd
32494 for every space character in the source code.
32495 The difference to the method via the menu
32497 Insert\SpecialChar \menuseparator
32498 File\SpecialChar \menuseparator
32500 \begin_inset space ~
32505 is that the document content is not shown in LyX.
32508 \begin_layout Standard
32509 Here is a child document inserted as Verbatim:
32510 \begin_inset CommandInset include
32511 LatexCommand verbatiminput
32512 filename "DummyTextDocument.txt"
32517 \begin_inset VSpace bigskip
32520 Here is a child document inserted as Verbatim using the
32522 Mark spaces in output
32525 \begin_inset CommandInset include
32526 LatexCommand verbatiminput*
32527 filename "DummyTextDocument.txt"
32534 \begin_layout Standard
32535 \begin_inset VSpace bigskip
32541 \begin_layout Standard
32542 \begin_inset Note Greyedout
32545 \begin_layout Plain Layout
32550 As you can see in the examples above, the text of the documents included
32555 is not broken at the end of the document lines.
32563 \begin_layout Description
32564 Listings This type is described in chapter
32565 \begin_inset space ~
32569 \begin_inset CommandInset ref
32571 reference "cha:Program-Code-Listings"
32578 \begin_layout Standard
32579 \begin_inset Note Greyedout
32582 \begin_layout Plain Layout
32587 Including the same document twice in a document using different methods
32588 could cause LaTeX-problems.
32596 \begin_layout Chapter
32597 Program Code Listings
32598 \begin_inset CommandInset label
32600 name "cha:Program-Code-Listings"
32608 \begin_layout Plain Layout
32618 \begin_layout Plain Layout
32628 \begin_layout Plain Layout
32637 \begin_layout Standard
32638 To include and typeset program code you can use the
32642 inset that can be inserted via the menu
32644 Insert\SpecialChar \menuseparator
32656 \begin_layout Plain Layout
32657 LaTeX-packages ! listings
32662 provides a powerful and flexible way to insert program source code to your
32666 \begin_layout Standard
32667 Right-clicking on a listings inset opens the context menu containing where
32668 you can set the listings format.
32671 \begin_layout Standard
32672 By default, a listing starts a new paragraph in the output.
32673 The placement option
32676 \begin_inset space ~
32681 prints the listing inline like this:
32682 \begin_inset listings
32683 lstparams "language={C++}"
32687 \begin_layout Plain Layout
32695 \begin_inset Newline newline
32702 creates a listings float where you can specify the placement options
32703 \begin_inset Quotes eld
32711 \begin_inset Quotes erd
32715 \begin_inset Quotes eld
32723 \begin_inset Quotes erd
32727 \begin_inset Quotes eld
32735 \begin_inset Quotes erd
32739 \begin_inset Quotes eld
32747 \begin_inset Quotes erd
32750 corresponding to the float placement options described in section
32751 \begin_inset space ~
32755 \begin_inset CommandInset ref
32757 reference "sec:Float-Placement"
32762 The placement options can be mixed and are inserted without any separation,
32764 \begin_inset space \thinspace{}
32768 \begin_inset space \space{}
32772 \begin_inset Quotes eld
32780 \begin_inset Quotes erd
32785 \begin_inset Quotes eld
32789 \begin_inset Quotes erd
32792 has sometimes no effect, but you don't need to use the
32796 option in this case as also non-float listings can have captions and be
32800 \begin_layout Standard
32801 You can add captions to listings with the menu
32803 Insert\SpecialChar \menuseparator
32807 Listings can be referenced like floats: Listing
32808 \begin_inset space ~
32812 \begin_inset CommandInset ref
32814 reference "lst:Example-Listing"
32821 \begin_layout Standard
32822 \begin_inset listings
32823 lstparams "language=Python"
32827 \begin_layout Plain Layout
32829 \begin_inset Caption
32831 \begin_layout Plain Layout
32832 \begin_inset CommandInset label
32834 name "lst:Example-Listing"
32838 Example Listing float
32843 # Example listing float
32846 \begin_layout Plain Layout
32851 \begin_layout Plain Layout
32853 'this is a python function'
32856 \begin_layout Plain Layout
32866 \begin_layout Standard
32867 When you have set a programming language in the listings dialog, the keywords
32868 of this language will be recognized and specially typeset in the output.
32869 In the example listings the Python keyword
32870 \begin_inset Quotes eld
32874 \begin_inset Quotes erd
32877 is recognized and printed bold in the output.
32880 \begin_layout Standard
32881 \begin_inset Note Greyedout
32884 \begin_layout Plain Layout
32889 If you don't get bold keywords when using typewriter fonts, your
32893 font probably doesn't provide a bold shape.
32894 In this case select a different one in the menu
32896 Document\SpecialChar \menuseparator
32897 Settings\SpecialChar \menuseparator
32909 provide bold shapes.)
32917 \begin_layout Standard
32921 \begin_inset space ~
32926 of the listings dialog you can specify the line numbering style.
32927 You can insert a number to specify which lines are numbered to the field
32934 \begin_inset space \thinspace{}
32938 \begin_inset space \space{}
32942 \begin_inset Quotes eld
32946 \begin_inset Quotes erd
32949 , only every 3rd line will be numbered.
32952 \begin_layout Standard
32953 You can furthermore specify a range of lines, only these will then appear
32957 Extended character table
32959 should be used when you use national characters like the German umlauts
32961 \begin_inset Newline newline
32964 Here is an example listing with left line numbering, step
32965 \begin_inset Quotes eld
32969 \begin_inset Quotes erd
32973 \begin_inset Quotes eld
32977 \begin_inset Quotes erd
32981 \begin_inset Quotes eld
32984 Extended character table
32985 \begin_inset Quotes erd
32989 \begin_inset Quotes eld
32993 \begin_inset space ~
32997 \begin_inset space ~
33001 \begin_inset Quotes erd
33005 \begin_inset space \thinspace{}
33009 \begin_inset space \thinspace{}
33015 \begin_layout Standard
33016 \begin_inset listings
33017 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
33021 \begin_layout Plain Layout
33026 \begin_layout Plain Layout
33028 'this is a python function'
33031 \begin_layout Plain Layout
33036 \begin_layout Plain Layout
33041 \begin_layout Plain Layout
33043 'This is a German word: Tschüß'
33046 \begin_layout Plain Layout
33051 \begin_layout Plain Layout
33056 \begin_layout Plain Layout
33058 'this is a python function'
33061 \begin_layout Plain Layout
33071 \begin_layout Standard
33072 When you have tabulators in your listing, you can specify the number of
33073 characters that are spanned by a tabulator in the field
33076 \begin_inset space ~
33084 \begin_layout Standard
33085 \begin_inset Note Greyedout
33088 \begin_layout Plain Layout
33093 Due to a bug in the
33097 package the line numbering is shifted by a line by every previous listing.
33098 That's the reason why the lines 2 and 5 are numbered in the above listing
33099 and not the lines 3 and 6.
33107 \begin_layout Standard
33108 \begin_inset VSpace bigskip
33114 \begin_layout Standard
33115 It is also possible to print lines from a file as listing.
33116 To do this, use the menu
33118 Insert\SpecialChar \menuseparator
33119 File\SpecialChar \menuseparator
33122 and choose the type
33130 \begin_layout Plain Layout
33131 The other child document types are described in section
33132 \begin_inset space ~
33136 \begin_inset CommandInset ref
33138 reference "sec:Child-Documents"
33147 In the child document dialog you can specify the listing parameters in
33149 To show a list of all available parameters, type in a question mark
33150 \begin_inset Quotes eld
33154 \begin_inset Quotes erd
33160 \begin_layout Standard
33161 To reference child document listings, write a label text into the corresponding
33162 field of the child document dialog.
33163 The label can then be referenced using the menu
33165 Insert\SpecialChar \menuseparator
33171 \begin_layout Standard
33173 \begin_inset space ~
33177 \begin_inset CommandInset ref
33179 reference "lst:file-listing"
33183 is an example for a listing of a file; there the lines 10
33184 \begin_inset space \thinspace{}
33188 \begin_inset space \thinspace{}
33191 15 of this LyX file are listed.
33194 \begin_layout Standard
33195 \begin_inset CommandInset include
33196 LatexCommand lstinputlisting
33197 filename "EmbeddedObjects.lyx"
33198 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
33205 \begin_layout Standard
33206 \begin_inset VSpace bigskip
33212 \begin_layout Standard
33213 Global listings settings can be set in the
33215 Document\SpecialChar \menuseparator
33216 Settings\SpecialChar \menuseparator
33220 To get there a list of available options, type in a question mark
33221 \begin_inset Quotes eld
33225 \begin_inset Quotes erd
33231 \begin_inset space ~
33239 \begin_layout Standard
33240 For more information about the
33244 package, we refer to its documentation
33245 \begin_inset CommandInset citation
33254 \begin_layout Standard
33255 \begin_inset Newpage newpage
33261 \begin_layout Chapter
33263 Units available in LyX
33267 \begin_layout Plain Layout
33274 \begin_inset CommandInset label
33276 name "cha:Units-available-in"
33283 \begin_layout Standard
33284 To understand the units described in this documentation, Table
33285 \begin_inset space ~
33289 \begin_inset CommandInset ref
33291 reference "tab:Units"
33295 explains all units available in LyX.
33298 \begin_layout Standard
33299 \begin_inset Float table
33305 \begin_layout Plain Layout
33306 \begin_inset Caption
33308 \begin_layout Plain Layout
33309 \begin_inset CommandInset label
33323 \begin_layout Plain Layout
33324 \begin_inset VSpace medskip
33330 \begin_layout Plain Layout
33332 \begin_inset Tabular
33333 <lyxtabular version="3" rows="20" columns="2">
33335 <column alignment="center" valignment="top" width="0">
33336 <column alignment="center" valignment="top" width="0">
33338 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
33341 \begin_layout Plain Layout
33347 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
33350 \begin_layout Plain Layout
33358 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33361 \begin_layout Plain Layout
33367 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33370 \begin_layout Plain Layout
33378 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33381 \begin_layout Plain Layout
33387 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33390 \begin_layout Plain Layout
33398 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33401 \begin_layout Plain Layout
33407 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33410 \begin_layout Plain Layout
33418 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33421 \begin_layout Plain Layout
33427 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33430 \begin_layout Plain Layout
33432 \begin_inset space \thinspace{}
33436 \begin_inset space \thinspace{}
33446 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33449 \begin_layout Plain Layout
33455 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33458 \begin_layout Plain Layout
33460 \begin_inset space \thinspace{}
33464 \begin_inset space \thinspace{}
33474 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33477 \begin_layout Plain Layout
33483 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33486 \begin_layout Plain Layout
33487 scaled point (65536
33488 \begin_inset space \thinspace{}
33492 \begin_inset space \thinspace{}
33502 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33505 \begin_layout Plain Layout
33511 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33514 \begin_layout Plain Layout
33516 \begin_inset space \thinspace{}
33520 \begin_inset space \thinspace{}
33530 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33533 \begin_layout Plain Layout
33539 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33542 \begin_layout Plain Layout
33544 \begin_inset space \thinspace{}
33548 \begin_inset Formula $\approx$
33552 \begin_inset space \thinspace{}
33562 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33565 \begin_layout Plain Layout
33571 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33574 \begin_layout Plain Layout
33576 \begin_inset space \thinspace{}
33580 \begin_inset space \thinspace{}
33590 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33593 \begin_layout Plain Layout
33599 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33602 \begin_layout Plain Layout
33603 % of original image width
33610 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33613 \begin_layout Plain Layout
33619 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33622 \begin_layout Plain Layout
33630 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33633 \begin_layout Plain Layout
33639 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33642 \begin_layout Plain Layout
33650 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33653 \begin_layout Plain Layout
33659 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33662 \begin_layout Plain Layout
33670 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33673 \begin_layout Plain Layout
33679 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33682 \begin_layout Plain Layout
33690 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33693 \begin_layout Plain Layout
33699 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33702 \begin_layout Plain Layout
33710 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33713 \begin_layout Plain Layout
33719 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33722 \begin_layout Plain Layout
33730 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33733 \begin_layout Plain Layout
33739 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33742 \begin_layout Plain Layout
33754 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33757 \begin_layout Plain Layout
33763 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33766 \begin_layout Plain Layout
33778 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
33781 \begin_layout Plain Layout
33787 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
33790 \begin_layout Plain Layout
33792 \begin_inset space \thinspace{}
33796 \begin_inset space \thinspace{}
33817 \begin_layout Chapter
33818 Output File Formats with Graphics
33819 \begin_inset CommandInset label
33821 name "cha:Output-File-Formats"
33828 \begin_layout Section
33833 \begin_layout Plain Layout
33843 \begin_layout Plain Layout
33848 \begin_layout Plain Layout
33859 \begin_layout Plain Layout
33874 \begin_layout Standard
33875 This file type has the extension
33876 \begin_inset Quotes eld
33884 \begin_inset Quotes erd
33889 \begin_inset Quotes eld
33893 \begin_inset Quotes erd
33896 (DVI), because it is completely portable; you can move them from one machine
33897 to another without needing to do any sort of conversion.
33898 At the time when this file-format was developed, this was no matter of
33900 DVIs are used for quick previews and as pre-stage for other output formats,
33904 \begin_layout Standard
33905 \begin_inset Note Greyedout
33908 \begin_layout Plain Layout
33913 DVI-files doesn't contain images, they will only be a linked.
33918 So don't forget this, if you move your
33922 file to another computer.
33923 This property can also slow down your computer when you view the DVI.
33924 Because the DVI-viewer has to convert the image in the background to make
33925 it visible when you scroll in the DVI.
33926 So we recommend to use PDF for files with many images.
33929 \begin_layout Standard
33930 You can export your document to DVI by using the menu
33932 File\SpecialChar \menuseparator
33933 Export\SpecialChar \menuseparator
33937 You can view your document as DVI via the
33941 menu or by using the toolbar button
33942 \begin_inset Graphics
33943 filename ../images/buffer-view_dvi.png
33945 scaleBeforeRotation
33952 \begin_layout Section
33954 \begin_inset CommandInset label
33956 name "sec:PostScript"
33964 \begin_layout Plain Layout
33965 File Formats ! PostScript
33974 \begin_layout Plain Layout
33979 \begin_layout Plain Layout
33990 \begin_layout Plain Layout
34005 \begin_layout Standard
34006 This file type has the extension
34007 \begin_inset Quotes eld
34015 \begin_inset Quotes erd
34019 PostScript was developed by the company
34023 as printer language.
34024 The file contains therefore commands that the printer uses to print the
34026 PostScript can be seen as
34027 \begin_inset Quotes eld
34030 programming language
34031 \begin_inset Quotes erd
34034 ; you can calculate with it and draw diagrams and images
34038 \begin_layout Plain Layout
34039 If you are interested to learn more about this, have a look at the LaTeX-package
34045 \begin_inset CommandInset citation
34057 Due to this ability, the files are often bigger than PDFs.
34060 \begin_layout Standard
34061 PostScript can only contain images in the format
34062 \begin_inset Quotes eld
34065 Encapsulated PostScript
34066 \begin_inset Quotes erd
34069 (EPS, file extension
34070 \begin_inset Quotes eld
34078 \begin_inset Quotes erd
34082 As LyX allows you to use any known image format in your document, it has
34083 to convert images in the background to EPS.
34084 If you have e.g 50 images in your document, LyX has to do 50 conversions
34085 whenever you view or export your document.
34086 This will slow down your work flow with LyX drastically.
34087 So if you plan to use PostScript, you can insert your images directly as
34088 EPS to avoid this problem.
34091 \begin_layout Standard
34092 You can export your document to PostScript using the menu
34094 File\SpecialChar \menuseparator
34095 Export\SpecialChar \menuseparator
34099 You can view your document as PostScript via the
34103 menu or by using the toolbar button
34104 \begin_inset Graphics
34105 filename ../images/buffer-view_ps.png
34107 scaleBeforeRotation
34114 \begin_layout Section
34119 \begin_layout Plain Layout
34129 \begin_layout Plain Layout
34138 \begin_layout Standard
34139 This file type has the extension
34140 \begin_inset Quotes eld
34148 \begin_inset Quotes erd
34153 \begin_inset Quotes eld
34156 Portable Document Format
34157 \begin_inset Quotes erd
34160 (PDF) is developed by
34164 as derivative from PostScript.
34165 It is more compressed and it uses much less commands than PostScript.
34167 \begin_inset Quotes eld
34171 \begin_inset Quotes erd
34174 implies, it can be processed at any computer system and the printed output
34175 looks exactly the same.
34178 \begin_layout Standard
34179 PDF can contain images in its own PDF format, in the format
34180 \begin_inset Quotes eld
34183 Joint Photographic Experts Group
34184 \begin_inset Quotes erd
34187 (JPG, file extension
34188 \begin_inset Quotes eld
34196 \begin_inset Quotes erd
34200 \begin_inset Quotes eld
34208 \begin_inset Quotes erd
34211 ), and in the format
34212 \begin_inset Quotes eld
34215 Portable Network Graphics
34216 \begin_inset Quotes erd
34219 (PNG, file extension
34220 \begin_inset Quotes eld
34228 \begin_inset Quotes erd
34232 Nevertheless you can use any other image format, because LyX converts them
34233 in the background to one of these formats.
34234 But as described in the section about PostScript, the image conversion
34235 will slow down your work flow.
34236 So it is recommended to use images in one of the three mentioned formats.
34239 \begin_layout Standard
34240 You can export your document to PDF via the menu
34242 File\SpecialChar \menuseparator
34245 in three different ways:
34248 \begin_layout Description
34250 \begin_inset space ~
34253 (ps2pdf) This uses the program
34257 that creates a PDF from a PostScript-version of your file.
34258 The PostScript-version is produced by the program
34262 which uses a DVI-version as intermediate step.
34263 So this export variant consist of three conversions.
34266 \begin_layout Description
34268 \begin_inset space ~
34271 (dvipdfm) This uses the program
34275 that converts your file in the background to DVI and in a second step to
34279 \begin_layout Description
34281 \begin_inset space ~
34284 (pdflatex) This uses the program
34288 that converts your file directly to PDF.
34291 \begin_layout Standard
34292 It is recommended to use
34295 \begin_inset space ~
34304 supports all features of actual PDF-versions, is quick and works stable
34310 is not under development and therefore a bit outdated.
34313 \begin_layout Standard
34314 You can view your document as PDF via the
34318 menu or by using the toolbar button
34319 \begin_inset Graphics
34320 filename ../images/buffer-view_pdf2.png
34322 scaleBeforeRotation
34333 \begin_inset space ~
34341 \begin_layout Chapter
34342 Explanation of Equation
34343 \begin_inset space ~
34347 \begin_inset CommandInset ref
34354 \begin_inset CommandInset label
34356 name "cha:Explanation-of-Equation"
34363 \begin_layout Standard
34369 \begin_inset Formula $W_{\mathrm{tot\, n}}$
34372 can be calculated to
34375 \begin_layout Standard
34376 \begin_inset Formula \begin{equation}
34377 W_{\mathrm{tot}\, n}=n\cdot(W_{g\, n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}\end{equation}
34384 \begin_layout Standard
34386 \begin_inset Formula $W_{g\, n}$
34389 is the given width of all cells.
34396 is the LaTeX-length between the cell text and the cell border, its default
34398 \begin_inset space \thinspace{}
34408 is the thickness of the cell border line, the default is 0.4
34409 \begin_inset space \thinspace{}
34415 \begin_layout Standard
34417 \begin_inset space ~
34421 \begin_inset CommandInset ref
34423 reference "eq:Wtot_n"
34427 , the total width of a multicolumn
34428 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
34434 \begin_layout Standard
34435 \begin_inset Formula \begin{equation}
34436 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
34443 \begin_layout Standard
34444 By setting equation
34445 \begin_inset space ~
34449 \begin_inset CommandInset ref
34451 reference "eq:Wtot_n"
34456 \begin_inset CommandInset ref
34458 reference "eq:Wtot_mult"
34462 equal we can calculate the needed given width
34463 \begin_inset Formula $W_{g\, n}$
34470 columns are spanned, so that each column has a total width of
34471 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
34477 \begin_layout Standard
34478 \begin_inset Formula \begin{equation}
34479 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
34486 \begin_layout Bibliography
34487 \begin_inset CommandInset bibitem
34488 LatexCommand bibitem
34489 key "latexcompanion"
34493 Frank Mittelbach and Michel Goossens:
34495 The LaTeX Companion Second Edition.
34498 Addison-Wesley, 2004
34501 \begin_layout Bibliography
34502 \begin_inset CommandInset bibitem
34503 LatexCommand bibitem
34508 Helmut Kopka and Patrick W.
34511 A Guide to LaTeX Fourth Edition.
34514 Addison-Wesley, 2003
34517 \begin_layout Bibliography
34518 \begin_inset CommandInset bibitem
34519 LatexCommand bibitem
34526 LaTeX: A Document Preparation System.
34529 Addison-Wesley, second edition, 1994
34532 \begin_layout Bibliography
34533 \begin_inset CommandInset bibitem
34534 LatexCommand bibitem
34539 Documentation of the LaTeX-package
34542 \begin_inset CommandInset href
34545 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
34555 \begin_layout Plain Layout
34556 LaTeX-packages ! booktabs
34564 \begin_layout Bibliography
34565 \begin_inset CommandInset bibitem
34566 LatexCommand bibitem
34571 Documentation of the LaTeX-package
34574 \begin_inset CommandInset href
34577 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf"
34587 \begin_layout Plain Layout
34588 LaTeX-packages ! caption
34596 \begin_layout Bibliography
34597 \begin_inset CommandInset bibitem
34598 LatexCommand bibitem
34603 Documentation of the LaTeX-package
34606 \begin_inset CommandInset href
34609 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
34619 \begin_layout Plain Layout
34620 LaTeX-packages ! endfloat
34628 \begin_layout Bibliography
34629 \begin_inset CommandInset bibitem
34630 LatexCommand bibitem
34635 Documentation of the LaTeX-package
34638 \begin_inset CommandInset href
34641 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/wrapfig/wrapfig.sty"
34651 \begin_layout Plain Layout
34652 LaTeX-packages ! wrapfig
34656 \begin_layout Plain Layout
34673 \begin_layout Bibliography
34674 \begin_inset CommandInset bibitem
34675 LatexCommand bibitem
34680 Documentation of the LaTeX-package
34683 \begin_inset CommandInset href
34686 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
34696 \begin_layout Plain Layout
34697 LaTeX-packages ! footmisc
34705 \begin_layout Bibliography
34706 \begin_inset CommandInset bibitem
34707 LatexCommand bibitem
34712 Documentation of the LaTeX-package
34715 \begin_inset CommandInset href
34718 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
34728 \begin_layout Plain Layout
34729 LaTeX-packages ! hyperref
34737 \begin_layout Bibliography
34738 \begin_inset CommandInset bibitem
34739 LatexCommand bibitem
34744 Documentation of the LaTeX-package
34747 \begin_inset CommandInset href
34750 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
34760 \begin_layout Plain Layout
34761 LaTeX-packages ! hyperref
34769 \begin_layout Bibliography
34770 \begin_inset CommandInset bibitem
34771 LatexCommand bibitem
34776 Documentation of the LaTeX-package
34779 \begin_inset CommandInset href
34782 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf"
34792 \begin_layout Plain Layout
34793 LaTeX-packages ! KOMA-Script
34801 \begin_layout Bibliography
34802 \begin_inset CommandInset bibitem
34803 LatexCommand bibitem
34808 Documentation of the LaTeX-package
34811 \begin_inset CommandInset href
34814 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
34824 \begin_layout Plain Layout
34825 LaTeX-packages ! listings
34833 \begin_layout Bibliography
34834 \begin_inset CommandInset bibitem
34835 LatexCommand bibitem
34840 Documentation of the LaTeX-package
34843 \begin_inset CommandInset href
34846 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
34856 \begin_layout Plain Layout
34857 LaTeX-packages ! marginnote
34865 \begin_layout Bibliography
34866 \begin_inset CommandInset bibitem
34867 LatexCommand bibitem
34872 Web page of the LaTeX-package
34875 \begin_inset CommandInset href
34878 target "http://tug.org/PSTricks/"
34888 \begin_layout Plain Layout
34889 LaTeX-packages ! PSTricks
34897 \begin_layout Bibliography
34898 \begin_inset CommandInset bibitem
34899 LatexCommand bibitem
34904 Documentation of the LaTeX-package
34907 \begin_inset CommandInset href
34910 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
34920 \begin_layout Plain Layout
34921 LaTeX-packages ! sidecap
34929 \begin_layout Bibliography
34930 \begin_inset CommandInset bibitem
34931 LatexCommand bibitem
34936 Documentation of the LaTeX-package
34939 \begin_inset CommandInset href
34942 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
34952 \begin_layout Plain Layout
34953 LaTeX-packages ! prettyref
34961 \begin_layout Bibliography
34962 \begin_inset CommandInset bibitem
34963 LatexCommand bibitem
34969 \begin_inset CommandInset href
34972 target "http://wiki.lyx.org/LyX/NewInLyX16"
34976 about new features in
34983 \begin_layout Standard
34984 \begin_inset CommandInset index_print
34985 LatexCommand printindex
34992 \begin_layout Standard
34993 \begin_inset FloatList figure
35000 \begin_layout Standard
35001 \begin_inset FloatList table
35008 \begin_layout Standard
35009 \begin_inset FloatList algorithm