1 #LyX 2.0 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}]{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 % increase the bottom float placement fraction
60 \renewcommand{\bottomfraction}{0.5}
62 % avoids that floats are placed before their
63 % corresponding section starts
64 \let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
66 % speed up the longtable calculation
67 \setcounter{LTchunksize}{100}
69 % used for scaled and rotated boxes
70 \@ifundefined{rotatebox}{\usepackage{graphicx}}{}
72 % used for colored tables
73 \@ifundefined{textcolor}
74 {\usepackage{color}}{}
75 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
76 \definecolor{lightgrey}{gray}{0.8}
78 % check for package colortbl
79 % used for colored table cells
81 \IfFileExists{colortbl.sty}
82 {\usepackage{colortbl}
83 \setboolean{colortbl}{true}}
84 {\setboolean{colortbl}{false}}
86 % used for book-style tables
89 % used to have extra space in table cells
90 \@ifundefined{extrarowheight}
91 {\usepackage{array}}{}
92 \setlength{\extrarowheight}{2pt}
94 % used for customized tables
97 {>{\centering\hspace{0pt}}m{#1}}
100 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
103 {>{\columncolor{#1}\hspace{0pt}}c}
105 \newcolumntype{V}{!{\vrule width 1.5pt}}
107 \newcolumntype{W}{!{\color{green}\vline}}
110 % insert additional vertical space of
111 % 1.5 mm between footnotes
113 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
115 % number algorithm floats within chapters
116 \numberwithin{algorithm}{chapter}
118 % ------------------------------------
119 % used to check for needed LaTeX packages
122 % check for package arydshln
123 % used for tables with dashed lines
124 \newboolean{arydshln}
125 \IfFileExists{arydshln.sty}
126 {\usepackage{arydshln}
127 \setboolean{arydshln}{true}}
128 {\setboolean{arydshln}{false}}
130 % check for package marginnote
131 % used for margin notes
132 \newboolean{marginnote}
133 \IfFileExists{marginnote.sty}
134 {\usepackage{marginnote}
135 \let\marginpar\marginnote
136 \setboolean{marginnote}{true}}
137 {\setboolean{marginnote}{false}}
139 % check for package sidecap
140 % used for captions on the side
142 \IfFileExists{sidecap.sty}
143 {\usepackage{sidecap}
144 \setboolean{sidecap}{true}}
145 {\setboolean{sidecap}{false}}
148 % used for surrounded fixed objects
149 \newboolean{picinpar}
150 \IfFileExists{picinpar.sty}
151 {\usepackage{picinpar}
152 \setboolean{picinpar}{true}}
153 {\setboolean{picinpar}{false}}
155 \options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
156 \use_default_options false
160 \maintain_unincluded_children false
162 \language_package default
167 \font_typewriter default
168 \font_default_family default
169 \use_non_tex_fonts false
176 \default_output_format default
178 \bibtex_command default
179 \index_command default
183 \pdf_title "LyX's Figure, Table, Floats, Notes, and Boxes manual"
184 \pdf_author "LyX Team, Uwe Stöhr"
185 \pdf_subject "LyX-documentation about figures, tables, floats, notes, and boxes"
186 \pdf_keywords "LyX, Tables, Figures, Floats, Boxes, Notes"
188 \pdf_bookmarksnumbered true
189 \pdf_bookmarksopen true
190 \pdf_bookmarksopenlevel 1
191 \pdf_breaklinks false
195 \pdf_pdfusetitle false
196 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
206 \paperorientation portrait
209 \notefontcolor #0000ff
216 \paragraph_separation skip
218 \quotes_language english
221 \paperpagestyle default
225 \tracking_changes false
226 \output_changes false
229 \html_be_strict false
235 LyX's detailed Figure, Table, Floats, Notes, Boxes and External Material
244 \begin_layout Plain Layout
246 If you have comments or error corrections, please send them to the LyX Documenta
248 \begin_inset CommandInset href
250 name "lyx-docs@lists.lyx.org"
251 target "lyx-docs@lists.lyx.org?subject=EmbeddedObjects manual"
262 \begin_inset Note Note
265 \begin_layout Plain Layout
272 \begin_inset Newline newline
276 \begin_inset Newline newline
284 \begin_layout Standard
285 \begin_inset CommandInset toc
286 LatexCommand tableofcontents
293 \begin_layout Standard
294 \begin_inset Note Note
297 \begin_layout Plain Layout
298 To export all parts of this document to PDF, PS, or DVI the LaTeX-packages
309 lettrine, marginnote, picinpar
316 If they are not installed you can export the document anyway but the sections
317 where the packages are required won't appear in the output.
320 \begin_layout Plain Layout
321 The latest PDF-version of this document can be found here:
322 \begin_inset Newline newline
327 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
335 \begin_layout Chapter
337 \begin_inset Index idx
340 \begin_layout Plain Layout
347 \begin_inset Index idx
350 \begin_layout Plain Layout
355 \begin_layout Plain Layout
366 \begin_layout Plain Layout
381 \begin_layout Section
383 \begin_inset Index idx
386 \begin_layout Plain Layout
387 Figures ! Graphics Dialog
393 \begin_inset CommandInset label
395 name "sec:Graphics-Dialog"
402 \begin_layout Standard
403 To insert an image into your document, place the cursor at the text position
404 you want and click on the toolbar icon
405 \begin_inset Graphics
406 filename ../images/dialog-show-new-inset_graphics.png
414 Insert\SpecialChar \menuseparator
418 Then a dialog will appear to choose the file to load.
419 The image will appear in the output exactly at the position where it is
423 \begin_layout Standard
424 The graphics dialog can be called at any time by clicking on an image.
425 This dialog has three tabs:
428 \begin_layout Description
433 Here you can choose an image file and adjust its appearance in the output.
434 The available units for the image size are explained in appendix
439 \begin_inset CommandInset ref
441 reference "cha:Units-available-in"
446 \begin_inset Newline newline
450 \begin_inset Index idx
453 \begin_layout Plain Layout
459 You can rotate images counter-clockwise by setting a rotation angle and
461 The image will also be rotated inside LyX.
462 \begin_inset Newline newline
466 \begin_inset Index idx
469 \begin_layout Plain Layout
475 Images can be scaled by using a percentage value or by setting the width
476 and height explicitly.
477 If you set only the width or only the height, the other size will be determined
479 If you set both, then the image will be transformed to the given size,
480 possibly distorting it.
481 To prevent the image from distortion, use the option
483 Maintain aspect ratio
486 The image will then be scaled so that its width and height don't exceed
487 the specified dimensions.
488 \begin_inset Newline newline
491 Images can be opened in a program of your choice by right-clicking on it
492 and choosing the entry
501 The program can be set for every image format in the file format settings
502 in LyX's preferences.
505 \begin_layout Description
510 Alternatively to the usage of scaling units it is possible to set image
511 coordinates to adjust the height and width of the image in the output.
512 The coordinates can also be calculated automatically by pressing the button
542 will only print the image region within the given coordinates.
543 Normally you don't need to take care about image coordinates and can ignore
547 \begin_layout Description
564 In this tab you can modify the appearance of the image within LyX and LaTeX
565 experts can specify additional LaTeX options.
566 \begin_inset Newline newline
577 makes the image appear in the output only as a frame with the size of the
579 \begin_inset Newline newline
598 option only affects zipped EPS-graphics, e.
599 \begin_inset space \thinspace{}
603 \begin_inset space \space{}
611 When the option is used the images will not be unzipped on export, since
612 LaTeX can handle them as they are.
613 \begin_inset Newline newline
616 Zipped EPS-graphics are useful to save disk space when you choose PostScript
617 as output format, see appendix
622 \begin_inset CommandInset ref
624 reference "sec:PostScript"
629 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
631 \begin_inset Newline newline
639 \begin_inset Newline newline
644 zgrep %%Bounding x.eps.gz > x.eps.bb
647 \begin_inset Newline newline
650 The second command creates the bounding box file
651 \begin_inset Quotes eld
655 \begin_inset Quotes erd
658 that is needed by LaTeX for zipped graphics.
659 \begin_inset Newline newline
674 allows you define or join an image settings group.
675 \begin_inset Index idx
678 \begin_layout Plain Layout
679 Figures ! Settings grouping
684 Images within such a group share their settings, so adjusting one image
685 of the group automatically also adjusts all other images of the group in
687 So you can for example change the size for a bunch of images without the
688 need to manually change each of them.
689 Joining an existing group can also be done using the context menu of the
690 image by checking the name of the desired group.
693 \begin_layout Standard
694 \begin_inset VSpace bigskip
700 \begin_layout Standard
701 This is an example image in EPS format
705 \begin_layout Plain Layout
706 Image formats are explained in section
711 \begin_inset CommandInset ref
713 reference "sec:Image-Formats"
722 within a separate, horizontally centered paragraph:
725 \begin_layout Standard
727 \begin_inset Graphics
728 filename clipart/mobius.eps
738 \begin_layout Standard
739 This is the same image like the one above but in draft mode:
742 \begin_layout Standard
744 \begin_inset Graphics
745 filename clipart/mobius.eps
756 \begin_layout Standard
757 \begin_inset Newpage newpage
763 \begin_layout Section
765 \begin_inset CommandInset label
767 name "sec:Figure-Floats"
772 \begin_inset Index idx
775 \begin_layout Plain Layout
782 \begin_inset Index idx
785 \begin_layout Plain Layout
794 \begin_layout Standard
795 For general explanations about floats, have a look at section
800 \begin_inset CommandInset ref
802 reference "sec:FloatIntroduction"
809 \begin_layout Standard
811 \begin_inset Graphics
812 filename ../images/float-insert_figure.png
820 Insert\SpecialChar \menuseparator
821 Float\SpecialChar \menuseparator
824 inserts a float with a caption that has the label
825 \begin_inset Quotes eld
833 \begin_inset Quotes erd
836 (# is the actual number).
837 You can insert the image above the caption, like in Figure
842 \begin_inset CommandInset ref
844 reference "fig:kill-plat"
848 or below the caption, like in Figure
853 \begin_inset CommandInset ref
855 reference "fig:escher"
860 More about caption placement is described in section
865 \begin_inset CommandInset ref
867 reference "sec:Caption-Placement"
874 \begin_layout Standard
875 \begin_inset Float figure
880 \begin_layout Plain Layout
882 \begin_inset Graphics
883 filename clipart/platypus.eps
893 \begin_layout Plain Layout
896 \begin_layout Plain Layout
897 \begin_inset CommandInset label
903 A severely distorted platypus in a float.
916 \begin_layout Standard
917 \begin_inset Float figure
922 \begin_layout Plain Layout
925 \begin_layout Plain Layout
926 \begin_inset CommandInset label
941 \begin_layout Plain Layout
943 \begin_inset Graphics
944 filename clipart/escher-lsd.eps
959 \begin_layout Standard
960 \begin_inset Index idx
963 \begin_layout Plain Layout
964 References ! to Figures
974 \begin_inset CommandInset ref
976 reference "fig:kill-plat"
981 \begin_inset CommandInset ref
983 reference "fig:escher"
987 are examples of referenced figures.
988 Figures can be referenced in the text by referencing their label.
989 To do this insert a label in the caption using the menu
991 Insert\SpecialChar \menuseparator
994 or the toolbar button
995 \begin_inset Graphics
996 filename ../images/label-insert.png
1003 You can now refer to the label using the menu
1005 Insert\SpecialChar \menuseparator
1007 \begin_inset space ~
1012 or the toolbar button
1013 \begin_inset Graphics
1014 filename ../images/dialog-show-new-inset_ref.png
1021 It is important to use references to floats, rather than using vague references
1023 \begin_inset Quotes eld
1027 \begin_inset Quotes erd
1030 , because LaTeX will reposition the floats in the final document and it
1032 \begin_inset Quotes eld
1036 \begin_inset Quotes erd
1040 \begin_inset Newline newline
1043 Referencing is explained in detail in section
1044 \begin_inset space ~
1048 \begin_inset CommandInset ref
1050 reference "sec:Referencing-Floats"
1057 \begin_layout Standard
1058 Normally only one image is inserted to a figure float, but sometimes you
1059 might want to use two images with separate subcaptions.
1060 This can be done by inserting image floats into existing image floats.
1061 Note that only the main caption of the float is added to the List of Figures.
1063 \begin_inset space ~
1067 \begin_inset CommandInset ref
1069 reference "fig:Two-distorted-images"
1073 is an example of a figure float with two images set side by side.
1074 You can also set the images one below the other.
1076 \begin_inset space ~
1080 \begin_inset CommandInset ref
1082 reference "fig:Undefinable-structure"
1087 \begin_inset CommandInset ref
1089 reference "fig:A-Platypus"
1096 \begin_layout Standard
1097 \begin_inset Float figure
1102 \begin_layout Plain Layout
1103 \begin_inset space \hfill{}
1107 \begin_inset Float figure
1112 \begin_layout Plain Layout
1113 \begin_inset Caption
1115 \begin_layout Plain Layout
1116 \begin_inset CommandInset label
1118 name "fig:Undefinable-structure"
1122 Undefinable structure.
1130 \begin_layout Plain Layout
1131 \begin_inset Graphics
1132 filename clipart/escher-lsd.eps
1145 \begin_inset space \hfill{}
1149 \begin_inset Float figure
1154 \begin_layout Plain Layout
1155 \begin_inset Caption
1157 \begin_layout Plain Layout
1158 \begin_inset CommandInset label
1160 name "fig:A-Platypus"
1172 \begin_layout Plain Layout
1173 \begin_inset Graphics
1174 filename clipart/platypus.eps
1187 \begin_inset space \hfill{}
1193 \begin_layout Plain Layout
1194 \begin_inset Caption
1196 \begin_layout Plain Layout
1197 \begin_inset CommandInset label
1199 name "fig:Two-distorted-images"
1204 \begin_inset CommandInset label
1206 name "fig2:Two-distorted-images-2"
1210 Two distorted images.
1211 Both images are in the image settings group named
1212 \begin_inset Quotes eld
1216 \begin_inset Quotes erd
1232 \begin_layout Standard
1233 \begin_inset Newpage newpage
1239 \begin_layout Section
1241 \begin_inset CommandInset label
1243 name "sec:Image-Formats"
1248 \begin_inset Index idx
1251 \begin_layout Plain Layout
1258 \begin_inset Index idx
1261 \begin_layout Plain Layout
1262 Figures ! Image Formats
1270 \begin_layout Standard
1271 You can insert images in any known file format.
1272 But as explained in appendix
1273 \begin_inset space ~
1277 \begin_inset CommandInset ref
1279 reference "cha:Output-File-Formats"
1283 , each output document format allows only a few image formats.
1284 LyX uses therefore the program
1288 in the background to convert the images to the right format.
1289 To increase your work flow by avoiding these conversions in the background,
1290 you can use only the image formats that can directly be embedded in the
1292 The output file formats are explained in appendix
1293 \begin_inset space ~
1297 \begin_inset CommandInset ref
1299 reference "cha:Output-File-Formats"
1306 \begin_layout Standard
1307 Similar to fonts there are two types of image formats:
1310 \begin_layout Description
1312 \begin_inset space ~
1315 images consist of pixel values, often in a compressed form.
1316 They are therefore not fully scalable and look pixelated in large zooms.
1317 Well-known bitmap image formats are
1318 \begin_inset Quotes eld
1321 Graphics Interchange Format
1322 \begin_inset Quotes erd
1325 (GIF, file extension
1326 \begin_inset Quotes eld
1334 \begin_inset Quotes erd
1338 \begin_inset Index idx
1341 \begin_layout Plain Layout
1346 \begin_layout Plain Layout
1357 \begin_layout Plain Layout
1370 \begin_inset Quotes eld
1373 Portable Network Graphics
1374 \begin_inset Quotes erd
1377 (PNG, file extension
1378 \begin_inset Quotes eld
1386 \begin_inset Quotes erd
1390 \begin_inset Index idx
1393 \begin_layout Plain Layout
1398 \begin_layout Plain Layout
1409 \begin_layout Plain Layout
1422 \begin_inset Quotes eld
1425 Joint Photographic Experts Group
1426 \begin_inset Quotes erd
1429 (JPG, file extension
1430 \begin_inset Quotes eld
1438 \begin_inset Quotes erd
1442 \begin_inset Quotes eld
1450 \begin_inset Quotes erd
1454 \begin_inset Index idx
1457 \begin_layout Plain Layout
1462 \begin_layout Plain Layout
1473 \begin_layout Plain Layout
1488 \begin_layout Description
1490 \begin_inset space ~
1493 images consist of vectors and can therefore be scaled to any size without
1495 The scaling ability is necessary if you want to create presentations, because
1496 presentations are always scaled by the video projector.
1497 Scaling is also useful for online documents to let the user zoom into diagrams.
1498 \begin_inset Newline newline
1501 Well-known scalable image formats are
1502 \begin_inset Quotes eld
1505 Scalable Vector Graphics
1506 \begin_inset Quotes erd
1509 (SVG, file extension
1510 \begin_inset Quotes eld
1518 \begin_inset Quotes erd
1522 \begin_inset Index idx
1525 \begin_layout Plain Layout
1530 \begin_layout Plain Layout
1541 \begin_layout Plain Layout
1554 \begin_inset Quotes eld
1557 Encapsulated PostScript
1558 \begin_inset Quotes erd
1561 (EPS, file extension
1562 \begin_inset Quotes eld
1570 \begin_inset Quotes erd
1574 \begin_inset Index idx
1577 \begin_layout Plain Layout
1582 \begin_layout Plain Layout
1593 \begin_layout Plain Layout
1606 \begin_inset Quotes eld
1609 Portable Document Format
1610 \begin_inset Quotes erd
1613 (PDF, file extension
1614 \begin_inset Quotes eld
1622 \begin_inset Quotes erd
1626 \begin_inset Index idx
1629 \begin_layout Plain Layout
1636 \begin_inset Quotes eld
1640 \begin_inset Quotes erd
1643 (WMF, file extension
1644 \begin_inset Quotes eld
1652 \begin_inset Quotes erd
1656 \begin_inset Index idx
1659 \begin_layout Plain Layout
1664 \begin_layout Plain Layout
1675 \begin_layout Plain Layout
1689 \begin_inset Quotes eld
1693 \begin_inset Quotes erd
1696 , because you can convert any bitmap image to a PDF or EPS-image and the
1697 result will still be a bitmap image.
1698 In such cases only a header with the image properties is added to the original
1703 \begin_layout Plain Layout
1704 In the case of PDF, the original image is additionally compressed.
1710 The PDF-files generated by
1714 are for example bitmap images.
1717 \begin_layout Standard
1718 Normally it is not possible to convert a bitmap image into a scalable one,
1720 Only the image formats PDF and EPS can directly be embedded to PDF and
1721 PostScript output files, respectively.
1722 SVG and WMF-images are recalculated to bitmaps when the output file is
1723 generated because there is currently no adequate WMF/SVG
1724 \begin_inset Formula $\to$
1727 PDF/EPS converter available.
1730 \begin_layout Chapter
1732 \begin_inset Index idx
1735 \begin_layout Plain Layout
1744 \begin_layout Section
1746 \begin_inset Index idx
1749 \begin_layout Plain Layout
1750 Table ! Introduction
1758 \begin_layout Standard
1759 You can insert a table using either the toolbar button
1760 \begin_inset Graphics
1761 filename ../images/tabular-insert.png
1769 Insert\SpecialChar \menuseparator
1773 The toolbar button offers you a graphical selection: move the mouse to
1774 set the column/row number of the table that should be created and then
1775 press a mouse button.
1776 When you use the menu to create a table, a dialog will appear, asking you
1777 for the number of rows and columns.
1778 \begin_inset Newline newline
1781 The default table has lines around any cell and the first row appears separated
1782 from the rest of the table.
1783 This separation occurs due to a double line: The cells of the first row
1784 have a line below them and the cells of the second row have a line above
1786 Here is an example table:
1789 \begin_layout Standard
1791 \begin_inset Tabular
1792 <lyxtabular version="3" rows="4" columns="4">
1793 <features tabularvalignment="middle">
1794 <column alignment="center" valignment="top" width="0">
1795 <column alignment="center" valignment="top" width="0">
1796 <column alignment="center" valignment="top" width="0">
1797 <column alignment="center" valignment="top" width="0">
1799 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1802 \begin_layout Plain Layout
1808 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1811 \begin_layout Plain Layout
1826 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1829 \begin_layout Plain Layout
1835 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1838 \begin_layout Plain Layout
1846 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1849 \begin_layout Plain Layout
1864 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1867 \begin_layout Plain Layout
1873 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1876 \begin_layout Plain Layout
1882 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1885 \begin_layout Plain Layout
1893 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1896 \begin_layout Plain Layout
1911 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1914 \begin_layout Plain Layout
1920 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1923 \begin_layout Plain Layout
1929 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1932 \begin_layout Plain Layout
1940 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1943 \begin_layout Plain Layout
1958 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1961 \begin_layout Plain Layout
1967 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1970 \begin_layout Plain Layout
1976 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1979 \begin_layout Plain Layout
1993 \begin_layout Section
1995 \begin_inset Index idx
1998 \begin_layout Plain Layout
2007 \begin_layout Standard
2008 You can alter a table by clicking on it with the right mouse button, which
2009 brings up the table dialog.
2010 Here you can adjust the settings of that cell and row/column respectively
2011 where the cursor is currently placed.
2012 Most of the dialog options also work on selections.
2013 This means if you select more cells, columns or rows, the action is done
2014 for the whole selection.
2015 Note that there is a difference between selecting the
2019 of the cell, and the cell itself.
2020 \begin_inset Newline newline
2023 With the dialog option
2026 \begin_inset space ~
2031 every change you make in the dialog is directly applied.
2032 If you move the cursor to another table cell the dialog will then also
2033 be updated with the parameters of the new cell.
2034 If you change length values in the dialog you must press return to get
2036 \begin_inset Newline newline
2039 You can alter tables with the following tabs of the table dialog:
2042 \begin_layout Description
2046 \begin_inset space ~
2051 Here you can set the table width
2052 \begin_inset Index idx
2055 \begin_layout Plain Layout
2061 , and the horizontal alignment and the width of the current column.
2065 \begin_inset space ~
2069 \begin_inset space ~
2074 is described in section
2075 \begin_inset space ~
2079 \begin_inset CommandInset ref
2081 reference "sub:Special-Cell-Alignment"
2086 When you have set a width you can also adjust the vertical alignment of
2088 A given width will allow the cell to have line breaks and multiple paragraphs
2089 of text, see section
2090 \begin_inset space ~
2094 \begin_inset CommandInset ref
2096 reference "sub:Multiple-Lines-in"
2101 If you set no width, the column is as wide as the content of its widest
2103 \begin_inset Newline newline
2106 Furthermore, you can mark one or multiple cells of one row as a multicolumn
2108 \begin_inset space ~
2112 \begin_inset CommandInset ref
2114 reference "sub:Multicolumns"
2118 or the cells of one column as multirow cell, see section
2119 \begin_inset space ~
2123 \begin_inset CommandInset ref
2125 reference "sub:Multirows"
2130 \begin_inset Newline newline
2133 The rotate check boxes rotate the current cell, a selection, or the whole
2134 table counter-clockwise by 90°.
2135 The rotation is not shown within LyX, only in the output.
2136 \begin_inset Newline newline
2140 \begin_inset Note Greyedout
2143 \begin_layout Plain Layout
2148 Not all DVI-viewers are able to display rotations.
2154 \begin_inset Newline newline
2157 The table-wide vertical alignment is used for tables within text lines:
2158 \begin_inset Newline newline
2161 A line with tables with different alignments:
2162 \begin_inset Tabular
2163 <lyxtabular version="3" rows="2" columns="2">
2164 <features tabularvalignment="top">
2165 <column alignment="center" valignment="top" width="0pt">
2166 <column alignment="center" valignment="top" width="0">
2168 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2171 \begin_layout Plain Layout
2177 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2180 \begin_layout Plain Layout
2197 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2200 \begin_layout Plain Layout
2215 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2218 \begin_layout Plain Layout
2230 \begin_inset Tabular
2231 <lyxtabular version="3" rows="2" columns="2">
2232 <features tabularvalignment="middle">
2233 <column alignment="center" valignment="top" width="0">
2234 <column alignment="center" valignment="top" width="0">
2236 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2239 \begin_layout Plain Layout
2245 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2248 \begin_layout Plain Layout
2265 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2268 \begin_layout Plain Layout
2283 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2286 \begin_layout Plain Layout
2298 \begin_inset Tabular
2299 <lyxtabular version="3" rows="2" columns="2">
2300 <features tabularvalignment="bottom">
2301 <column alignment="center" valignment="top" width="0pt">
2302 <column alignment="center" valignment="top" width="0">
2304 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2307 \begin_layout Plain Layout
2313 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2316 \begin_layout Plain Layout
2333 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2336 \begin_layout Plain Layout
2351 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2354 \begin_layout Plain Layout
2366 \begin_inset Newline newline
2369 It is also possible to enter a LaTeX-argument which is needed for special
2370 table formattings, see section
2371 \begin_inset space ~
2375 \begin_inset CommandInset ref
2377 reference "sub:Multicolumn-Calculations"
2382 \begin_inset CommandInset ref
2384 reference "sec:Colored-Tables"
2391 \begin_layout Description
2396 In this tab you can add and delete border lines for the current row/column.
2397 \begin_inset Newline newline
2400 Using the style option
2404 will convert the table to a formal table as described in section
2405 \begin_inset space ~
2409 \begin_inset CommandInset ref
2411 reference "sec:Formal-Tables"
2416 \begin_inset Newline newline
2419 You can also add here space to table rows as described in section
2420 \begin_inset space ~
2424 \begin_inset CommandInset ref
2426 reference "sub:Row-Spacing"
2433 \begin_layout Description
2438 This tab is to make a table a so called
2439 \begin_inset Quotes eld
2447 \begin_inset Quotes erd
2450 that can run over several pages.
2452 \begin_inset space ~
2456 \begin_inset CommandInset ref
2458 reference "sec:Longtables"
2463 \begin_inset CommandInset ref
2465 reference "sec:Special-Longtable-Issues"
2469 describe the longtable features in detail.
2472 \begin_layout Section
2474 \begin_inset Index idx
2477 \begin_layout Plain Layout
2486 \begin_layout Standard
2487 The table toolbar is an alternative to the table dialog to be able to alter
2489 It should normally appear at the bottom of LyX's main window when the cursor
2491 You can alternatively switch it on to appear always, by right-clicking
2492 in LyX's main menu bar.
2495 \begin_layout Standard
2496 The toolbar has the following icons:
2499 \begin_layout Labeling
2500 \labelwidthstring 00.00.0000
2501 \begin_inset Graphics
2502 filename ../images/tabular-feature_append-row.png
2507 adds a row below the current cell or selection
2510 \begin_layout Labeling
2511 \labelwidthstring 00.00.0000
2512 \begin_inset Graphics
2513 filename ../images/tabular-feature_append-column.png
2518 adds a column right beside the current cell or selection
2521 \begin_layout Labeling
2522 \labelwidthstring 00.00.0000
2523 \begin_inset Graphics
2524 filename ../images/tabular-feature_delete-row.png
2529 deletes the current row or selection
2532 \begin_layout Labeling
2533 \labelwidthstring 00.00.0000
2534 \begin_inset Graphics
2535 filename ../images/tabular-feature_delete-column.png
2540 deletes the current column or selection
2543 \begin_layout Labeling
2544 \labelwidthstring 00.00.0000
2545 \begin_inset Graphics
2546 filename ../images/tabular-feature_toggle-line-top.png
2551 adds a line at the top of the current cell / row or of a selection
2554 \begin_layout Labeling
2555 \labelwidthstring 00.00.0000
2556 \begin_inset Graphics
2557 filename ../images/tabular-feature_toggle-line-bottom.png
2562 adds a line at the bottom of the current cell / row or of a selection
2565 \begin_layout Labeling
2566 \labelwidthstring 00.00.0000
2567 \begin_inset Graphics
2568 filename ../images/tabular-feature_toggle-line-left.png
2573 adds a line at the left side of the current cell / row or of a selection
2576 \begin_layout Labeling
2577 \labelwidthstring 00.00.0000
2578 \begin_inset Graphics
2579 filename ../images/tabular-feature_toggle-line-right.png
2584 adds a line at the right side of the current cell / row or of a selection
2587 \begin_layout Labeling
2588 \labelwidthstring 00.00.0000
2589 \begin_inset Graphics
2590 filename ../images/tabular-feature_set-all-lines.png
2595 adds lines around the current or selected cells - if the current cell no
2596 multicolumn cell this also affects the current row and column
2599 \begin_layout Labeling
2600 \labelwidthstring 00.00.0000
2601 \begin_inset Graphics
2602 filename ../images/tabular-feature_unset-all-lines.png
2607 deletes all lines of the current or selected cells - if the current cell
2608 no multicolumn cell this also affects the current row and column
2611 \begin_layout Labeling
2612 \labelwidthstring 00.00.0000
2613 \begin_inset Graphics
2614 filename ../images/tabular-feature_m-align-left.png
2619 left-aligns the content of the current cell / column
2622 \begin_layout Labeling
2623 \labelwidthstring 00.00.0000
2624 \begin_inset Graphics
2625 filename ../images/tabular-feature_m-align-center.png
2630 centers the content of the current cell / column horizontally
2633 \begin_layout Labeling
2634 \labelwidthstring 00.00.0000
2635 \begin_inset Graphics
2636 filename ../images/tabular-feature_m-align-right.png
2641 right-aligns the content of the current cell / column
2644 \begin_layout Labeling
2645 \labelwidthstring 00.00.0000
2646 \begin_inset Graphics
2647 filename ../images/tabular-feature_align-decimal.png
2652 aligns the content of the current column at a character
2655 \begin_layout Labeling
2656 \labelwidthstring 00.00.0000
2657 \begin_inset Graphics
2658 filename ../images/tabular-feature_m-valign-top.png
2663 aligns the content of the current cell vertically to the top
2666 \begin_layout Labeling
2667 \labelwidthstring 00.00.0000
2668 \begin_inset Graphics
2669 filename ../images/tabular-feature_m-valign-middle.png
2674 centers the content of the current cell vertically
2677 \begin_layout Labeling
2678 \labelwidthstring 00.00.0000
2679 \begin_inset Graphics
2680 filename ../images/tabular-feature_m-valign-bottom.png
2685 aligns the content of the current cell vertically to the bottom
2688 \begin_layout Labeling
2689 \labelwidthstring 00.00.0000
2690 \begin_inset Graphics
2691 filename ../images/tabular-feature_set-rotate-cell.png
2696 rotates the current cell or selection counter-clockwise by 90°
2699 \begin_layout Labeling
2700 \labelwidthstring 00.00.0000
2701 \begin_inset Graphics
2702 filename ../images/tabular-feature_set-rotate-tabular.png
2707 rotates the whole table counter-clockwise by 90°
2710 \begin_layout Labeling
2711 \labelwidthstring 00.00.0000
2712 \begin_inset Graphics
2713 filename ../images/tabular-feature_multicolumn.png
2718 sets the current cell or selection as a multicolumn
2721 \begin_layout Labeling
2722 \labelwidthstring 00.00.0000
2723 \begin_inset Graphics
2724 filename ../images/tabular-feature_multirow.png
2729 sets the current cell or selection as a multirow
2732 \begin_layout Standard
2733 \begin_inset Note Greyedout
2736 \begin_layout Plain Layout
2741 For the output the vertical alignment of the first cell in a row is used
2742 for all following cells in the row.
2750 \begin_layout Section
2752 \begin_inset Index idx
2755 \begin_layout Plain Layout
2764 \begin_layout Standard
2765 Additionally to the table dialog and toolbar, the menu
2767 Edit\SpecialChar \menuseparator
2770 allows you to add and delete border lines for the current row/column and
2771 to set the current selection as multicolumn.
2772 The menu is only available when the cursor is inside a table.
2775 \begin_layout Section
2777 \begin_inset CommandInset label
2779 name "sec:Table-Floats"
2784 \begin_inset Index idx
2787 \begin_layout Plain Layout
2794 \begin_inset Index idx
2797 \begin_layout Plain Layout
2806 \begin_layout Standard
2807 For general explanations about floats, have a look at section
2808 \begin_inset space ~
2812 \begin_inset CommandInset ref
2814 reference "sec:FloatIntroduction"
2821 \begin_layout Standard
2822 \begin_inset Float table
2828 \begin_layout Plain Layout
2829 \begin_inset Caption
2831 \begin_layout Plain Layout
2832 \begin_inset CommandInset label
2834 name "tab:a table float"
2846 \begin_layout Plain Layout
2848 \begin_inset Tabular
2849 <lyxtabular version="3" rows="3" columns="3">
2850 <features tabularvalignment="middle">
2851 <column alignment="center" valignment="top" width="0pt">
2852 <column alignment="center" valignment="top" width="0pt">
2853 <column alignment="center" valignment="top" width="0pt">
2855 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2858 \begin_layout Plain Layout
2873 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2876 \begin_layout Plain Layout
2891 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2894 \begin_layout Plain Layout
2911 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2914 \begin_layout Plain Layout
2929 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2932 \begin_layout Plain Layout
2947 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2950 \begin_layout Plain Layout
2967 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2970 \begin_layout Plain Layout
2980 \begin_inset Formula $\int x^{2}dx$
2988 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2991 \begin_layout Plain Layout
3001 \begin_inset Formula $\left[\begin{array}{cc}
3012 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3015 \begin_layout Plain Layout
3025 \begin_inset Formula $1+1=2$
3046 \begin_layout Standard
3047 Table floats can be inserted using the menu
3049 Insert\SpecialChar \menuseparator
3050 Float\SpecialChar \menuseparator
3053 or the toolbar button
3054 \begin_inset Graphics
3055 filename ../images/float-insert_table.png
3064 \begin_layout Standard
3065 The float appears as a collapsible box with a caption that has the label
3067 \begin_inset Quotes eld
3071 \begin_inset space ~
3075 \begin_inset Quotes erd
3078 (# is the actual table number).
3079 You can insert tables in the float above or below the caption.
3082 \begin_layout Standard
3084 \begin_inset space ~
3088 \begin_inset CommandInset ref
3090 reference "tab:a table float"
3094 is an example table within a table float.
3097 \begin_layout Standard
3098 Having the caption above the table is the common rule that is unfortunately
3099 not supported in LaTeX's standard classes.
3100 This means that, if you are using the document classes
3116 , there will be no space between the caption and the table.
3117 To insert the needed space, add the following option to the load command
3118 of the LaTeX-package
3123 \begin_inset Index idx
3126 \begin_layout Plain Layout
3127 LaTeX-packages ! caption
3132 in your document preamble
3136 \begin_layout Plain Layout
3137 For more information have a look at section
3138 \begin_inset space ~
3142 \begin_inset CommandInset ref
3144 reference "sec:Caption-Placement"
3156 \begin_layout Standard
3162 \begin_layout Standard
3167 , which is described in section
3168 \begin_inset space ~
3172 \begin_inset CommandInset ref
3174 reference "sec:Caption-Formatting"
3178 , is used to adjust the caption format.
3181 \begin_layout Standard
3182 \begin_inset Index idx
3185 \begin_layout Plain Layout
3186 References ! to Tables
3191 Tables can be cross-referenced in the text by referencing their label.
3192 To do this insert a label in the caption using the menu
3194 Insert\SpecialChar \menuseparator
3197 or the toolbar button
3198 \begin_inset Graphics
3199 filename ../images/label-insert.png
3206 You can now refer to the label using the menu
3208 Insert\SpecialChar \menuseparator
3210 \begin_inset space ~
3215 or the toolbar button
3216 \begin_inset Graphics
3217 filename ../images/dialog-show-new-inset_ref.png
3224 \begin_inset Newline newline
3227 Referencing is explained in detail in section
3228 \begin_inset space ~
3232 \begin_inset CommandInset ref
3234 reference "sec:Referencing-Floats"
3241 \begin_layout Section
3243 \begin_inset CommandInset label
3245 name "sec:Longtables"
3250 \begin_inset Index idx
3253 \begin_layout Plain Layout
3260 \begin_inset Index idx
3263 \begin_layout Plain Layout
3272 \begin_layout Standard
3273 If the table is too long to fit on one page, you can use the option
3276 \begin_inset space ~
3280 \begin_inset space ~
3289 of the table dialog to split the table automatically over more pages.
3290 Doing this enables the following options:
3293 \begin_layout Description
3294 Header: The current row is defined to be a header row that appears on all
3295 pages of the longtable; except for the first page, if
3298 \begin_inset space ~
3304 This is therefore called the main header.
3307 \begin_layout Description
3309 \begin_inset space ~
3312 header: The current row is defined to be a header row that appears on the
3313 first page of the longtable.
3316 \begin_layout Description
3317 Footer: The current row is defined to be a footer row that appears on all
3318 pages of the longtable; except for the last page, if
3321 \begin_inset space ~
3329 \begin_layout Description
3331 \begin_inset space ~
3334 footer: The current row is defined to be a footer row that appears on the
3335 last page of the longtable.
3338 \begin_layout Description
3339 Caption: The current row contains the table caption.
3340 The row is reset as single column and a caption is inserted.
3341 More about longtable captions is explained in sec.
3342 \begin_inset space \thinspace{}
3346 \begin_inset CommandInset ref
3348 reference "sub:Longtable-Captions"
3355 \begin_layout Standard
3356 You can also specify a row where the table is split.
3357 See the following longtable to see how it works:
3360 \begin_layout Standard
3362 \begin_inset Tabular
3363 <lyxtabular version="3" rows="69" columns="3">
3364 <features islongtable="true" longtabularalignment="center">
3365 <column alignment="left" valignment="top" width="0cm">
3366 <column alignment="left" valignment="top" width="0pt">
3367 <column alignment="center" valignment="top" width="0pt">
3368 <row endfirsthead="true">
3369 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3372 \begin_layout Plain Layout
3375 Example Phone List (ignore the names)
3380 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3383 \begin_layout Plain Layout
3389 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3392 \begin_layout Plain Layout
3399 <row endfirsthead="true">
3400 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3403 \begin_layout Plain Layout
3411 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3414 \begin_layout Plain Layout
3420 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3423 \begin_layout Plain Layout
3432 <row endhead="true">
3433 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3436 \begin_layout Plain Layout
3444 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3447 \begin_layout Plain Layout
3453 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3456 \begin_layout Plain Layout
3463 <row endhead="true">
3464 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3467 \begin_layout Plain Layout
3475 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3478 \begin_layout Plain Layout
3484 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3487 \begin_layout Plain Layout
3496 <row endfoot="true">
3497 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
3500 \begin_layout Plain Layout
3501 continued on next page
3506 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3509 \begin_layout Plain Layout
3515 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3518 \begin_layout Plain Layout
3526 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3529 \begin_layout Plain Layout
3537 <cell alignment="center" valignment="top" usebox="none">
3540 \begin_layout Plain Layout
3546 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3549 \begin_layout Plain Layout
3557 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3560 \begin_layout Plain Layout
3568 <cell alignment="center" valignment="top" usebox="none">
3571 \begin_layout Plain Layout
3577 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3580 \begin_layout Plain Layout
3588 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3591 \begin_layout Plain Layout
3599 <cell alignment="center" valignment="top" usebox="none">
3602 \begin_layout Plain Layout
3608 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3611 \begin_layout Plain Layout
3619 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3622 \begin_layout Plain Layout
3630 <cell alignment="center" valignment="top" usebox="none">
3633 \begin_layout Plain Layout
3639 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3642 \begin_layout Plain Layout
3650 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3653 \begin_layout Plain Layout
3661 <cell alignment="center" valignment="top" usebox="none">
3664 \begin_layout Plain Layout
3670 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3673 \begin_layout Plain Layout
3681 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3684 \begin_layout Plain Layout
3692 <cell alignment="center" valignment="top" usebox="none">
3695 \begin_layout Plain Layout
3701 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3704 \begin_layout Plain Layout
3712 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3715 \begin_layout Plain Layout
3723 <cell alignment="center" valignment="top" usebox="none">
3726 \begin_layout Plain Layout
3732 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3735 \begin_layout Plain Layout
3743 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3746 \begin_layout Plain Layout
3754 <cell alignment="center" valignment="top" usebox="none">
3757 \begin_layout Plain Layout
3763 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3766 \begin_layout Plain Layout
3774 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3777 \begin_layout Plain Layout
3785 <cell alignment="center" valignment="top" usebox="none">
3788 \begin_layout Plain Layout
3794 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3797 \begin_layout Plain Layout
3805 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3808 \begin_layout Plain Layout
3816 <cell alignment="center" valignment="top" usebox="none">
3819 \begin_layout Plain Layout
3825 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3828 \begin_layout Plain Layout
3836 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3839 \begin_layout Plain Layout
3847 <cell alignment="center" valignment="top" usebox="none">
3850 \begin_layout Plain Layout
3856 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3859 \begin_layout Plain Layout
3867 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3870 \begin_layout Plain Layout
3878 <cell alignment="center" valignment="top" usebox="none">
3881 \begin_layout Plain Layout
3887 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3890 \begin_layout Plain Layout
3898 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3901 \begin_layout Plain Layout
3909 <cell alignment="center" valignment="top" usebox="none">
3912 \begin_layout Plain Layout
3918 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3921 \begin_layout Plain Layout
3929 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3932 \begin_layout Plain Layout
3940 <cell alignment="center" valignment="top" usebox="none">
3943 \begin_layout Plain Layout
3949 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3952 \begin_layout Plain Layout
3960 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3963 \begin_layout Plain Layout
3971 <cell alignment="center" valignment="top" usebox="none">
3974 \begin_layout Plain Layout
3980 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3983 \begin_layout Plain Layout
3991 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3994 \begin_layout Plain Layout
4002 <cell alignment="center" valignment="top" usebox="none">
4005 \begin_layout Plain Layout
4011 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4014 \begin_layout Plain Layout
4022 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4025 \begin_layout Plain Layout
4033 <cell alignment="center" valignment="top" usebox="none">
4036 \begin_layout Plain Layout
4042 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4045 \begin_layout Plain Layout
4053 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4056 \begin_layout Plain Layout
4064 <cell alignment="center" valignment="top" usebox="none">
4067 \begin_layout Plain Layout
4073 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4076 \begin_layout Plain Layout
4084 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4087 \begin_layout Plain Layout
4095 <cell alignment="center" valignment="top" usebox="none">
4098 \begin_layout Plain Layout
4104 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4107 \begin_layout Plain Layout
4115 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4118 \begin_layout Plain Layout
4126 <cell alignment="center" valignment="top" usebox="none">
4129 \begin_layout Plain Layout
4135 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4138 \begin_layout Plain Layout
4146 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4149 \begin_layout Plain Layout
4157 <cell alignment="center" valignment="top" usebox="none">
4160 \begin_layout Plain Layout
4166 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4169 \begin_layout Plain Layout
4177 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4180 \begin_layout Plain Layout
4188 <cell alignment="center" valignment="top" usebox="none">
4191 \begin_layout Plain Layout
4197 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4200 \begin_layout Plain Layout
4208 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4211 \begin_layout Plain Layout
4219 <cell alignment="center" valignment="top" usebox="none">
4222 \begin_layout Plain Layout
4228 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4231 \begin_layout Plain Layout
4239 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4242 \begin_layout Plain Layout
4250 <cell alignment="center" valignment="top" usebox="none">
4253 \begin_layout Plain Layout
4259 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4262 \begin_layout Plain Layout
4270 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4273 \begin_layout Plain Layout
4281 <cell alignment="center" valignment="top" usebox="none">
4284 \begin_layout Plain Layout
4290 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4293 \begin_layout Plain Layout
4301 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4304 \begin_layout Plain Layout
4312 <cell alignment="center" valignment="top" usebox="none">
4315 \begin_layout Plain Layout
4321 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4324 \begin_layout Plain Layout
4332 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4335 \begin_layout Plain Layout
4343 <cell alignment="center" valignment="top" usebox="none">
4346 \begin_layout Plain Layout
4352 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4355 \begin_layout Plain Layout
4363 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4366 \begin_layout Plain Layout
4374 <cell alignment="center" valignment="top" usebox="none">
4377 \begin_layout Plain Layout
4383 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4386 \begin_layout Plain Layout
4394 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4397 \begin_layout Plain Layout
4405 <cell alignment="center" valignment="top" usebox="none">
4408 \begin_layout Plain Layout
4414 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4417 \begin_layout Plain Layout
4425 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4428 \begin_layout Plain Layout
4436 <cell alignment="center" valignment="top" usebox="none">
4439 \begin_layout Plain Layout
4445 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4448 \begin_layout Plain Layout
4456 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4459 \begin_layout Plain Layout
4467 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4470 \begin_layout Plain Layout
4476 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4479 \begin_layout Plain Layout
4487 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4490 \begin_layout Plain Layout
4496 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4499 \begin_layout Plain Layout
4505 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4508 \begin_layout Plain Layout
4516 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4519 \begin_layout Plain Layout
4527 <cell alignment="center" valignment="top" usebox="none">
4530 \begin_layout Plain Layout
4536 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4539 \begin_layout Plain Layout
4547 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4550 \begin_layout Plain Layout
4558 <cell alignment="center" valignment="top" usebox="none">
4561 \begin_layout Plain Layout
4567 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4570 \begin_layout Plain Layout
4578 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4581 \begin_layout Plain Layout
4589 <cell alignment="center" valignment="top" usebox="none">
4592 \begin_layout Plain Layout
4598 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4601 \begin_layout Plain Layout
4609 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4612 \begin_layout Plain Layout
4620 <cell alignment="center" valignment="top" usebox="none">
4623 \begin_layout Plain Layout
4629 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4632 \begin_layout Plain Layout
4640 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4643 \begin_layout Plain Layout
4651 <cell alignment="center" valignment="top" usebox="none">
4654 \begin_layout Plain Layout
4660 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4663 \begin_layout Plain Layout
4671 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4674 \begin_layout Plain Layout
4682 <cell alignment="center" valignment="top" usebox="none">
4685 \begin_layout Plain Layout
4691 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4694 \begin_layout Plain Layout
4702 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4705 \begin_layout Plain Layout
4713 <cell alignment="center" valignment="top" usebox="none">
4716 \begin_layout Plain Layout
4722 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4725 \begin_layout Plain Layout
4733 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4736 \begin_layout Plain Layout
4744 <cell alignment="center" valignment="top" usebox="none">
4747 \begin_layout Plain Layout
4753 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4756 \begin_layout Plain Layout
4764 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4767 \begin_layout Plain Layout
4775 <cell alignment="center" valignment="top" usebox="none">
4778 \begin_layout Plain Layout
4784 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4787 \begin_layout Plain Layout
4795 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4798 \begin_layout Plain Layout
4806 <cell alignment="center" valignment="top" usebox="none">
4809 \begin_layout Plain Layout
4815 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4818 \begin_layout Plain Layout
4826 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4829 \begin_layout Plain Layout
4837 <cell alignment="center" valignment="top" usebox="none">
4840 \begin_layout Plain Layout
4846 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4849 \begin_layout Plain Layout
4857 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4860 \begin_layout Plain Layout
4868 <cell alignment="center" valignment="top" usebox="none">
4871 \begin_layout Plain Layout
4877 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4880 \begin_layout Plain Layout
4888 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4891 \begin_layout Plain Layout
4899 <cell alignment="center" valignment="top" usebox="none">
4902 \begin_layout Plain Layout
4908 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4911 \begin_layout Plain Layout
4919 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4922 \begin_layout Plain Layout
4930 <cell alignment="center" valignment="top" usebox="none">
4933 \begin_layout Plain Layout
4939 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4942 \begin_layout Plain Layout
4950 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4953 \begin_layout Plain Layout
4961 <cell alignment="center" valignment="top" usebox="none">
4964 \begin_layout Plain Layout
4970 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4973 \begin_layout Plain Layout
4981 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4984 \begin_layout Plain Layout
4992 <cell alignment="center" valignment="top" usebox="none">
4995 \begin_layout Plain Layout
5001 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5004 \begin_layout Plain Layout
5012 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5015 \begin_layout Plain Layout
5023 <cell alignment="center" valignment="top" usebox="none">
5026 \begin_layout Plain Layout
5032 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5035 \begin_layout Plain Layout
5043 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5046 \begin_layout Plain Layout
5054 <cell alignment="center" valignment="top" usebox="none">
5057 \begin_layout Plain Layout
5063 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5066 \begin_layout Plain Layout
5074 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5077 \begin_layout Plain Layout
5085 <cell alignment="center" valignment="top" usebox="none">
5088 \begin_layout Plain Layout
5094 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5097 \begin_layout Plain Layout
5105 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5108 \begin_layout Plain Layout
5116 <cell alignment="center" valignment="top" usebox="none">
5119 \begin_layout Plain Layout
5125 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5128 \begin_layout Plain Layout
5136 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5139 \begin_layout Plain Layout
5147 <cell alignment="center" valignment="top" usebox="none">
5150 \begin_layout Plain Layout
5156 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5159 \begin_layout Plain Layout
5167 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5170 \begin_layout Plain Layout
5178 <cell alignment="center" valignment="top" usebox="none">
5181 \begin_layout Plain Layout
5187 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5190 \begin_layout Plain Layout
5198 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5201 \begin_layout Plain Layout
5209 <cell alignment="center" valignment="top" usebox="none">
5212 \begin_layout Plain Layout
5218 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5221 \begin_layout Plain Layout
5229 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5232 \begin_layout Plain Layout
5240 <cell alignment="center" valignment="top" usebox="none">
5243 \begin_layout Plain Layout
5249 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5252 \begin_layout Plain Layout
5260 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5263 \begin_layout Plain Layout
5271 <cell alignment="center" valignment="top" usebox="none">
5274 \begin_layout Plain Layout
5280 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5283 \begin_layout Plain Layout
5291 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5294 \begin_layout Plain Layout
5302 <cell alignment="center" valignment="top" usebox="none">
5305 \begin_layout Plain Layout
5311 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5314 \begin_layout Plain Layout
5322 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5325 \begin_layout Plain Layout
5333 <cell alignment="center" valignment="top" usebox="none">
5336 \begin_layout Plain Layout
5342 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5345 \begin_layout Plain Layout
5353 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5356 \begin_layout Plain Layout
5364 <cell alignment="center" valignment="top" usebox="none">
5367 \begin_layout Plain Layout
5373 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5376 \begin_layout Plain Layout
5384 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5387 \begin_layout Plain Layout
5395 <cell alignment="center" valignment="top" usebox="none">
5398 \begin_layout Plain Layout
5404 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5407 \begin_layout Plain Layout
5415 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5418 \begin_layout Plain Layout
5426 <cell alignment="center" valignment="top" usebox="none">
5429 \begin_layout Plain Layout
5435 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5438 \begin_layout Plain Layout
5446 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5449 \begin_layout Plain Layout
5457 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5460 \begin_layout Plain Layout
5466 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5469 \begin_layout Plain Layout
5476 <row endlastfoot="true">
5477 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5480 \begin_layout Plain Layout
5486 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5489 \begin_layout Plain Layout
5495 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5498 \begin_layout Plain Layout
5513 \begin_layout Plain Layout
5517 addtocounter{table}{-1}
5523 \begin_inset Note Note
5526 \begin_layout Plain Layout
5527 See the first greyed-out note in section
5528 \begin_inset space ~
5532 \begin_inset CommandInset ref
5534 reference "sub:Longtable-Captions"
5538 for an explanation of this command.
5546 \begin_layout Subsection
5547 Footnotes in Longtables
5548 \begin_inset CommandInset label
5550 name "sub:Footnotes-in-Longtables"
5555 \begin_inset Index idx
5558 \begin_layout Plain Layout
5559 Longtables ! Footnotes
5567 \begin_layout Standard
5568 Footnotes can be inserted to every longtable cell.
5569 They appear at the bottom of the page where the table cell with the footnote
5572 \begin_inset space ~
5576 \begin_inset CommandInset ref
5578 reference "tab:DiffCaptions"
5582 has for example a footnote.
5585 \begin_layout Subsection
5587 \begin_inset Index idx
5590 \begin_layout Plain Layout
5591 Longtables ! Alignment
5599 \begin_layout Standard
5600 The horizontal alignment of longtables can be set in the table settings
5602 For left- and right-alignment the table will be directly at the page border.
5603 To add space between the table and the border one has to set the alignment
5604 to center and change the value of the LaTeX-lengths
5616 by inserting this line as TeX-Code before the longtable:
5619 \begin_layout Standard
5629 \begin_layout Standard
5630 The value can have any of the units listed in Table
5631 \begin_inset space ~
5635 \begin_inset CommandInset ref
5637 reference "tab:Units"
5648 controls the horizontal distance from the left page border to the longtable,
5655 the distance from the right side.
5656 The default value for both lengths is
5662 , which is in this case the same as an horizontal fill in LyX.
5665 \begin_layout Standard
5666 The following longtable was centered and
5682 \begin_layout Plain Layout
5698 \begin_layout Standard
5699 \begin_inset Tabular
5700 <lyxtabular version="3" rows="5" columns="5">
5701 <features islongtable="true" longtabularalignment="center">
5702 <column alignment="center" valignment="top" width="0">
5703 <column alignment="center" valignment="top" width="0pt">
5704 <column alignment="center" valignment="top" width="0">
5705 <column alignment="center" valignment="top" width="0">
5706 <column alignment="center" valignment="top" width="0">
5708 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5711 \begin_layout Plain Layout
5717 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5720 \begin_layout Plain Layout
5726 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5729 \begin_layout Plain Layout
5735 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5738 \begin_layout Plain Layout
5744 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5747 \begin_layout Plain Layout
5755 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5758 \begin_layout Plain Layout
5764 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5767 \begin_layout Plain Layout
5773 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5776 \begin_layout Plain Layout
5782 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5785 \begin_layout Plain Layout
5791 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5794 \begin_layout Plain Layout
5802 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5805 \begin_layout Plain Layout
5811 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5814 \begin_layout Plain Layout
5820 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5823 \begin_layout Plain Layout
5829 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5832 \begin_layout Plain Layout
5838 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5841 \begin_layout Plain Layout
5849 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5852 \begin_layout Plain Layout
5858 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5861 \begin_layout Plain Layout
5867 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5870 \begin_layout Plain Layout
5876 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5879 \begin_layout Plain Layout
5885 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5888 \begin_layout Plain Layout
5896 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5899 \begin_layout Plain Layout
5905 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5908 \begin_layout Plain Layout
5914 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5917 \begin_layout Plain Layout
5923 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5926 \begin_layout Plain Layout
5932 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5935 \begin_layout Plain Layout
5950 \begin_layout Plain Layout
5967 \begin_layout Plain Layout
5971 addtocounter{table}{-1}
5977 \begin_inset Note Note
5980 \begin_layout Plain Layout
5981 See the first greyed-out note in section
5982 \begin_inset space ~
5986 \begin_inset CommandInset ref
5988 reference "sub:Longtable-Captions"
5992 for an explanation of this command.
6000 \begin_layout Subsection
6002 \begin_inset Index idx
6005 \begin_layout Plain Layout
6006 Longtables ! Captions
6012 \begin_inset CommandInset label
6014 name "sub:Longtable-Captions"
6021 \begin_layout Standard
6022 A longtable cannot be put into a table float because floats can only be
6024 But the caption environment of floats can also be used for longtables when
6025 you use the longtable option
6029 as described in sec.
6030 \begin_inset space \thinspace{}
6034 \begin_inset CommandInset ref
6036 reference "sec:Longtables"
6041 Only one table row can contain the caption.
6044 \begin_layout Standard
6045 Here is a short longtable to see how it works:
6048 \begin_layout Standard
6049 \begin_inset Tabular
6050 <lyxtabular version="3" rows="6" columns="5">
6051 <features islongtable="true" longtabularalignment="center">
6052 <column alignment="center" valignment="top" width="0">
6053 <column alignment="center" valignment="top" width="0">
6054 <column alignment="center" valignment="top" width="0">
6055 <column alignment="center" valignment="top" width="0">
6056 <column alignment="center" valignment="top" width="0">
6057 <row caption="true">
6058 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6061 \begin_layout Plain Layout
6062 \begin_inset Caption
6064 \begin_layout Plain Layout
6065 Longtable with caption
6066 \begin_inset Argument
6069 \begin_layout Plain Layout
6085 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6088 \begin_layout Plain Layout
6094 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6097 \begin_layout Plain Layout
6103 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6106 \begin_layout Plain Layout
6112 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6115 \begin_layout Plain Layout
6123 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6126 \begin_layout Plain Layout
6132 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6135 \begin_layout Plain Layout
6141 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6144 \begin_layout Plain Layout
6150 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6153 \begin_layout Plain Layout
6159 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6162 \begin_layout Plain Layout
6170 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6173 \begin_layout Plain Layout
6179 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6182 \begin_layout Plain Layout
6188 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6191 \begin_layout Plain Layout
6197 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6200 \begin_layout Plain Layout
6206 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6209 \begin_layout Plain Layout
6217 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6220 \begin_layout Plain Layout
6226 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6229 \begin_layout Plain Layout
6235 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6238 \begin_layout Plain Layout
6244 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6247 \begin_layout Plain Layout
6253 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6256 \begin_layout Plain Layout
6264 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6267 \begin_layout Plain Layout
6273 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6276 \begin_layout Plain Layout
6282 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6285 \begin_layout Plain Layout
6291 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6294 \begin_layout Plain Layout
6300 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6303 \begin_layout Plain Layout
6311 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6314 \begin_layout Plain Layout
6320 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6323 \begin_layout Plain Layout
6329 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6332 \begin_layout Plain Layout
6338 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6341 \begin_layout Plain Layout
6347 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6350 \begin_layout Plain Layout
6364 \begin_layout Standard
6365 \begin_inset VSpace medskip
6369 \begin_inset Note Greyedout
6372 \begin_layout Plain Layout
6376 \begin_inset space ~
6381 The table number is increased for for every longtable, even if you did
6382 not set a caption for it.
6383 For this reason you could have the case that e.
6384 \begin_inset space \thinspace{}
6388 \begin_inset space \space{}
6392 \begin_inset space ~
6396 \begin_inset space ~
6399 2.1 in the list of tables if there are two longtables without captions.
6400 To avoid this you can add the following command in TeX-Code after every
6401 longtable without a caption:
6404 \begin_layout Plain Layout
6409 addtocounter{table}{-1}
6412 \begin_layout Plain Layout
6413 This is not needed when none of your longtables have a caption and you add
6414 the following code to the document preamble:
6417 \begin_layout Plain Layout
6427 \begin_inset Newline newline
6438 addtocounter{table}{-1}}
6446 \begin_layout Standard
6447 \begin_inset Note Greyedout
6450 \begin_layout Plain Layout
6454 \begin_inset space ~
6464 \begin_inset Index idx
6467 \begin_layout Plain Layout
6468 LaTeX-packages ! hyperref
6481 dialog to link cross-references, the link to a longtable caption will always
6482 point to the beginning of the document.
6490 \begin_layout Subsubsection
6491 References to Longtables
6492 \begin_inset Index idx
6495 \begin_layout Plain Layout
6496 Longtables ! References
6504 \begin_layout Standard
6505 \begin_inset Tabular
6506 <lyxtabular version="3" rows="6" columns="5">
6507 <features islongtable="true" longtabularalignment="center">
6508 <column alignment="center" valignment="top" width="0">
6509 <column alignment="center" valignment="top" width="0">
6510 <column alignment="center" valignment="top" width="0">
6511 <column alignment="center" valignment="top" width="0">
6512 <column alignment="center" valignment="top" width="0">
6513 <row caption="true">
6514 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6517 \begin_layout Plain Layout
6518 \begin_inset Caption
6520 \begin_layout Plain Layout
6521 Referenced longtable
6522 \begin_inset CommandInset label
6524 name "tab:RefExample"
6538 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6541 \begin_layout Plain Layout
6547 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6550 \begin_layout Plain Layout
6556 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6559 \begin_layout Plain Layout
6565 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6568 \begin_layout Plain Layout
6576 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6579 \begin_layout Plain Layout
6585 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6588 \begin_layout Plain Layout
6594 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6597 \begin_layout Plain Layout
6603 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6606 \begin_layout Plain Layout
6612 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6615 \begin_layout Plain Layout
6623 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6626 \begin_layout Plain Layout
6632 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6635 \begin_layout Plain Layout
6641 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6644 \begin_layout Plain Layout
6650 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6653 \begin_layout Plain Layout
6659 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6662 \begin_layout Plain Layout
6670 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6673 \begin_layout Plain Layout
6679 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6682 \begin_layout Plain Layout
6688 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6691 \begin_layout Plain Layout
6697 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6700 \begin_layout Plain Layout
6706 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6709 \begin_layout Plain Layout
6717 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6720 \begin_layout Plain Layout
6726 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6729 \begin_layout Plain Layout
6735 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6738 \begin_layout Plain Layout
6744 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6747 \begin_layout Plain Layout
6753 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6756 \begin_layout Plain Layout
6764 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6767 \begin_layout Plain Layout
6773 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6776 \begin_layout Plain Layout
6782 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6785 \begin_layout Plain Layout
6791 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6794 \begin_layout Plain Layout
6800 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6803 \begin_layout Plain Layout
6817 \begin_layout Standard
6818 To reference a longtable, insert a label into the caption.
6821 \begin_layout Standard
6822 This is a reference to Table
6823 \begin_inset space ~
6827 \begin_inset CommandInset ref
6829 reference "tab:RefExample"
6836 \begin_layout Standard
6837 The caption layout can be set together with all other captions of your document
6838 using the LaTeX-package
6843 \begin_inset Index idx
6846 \begin_layout Plain Layout
6847 LaTeX-packages ! caption
6853 \begin_inset space ~
6857 \begin_inset CommandInset ref
6859 reference "sec:Caption-Formatting"
6866 \begin_layout Subsubsection
6868 \begin_inset Index idx
6871 \begin_layout Plain Layout
6872 Longtables ! Caption Width
6880 \begin_layout Standard
6881 The maximal width of of caption lines is defined by the length
6888 Its default value is 4
6889 \begin_inset space \thinspace{}
6893 To change it add the following command to your document preamble or as
6894 TeX-Code into your document before the longtable that should be affected
6897 \begin_layout Standard
6907 \begin_layout Standard
6908 where the width could have one of the units listed in appendix
6909 \begin_inset space ~
6913 \begin_inset CommandInset ref
6915 reference "cha:Units-available-in"
6922 \begin_layout Standard
6923 The following tables show the difference:
6926 \begin_layout Standard
6927 \begin_inset Tabular
6928 <lyxtabular version="3" rows="6" columns="5">
6929 <features islongtable="true" longtabularalignment="center">
6930 <column alignment="center" valignment="top" width="0">
6931 <column alignment="center" valignment="top" width="0">
6932 <column alignment="center" valignment="top" width="0">
6933 <column alignment="center" valignment="top" width="0">
6934 <column alignment="center" valignment="top" width="0">
6935 <row caption="true">
6936 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6939 \begin_layout Plain Layout
6940 \begin_inset Caption
6942 \begin_layout Plain Layout
6943 long full title with default width long full title with default width long
6944 full title with default width
6945 \begin_inset Argument
6948 \begin_layout Plain Layout
6949 caption with default width
6964 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6967 \begin_layout Plain Layout
6973 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6976 \begin_layout Plain Layout
6982 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6985 \begin_layout Plain Layout
6991 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6994 \begin_layout Plain Layout
7002 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7005 \begin_layout Plain Layout
7011 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7014 \begin_layout Plain Layout
7020 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7023 \begin_layout Plain Layout
7029 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7032 \begin_layout Plain Layout
7038 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7041 \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" usebox="none">
7079 \begin_layout Plain Layout
7085 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7088 \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" usebox="none">
7126 \begin_layout Plain Layout
7132 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7135 \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" usebox="none">
7173 \begin_layout Plain Layout
7179 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7182 \begin_layout Plain Layout
7190 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7193 \begin_layout Plain Layout
7199 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7202 \begin_layout Plain Layout
7208 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7211 \begin_layout Plain Layout
7217 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7220 \begin_layout Plain Layout
7226 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7229 \begin_layout Plain Layout
7243 \begin_layout Standard
7247 \begin_layout Plain Layout
7259 \begin_inset Tabular
7260 <lyxtabular version="3" rows="6" columns="5">
7261 <features islongtable="true" longtabularalignment="center">
7262 <column alignment="center" valignment="top" width="0">
7263 <column alignment="center" valignment="top" width="0">
7264 <column alignment="center" valignment="top" width="0">
7265 <column alignment="center" valignment="top" width="0">
7266 <column alignment="center" valignment="top" width="0">
7267 <row caption="true">
7268 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7271 \begin_layout Plain Layout
7272 \begin_inset Caption
7274 \begin_layout Plain Layout
7275 long full title with width set to 5
7276 \begin_inset space \thinspace{}
7279 cm long full title with width set to 5
7280 \begin_inset space \thinspace{}
7283 cm long full title with width set to 5
7284 \begin_inset space \thinspace{}
7288 \begin_inset Argument
7291 \begin_layout Plain Layout
7293 \begin_inset space \thinspace{}
7297 \begin_inset space \thinspace{}
7301 \begin_inset space \thinspace{}
7319 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7322 \begin_layout Plain Layout
7328 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7331 \begin_layout Plain Layout
7337 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7340 \begin_layout Plain Layout
7346 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7349 \begin_layout Plain Layout
7357 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7360 \begin_layout Plain Layout
7366 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7369 \begin_layout Plain Layout
7375 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7378 \begin_layout Plain Layout
7384 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7387 \begin_layout Plain Layout
7393 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7396 \begin_layout Plain Layout
7404 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7407 \begin_layout Plain Layout
7413 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7416 \begin_layout Plain Layout
7422 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7425 \begin_layout Plain Layout
7431 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7434 \begin_layout Plain Layout
7440 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7443 \begin_layout Plain Layout
7451 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7454 \begin_layout Plain Layout
7460 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7463 \begin_layout Plain Layout
7469 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7472 \begin_layout Plain Layout
7478 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7481 \begin_layout Plain Layout
7487 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7490 \begin_layout Plain Layout
7498 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7501 \begin_layout Plain Layout
7507 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7510 \begin_layout Plain Layout
7516 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7519 \begin_layout Plain Layout
7525 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7528 \begin_layout Plain Layout
7534 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7537 \begin_layout Plain Layout
7545 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7548 \begin_layout Plain Layout
7554 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7557 \begin_layout Plain Layout
7563 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7566 \begin_layout Plain Layout
7572 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7575 \begin_layout Plain Layout
7581 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7584 \begin_layout Plain Layout
7598 \begin_layout Standard
7602 \begin_layout Plain Layout
7616 \begin_layout Standard
7617 \begin_inset Note Greyedout
7620 \begin_layout Plain Layout
7625 When the LaTeX-package
7630 \begin_inset Index idx
7633 \begin_layout Plain Layout
7634 LaTeX-packages ! caption
7639 is used, as in this document, the full page width is used for the caption
7640 when you use the default value of 4
7641 \begin_inset space \thinspace{}
7651 To get in this case exactly a 4
7652 \begin_inset space \thinspace{}
7655 in wide caption, you can either use a value slightly different from 4.0
7656 \begin_inset space \thinspace{}
7660 \begin_inset space \thinspace{}
7664 \begin_inset space \space{}
7668 \begin_inset space \thinspace{}
7671 in, or the LaTeX-command
7675 captionsetup{width=value}
7677 that is provided by the
7689 \begin_layout Subsubsection
7690 Different Captions for Table Pages
7691 \begin_inset Index idx
7694 \begin_layout Plain Layout
7695 Longtables ! Different Captions for Pages
7703 \begin_layout Standard
7704 When the table captions for the following pages should differ from the one
7705 of the first table page, insert a caption with the TeX code command
7708 \begin_layout Standard
7713 caption*{caption text}
7720 \begin_layout Standard
7721 in a dummy caption row that is marked as a header.
7723 \begin_inset space ~
7727 \begin_inset CommandInset ref
7729 reference "tab:DiffCaptions"
7733 is an example of a longtable with different heading where the second caption
7734 doesn't include the table number.
7737 \begin_layout Standard
7739 \begin_inset Tabular
7740 <lyxtabular version="3" rows="59" columns="3">
7741 <features islongtable="true" lastFootEmpty="true" longtabularalignment="center">
7742 <column alignment="left" valignment="top" width="0cm">
7743 <column alignment="left" valignment="top" width="0pt">
7744 <column alignment="center" valignment="top" width="0pt">
7745 <row caption="true">
7746 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7749 \begin_layout Plain Layout
7750 \begin_inset Caption
7752 \begin_layout Plain Layout
7754 \begin_inset CommandInset label
7756 name "tab:DiffCaptions"
7761 \begin_inset Argument
7764 \begin_layout Plain Layout
7780 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7783 \begin_layout Plain Layout
7789 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7792 \begin_layout Plain Layout
7799 <row endfirsthead="true">
7800 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7803 \begin_layout Plain Layout
7806 Example Phone List (ignore the names)
7811 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7814 \begin_layout Plain Layout
7820 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7823 \begin_layout Plain Layout
7830 <row endfirsthead="true">
7831 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7834 \begin_layout Plain Layout
7842 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7845 \begin_layout Plain Layout
7851 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7854 \begin_layout Plain Layout
7863 <row endhead="true">
7864 <cell alignment="left" valignment="top" leftline="true" usebox="none">
7867 \begin_layout Plain Layout
7871 \begin_layout Plain Layout
7875 caption*{Continued Example Phone List}
7889 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7892 \begin_layout Plain Layout
7898 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7901 \begin_layout Plain Layout
7908 <row endhead="true">
7909 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7912 \begin_layout Plain Layout
7920 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7923 \begin_layout Plain Layout
7929 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7932 \begin_layout Plain Layout
7939 <row endhead="true">
7940 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7943 \begin_layout Plain Layout
7951 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7954 \begin_layout Plain Layout
7960 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7963 \begin_layout Plain Layout
7972 <row endfoot="true">
7973 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
7976 \begin_layout Plain Layout
7977 continued on next page
7982 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7985 \begin_layout Plain Layout
7991 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7994 \begin_layout Plain Layout
8002 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8005 \begin_layout Plain Layout
8013 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8016 \begin_layout Plain Layout
8022 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
8025 \begin_layout Plain Layout
8033 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8036 \begin_layout Plain Layout
8044 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8047 \begin_layout Plain Layout
8053 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8056 \begin_layout Plain Layout
8064 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8067 \begin_layout Plain Layout
8075 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8078 \begin_layout Plain Layout
8084 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8087 \begin_layout Plain Layout
8095 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8098 \begin_layout Plain Layout
8106 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8109 \begin_layout Plain Layout
8115 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8118 \begin_layout Plain Layout
8126 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8129 \begin_layout Plain Layout
8137 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8140 \begin_layout Plain Layout
8146 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8149 \begin_layout Plain Layout
8157 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8160 \begin_layout Plain Layout
8168 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8171 \begin_layout Plain Layout
8177 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8180 \begin_layout Plain Layout
8188 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8191 \begin_layout Plain Layout
8199 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8202 \begin_layout Plain Layout
8208 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8211 \begin_layout Plain Layout
8219 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8222 \begin_layout Plain Layout
8230 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8233 \begin_layout Plain Layout
8239 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8242 \begin_layout Plain Layout
8250 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8253 \begin_layout Plain Layout
8261 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8264 \begin_layout Plain Layout
8270 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8273 \begin_layout Plain Layout
8281 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8284 \begin_layout Plain Layout
8292 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8295 \begin_layout Plain Layout
8301 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8304 \begin_layout Plain Layout
8312 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8315 \begin_layout Plain Layout
8323 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8326 \begin_layout Plain Layout
8332 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8335 \begin_layout Plain Layout
8343 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8346 \begin_layout Plain Layout
8354 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8357 \begin_layout Plain Layout
8363 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8366 \begin_layout Plain Layout
8374 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8377 \begin_layout Plain Layout
8385 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8388 \begin_layout Plain Layout
8394 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8397 \begin_layout Plain Layout
8405 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8408 \begin_layout Plain Layout
8416 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8419 \begin_layout Plain Layout
8425 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8428 \begin_layout Plain Layout
8436 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8439 \begin_layout Plain Layout
8448 \begin_layout Plain Layout
8459 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8462 \begin_layout Plain Layout
8468 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8471 \begin_layout Plain Layout
8479 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8482 \begin_layout Plain Layout
8490 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8493 \begin_layout Plain Layout
8499 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8502 \begin_layout Plain Layout
8510 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8513 \begin_layout Plain Layout
8521 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8524 \begin_layout Plain Layout
8530 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8533 \begin_layout Plain Layout
8541 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8544 \begin_layout Plain Layout
8552 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8555 \begin_layout Plain Layout
8561 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8564 \begin_layout Plain Layout
8572 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8575 \begin_layout Plain Layout
8583 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8586 \begin_layout Plain Layout
8592 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8595 \begin_layout Plain Layout
8603 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8606 \begin_layout Plain Layout
8614 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8617 \begin_layout Plain Layout
8623 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8626 \begin_layout Plain Layout
8634 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8637 \begin_layout Plain Layout
8645 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8648 \begin_layout Plain Layout
8654 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8657 \begin_layout Plain Layout
8665 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8668 \begin_layout Plain Layout
8676 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8679 \begin_layout Plain Layout
8685 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8688 \begin_layout Plain Layout
8696 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8699 \begin_layout Plain Layout
8707 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8710 \begin_layout Plain Layout
8716 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8719 \begin_layout Plain Layout
8727 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8730 \begin_layout Plain Layout
8738 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8741 \begin_layout Plain Layout
8747 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8750 \begin_layout Plain Layout
8758 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8761 \begin_layout Plain Layout
8769 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8772 \begin_layout Plain Layout
8778 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8781 \begin_layout Plain Layout
8789 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8792 \begin_layout Plain Layout
8800 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8803 \begin_layout Plain Layout
8809 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8812 \begin_layout Plain Layout
8820 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8823 \begin_layout Plain Layout
8831 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8834 \begin_layout Plain Layout
8840 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8843 \begin_layout Plain Layout
8851 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8854 \begin_layout Plain Layout
8862 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8865 \begin_layout Plain Layout
8871 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8874 \begin_layout Plain Layout
8882 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8885 \begin_layout Plain Layout
8893 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8896 \begin_layout Plain Layout
8902 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8905 \begin_layout Plain Layout
8913 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8916 \begin_layout Plain Layout
8924 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8927 \begin_layout Plain Layout
8933 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8936 \begin_layout Plain Layout
8944 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8947 \begin_layout Plain Layout
8955 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8958 \begin_layout Plain Layout
8964 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8967 \begin_layout Plain Layout
8975 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8978 \begin_layout Plain Layout
8984 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8987 \begin_layout Plain Layout
8993 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8996 \begin_layout Plain Layout
9004 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9007 \begin_layout Plain Layout
9015 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9018 \begin_layout Plain Layout
9024 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9027 \begin_layout Plain Layout
9035 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9038 \begin_layout Plain Layout
9046 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9049 \begin_layout Plain Layout
9055 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9058 \begin_layout Plain Layout
9066 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9069 \begin_layout Plain Layout
9077 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9080 \begin_layout Plain Layout
9086 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9089 \begin_layout Plain Layout
9097 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9100 \begin_layout Plain Layout
9108 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9111 \begin_layout Plain Layout
9117 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9120 \begin_layout Plain Layout
9128 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9131 \begin_layout Plain Layout
9139 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9142 \begin_layout Plain Layout
9148 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9151 \begin_layout Plain Layout
9159 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9162 \begin_layout Plain Layout
9170 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9173 \begin_layout Plain Layout
9179 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9182 \begin_layout Plain Layout
9190 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9193 \begin_layout Plain Layout
9201 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9204 \begin_layout Plain Layout
9210 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9213 \begin_layout Plain Layout
9221 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9224 \begin_layout Plain Layout
9232 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9235 \begin_layout Plain Layout
9241 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9244 \begin_layout Plain Layout
9252 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9255 \begin_layout Plain Layout
9263 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9266 \begin_layout Plain Layout
9272 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9275 \begin_layout Plain Layout
9283 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9286 \begin_layout Plain Layout
9294 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9297 \begin_layout Plain Layout
9303 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9306 \begin_layout Plain Layout
9314 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9317 \begin_layout Plain Layout
9325 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9328 \begin_layout Plain Layout
9334 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9337 \begin_layout Plain Layout
9345 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9348 \begin_layout Plain Layout
9356 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9359 \begin_layout Plain Layout
9365 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9368 \begin_layout Plain Layout
9376 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9379 \begin_layout Plain Layout
9387 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9390 \begin_layout Plain Layout
9396 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9399 \begin_layout Plain Layout
9407 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9410 \begin_layout Plain Layout
9418 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9421 \begin_layout Plain Layout
9427 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9430 \begin_layout Plain Layout
9438 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9441 \begin_layout Plain Layout
9449 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9452 \begin_layout Plain Layout
9458 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9461 \begin_layout Plain Layout
9469 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9472 \begin_layout Plain Layout
9480 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9483 \begin_layout Plain Layout
9489 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9492 \begin_layout Plain Layout
9500 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9503 \begin_layout Plain Layout
9511 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9514 \begin_layout Plain Layout
9520 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9523 \begin_layout Plain Layout
9531 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9534 \begin_layout Plain Layout
9542 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9545 \begin_layout Plain Layout
9551 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9554 \begin_layout Plain Layout
9562 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9565 \begin_layout Plain Layout
9573 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9576 \begin_layout Plain Layout
9582 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9585 \begin_layout Plain Layout
9593 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9596 \begin_layout Plain Layout
9604 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9607 \begin_layout Plain Layout
9613 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9616 \begin_layout Plain Layout
9630 \begin_layout Section
9631 Special Longtable Issues
9632 \begin_inset CommandInset label
9634 name "sec:Special-Longtable-Issues"
9641 \begin_layout Subsection
9642 Longtable Calculation
9643 \begin_inset Index idx
9646 \begin_layout Plain Layout
9647 Longtables ! Calculation
9655 \begin_layout Standard
9656 LaTeX calculates the height of table pages and their page breaks using so
9658 Chunks are parts of tables that held at the same time in LaTeX's memory.
9659 The default value was historically set to only 20 table rows.
9660 If you are using longtables with many pages this may slow down the creation
9662 You can safely increase the chunk size to values of 100-1000 by adding
9663 this command line to your document preamble:
9666 \begin_layout Standard
9671 setcounter{LTchunksize}{100}
9674 \begin_layout Subsection
9675 Floats and Longtables
9676 \begin_inset Index idx
9679 \begin_layout Plain Layout
9688 \begin_layout Standard
9689 There might be problems when a float appears on the same page where a longtable
9691 To avoid such a situation, insert a
9692 \begin_inset Quotes eld
9696 \begin_inset Quotes erd
9701 Insert\SpecialChar \menuseparator
9702 Formatting\SpecialChar \menuseparator
9704 \begin_inset space ~
9709 ) before your longtable.
9712 \begin_layout Subsection
9714 \begin_inset Index idx
9717 \begin_layout Plain Layout
9718 Longtables ! Forced Page Breaks
9726 \begin_layout Standard
9727 By default tables are only broken between rows.
9728 If you have a cell with multiples lines and want to have a page break within
9729 the cell, insert the new line command
9730 \begin_inset Quotes eld
9742 \begin_inset Quotes erd
9745 as TeX-Code at the point of the cell where it can be broken.
9754 command you have to insert in TeX-Code as many
9755 \begin_inset Quotes eld
9763 \begin_inset Quotes erd
9766 characters as the number of the following table columns.
9771 is the character to separate table cells.
9772 Write in TeX-Code after each
9776 the content of the corresponding following cell and delete the content
9778 \begin_inset Newline newline
9789 command, insert as many
9793 characters as the number of table columns before the current column.
9795 \begin_inset space ~
9799 \begin_inset CommandInset ref
9801 reference "tab:ForcedPagebreak"
9805 the cell that should be broken is in the second column followed by another
9807 Therefore the following command was inserted in the cell as TeX-Code after
9809 \begin_inset Quotes eld
9817 \begin_inset Quotes erd
9823 \begin_layout Standard
9833 \begin_inset Newline newline
9839 \begin_layout Standard
9841 \begin_inset Quotes eld
9845 \begin_inset Quotes erd
9848 in the third column of the row was deleted.
9855 is only needed when a page break should definitely occur at this position,
9856 otherwise it would be a conditional break.
9857 If your footer row of the longtable has for a certain reason no upper line
9858 but you would have a horizontal line where the cell is broken, use this
9862 \begin_layout Standard
9870 \begin_inset Newline newline
9878 \begin_layout Standard
9879 When the cell to be broken is in the last column, the command
9882 \begin_layout Standard
9892 \begin_layout Standard
9893 must be inserted as TeX-Code at the beginning of the cell.
9894 This ensures that the part of the cell that will be displayed on the new
9895 page appears with the full width.
9898 \begin_layout Standard
9900 \begin_inset Tabular
9901 <lyxtabular version="3" rows="38" columns="3">
9902 <features islongtable="true" lastFootEmpty="true" longtabularalignment="center">
9903 <column alignment="left" valignment="top" width="0cm">
9904 <column alignment="left" valignment="top" width="3cm">
9905 <column alignment="center" valignment="top" width="0pt">
9906 <row caption="true">
9907 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9910 \begin_layout Plain Layout
9911 \begin_inset Caption
9913 \begin_layout Plain Layout
9914 Table with forced page break in table cell
9915 \begin_inset CommandInset label
9917 name "tab:ForcedPagebreak"
9922 \begin_inset Argument
9925 \begin_layout Plain Layout
9926 Table with forced page break in table cell
9941 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9944 \begin_layout Plain Layout
9950 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9953 \begin_layout Plain Layout
9960 <row endfirsthead="true">
9961 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9964 \begin_layout Plain Layout
9967 Example Phone List (ignore the names)
9972 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9975 \begin_layout Plain Layout
9981 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9984 \begin_layout Plain Layout
9991 <row endfirsthead="true">
9992 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9995 \begin_layout Plain Layout
10003 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10006 \begin_layout Plain Layout
10012 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10015 \begin_layout Plain Layout
10024 <row endhead="true">
10025 <cell alignment="left" valignment="top" leftline="true" usebox="none">
10028 \begin_layout Plain Layout
10032 \begin_layout Plain Layout
10036 caption*{Continued Example Phone List}
10050 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10053 \begin_layout Plain Layout
10059 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10062 \begin_layout Plain Layout
10069 <row endhead="true">
10070 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10073 \begin_layout Plain Layout
10081 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10084 \begin_layout Plain Layout
10090 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10093 \begin_layout Plain Layout
10100 <row endhead="true">
10101 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10104 \begin_layout Plain Layout
10112 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10115 \begin_layout Plain Layout
10121 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10124 \begin_layout Plain Layout
10133 <row endfoot="true">
10134 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
10137 \begin_layout Plain Layout
10138 continued on next page
10143 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10146 \begin_layout Plain Layout
10152 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10155 \begin_layout Plain Layout
10163 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10166 \begin_layout Plain Layout
10174 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10177 \begin_layout Plain Layout
10183 <cell alignment="right" valignment="top" rightline="true" usebox="none">
10186 \begin_layout Plain Layout
10194 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10197 \begin_layout Plain Layout
10205 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10208 \begin_layout Plain Layout
10214 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10217 \begin_layout Plain Layout
10225 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10228 \begin_layout Plain Layout
10236 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10239 \begin_layout Plain Layout
10245 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10248 \begin_layout Plain Layout
10256 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10259 \begin_layout Plain Layout
10267 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10270 \begin_layout Plain Layout
10276 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10279 \begin_layout Plain Layout
10287 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10290 \begin_layout Plain Layout
10298 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10301 \begin_layout Plain Layout
10307 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10310 \begin_layout Plain Layout
10318 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10321 \begin_layout Plain Layout
10329 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10332 \begin_layout Plain Layout
10338 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10341 \begin_layout Plain Layout
10349 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10352 \begin_layout Plain Layout
10360 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10363 \begin_layout Plain Layout
10369 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10372 \begin_layout Plain Layout
10380 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10383 \begin_layout Plain Layout
10391 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10394 \begin_layout Plain Layout
10400 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10403 \begin_layout Plain Layout
10411 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10414 \begin_layout Plain Layout
10422 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10425 \begin_layout Plain Layout
10431 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10434 \begin_layout Plain Layout
10442 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10445 \begin_layout Plain Layout
10453 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10456 \begin_layout Plain Layout
10462 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10465 \begin_layout Plain Layout
10473 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10476 \begin_layout Plain Layout
10484 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10487 \begin_layout Plain Layout
10493 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10496 \begin_layout Plain Layout
10504 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10507 \begin_layout Plain Layout
10515 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10518 \begin_layout Plain Layout
10524 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10527 \begin_layout Plain Layout
10535 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10538 \begin_layout Plain Layout
10546 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10549 \begin_layout Plain Layout
10555 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10558 \begin_layout Plain Layout
10566 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10569 \begin_layout Plain Layout
10577 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10580 \begin_layout Plain Layout
10586 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10589 \begin_layout Plain Layout
10597 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10600 \begin_layout Plain Layout
10608 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10611 \begin_layout Plain Layout
10617 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10620 \begin_layout Plain Layout
10628 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10631 \begin_layout Plain Layout
10639 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10642 \begin_layout Plain Layout
10648 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10651 \begin_layout Plain Layout
10659 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10662 \begin_layout Plain Layout
10670 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10673 \begin_layout Plain Layout
10679 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10682 \begin_layout Plain Layout
10690 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10693 \begin_layout Plain Layout
10701 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10704 \begin_layout Plain Layout
10710 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10713 \begin_layout Plain Layout
10721 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10724 \begin_layout Plain Layout
10732 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10735 \begin_layout Plain Layout
10741 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10744 \begin_layout Plain Layout
10752 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10755 \begin_layout Plain Layout
10763 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10766 \begin_layout Plain Layout
10772 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10775 \begin_layout Plain Layout
10783 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10786 \begin_layout Plain Layout
10794 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10797 \begin_layout Plain Layout
10803 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10806 \begin_layout Plain Layout
10814 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10817 \begin_layout Plain Layout
10825 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10828 \begin_layout Plain Layout
10834 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10837 \begin_layout Plain Layout
10845 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10848 \begin_layout Plain Layout
10856 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10859 \begin_layout Plain Layout
10861 Fürst von Montecompatri, 11.
10862 Fürst von Sulmona und Vivaro, 10.
10863 Fürst von Rossano, 5.
10864 Herzog von Canemorte, 11.
10865 Herzog von Palombara, 5.
10866 Herzog von Castelchiodato,
10870 \begin_layout Plain Layout
10881 \begin_layout Plain Layout
10889 Herzog von Poggionativo, 11.
10890 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10891 Graf von Valinfreda, 11.
10892 Baron von Cropalati, 11.
10893 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10898 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10901 \begin_layout Plain Layout
10909 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10912 \begin_layout Plain Layout
10920 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10923 \begin_layout Plain Layout
10929 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10932 \begin_layout Plain Layout
10940 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10943 \begin_layout Plain Layout
10951 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10954 \begin_layout Plain Layout
10960 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10963 \begin_layout Plain Layout
10971 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10974 \begin_layout Plain Layout
10982 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10985 \begin_layout Plain Layout
10991 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10994 \begin_layout Plain Layout
11002 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11005 \begin_layout Plain Layout
11013 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11016 \begin_layout Plain Layout
11022 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11025 \begin_layout Plain Layout
11033 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11036 \begin_layout Plain Layout
11044 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11047 \begin_layout Plain Layout
11053 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11056 \begin_layout Plain Layout
11064 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11067 \begin_layout Plain Layout
11075 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11078 \begin_layout Plain Layout
11084 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11087 \begin_layout Plain Layout
11095 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11098 \begin_layout Plain Layout
11106 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11109 \begin_layout Plain Layout
11115 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11118 \begin_layout Plain Layout
11126 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11129 \begin_layout Plain Layout
11137 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11140 \begin_layout Plain Layout
11146 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11149 \begin_layout Plain Layout
11163 \begin_layout Section
11164 Multiple Lines Columns and Rows
11167 \begin_layout Subsection
11168 Multiple Lines in Table Cells
11169 \begin_inset CommandInset label
11171 name "sub:Multiple-Lines-in"
11176 \begin_inset Index idx
11179 \begin_layout Plain Layout
11180 Multiple Lines in Table Cells
11186 \begin_inset Index idx
11189 \begin_layout Plain Layout
11198 \begin_layout Standard
11200 \begin_inset Float table
11206 \begin_layout Plain Layout
11207 \begin_inset Caption
11209 \begin_layout Plain Layout
11210 \begin_inset CommandInset label
11212 name "tab:Table-with-multiple"
11216 Table with multiple lines in cells
11224 \begin_layout Plain Layout
11226 \begin_inset Tabular
11227 <lyxtabular version="3" rows="3" columns="3">
11228 <features tabularvalignment="middle">
11229 <column alignment="center" valignment="middle" width="2.5cm">
11230 <column alignment="center" valignment="middle" width="0">
11231 <column alignment="center" valignment="middle" width="0">
11233 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11236 \begin_layout Plain Layout
11238 \begin_inset Newline linebreak
11246 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11249 \begin_layout Plain Layout
11255 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11258 \begin_layout Plain Layout
11266 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11269 \begin_layout Plain Layout
11275 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11278 \begin_layout Plain Layout
11284 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11287 \begin_layout Plain Layout
11295 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11298 \begin_layout Plain Layout
11304 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11307 \begin_layout Plain Layout
11313 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11316 \begin_layout Plain Layout
11335 \begin_layout Standard
11336 Setting a fixed width for a column enables you to enter text as a paragraph
11337 with multiple lines and hyphenation.
11340 \begin_layout Standard
11342 \begin_inset space ~
11346 \begin_inset CommandInset ref
11348 reference "tab:Table-with-multiple"
11352 , create a 3×3 table, mark the first cell and right-click on it.
11353 In the appearing table dialog we set a cell width of 2.5
11354 \begin_inset space \thinspace{}
11357 cm and choose centered for the vertical and horizontal alignment.
11358 The vertical alignment is used for all cells of the row.
11359 As our text is smaller than 2.5
11360 \begin_inset space \thinspace{}
11363 cm, only one line will appear.
11364 To get two lines, a justified line break (shortcut
11367 arg "newline-insert linebreak"
11371 If the text is wider than the set cell width, it will automatically be
11372 broken to several lines.
11375 \begin_layout Standard
11376 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11377 by LaTeX if it is the first entry.
11378 Therefore you need to insert something to prevent the word not being the
11380 So add a horizontal space of 0
11381 \begin_inset space \thinspace{}
11384 pt before the word.
11385 As the space is zero, it doesn't change the output.
11387 \begin_inset space ~
11391 \begin_inset CommandInset ref
11393 reference "tab:Table-with-and"
11400 \begin_layout Standard
11401 \begin_inset Float table
11407 \begin_layout Plain Layout
11408 \begin_inset Caption
11410 \begin_layout Plain Layout
11411 \begin_inset CommandInset label
11413 name "tab:Table-with-and"
11417 Table with and without hyphenation
11425 \begin_layout Plain Layout
11426 \begin_inset space \hfill{}
11430 \begin_inset Tabular
11431 <lyxtabular version="3" rows="3" columns="3">
11432 <features tabularvalignment="middle">
11433 <column alignment="center" valignment="middle" width="2.5cm">
11434 <column alignment="center" valignment="middle" width="0">
11435 <column alignment="center" valignment="middle" width="0">
11437 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11440 \begin_layout Plain Layout
11441 verylongtablecellword
11446 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11449 \begin_layout Plain Layout
11455 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11458 \begin_layout Plain Layout
11466 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11469 \begin_layout Plain Layout
11475 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11478 \begin_layout Plain Layout
11484 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11487 \begin_layout Plain Layout
11495 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11498 \begin_layout Plain Layout
11504 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11507 \begin_layout Plain Layout
11513 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11516 \begin_layout Plain Layout
11528 \begin_inset space \hfill{}
11532 \begin_inset Tabular
11533 <lyxtabular version="3" rows="3" columns="3">
11534 <features tabularvalignment="middle">
11535 <column alignment="center" valignment="middle" width="2.5cm">
11536 <column alignment="center" valignment="middle" width="0">
11537 <column alignment="center" valignment="middle" width="0">
11539 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11542 \begin_layout Plain Layout
11543 \begin_inset space \hspace{}
11547 verylongtablecellword
11552 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11555 \begin_layout Plain Layout
11561 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11564 \begin_layout Plain Layout
11572 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11575 \begin_layout Plain Layout
11581 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11584 \begin_layout Plain Layout
11590 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11593 \begin_layout Plain Layout
11601 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11604 \begin_layout Plain Layout
11610 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11613 \begin_layout Plain Layout
11619 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11622 \begin_layout Plain Layout
11634 \begin_inset space \hfill{}
11645 \begin_layout Subsection
11647 \begin_inset CommandInset label
11649 name "sub:Multicolumns"
11654 \begin_inset Index idx
11657 \begin_layout Plain Layout
11664 \begin_inset Index idx
11667 \begin_layout Plain Layout
11668 Table ! Multicolumns
11676 \begin_layout Subsubsection
11680 \begin_layout Standard
11681 To merge cells over multiple columns, select as many cells within a row
11682 as you want to merge and use either the table-toolbar button
11683 \begin_inset Graphics
11684 filename ../images/tabular-feature_multicolumn.png
11686 scaleBeforeRotation
11692 Edit\SpecialChar \menuseparator
11693 Table\SpecialChar \menuseparator
11696 , or right click on the marked cells and choose
11700 in the context menu.
11703 \begin_layout Standard
11704 Multicolumns have there own cell settings.
11705 That means changing cell borders, cell alignment, and the width only affects
11707 Here is an example table with a multicolumn cell in the first row and one
11708 in the last row without the upper border:
11711 \begin_layout Standard
11713 \begin_inset Tabular
11714 <lyxtabular version="3" rows="3" columns="4">
11715 <features firstHeadTopDL="true" firstHeadBottomDL="true" tabularvalignment="middle">
11716 <column alignment="center" valignment="top" width="0pt">
11717 <column alignment="center" valignment="middle" width="0">
11718 <column alignment="center" valignment="top" width="0in">
11719 <column alignment="center" valignment="top" width="0pt">
11721 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11724 \begin_layout Plain Layout
11730 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11733 \begin_layout Plain Layout
11739 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11742 \begin_layout Plain Layout
11748 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11751 \begin_layout Plain Layout
11759 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11762 \begin_layout Plain Layout
11777 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11780 \begin_layout Plain Layout
11786 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11789 \begin_layout Plain Layout
11795 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11798 \begin_layout Plain Layout
11806 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11809 \begin_layout Plain Layout
11815 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11818 \begin_layout Plain Layout
11824 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11827 \begin_layout Plain Layout
11833 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11836 \begin_layout Plain Layout
11850 \begin_layout Subsubsection
11851 Multicolumn Calculations
11852 \begin_inset CommandInset label
11854 name "sub:Multicolumn-Calculations"
11859 \begin_inset Index idx
11862 \begin_layout Plain Layout
11863 Multicolumns ! Calculations
11871 \begin_layout Standard
11872 LyX supports multicolumns directly, but we have to take account of the cell
11873 width of the columns spanned by the multicolumn cell.
11876 \begin_layout Standard
11877 \begin_inset Float table
11883 \begin_layout Plain Layout
11884 \begin_inset Caption
11886 \begin_layout Plain Layout
11887 \begin_inset CommandInset label
11889 name "tab:Table-with-centered"
11893 Table with centered multicolumn text above two columns that have exactly
11894 half the width of the multicolumn cell
11895 \begin_inset Argument
11898 \begin_layout Plain Layout
11899 Perfect multicolumn table
11912 \begin_layout Plain Layout
11914 \begin_inset Tabular
11915 <lyxtabular version="3" rows="3" columns="3">
11916 <features tabularvalignment="middle">
11917 <column alignment="center" valignment="middle" width="0" special=">{\centering}m{1.25cm-6.2pt}">
11918 <column alignment="center" valignment="middle" width="0">
11919 <column alignment="center" valignment="top" width="0">
11921 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11924 \begin_layout Plain Layout
11925 multiple lines multicolumn
11930 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11933 \begin_layout Plain Layout
11939 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11942 \begin_layout Plain Layout
11950 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11953 \begin_layout Plain Layout
11959 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11962 \begin_layout Plain Layout
11968 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11971 \begin_layout Plain Layout
11979 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11982 \begin_layout Plain Layout
11988 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11991 \begin_layout Plain Layout
11997 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12000 \begin_layout Plain Layout
12019 \begin_layout Standard
12020 To create for example Table
12021 \begin_inset space ~
12025 \begin_inset CommandInset ref
12027 reference "tab:Table-with-centered"
12031 , mark the first two cells in the first row of a 3×3 table and right-click
12033 Now choose for this cell
12042 \begin_inset space \thinspace{}
12045 cm in the table dialog.
12046 The merged columns should have exactly half the width of the multicolumn
12047 cell, so that you would set a width of 1.25
12048 \begin_inset space \thinspace{}
12051 cm for the first column.
12052 The second column has then automatically a width of 1.25
12053 \begin_inset space \thinspace{}
12056 cm (multicolumn width - width of first column).
12057 This was done for Table
12058 \begin_inset space ~
12062 \begin_inset CommandInset ref
12064 reference "tab:Table-without-half"
12071 \begin_layout Standard
12072 \begin_inset Float table
12077 \begin_layout Plain Layout
12078 \begin_inset Caption
12080 \begin_layout Plain Layout
12081 \begin_inset CommandInset label
12083 name "tab:Table-without-half"
12087 Table where the spanned table columns are not exactly half the width of
12088 the multicolumn cell
12089 \begin_inset Argument
12092 \begin_layout Plain Layout
12093 Imperfect multicolumn table
12106 \begin_layout Plain Layout
12108 \begin_inset Tabular
12109 <lyxtabular version="3" rows="3" columns="3">
12110 <features tabularvalignment="middle">
12111 <column alignment="center" valignment="top" width="1.25cm">
12112 <column alignment="center" valignment="top" width="0">
12113 <column alignment="center" valignment="top" width="0">
12115 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
12118 \begin_layout Plain Layout
12119 multiple lines multicolumn
12124 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12127 \begin_layout Plain Layout
12133 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12136 \begin_layout Plain Layout
12144 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12147 \begin_layout Plain Layout
12153 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12156 \begin_layout Plain Layout
12162 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12165 \begin_layout Plain Layout
12173 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12176 \begin_layout Plain Layout
12182 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12185 \begin_layout Plain Layout
12191 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12194 \begin_layout Plain Layout
12213 \begin_layout Standard
12214 You can see that the first column is not half the width of the multicolumn
12215 cell, it is a bit bigger.
12216 The reason is that the specified width of a cell
12217 \begin_inset Formula $W_{g}$
12220 is not its total width
12221 \begin_inset Formula $W_{\mathrm{tot}}$
12224 because a cell is always a bit larger than specified.
12226 \begin_inset space ~
12230 \begin_inset CommandInset ref
12232 reference "cha:Explanation-of-Equation"
12236 explains this in detail.
12239 \begin_layout Standard
12241 \begin_inset Formula $W_{g\, n}$
12244 which the user needs to set when
12248 columns are spanned can be calculated, so that each column has a total
12250 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
12254 \begin_inset Formula
12256 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}
12264 \begin_layout Standard
12265 In our case we have
12266 \begin_inset Formula $n=2$
12270 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
12273 cm and the default values for the lengths, so that equation
12274 \begin_inset CommandInset ref
12281 \begin_inset Formula
12283 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}
12291 \begin_layout Standard
12292 To enable calculations in LaTeX, the LaTeX-package
12296 must be loaded with the document preamble line
12297 \begin_inset Index idx
12300 \begin_layout Plain Layout
12301 LaTeX-packages ! calc
12309 \begin_layout Standard
12317 \begin_layout Standard
12318 LyX does not allow you to calculate lengths in the
12322 field of the table dialog.
12323 Therefore you have to format the column by inserting a LaTeX-argument in
12325 Here is an overview about the arguments:
12328 \begin_layout Itemize
12333 creates cell with a fixed width, its text is vertically top-aligned
12336 \begin_layout Itemize
12341 creates cell with a fixed width, its text is vertically centered
12344 \begin_layout Itemize
12349 creates cell with a fixed width, its text is vertically bottom-aligned
12352 \begin_layout Standard
12353 By entering a LaTeX-argument, all cell settings set in the table dialog
12357 \begin_layout Standard
12358 \begin_inset Note Greyedout
12361 \begin_layout Plain Layout
12366 Due to a bug, LyX shows the overwritten settings anyway.
12374 \begin_layout Standard
12375 As the text should be horizontally centered, the command
12382 You can now enter the following LaTeX-argument for the first spanned column:
12385 \begin_layout Standard
12390 centering}m{1.25cm-6.2pt}
12393 \begin_layout Standard
12398 means, that the commands inside the braces are applied before the cell
12402 \begin_layout Standard
12403 Although we have chosen centered alignment for the text of the multicolumn
12404 cell, it is still left aligned.
12405 This is because LyX only applies the alignment to single columns.
12406 So for the multicolumn cell we have to use the LaTeX-argument
12409 \begin_layout Standard
12417 \begin_layout Subsection
12419 \begin_inset CommandInset label
12421 name "sub:Multirows"
12426 \begin_inset Index idx
12429 \begin_layout Plain Layout
12436 \begin_inset Index idx
12439 \begin_layout Plain Layout
12448 \begin_layout Standard
12449 To merge cells over multiple rows, select as many cells within a column
12450 as you want to merge and use either the table-toolbar button
12451 \begin_inset Graphics
12452 filename ../images/tabular-feature_multirow.png
12454 scaleBeforeRotation
12460 Edit\SpecialChar \menuseparator
12461 Table\SpecialChar \menuseparator
12464 , or right click on the marked cells and choose
12468 in the context menu.
12471 \begin_layout Standard
12472 Here is an example table with a multirow in the first column:
12475 \begin_layout Standard
12477 \begin_inset Tabular
12478 <lyxtabular version="3" rows="3" columns="3">
12479 <features tabularvalignment="middle">
12480 <column alignment="center" valignment="top" width="0pt">
12481 <column alignment="center" valignment="top" width="0">
12482 <column alignment="center" valignment="top" width="0">
12484 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12487 \begin_layout Plain Layout
12493 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12496 \begin_layout Plain Layout
12502 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12505 \begin_layout Plain Layout
12513 <cell multirow="3" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12516 \begin_layout Plain Layout
12522 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12525 \begin_layout Plain Layout
12531 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12534 \begin_layout Plain Layout
12542 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12545 \begin_layout Plain Layout
12551 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12554 \begin_layout Plain Layout
12560 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12563 \begin_layout Plain Layout
12577 \begin_layout Standard
12578 The width of multirow cells is set by setting the width and alignment for
12584 shifts the content of the multirow up/down if the offset is positive/negative.
12587 \begin_layout Standard
12588 If the column of a multirow cell has no explicit width, the multirow cell
12589 inherits the alignment of the column.
12590 Otherwise it is by default left-aligned.
12591 To override the default, renew the command
12600 \begin_layout Standard
12612 \begin_layout Standard
12613 in the document preamble.
12614 Then all entries of multirow cells in the document are centered.
12615 If centering is only needed for several tables, you can renew the command
12616 in a TeX-Code box just before the table instead of the preamble.
12617 If the text should be right-aligned, replace
12630 To return to left-alignment
12639 \begin_layout Standard
12640 This is an example table with a right-aligned multirow cell that has a vertical
12642 \begin_inset space \thinspace{}
12646 \begin_inset space \thinspace{}
12652 \begin_layout Standard
12658 \begin_layout Plain Layout
12672 \begin_inset Tabular
12673 <lyxtabular version="3" rows="4" columns="3">
12674 <features tabularvalignment="middle">
12675 <column alignment="center" valignment="top" width="3cm">
12676 <column alignment="center" valignment="top" width="0">
12677 <column alignment="center" valignment="top" width="0">
12679 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12682 \begin_layout Plain Layout
12688 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12691 \begin_layout Plain Layout
12697 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12700 \begin_layout Plain Layout
12708 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12711 \begin_layout Plain Layout
12717 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12720 \begin_layout Plain Layout
12726 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12729 \begin_layout Plain Layout
12737 <cell multirow="3" mroffset="-4mm" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12740 \begin_layout Plain Layout
12746 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12749 \begin_layout Plain Layout
12755 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12758 \begin_layout Plain Layout
12766 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12769 \begin_layout Plain Layout
12775 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12778 \begin_layout Plain Layout
12784 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12787 \begin_layout Plain Layout
12802 \begin_layout Plain Layout
12818 \begin_layout Section
12820 \begin_inset CommandInset label
12822 name "sec:Formal-Tables"
12827 \begin_inset Index idx
12830 \begin_layout Plain Layout
12839 \begin_layout Standard
12840 Tables are often typeset in books similar to Table
12841 \begin_inset space ~
12845 \begin_inset CommandInset ref
12847 reference "tab:Example-booktabs-table"
12852 This kind of tables is called
12853 \begin_inset Quotes eld
12861 \begin_inset Quotes erd
12865 To make a table a formal table use the option
12873 tab of the table dialog.
12876 \begin_layout Standard
12877 \begin_inset Float table
12883 \begin_layout Plain Layout
12884 \begin_inset Caption
12886 \begin_layout Plain Layout
12887 \begin_inset CommandInset label
12889 name "tab:Example-booktabs-table"
12893 Example booktabs-table
12901 \begin_layout Plain Layout
12903 \begin_inset Tabular
12904 <lyxtabular version="3" rows="8" columns="4">
12905 <features booktabs="true" tabularvalignment="middle">
12906 <column alignment="center" valignment="top" width="0">
12907 <column alignment="center" valignment="top" width="0">
12908 <column alignment="center" valignment="top" width="0">
12909 <column alignment="center" valignment="top" width="0">
12911 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12914 \begin_layout Plain Layout
12920 <cell alignment="center" valignment="top" topline="true" usebox="none">
12923 \begin_layout Plain Layout
12925 \begin_inset space \thinspace{}
12933 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
12936 \begin_layout Plain Layout
12938 \begin_inset space \thinspace{}
12946 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12949 \begin_layout Plain Layout
12957 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12960 \begin_layout Plain Layout
12964 \begin_layout Plain Layout
12977 \begin_layout Plain Layout
12986 Detector thickness in µm
12991 <cell alignment="center" valignment="top" usebox="none">
12994 \begin_layout Plain Layout
13000 <cell alignment="center" valignment="top" usebox="none">
13003 \begin_layout Plain Layout
13009 <cell alignment="center" valignment="top" usebox="none">
13012 \begin_layout Plain Layout
13020 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13023 \begin_layout Plain Layout
13029 <cell alignment="center" valignment="top" topline="true" usebox="none">
13032 \begin_layout Plain Layout
13038 <cell alignment="center" valignment="top" topline="true" usebox="none">
13041 \begin_layout Plain Layout
13047 <cell alignment="center" valignment="top" topline="true" usebox="none">
13050 \begin_layout Plain Layout
13057 <row topspace="default">
13058 <cell alignment="center" valignment="top" rightline="true" usebox="none">
13061 \begin_layout Plain Layout
13062 Spatial resolution in µm
13067 <cell alignment="center" valignment="top" usebox="none">
13070 \begin_layout Plain Layout
13076 <cell alignment="center" valignment="top" usebox="none">
13079 \begin_layout Plain Layout
13085 <cell alignment="center" valignment="top" usebox="none">
13088 \begin_layout Plain Layout
13095 <row topspace="default">
13096 <cell alignment="center" valignment="top" rightline="true" usebox="none">
13099 \begin_layout Plain Layout
13101 \begin_inset Formula $f_{\mathrm{max}}$
13109 <cell alignment="center" valignment="top" usebox="none">
13112 \begin_layout Plain Layout
13118 <cell alignment="center" valignment="top" usebox="none">
13121 \begin_layout Plain Layout
13127 <cell alignment="center" valignment="top" usebox="none">
13130 \begin_layout Plain Layout
13137 <row topspace="default">
13138 <cell alignment="center" valignment="top" rightline="true" usebox="none">
13141 \begin_layout Plain Layout
13145 \begin_layout Plain Layout
13149 cmidrule(l{10pt}){1-1}
13154 LSF-spatial resolution
13159 <cell alignment="center" valignment="top" usebox="none">
13162 \begin_layout Plain Layout
13168 <cell alignment="center" valignment="top" usebox="none">
13171 \begin_layout Plain Layout
13177 <cell alignment="center" valignment="top" usebox="none">
13180 \begin_layout Plain Layout
13188 <cell alignment="center" valignment="top" rightline="true" usebox="none">
13191 \begin_layout Plain Layout
13197 <cell alignment="center" valignment="top" usebox="none">
13200 \begin_layout Plain Layout
13206 <cell alignment="center" valignment="top" usebox="none">
13209 \begin_layout Plain Layout
13215 <cell alignment="center" valignment="top" usebox="none">
13218 \begin_layout Plain Layout
13226 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
13229 \begin_layout Plain Layout
13235 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13238 \begin_layout Plain Layout
13244 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13247 \begin_layout Plain Layout
13253 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13256 \begin_layout Plain Layout
13275 \begin_layout Standard
13276 Spaces to table rows can be added using the
13280 tab of the table dialog as described in section
13281 \begin_inset space ~
13285 \begin_inset CommandInset ref
13287 reference "sub:Row-Spacing"
13294 \begin_layout Standard
13295 Unlike normal tables, formal tables have no vertical table lines.
13296 The horizontal table lines can be set as for normal tables but they appear
13297 with different widths in the output:
13298 \begin_inset Newline newline
13301 The first and the last table line have a default width of 0.08
13302 \begin_inset space \thinspace{}
13305 em while the other lines have a default width of 0.05
13306 \begin_inset space \thinspace{}
13312 \begin_layout Standard
13313 The default widths can be changed with the following preamble lines
13316 \begin_layout Standard
13326 \begin_inset Newline newline
13338 \begin_layout Standard
13339 This example is for the first line, the so called
13344 If you want to change the width for the last line, replace
13353 To change the width for the other lines replace
13362 You can use all units listed in appendix
13363 \begin_inset space ~
13367 \begin_inset CommandInset ref
13369 reference "cha:Units-available-in"
13376 \begin_layout Standard
13377 Lines that do not span all table columns can be created by setting a table
13378 line for multicolumn cells.
13379 LyX will then internally use the command
13385 to create this line.
13389 \begin_layout Standard
13394 cmidrule[width](trim){startcol-endcol}
13397 \begin_layout Standard
13404 are currently not supported by LyX so you have to use TeX-Code to be able
13412 s can manually be created by inserting the command as TeX-Code as the first
13413 cell entry of the first cell of a row.
13414 The line is then drawn in the output above the current row.
13417 \begin_layout Standard
13418 The default for the width is 0.03
13419 \begin_inset space \thinspace{}
13423 Startcol is the number of the column where the line starts and endcol the
13424 column number where the line ends.
13425 The endcol always needs to be specified, also when the line should span
13427 The optional parameter trim could be either
13435 where the trimwidth is also optional.
13436 Using for example the parameter
13440 means that the line is trimmed from its left end by 2
13441 \begin_inset space \thinspace{}
13445 If you don't specify the trimwidth the lines are trimmed by the default
13447 \begin_inset space \thinspace{}
13453 \begin_layout Standard
13454 \begin_inset VSpace bigskip
13458 \begin_inset space ~
13462 \begin_inset CommandInset ref
13464 reference "tab:Example-booktabs-table"
13468 was created using the commands
13471 \begin_layout Standard
13481 \begin_layout Standard
13482 at the beginning of the second row and
13485 \begin_layout Standard
13490 cmidrule(l{10pt}){1-1}
13493 \begin_layout Standard
13497 \begin_layout Standard
13498 \begin_inset VSpace bigskip
13504 \begin_layout Standard
13505 You might want to have overlapping
13512 \begin_inset space ~
13516 \begin_inset CommandInset ref
13518 reference "tab:Special-booktabs-table"
13523 This can be achieved with the TeX-Code command
13526 \begin_layout Standard
13534 \begin_layout Standard
13535 The command that was used for the second row of Table
13536 \begin_inset space ~
13540 \begin_inset CommandInset ref
13542 reference "tab:Special-booktabs-table"
13549 \begin_layout Standard
13563 \begin_layout Standard
13564 The command for the sixth row is
13567 \begin_layout Standard
13579 \begin_layout Standard
13580 \begin_inset VSpace bigskip
13586 \begin_layout Standard
13587 If you are anyway not satisfied with the border line spacing, you can use
13588 the following command to produce lines that span over all table columns
13593 \begin_layout Standard
13598 specialrule{width}{space above}{space below}
13601 \begin_layout Standard
13602 For more information about these features, refer to the manual of the LaTeX-pack
13608 \begin_inset CommandInset citation
13615 \begin_inset Index idx
13618 \begin_layout Plain Layout
13619 LaTeX-packages ! booktabs
13627 \begin_layout Standard
13628 \begin_inset Float table
13634 \begin_layout Plain Layout
13635 \begin_inset Caption
13637 \begin_layout Plain Layout
13638 \begin_inset CommandInset label
13640 name "tab:Special-booktabs-table"
13644 Special booktabs-table
13652 \begin_layout Plain Layout
13654 \begin_inset Tabular
13655 <lyxtabular version="3" rows="8" columns="4">
13656 <features booktabs="true" tabularvalignment="middle">
13657 <column alignment="center" valignment="top" width="0">
13658 <column alignment="center" valignment="top" width="0">
13659 <column alignment="center" valignment="top" width="0">
13660 <column alignment="center" valignment="top" width="0">
13662 <cell alignment="center" valignment="top" topline="true" usebox="none">
13665 \begin_layout Plain Layout
13671 <cell alignment="center" valignment="top" topline="true" usebox="none">
13674 \begin_layout Plain Layout
13676 \begin_inset space \thinspace{}
13684 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
13687 \begin_layout Plain Layout
13689 \begin_inset space \thinspace{}
13697 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13700 \begin_layout Plain Layout
13708 <cell alignment="center" valignment="top" usebox="none">
13711 \begin_layout Plain Layout
13715 \begin_layout Plain Layout
13728 \begin_layout Plain Layout
13741 \begin_layout Plain Layout
13754 \begin_layout Plain Layout
13763 Detector thickness in µm
13768 <cell alignment="center" valignment="top" usebox="none">
13771 \begin_layout Plain Layout
13777 <cell alignment="center" valignment="top" usebox="none">
13780 \begin_layout Plain Layout
13786 <cell alignment="center" valignment="top" usebox="none">
13789 \begin_layout Plain Layout
13797 <cell alignment="center" valignment="top" topline="true" usebox="none">
13800 \begin_layout Plain Layout
13806 <cell alignment="center" valignment="top" topline="true" usebox="none">
13809 \begin_layout Plain Layout
13815 <cell alignment="center" valignment="top" topline="true" usebox="none">
13818 \begin_layout Plain Layout
13824 <cell alignment="center" valignment="top" topline="true" usebox="none">
13827 \begin_layout Plain Layout
13834 <row topspace="default">
13835 <cell alignment="center" valignment="top" usebox="none">
13838 \begin_layout Plain Layout
13839 Spatial resolution in µm
13844 <cell alignment="center" valignment="top" usebox="none">
13847 \begin_layout Plain Layout
13853 <cell alignment="center" valignment="top" usebox="none">
13856 \begin_layout Plain Layout
13862 <cell alignment="center" valignment="top" usebox="none">
13865 \begin_layout Plain Layout
13872 <row topspace="default">
13873 <cell alignment="center" valignment="top" usebox="none">
13876 \begin_layout Plain Layout
13878 \begin_inset Formula $f_{\mathrm{max}}$
13886 <cell alignment="center" valignment="top" usebox="none">
13889 \begin_layout Plain Layout
13895 <cell alignment="center" valignment="top" usebox="none">
13898 \begin_layout Plain Layout
13904 <cell alignment="center" valignment="top" usebox="none">
13907 \begin_layout Plain Layout
13915 <cell alignment="center" valignment="top" topline="true" usebox="none">
13918 \begin_layout Plain Layout
13922 \begin_layout Plain Layout
13935 \begin_layout Plain Layout
13944 LSF-spatial resolution
13949 <cell alignment="center" valignment="top" topline="true" usebox="none">
13952 \begin_layout Plain Layout
13958 <cell alignment="center" valignment="top" topline="true" usebox="none">
13961 \begin_layout Plain Layout
13967 <cell alignment="center" valignment="top" topline="true" usebox="none">
13970 \begin_layout Plain Layout
13978 <cell alignment="center" valignment="top" usebox="none">
13981 \begin_layout Plain Layout
13987 <cell alignment="center" valignment="top" usebox="none">
13990 \begin_layout Plain Layout
13996 <cell alignment="center" valignment="top" usebox="none">
13999 \begin_layout Plain Layout
14005 <cell alignment="center" valignment="top" usebox="none">
14008 \begin_layout Plain Layout
14016 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
14019 \begin_layout Plain Layout
14025 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
14028 \begin_layout Plain Layout
14034 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
14037 \begin_layout Plain Layout
14043 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
14046 \begin_layout Plain Layout
14065 \begin_layout Section
14066 Vertical Table Alignment
14067 \begin_inset Index idx
14070 \begin_layout Plain Layout
14079 \begin_layout Standard
14080 To align tables vertically in a text line the table must be inside a box.
14081 The box can then be vertically aligned as described in section
14082 \begin_inset space ~
14086 \begin_inset CommandInset ref
14088 reference "sec:Box-Dialog"
14095 \begin_layout Standard
14096 In the following example the tables are inside a minipage
14100 \begin_layout Plain Layout
14101 Minipages are described in section
14102 \begin_inset space ~
14106 \begin_inset CommandInset ref
14108 reference "sec:Minipages"
14117 box that has a width of 15
14118 \begin_inset space \thinspace{}
14124 \begin_layout Itemize
14126 \begin_inset Box Frameless
14136 height_special "totalheight"
14139 \begin_layout Plain Layout
14140 \begin_inset Tabular
14141 <lyxtabular version="3" rows="3" columns="3">
14142 <features tabularvalignment="middle">
14143 <column alignment="center" valignment="top" width="0">
14144 <column alignment="center" valignment="top" width="0">
14145 <column alignment="center" valignment="top" width="0">
14147 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14150 \begin_layout Plain Layout
14156 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14159 \begin_layout Plain Layout
14165 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14168 \begin_layout Plain Layout
14176 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14179 \begin_layout Plain Layout
14185 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14188 \begin_layout Plain Layout
14194 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14197 \begin_layout Plain Layout
14205 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14208 \begin_layout Plain Layout
14214 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14217 \begin_layout Plain Layout
14223 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14226 \begin_layout Plain Layout
14246 \begin_layout Plain Layout
14258 \begin_inset Box Frameless
14268 height_special "totalheight"
14271 \begin_layout Plain Layout
14272 \begin_inset Tabular
14273 <lyxtabular version="3" rows="3" columns="3">
14274 <features tabularvalignment="middle">
14275 <column alignment="center" valignment="top" width="0">
14276 <column alignment="center" valignment="top" width="0">
14277 <column alignment="center" valignment="top" width="0">
14279 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14282 \begin_layout Plain Layout
14288 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14291 \begin_layout Plain Layout
14297 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14300 \begin_layout Plain Layout
14308 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14311 \begin_layout Plain Layout
14317 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14320 \begin_layout Plain Layout
14326 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14329 \begin_layout Plain Layout
14337 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14340 \begin_layout Plain Layout
14346 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14349 \begin_layout Plain Layout
14355 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14358 \begin_layout Plain Layout
14378 \begin_layout Plain Layout
14388 \begin_layout Itemize
14390 \begin_inset Box Frameless
14400 height_special "totalheight"
14403 \begin_layout Plain Layout
14404 \begin_inset Tabular
14405 <lyxtabular version="3" rows="3" columns="3">
14406 <features tabularvalignment="middle">
14407 <column alignment="center" valignment="top" width="0">
14408 <column alignment="center" valignment="top" width="0">
14409 <column alignment="center" valignment="top" width="0">
14411 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14414 \begin_layout Plain Layout
14420 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14423 \begin_layout Plain Layout
14429 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14432 \begin_layout Plain Layout
14440 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14443 \begin_layout Plain Layout
14449 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14452 \begin_layout Plain Layout
14458 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14461 \begin_layout Plain Layout
14469 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14472 \begin_layout Plain Layout
14478 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14481 \begin_layout Plain Layout
14487 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14490 \begin_layout Plain Layout
14509 \begin_layout Itemize
14511 \begin_inset Box Frameless
14521 height_special "totalheight"
14524 \begin_layout Plain Layout
14525 \begin_inset Tabular
14526 <lyxtabular version="3" rows="3" columns="3">
14527 <features tabularvalignment="middle">
14528 <column alignment="center" valignment="top" width="0">
14529 <column alignment="center" valignment="top" width="0">
14530 <column alignment="center" valignment="top" width="0">
14532 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14535 \begin_layout Plain Layout
14541 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14544 \begin_layout Plain Layout
14550 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14553 \begin_layout Plain Layout
14561 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14564 \begin_layout Plain Layout
14570 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14573 \begin_layout Plain Layout
14579 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14582 \begin_layout Plain Layout
14590 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14593 \begin_layout Plain Layout
14599 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14602 \begin_layout Plain Layout
14608 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14611 \begin_layout Plain Layout
14631 \begin_layout Plain Layout
14643 \begin_inset Box Frameless
14653 height_special "totalheight"
14656 \begin_layout Plain Layout
14657 \begin_inset Tabular
14658 <lyxtabular version="3" rows="3" columns="3">
14659 <features tabularvalignment="middle">
14660 <column alignment="center" valignment="top" width="0">
14661 <column alignment="center" valignment="top" width="0">
14662 <column alignment="center" valignment="top" width="0">
14664 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14667 \begin_layout Plain Layout
14673 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14676 \begin_layout Plain Layout
14682 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14685 \begin_layout Plain Layout
14693 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14696 \begin_layout Plain Layout
14702 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14705 \begin_layout Plain Layout
14711 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14714 \begin_layout Plain Layout
14722 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14725 \begin_layout Plain Layout
14731 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14734 \begin_layout Plain Layout
14740 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14743 \begin_layout Plain Layout
14763 \begin_layout Plain Layout
14773 \begin_layout Standard
14774 As you will see, the content of the first and last table row is not correctly
14776 To get this alignment, the minipage box must be set into a raisebox
14780 \begin_layout Plain Layout
14781 Raiseboxes are described in section
14782 \begin_inset space ~
14786 \begin_inset CommandInset ref
14788 reference "sub:Vertical-Alignment"
14798 In the example above the second table in the first item is aligned using
14799 the TeX-Code-command
14802 \begin_layout Standard
14812 \begin_layout Standard
14814 After the box the closing brace
14818 is inserted as TeX-Code.
14819 For the second table in the last item the command
14822 \begin_layout Standard
14832 \begin_layout Standard
14836 \begin_layout Standard
14837 \begin_inset Note Greyedout
14840 \begin_layout Plain Layout
14845 The alignment of the table row content to the surrounding text line is
14847 The required value for the
14853 command for this alignment depends on the document font, the font size,
14854 and the table line thickness.
14862 \begin_layout Section
14864 \begin_inset CommandInset label
14866 name "sec:Colored-Tables"
14871 \begin_inset Index idx
14874 \begin_layout Plain Layout
14883 \begin_layout Subsection
14885 \begin_inset Index idx
14888 \begin_layout Plain Layout
14889 Table Color ! for Cells
14895 \begin_inset Index idx
14898 \begin_layout Plain Layout
14899 Color ! for Table Cells
14907 \begin_layout Standard
14908 \begin_inset Float table
14914 \begin_layout Plain Layout
14915 \begin_inset Caption
14917 \begin_layout Plain Layout
14918 \begin_inset CommandInset label
14920 name "tab:Table-colored-without"
14924 Table colored without using the package
14929 \begin_inset Argument
14932 \begin_layout Plain Layout
14933 Table without colortbl
14946 \begin_layout Plain Layout
14948 \begin_inset Tabular
14949 <lyxtabular version="3" rows="3" columns="3">
14950 <features tabularvalignment="middle">
14951 <column alignment="center" valignment="top" width="0">
14952 <column alignment="center" valignment="top" width="0">
14953 <column alignment="center" valignment="top" width="0">
14955 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14958 \begin_layout Plain Layout
14966 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14969 \begin_layout Plain Layout
14977 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14980 \begin_layout Plain Layout
14990 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14993 \begin_layout Plain Layout
15001 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15004 \begin_layout Plain Layout
15012 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15015 \begin_layout Plain Layout
15025 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15028 \begin_layout Plain Layout
15036 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15039 \begin_layout Plain Layout
15047 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
15050 \begin_layout Plain Layout
15071 \begin_layout Standard
15072 If you only need colored text, mark the cells and choose a color in the
15075 Edit\SpecialChar \menuseparator
15077 \begin_inset space ~
15083 This was used to create Table
15084 \begin_inset space ~
15088 \begin_inset CommandInset ref
15090 reference "tab:Table-colored-without"
15095 In any other case you have to use the LaTeX-package
15100 \begin_inset Index idx
15103 \begin_layout Plain Layout
15104 LaTeX-packages ! colortbl
15112 \begin_layout Standard
15116 \begin_layout Plain Layout
15126 \begin_inset Note Note
15129 \begin_layout Plain Layout
15130 The following section part will only be displayed when the LaTeX-package
15143 \begin_layout Standard
15144 To create colored tables,
15148 must be loaded in the preamble with the line
15151 \begin_layout Standard
15156 usepackage{colortbl}
15159 \begin_layout Standard
15160 The color of a column is adjusted with the command
15163 \begin_layout Standard
15168 columncolor{name of color}
15171 \begin_layout Standard
15177 More about the command
15181 is contained in section
15182 \begin_inset space ~
15186 \begin_inset CommandInset ref
15188 reference "sub:Multicolumn-Calculations"
15195 \begin_layout Standard
15196 The following color names are predefined:
15199 \begin_layout Standard
15233 \begin_layout Standard
15234 \begin_inset VSpace medskip
15240 \begin_layout Standard
15241 You can also define your own color with the command
15244 \begin_layout Standard
15249 definecolor{color name}{color model}{color values}
15252 \begin_layout Standard
15253 The color model can be
15256 \begin_layout Labeling
15257 \labelwidthstring 00.00.0000
15258 cmyk: cyan, magenta, yellow, black
15261 \begin_layout Labeling
15262 \labelwidthstring 00.00.0000
15263 rgb: red, green blue
15266 \begin_layout Labeling
15267 \labelwidthstring 00.00.0000
15271 \begin_layout Standard
15272 and the color values are comma separated numbers between 0 and 1 describing
15273 the factor for the corresponding color of the color model.
15276 \begin_layout Standard
15278 \begin_inset space \thinspace{}
15282 \begin_inset space \space{}
15289 " in the preamble with
15292 \begin_layout Standard
15297 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
15300 \begin_layout Standard
15308 \begin_layout Standard
15313 definecolor{lightgray}{gray}{0.8}
15316 \begin_layout Standard
15317 \begin_inset VSpace medskip
15323 \begin_layout Standard
15324 Lines are colored with the command
15327 \begin_layout Standard
15332 rowcolor{name of color}
15335 \begin_layout Standard
15336 and cells are colored with the command
15339 \begin_layout Standard
15344 cellcolor{name of color}
15347 \begin_layout Standard
15348 Both commands are inserted at the beginning of a cell as TeX-Code.
15351 \begin_layout Standard
15352 To color characters in the table, mark the cells and use the LyX menu
15354 Edit\SpecialChar \menuseparator
15356 \begin_inset space ~
15362 If a cell contains TeX-Code mark only the characters, otherwise the colored
15363 TeX-Code will cause LaTeX-errors.
15366 \begin_layout Standard
15367 \begin_inset Note Greyedout
15370 \begin_layout Plain Layout
15375 Not all DVI-viewers are able to display self-defined colors.
15383 \begin_layout Standard
15384 \begin_inset VSpace bigskip
15390 \begin_layout Standard
15392 \begin_inset space ~
15396 \begin_inset CommandInset ref
15398 reference "tab:Table-colored-using"
15402 do the following: The color of the first column should be
15410 \begin_layout Standard
15415 columncolor{darkgreen}
15420 \begin_layout Standard
15421 as LaTeX-argument for this column.
15422 The first row should be blue, therefore the TeX-Code command
15425 \begin_layout Standard
15433 \begin_layout Standard
15434 is inserted to the first cell of this row.
15435 Note that this overwrites the column color for the first cell.
15436 The last cell of the last row is colored magenta by inserting the TeX-Code
15440 \begin_layout Standard
15448 \begin_layout Standard
15449 The characters could now be colored using the menu
15451 Edit\SpecialChar \menuseparator
15453 \begin_inset space ~
15461 \begin_layout Standard
15462 \begin_inset Float table
15468 \begin_layout Plain Layout
15469 \begin_inset Caption
15471 \begin_layout Plain Layout
15472 \begin_inset CommandInset label
15474 name "tab:Table-colored-using"
15478 Table colored using the package
15483 \begin_inset Argument
15486 \begin_layout Plain Layout
15487 Table with colortbl
15500 \begin_layout Plain Layout
15502 \begin_inset Tabular
15503 <lyxtabular version="3" rows="3" columns="3">
15504 <features tabularvalignment="middle">
15505 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
15506 <column alignment="center" valignment="top" width="0">
15507 <column alignment="center" valignment="top" width="0">
15509 <cell alignment="center" valignment="top" usebox="none">
15512 \begin_layout Plain Layout
15516 \begin_layout Plain Layout
15532 <cell alignment="center" valignment="top" usebox="none">
15535 \begin_layout Plain Layout
15543 <cell alignment="center" valignment="top" usebox="none">
15546 \begin_layout Plain Layout
15556 <cell alignment="center" valignment="top" usebox="none">
15559 \begin_layout Plain Layout
15567 <cell alignment="center" valignment="top" usebox="none">
15570 \begin_layout Plain Layout
15578 <cell alignment="center" valignment="top" usebox="none">
15581 \begin_layout Plain Layout
15591 <cell alignment="center" valignment="top" usebox="none">
15594 \begin_layout Plain Layout
15602 <cell alignment="center" valignment="top" usebox="none">
15605 \begin_layout Plain Layout
15613 <cell alignment="center" valignment="top" usebox="none">
15616 \begin_layout Plain Layout
15620 \begin_layout Plain Layout
15649 \begin_layout Standard
15653 \begin_layout Plain Layout
15663 \begin_inset Note Note
15666 \begin_layout Plain Layout
15667 The following will be displayed when the LaTeX-package
15679 \begin_layout Standard
15680 You need to install the package
15684 to see the content of this section in the output.
15687 \begin_layout Standard
15691 \begin_layout Plain Layout
15703 \begin_layout Subsection
15705 \begin_inset Index idx
15708 \begin_layout Plain Layout
15709 Table Color ! for Lines
15715 \begin_inset Index idx
15718 \begin_layout Plain Layout
15719 Color ! for Table Lines
15727 \begin_layout Standard
15728 As described in section
15729 \begin_inset space ~
15733 \begin_inset CommandInset ref
15735 reference "sub:Line-Thickness"
15739 , the line thickness for all lines in a table can be adjusted with the length
15748 \begin_inset space \thinspace{}
15751 pt for all tables of this section.
15755 \begin_layout Plain Layout
15761 arrayrulewidth}{1.5pt}
15769 \begin_layout Standard
15770 To color vertical lines for example with green, create the following column
15771 format in the document preamble, according to the description in section
15772 \begin_inset space ~
15776 \begin_inset CommandInset ref
15778 reference "sub:Customized-Format"
15785 \begin_layout Standard
15790 newcolumntype{W}{!{
15797 \begin_layout Standard
15799 \begin_inset space ~
15803 \begin_inset CommandInset ref
15805 reference "tab:Table-with-vertical-colored"
15813 was used for the last column and
15817 for the other columns.
15820 \begin_layout Standard
15821 If you want to have several colors, define more column formats.
15824 \begin_layout Standard
15825 \begin_inset Float table
15831 \begin_layout Plain Layout
15832 \begin_inset Caption
15834 \begin_layout Plain Layout
15835 \begin_inset CommandInset label
15837 name "tab:Table-with-vertical-colored"
15841 Table with colored vertical lines
15849 \begin_layout Plain Layout
15851 \begin_inset Tabular
15852 <lyxtabular version="3" rows="3" columns="3">
15853 <features tabularvalignment="middle">
15854 <column alignment="center" valignment="top" width="0" special="Wc">
15855 <column alignment="center" valignment="top" width="0" special="Wc">
15856 <column alignment="center" valignment="top" width="0" special="WcW">
15858 <cell alignment="center" valignment="top" topline="true" usebox="none">
15861 \begin_layout Plain Layout
15867 <cell alignment="center" valignment="top" topline="true" usebox="none">
15870 \begin_layout Plain Layout
15876 <cell alignment="center" valignment="top" topline="true" usebox="none">
15879 \begin_layout Plain Layout
15887 <cell alignment="center" valignment="top" topline="true" usebox="none">
15890 \begin_layout Plain Layout
15896 <cell alignment="center" valignment="top" topline="true" usebox="none">
15899 \begin_layout Plain Layout
15905 <cell alignment="center" valignment="top" topline="true" usebox="none">
15908 \begin_layout Plain Layout
15916 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15919 \begin_layout Plain Layout
15925 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15928 \begin_layout Plain Layout
15934 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15937 \begin_layout Plain Layout
15956 \begin_layout Standard
15957 \begin_inset VSpace bigskip
15960 To color horizontal lines for example with red, as in Table
15961 \begin_inset space ~
15965 \begin_inset CommandInset ref
15967 reference "tab:Table-with-horizontal-colored"
15971 , insert these commands in TeX-Code before the table or table float:
15974 \begin_layout Standard
15984 \begin_inset Newline newline
15992 \begin_inset Newline newline
15996 \begin_inset Phantom HPhantom
15999 \begin_layout Plain Layout
16002 \begin_inset space ~
16012 arrayrulecolor{red}
16016 arrayrulecolor{black}}
16019 \begin_layout Standard
16023 \begin_layout Plain Layout
16034 \begin_layout Plain Layout
16043 \begin_layout Plain Layout
16047 arrayrulecolor{red}
16051 arrayrulecolor{black}}
16057 \begin_inset Float table
16063 \begin_layout Plain Layout
16064 \begin_inset Caption
16066 \begin_layout Plain Layout
16067 \begin_inset CommandInset label
16069 name "tab:Table-with-horizontal-colored"
16073 Table with colored horizontal lines
16081 \begin_layout Plain Layout
16083 \begin_inset Tabular
16084 <lyxtabular version="3" rows="3" columns="3">
16085 <features tabularvalignment="middle">
16086 <column alignment="center" valignment="top" width="0">
16087 <column alignment="center" valignment="top" width="0">
16088 <column alignment="center" valignment="top" width="0">
16090 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16093 \begin_layout Plain Layout
16099 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16102 \begin_layout Plain Layout
16108 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16111 \begin_layout Plain Layout
16119 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16122 \begin_layout Plain Layout
16128 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16131 \begin_layout Plain Layout
16137 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16140 \begin_layout Plain Layout
16148 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16151 \begin_layout Plain Layout
16157 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16160 \begin_layout Plain Layout
16166 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16169 \begin_layout Plain Layout
16188 \begin_layout Standard
16189 To return to the default line color black, insert this command in TeX-Code
16190 after the table or table float:
16193 \begin_layout Standard
16205 \begin_layout Standard
16207 \begin_inset space ~
16211 \begin_inset CommandInset ref
16213 reference "tab:Table-with-colored"
16217 is an example with colored vertical and horizontal lines.
16220 \begin_layout Standard
16221 \begin_inset Float table
16227 \begin_layout Plain Layout
16228 \begin_inset Caption
16230 \begin_layout Plain Layout
16231 \begin_inset CommandInset label
16233 name "tab:Table-with-colored"
16237 Table with colored lines
16245 \begin_layout Plain Layout
16247 \begin_inset Tabular
16248 <lyxtabular version="3" rows="3" columns="3">
16249 <features tabularvalignment="middle">
16250 <column alignment="center" valignment="top" width="0" special="Wc">
16251 <column alignment="center" valignment="top" width="0" special="Wc">
16252 <column alignment="center" valignment="top" width="0" special="WcW">
16254 <cell alignment="center" valignment="top" topline="true" usebox="none">
16257 \begin_layout Plain Layout
16263 <cell alignment="center" valignment="top" topline="true" usebox="none">
16266 \begin_layout Plain Layout
16272 <cell alignment="center" valignment="top" topline="true" usebox="none">
16275 \begin_layout Plain Layout
16283 <cell alignment="center" valignment="top" topline="true" usebox="none">
16286 \begin_layout Plain Layout
16292 <cell alignment="center" valignment="top" topline="true" usebox="none">
16295 \begin_layout Plain Layout
16301 <cell alignment="center" valignment="top" topline="true" usebox="none">
16304 \begin_layout Plain Layout
16311 <row topspace="default">
16312 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
16315 \begin_layout Plain Layout
16321 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
16324 \begin_layout Plain Layout
16330 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
16333 \begin_layout Plain Layout
16352 \begin_layout Standard
16356 \begin_layout Plain Layout
16372 \begin_layout Standard
16376 \begin_layout Plain Layout
16382 arrayrulewidth}{0.4pt}
16390 \begin_layout Section
16391 Table Customization
16392 \begin_inset Index idx
16395 \begin_layout Plain Layout
16396 Table Customization
16402 \begin_inset Index idx
16405 \begin_layout Plain Layout
16406 Table ! Customization
16414 \begin_layout Subsection
16416 \begin_inset CommandInset label
16418 name "sub:Row-Spacing"
16423 \begin_inset Index idx
16426 \begin_layout Plain Layout
16427 Table Customization ! Row Spacing
16435 \begin_layout Standard
16436 You can add vertical space to table rows in the
16440 tab of the table dialog.
16441 You find there three possibilities:
16444 \begin_layout Description
16446 \begin_inset space ~
16450 \begin_inset space ~
16453 row will add space above the characters of the table row.
16454 If the table is a formal table
16458 \begin_layout Plain Layout
16459 Formal tables are explained in section
16460 \begin_inset space ~
16464 \begin_inset CommandInset ref
16466 reference "sec:Formal-Tables"
16475 LyX will insert as default 0.5
16476 \begin_inset space \thinspace{}
16480 For normal tables the inserted space will unfortunately destroy the vertical
16481 table lines as in the following table:
16482 \begin_inset VSpace medskip
16486 \begin_inset Newline newline
16490 \begin_inset space \hspace*{}
16495 \begin_inset space \hfill{}
16499 \begin_inset Tabular
16500 <lyxtabular version="3" rows="3" columns="1">
16501 <features tabularvalignment="middle">
16502 <column alignment="center" valignment="top" width="0">
16504 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16507 \begin_layout Plain Layout
16514 <row topspace="3mm">
16515 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16518 \begin_layout Plain Layout
16520 \begin_inset space \thinspace{}
16523 mm space top of row
16530 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16533 \begin_layout Plain Layout
16545 \begin_inset space \hfill{}
16549 \begin_inset space \hspace*{}
16554 \begin_inset VSpace medskip
16558 \begin_inset Newline newline
16561 So inserting space in the top of row for normal tables is only useful when
16562 you don't have vertical lines.
16565 \begin_layout Description
16567 \begin_inset space ~
16571 \begin_inset space ~
16574 row will add space below the characters of the table row.
16575 If the table is a formal table LyX will insert as default 0.5
16576 \begin_inset space \thinspace{}
16579 em space, for normal tables the default size is 2
16580 \begin_inset space \thinspace{}
16586 \begin_layout Description
16588 \begin_inset space ~
16591 rows adds space between the current and the following row.
16592 If the table is a formal table LyX will insert as default 0.5
16593 \begin_inset space \thinspace{}
16597 For normal tables the inserted space will unfortunately destroy the vertical
16598 table lines as in the following table:
16599 \begin_inset VSpace medskip
16603 \begin_inset Newline newline
16607 \begin_inset space \hspace*{}
16612 \begin_inset space \hfill{}
16616 \begin_inset Tabular
16617 <lyxtabular version="3" rows="3" columns="1">
16618 <features tabularvalignment="middle">
16619 <column alignment="center" valignment="top" width="0">
16621 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16624 \begin_layout Plain Layout
16631 <row interlinespace="3mm">
16632 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16635 \begin_layout Plain Layout
16636 \begin_inset Formula $\downarrow$
16640 \begin_inset space \thinspace{}
16643 mm space between row
16644 \begin_inset Formula $\downarrow$
16654 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16657 \begin_layout Plain Layout
16658 \begin_inset Formula $\uparrow$
16662 \begin_inset space \thinspace{}
16665 mm space between row
16666 \begin_inset Formula $\uparrow$
16680 \begin_inset space \hfill{}
16684 \begin_inset space \hspace*{}
16689 \begin_inset VSpace medskip
16693 \begin_inset Newline newline
16696 So inserting space between rows for normal tables is only useful when you
16697 don't have vertical lines.
16700 \begin_layout Standard
16701 \begin_inset VSpace bigskip
16704 When you want to add extra height to all cells of all tables, you can do
16705 this with the following preamble lines:
16708 \begin_layout Standard
16713 @ifundefined{extrarowheight}
16714 \begin_inset Newline newline
16718 \begin_inset Phantom HPhantom
16721 \begin_layout Plain Layout
16724 \begin_inset space ~
16734 usepackage{array}}{}
16735 \begin_inset Newline newline
16742 extrarowheight}{height}
16745 \begin_layout Standard
16746 But this has the disadvantage that the cell texts are no longer exactly
16747 vertically centered.
16752 will be loaded automatically by LyX when you use self defined table formats.
16753 To avoid that it being loaded twice the command
16759 is used in the above command.)
16762 \begin_layout Standard
16763 If you are using font sizes larger than the normal size, the table borders
16764 are often too close to the letters.
16765 This can be corrected by inserting the command
16771 in TeX code at the beginning of a table row.
16773 \begin_inset space ~
16777 \begin_inset CommandInset ref
16779 reference "tab:Vertical-alignment-of"
16783 illustrates the effect.
16786 \begin_layout Standard
16788 \begin_inset Float table
16794 \begin_layout Plain Layout
16795 \begin_inset Caption
16797 \begin_layout Plain Layout
16798 \begin_inset CommandInset label
16800 name "tab:Vertical-alignment-of"
16804 Vertical alignment of text with large font sizes.
16812 \begin_layout Plain Layout
16813 \begin_inset space \hfill{}
16817 \begin_inset Float table
16822 \begin_layout Plain Layout
16823 \begin_inset Caption
16825 \begin_layout Plain Layout
16834 \begin_layout Plain Layout
16837 \begin_inset Tabular
16838 <lyxtabular version="3" rows="6" columns="1">
16839 <features tabularvalignment="middle">
16840 <column alignment="left" valignment="top" width="0">
16842 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16845 \begin_layout Plain Layout
16853 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16856 \begin_layout Plain Layout
16866 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16869 \begin_layout Plain Layout
16879 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16882 \begin_layout Plain Layout
16892 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16895 \begin_layout Plain Layout
16905 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16908 \begin_layout Plain Layout
16927 \begin_inset space \hfill{}
16931 \begin_inset Float table
16936 \begin_layout Plain Layout
16937 \begin_inset Caption
16939 \begin_layout Plain Layout
16940 Table using the command
16954 \begin_layout Plain Layout
16957 \begin_inset Tabular
16958 <lyxtabular version="3" rows="6" columns="1">
16959 <features tabularvalignment="middle">
16960 <column alignment="left" valignment="top" width="0">
16962 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16965 \begin_layout Plain Layout
16973 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16976 \begin_layout Plain Layout
16982 \begin_layout Plain Layout
16998 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17001 \begin_layout Plain Layout
17007 \begin_layout Plain Layout
17023 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17026 \begin_layout Plain Layout
17032 \begin_layout Plain Layout
17048 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17051 \begin_layout Plain Layout
17057 \begin_layout Plain Layout
17073 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17076 \begin_layout Plain Layout
17082 \begin_layout Plain Layout
17109 \begin_inset space \hfill{}
17120 \begin_layout Subsection
17121 Special Cell Alignment
17122 \begin_inset CommandInset label
17124 name "sub:Special-Cell-Alignment"
17129 \begin_inset Index idx
17132 \begin_layout Plain Layout
17133 Table Customization ! Special Cell Alignment
17141 \begin_layout Standard
17142 Sometimes it looks better when the cell entries of a column are aligned
17143 with a special character, e.
17144 \begin_inset space \thinspace{}
17148 \begin_inset space \space{}
17151 with the decimal separator as in Table
17152 \begin_inset space ~
17156 \begin_inset CommandInset ref
17158 reference "tab:Table-cells-align"
17163 This alignment is achieved by setting the cursor into the column and then
17164 either pressing the toolbar button
17165 \begin_inset Graphics
17166 filename ../images/tabular-feature_align-decimal.png
17168 scaleBeforeRotation
17172 or setting the alignment in the table settings to
17175 \begin_inset space ~
17179 \begin_inset space ~
17185 The alignment character can be a character of your choice and is specified
17186 in the table settings.
17189 \begin_layout Standard
17190 \begin_inset Float table
17196 \begin_layout Plain Layout
17197 \begin_inset Caption
17199 \begin_layout Plain Layout
17200 \begin_inset CommandInset label
17202 name "tab:Table-cells-align"
17206 Table cells of a column aligned with the decimal separator.
17214 \begin_layout Plain Layout
17216 \begin_inset Tabular
17217 <lyxtabular version="3" rows="4" columns="1">
17218 <features booktabs="true" tabularvalignment="middle">
17219 <column alignment="decimal" decimal_point="." valignment="top" width="0pt">
17221 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
17224 \begin_layout Plain Layout
17232 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17235 \begin_layout Plain Layout
17243 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
17246 \begin_layout Plain Layout
17254 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
17257 \begin_layout Plain Layout
17276 \begin_layout Standard
17277 \begin_inset Float table
17283 \begin_layout Plain Layout
17284 \begin_inset Caption
17286 \begin_layout Plain Layout
17287 \begin_inset CommandInset label
17289 name "tab:Table-align-operator"
17293 Table cells of a column aligned with the operators.
17301 \begin_layout Plain Layout
17303 \begin_inset Tabular
17304 <lyxtabular version="3" rows="4" columns="2">
17305 <features booktabs="true" tabularvalignment="middle">
17306 <column alignment="right" valignment="top" width="0pt">
17307 <column alignment="left" valignment="top" width="0pt" special="@{}l">
17309 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
17312 \begin_layout Plain Layout
17318 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17321 \begin_layout Plain Layout
17329 <cell alignment="center" valignment="top" usebox="none">
17332 \begin_layout Plain Layout
17333 \begin_inset Formula $12\,+$
17341 <cell alignment="center" valignment="top" usebox="none">
17344 \begin_layout Plain Layout
17345 \begin_inset Formula $\,6$
17355 <cell alignment="center" valignment="top" usebox="none">
17358 \begin_layout Plain Layout
17359 \begin_inset Formula $0\,-$
17367 <cell alignment="center" valignment="top" usebox="none">
17370 \begin_layout Plain Layout
17371 \begin_inset Formula $\,68$
17381 <cell alignment="center" valignment="top" usebox="none">
17384 \begin_layout Plain Layout
17385 \begin_inset Formula $-123\,/$
17393 <cell alignment="center" valignment="top" usebox="none">
17396 \begin_layout Plain Layout
17397 \begin_inset Formula $\,0$
17418 \begin_layout Standard
17419 For alignments at characters in formulas this method does not work because
17420 the field to specify the alignment character does not allow formulas.
17421 In this case one need to use the method from Table
17422 \begin_inset space ~
17426 \begin_inset CommandInset ref
17428 reference "tab:Table-align-operator"
17433 This table was created with a 4×2 table.
17434 The heading is a centered multicolumn.
17435 The first column is right-aligned and contains the first part including
17437 The second column is left aligned and contains the rest.
17438 A small space was added at the beginning of each cell of the second column
17439 to get the space that is usually around operators.
17440 To omit the space that is normally between two table columns, the following
17441 LaTeX-argument was used for the second column:
17444 \begin_layout Standard
17450 \begin_layout Standard
17452 \begin_inset space ~
17456 \begin_inset CommandInset ref
17458 reference "tab:Several-table-cell"
17462 shows some example alignments.
17463 For the alignment with the relation sign, a small space was added like
17464 for the second column of Table
17465 \begin_inset space ~
17469 \begin_inset CommandInset ref
17471 reference "tab:Table-align-operator"
17478 \begin_layout Standard
17479 \begin_inset Float table
17485 \begin_layout Plain Layout
17486 \begin_inset Caption
17488 \begin_layout Plain Layout
17489 \begin_inset CommandInset label
17491 name "tab:Several-table-cell"
17495 Several table cell alignments.
17503 \begin_layout Plain Layout
17505 \begin_inset Tabular
17506 <lyxtabular version="3" rows="4" columns="6">
17507 <features tabularvalignment="middle">
17508 <column alignment="right" valignment="top" width="0">
17509 <column alignment="left" valignment="top" width="0" special="@{}l">
17510 <column alignment="right" valignment="top" width="0">
17511 <column alignment="left" valignment="top" width="0" special="@{}l">
17512 <column alignment="right" valignment="top" width="0">
17513 <column alignment="left" valignment="top" width="0" special="@{}l">
17515 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17518 \begin_layout Plain Layout
17524 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17527 \begin_layout Plain Layout
17533 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17536 \begin_layout Plain Layout
17542 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17545 \begin_layout Plain Layout
17551 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
17554 \begin_layout Plain Layout
17560 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17563 \begin_layout Plain Layout
17571 <cell alignment="center" valignment="top" usebox="none">
17574 \begin_layout Plain Layout
17580 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17583 \begin_layout Plain Layout
17585 \begin_inset space \thinspace{}
17593 <cell alignment="center" valignment="top" usebox="none">
17596 \begin_layout Plain Layout
17597 \begin_inset Formula $10\cdot$
17605 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17608 \begin_layout Plain Layout
17609 \begin_inset Formula $10^{\mbox{-}17}$
17617 <cell alignment="center" valignment="top" usebox="none">
17620 \begin_layout Plain Layout
17621 \begin_inset Formula $\Gamma(t)\propto$
17629 <cell alignment="center" valignment="top" usebox="none">
17632 \begin_layout Plain Layout
17633 \begin_inset Formula $\:\Upsilon(t)$
17643 <cell alignment="center" valignment="top" usebox="none">
17646 \begin_layout Plain Layout
17652 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17655 \begin_layout Plain Layout
17657 \begin_inset space \thinspace{}
17665 <cell alignment="center" valignment="top" usebox="none">
17668 \begin_layout Plain Layout
17669 \begin_inset Formula $5.78\cdot$
17677 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17680 \begin_layout Plain Layout
17681 \begin_inset Formula $10^{7}$
17689 <cell alignment="center" valignment="top" usebox="none">
17692 \begin_layout Plain Layout
17693 \begin_inset Formula $A\ne$
17701 <cell alignment="center" valignment="top" usebox="none">
17704 \begin_layout Plain Layout
17705 \begin_inset Formula $\: B_{\mathrm{red}}$
17715 <cell alignment="center" valignment="top" usebox="none">
17718 \begin_layout Plain Layout
17724 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17727 \begin_layout Plain Layout
17729 \begin_inset space \thinspace{}
17737 <cell alignment="center" valignment="top" usebox="none">
17740 \begin_layout Plain Layout
17742 \begin_inset Formula $33.5\cdot$
17750 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17753 \begin_layout Plain Layout
17754 \begin_inset Formula $10^{4}$
17762 <cell alignment="center" valignment="top" usebox="none">
17765 \begin_layout Plain Layout
17766 \begin_inset Formula $\sin(\alpha)\ge$
17774 <cell alignment="center" valignment="top" usebox="none">
17777 \begin_layout Plain Layout
17778 \begin_inset Formula $\:\sin(\beta)$
17799 \begin_layout Subsection
17800 Customized Cell/Column Format
17801 \begin_inset CommandInset label
17803 name "sub:Customized-Format"
17808 \begin_inset Index idx
17811 \begin_layout Plain Layout
17812 Table Customization ! Cell/Column Format
17820 \begin_layout Standard
17821 Calculating the required width for spanned columns as in section
17822 \begin_inset space ~
17826 \begin_inset CommandInset ref
17828 reference "sub:Multicolumn-Calculations"
17832 is very annoying if you have several tables with multicolumn cells.
17833 To make life easier, you can define a cell/column format in the preamble,
17834 so that it can be used in all tables of the document.
17835 The format is defined with the command
17838 \begin_layout Standard
17843 newcolumntype{name of format}[number of arguments]{commands}
17846 \begin_layout Standard
17847 The format name may only consist of one letter.
17872 are predefined and cannot be used.
17873 But all letters are allowed as capitals.
17876 \begin_layout Standard
17877 \begin_inset VSpace medskip
17883 \begin_layout Standard
17884 For vertically and horizontally centered multicolumn cells with a fixed
17885 width you can define the cell format
17888 \begin_layout Standard
17893 newcolumntype{M}[1]{>{
17900 \begin_layout Standard
17907 avoids the problem of hyphenating the first word, as described in section
17908 \begin_inset space ~
17912 \begin_inset CommandInset ref
17914 reference "sub:Multiple-Lines-in"
17919 Now you can simply enter
17922 \begin_layout Standard
17928 \begin_layout Standard
17929 as LaTeX-argument in the table dialog to create a multicolumn.
17932 \begin_layout Standard
17933 \begin_inset VSpace bigskip
17939 \begin_layout Standard
17940 For cells spanned by a multicolumn cell, you can define the format
17943 \begin_layout Standard
17948 newcolumntype{S}[2]{>{
17953 \begin_inset Newline newline
17957 \begin_inset Phantom HPhantom
17960 \begin_layout Plain Layout
17974 arrayrulewidth)*(1-#2))/#2}}
17977 \begin_layout Standard
17978 This format uses equation
17979 \begin_inset CommandInset ref
17985 to calculate the required width so that each spanned cell has the same
17989 \begin_layout Standard
17993 \begin_layout Standard
17996 S{width of multicolumn cell}{number of spanned columns}
17999 \begin_layout Standard
18000 as LaTeX-argument of the column.
18003 \begin_layout Standard
18004 \begin_inset VSpace bigskip
18010 \begin_layout Standard
18011 For colored columns, you can define
18014 \begin_layout Standard
18019 newcolumntype{K}[1]{>{
18026 \begin_layout Standard
18028 \begin_inset Quotes eld
18032 \begin_inset Quotes erd
18035 at the end creates a column with a flexible width whose text is horizontally
18040 \begin_layout Standard
18046 \begin_layout Standard
18050 \begin_layout Standard
18051 \begin_inset VSpace bigskip
18057 \begin_layout Standard
18059 \begin_inset space ~
18063 \begin_inset CommandInset ref
18065 reference "tab:Table-using-user-defined"
18069 use the LaTeX-arguments
18072 \begin_layout Standard
18078 \begin_layout Standard
18079 for the first column and the multicolumn,
18082 \begin_layout Standard
18088 \begin_layout Standard
18089 for the last column, and
18092 \begin_layout Standard
18098 \begin_layout Standard
18099 for the cells in the second column.
18102 \begin_layout Standard
18103 \begin_inset Float table
18109 \begin_layout Plain Layout
18110 \begin_inset Caption
18112 \begin_layout Plain Layout
18113 \begin_inset CommandInset label
18115 name "tab:Table-using-user-defined"
18119 Table using user-defined table formats
18127 \begin_layout Plain Layout
18129 \begin_inset Tabular
18130 <lyxtabular version="3" rows="3" columns="4">
18131 <features tabularvalignment="middle">
18132 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
18133 <column alignment="center" valignment="middle" width="0" special="S{2.5cm}{2}">
18134 <column alignment="center" valignment="middle" width="0">
18135 <column alignment="center" valignment="middle" width="0" special="K{red}">
18137 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18140 \begin_layout Plain Layout
18141 verylongtablecellword
18146 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
18149 \begin_layout Plain Layout
18150 multiple lines multicolumn
18155 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18158 \begin_layout Plain Layout
18164 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18167 \begin_layout Plain Layout
18175 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18178 \begin_layout Plain Layout
18184 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18187 \begin_layout Plain Layout
18193 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18196 \begin_layout Plain Layout
18202 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18205 \begin_layout Plain Layout
18213 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18216 \begin_layout Plain Layout
18222 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18225 \begin_layout Plain Layout
18231 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18234 \begin_layout Plain Layout
18240 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18243 \begin_layout Plain Layout
18262 \begin_layout Subsection
18264 \begin_inset CommandInset label
18266 name "sub:Line-Thickness"
18271 \begin_inset Index idx
18274 \begin_layout Plain Layout
18275 Table Customization ! Line Thickness
18283 \begin_layout Standard
18284 The line thickness for all lines in a table can be adjusted with the length
18292 To set for example a line thickness of 1.5
18293 \begin_inset space \thinspace{}
18297 \begin_inset space ~
18301 \begin_inset CommandInset ref
18303 reference "tab:Table-with-1.5"
18307 , insert the command
18310 \begin_layout Standard
18317 arrayrulewidth}{1.5pt}
18320 \begin_layout Standard
18321 in TeX-Code before the table or table float.
18322 The changed thickness is valid for all subsequent tables.
18323 To use the default value again, set
18330 \begin_inset space \thinspace{}
18333 pt in TeX-Code after the table or table float.
18336 \begin_layout Standard
18340 \begin_layout Plain Layout
18346 arrayrulewidth}{1.5pt}
18352 \begin_inset Float table
18357 \begin_layout Plain Layout
18358 \begin_inset Caption
18360 \begin_layout Plain Layout
18361 \begin_inset CommandInset label
18363 name "tab:Table-with-1.5"
18368 \begin_inset space \thinspace{}
18379 \begin_layout Plain Layout
18381 \begin_inset Tabular
18382 <lyxtabular version="3" rows="3" columns="3">
18383 <features tabularvalignment="middle">
18384 <column alignment="center" valignment="top" width="0">
18385 <column alignment="center" valignment="top" width="0">
18386 <column alignment="center" valignment="top" width="0">
18388 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18391 \begin_layout Plain Layout
18397 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18400 \begin_layout Plain Layout
18406 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18409 \begin_layout Plain Layout
18417 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18420 \begin_layout Plain Layout
18426 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18429 \begin_layout Plain Layout
18435 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18438 \begin_layout Plain Layout
18446 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18449 \begin_layout Plain Layout
18455 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18458 \begin_layout Plain Layout
18464 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18467 \begin_layout Plain Layout
18487 \begin_layout Plain Layout
18493 arrayrulewidth}{0.4pt}
18501 \begin_layout Standard
18502 \begin_inset VSpace bigskip
18505 To set the line thickness to 1.5
18506 \begin_inset space \thinspace{}
18509 pt only for horizontal lines, as in Table
18510 \begin_inset space ~
18514 \begin_inset CommandInset ref
18516 reference "tab:Table-with-horizontal"
18520 , insert these commands in TeX-Code before the table or table float:
18523 \begin_layout Standard
18533 \begin_inset Newline newline
18541 \begin_inset Newline newline
18550 arrayrulewidth 1.5pt}
18551 \begin_inset Newline newline
18562 arrayrulewidth 0.4pt}}
18565 \begin_layout Standard
18566 To return to the default line thickness, insert this command in TeX-Code
18567 after the table or table float:
18570 \begin_layout Standard
18582 \begin_layout Standard
18586 \begin_layout Plain Layout
18597 \begin_layout Plain Layout
18606 \begin_layout Plain Layout
18614 arrayrulewidth 1.5pt}
18617 \begin_layout Plain Layout
18627 arrayrulewidth 0.4pt}}
18633 \begin_inset Float table
18638 \begin_layout Plain Layout
18639 \begin_inset Caption
18641 \begin_layout Plain Layout
18642 \begin_inset CommandInset label
18644 name "tab:Table-with-horizontal"
18649 \begin_inset space \thinspace{}
18652 pt thick horizontal lines
18660 \begin_layout Plain Layout
18662 \begin_inset Tabular
18663 <lyxtabular version="3" rows="3" columns="3">
18664 <features tabularvalignment="middle">
18665 <column alignment="center" valignment="top" width="0">
18666 <column alignment="center" valignment="top" width="0">
18667 <column alignment="center" valignment="top" width="0">
18669 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18672 \begin_layout Plain Layout
18678 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18681 \begin_layout Plain Layout
18687 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18690 \begin_layout Plain Layout
18698 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18701 \begin_layout Plain Layout
18707 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18710 \begin_layout Plain Layout
18716 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18719 \begin_layout Plain Layout
18727 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18730 \begin_layout Plain Layout
18736 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18739 \begin_layout Plain Layout
18745 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18748 \begin_layout Plain Layout
18768 \begin_layout Plain Layout
18784 \begin_layout Standard
18785 \begin_inset VSpace bigskip
18788 To set the line thickness to 1.5
18789 \begin_inset space \thinspace{}
18792 pt only for vertical lines, create the following column format in the document
18793 preamble, according to the description in section
18794 \begin_inset space ~
18798 \begin_inset CommandInset ref
18800 reference "sub:Customized-Format"
18807 \begin_layout Standard
18812 newcolumntype{V}{!{
18814 vrule width 1.5pt}}
18817 \begin_layout Standard
18819 \begin_inset space ~
18823 \begin_inset CommandInset ref
18825 reference "tab:Table-with-vertical"
18832 \begin_layout Standard
18838 \begin_layout Standard
18839 was used for the last column and
18842 \begin_layout Standard
18848 \begin_layout Standard
18849 for the other columns.
18852 \begin_layout Standard
18853 \begin_inset Float table
18858 \begin_layout Plain Layout
18859 \begin_inset Caption
18861 \begin_layout Plain Layout
18862 \begin_inset CommandInset label
18864 name "tab:Table-with-vertical"
18869 \begin_inset space \thinspace{}
18872 pt thick vertical lines
18880 \begin_layout Plain Layout
18882 \begin_inset Tabular
18883 <lyxtabular version="3" rows="3" columns="3">
18884 <features tabularvalignment="middle">
18885 <column alignment="center" valignment="top" width="0" special="Vc">
18886 <column alignment="center" valignment="top" width="0" special="Vc">
18887 <column alignment="center" valignment="top" width="0" special="VcV">
18889 <cell alignment="center" valignment="top" topline="true" usebox="none">
18892 \begin_layout Plain Layout
18898 <cell alignment="center" valignment="top" topline="true" usebox="none">
18901 \begin_layout Plain Layout
18907 <cell alignment="center" valignment="top" topline="true" usebox="none">
18910 \begin_layout Plain Layout
18918 <cell alignment="center" valignment="top" topline="true" usebox="none">
18921 \begin_layout Plain Layout
18927 <cell alignment="center" valignment="top" topline="true" usebox="none">
18930 \begin_layout Plain Layout
18936 <cell alignment="center" valignment="top" topline="true" usebox="none">
18939 \begin_layout Plain Layout
18947 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18950 \begin_layout Plain Layout
18956 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18959 \begin_layout Plain Layout
18965 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18968 \begin_layout Plain Layout
18987 \begin_layout Subsection
18989 \begin_inset Index idx
18992 \begin_layout Plain Layout
18993 Table Customization ! Dashed Lines
19001 \begin_layout Standard
19005 \begin_layout Plain Layout
19015 \begin_inset Note Note
19018 \begin_layout Plain Layout
19019 The following section will only be displayed when the LaTeX-package
19031 \begin_layout Standard
19032 \begin_inset Float table
19038 \begin_layout Plain Layout
19039 \begin_inset Caption
19041 \begin_layout Plain Layout
19042 \begin_inset CommandInset label
19044 name "tab:Table-with-dashed"
19048 Table with dashed lines
19056 \begin_layout Plain Layout
19058 \begin_inset Tabular
19059 <lyxtabular version="3" rows="5" columns="5">
19060 <features tabularvalignment="middle">
19061 <column alignment="center" valignment="top" width="0">
19062 <column alignment="center" valignment="top" width="0">
19063 <column alignment="center" valignment="top" width="0" special=":c">
19064 <column alignment="center" valignment="top" width="0">
19065 <column alignment="center" valignment="top" width="0">
19067 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19070 \begin_layout Plain Layout
19076 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19079 \begin_layout Plain Layout
19085 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19088 \begin_layout Plain Layout
19094 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19097 \begin_layout Plain Layout
19103 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19106 \begin_layout Plain Layout
19114 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19117 \begin_layout Plain Layout
19123 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19126 \begin_layout Plain Layout
19132 <cell alignment="center" valignment="top" topline="true" usebox="none">
19135 \begin_layout Plain Layout
19141 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19144 \begin_layout Plain Layout
19150 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19153 \begin_layout Plain Layout
19161 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19164 \begin_layout Plain Layout
19168 \begin_layout Plain Layout
19182 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19185 \begin_layout Plain Layout
19191 <cell alignment="center" valignment="top" usebox="none">
19194 \begin_layout Plain Layout
19200 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19203 \begin_layout Plain Layout
19209 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
19212 \begin_layout Plain Layout
19220 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19223 \begin_layout Plain Layout
19227 \begin_layout Plain Layout
19241 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19244 \begin_layout Plain Layout
19250 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
19253 \begin_layout Plain Layout
19259 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none" special="c:">
19262 \begin_layout Plain Layout
19268 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19271 \begin_layout Plain Layout
19279 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19282 \begin_layout Plain Layout
19288 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19291 \begin_layout Plain Layout
19297 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19300 \begin_layout Plain Layout
19306 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19309 \begin_layout Plain Layout
19315 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19318 \begin_layout Plain Layout
19337 \begin_layout Standard
19338 LyX does not natively support dashed lines, so you have to use TeX-Code.
19339 As a prerequisite the LaTeX-package
19344 \begin_inset Index idx
19347 \begin_layout Plain Layout
19348 LaTeX-packages ! arydshln
19353 must be loaded in the document preamble with the command
19356 \begin_layout Standard
19361 usepackage{arydshln}
19364 \begin_layout Standard
19365 To make a vertical line dashed, enter the colon
19366 \begin_inset Quotes eld
19370 \begin_inset Quotes erd
19373 together with the character for the horizontal alignment as LaTeX-argument
19374 in the table cell dialog.
19377 \begin_layout Standard
19378 For a horizontal dashed line add the command
19381 \begin_layout Standard
19389 \begin_layout Standard
19390 in TeX-Code as first element of the first cell in the table row.
19393 \begin_layout Standard
19394 For dashed multicolumn lines use the command
19397 \begin_layout Standard
19402 cdashline{line number
19407 \begin_layout Standard
19408 in TeX-Code as the first element of the first cell in the table row.
19409 If you have for example a multicolumn spanning columns 2 to 4 and you want
19410 to have a dashed line above, add the command
19413 \begin_layout Standard
19421 \begin_layout Standard
19422 as the first element of the first cell in the row of the multicolumn.
19425 \begin_layout Standard
19426 \begin_inset VSpace bigskip
19432 \begin_layout Standard
19434 \begin_inset space ~
19438 \begin_inset CommandInset ref
19440 reference "tab:Table-with-dashed"
19445 \begin_inset Quotes eld
19453 \begin_inset Quotes erd
19456 as LaTeX-argument of the third column.
19457 The TeX-Code command
19463 was inserted in the first cell of the third row and the TeX-Code command
19464 \begin_inset Newline newline
19473 was inserted in the first cell of the fourth row.
19476 \begin_layout Standard
19477 \begin_inset Note Greyedout
19480 \begin_layout Plain Layout
19489 is apparently not compatible with the LaTeX-package
19494 \begin_inset Index idx
19497 \begin_layout Plain Layout
19498 LaTeX-packages ! colortbl
19503 that is used for colored tables in section
19504 \begin_inset space ~
19508 \begin_inset CommandInset ref
19510 reference "sec:Colored-Tables"
19515 That means colored tables cannot have dashed lines.
19523 \begin_layout Standard
19527 \begin_layout Plain Layout
19537 \begin_inset Note Note
19540 \begin_layout Plain Layout
19541 The following will be displayed when the LaTeX-package
19553 \begin_layout Standard
19554 You need to install the package
19558 to see the content of this section in the output.
19561 \begin_layout Standard
19565 \begin_layout Plain Layout
19577 \begin_layout Chapter
19579 \begin_inset CommandInset label
19586 \begin_inset Index idx
19589 \begin_layout Plain Layout
19598 \begin_layout Section
19600 \begin_inset CommandInset label
19602 name "sec:FloatIntroduction"
19607 \begin_inset Index idx
19610 \begin_layout Plain Layout
19611 Floats ! Introduction
19619 \begin_layout Standard
19620 A float is a block of text associated with some sort of label, which doesn't
19621 have a fixed location.
19623 \begin_inset Quotes eld
19627 \begin_inset Quotes erd
19630 forward or backward a page or two, to wherever it fits best.
19638 \begin_inset space ~
19643 are also floats, because they can float to the next page when there are
19644 too many notes on the page.
19647 \begin_layout Standard
19648 Floats allow a high quality layout.
19649 Images and tables can be spread evenly to the pages to avoid white space
19650 and pages without text.
19651 As the floating often destroys the context between the text and the image/table
19652 , every float can be referenced in the text.
19653 Floats are therefore numbered.
19654 Referencing is described in section
19655 \begin_inset space ~
19659 \begin_inset CommandInset ref
19661 reference "sec:Referencing-Floats"
19668 \begin_layout Standard
19669 To insert a float, use the menu
19671 Insert\SpecialChar \menuseparator
19679 inset, a box with a label.
19680 The label will automatically be translated to the document language in
19682 After the label you can insert the caption text.
19683 The image or table is inserted above or below the caption in a separate
19684 paragraph within the float.
19685 More about the caption placement is contained in section
19686 \begin_inset space ~
19690 \begin_inset CommandInset ref
19692 reference "sec:Caption-Placement"
19697 To keep your LyX-document readable, you can open and close the float box
19698 by left-clicking on the box label.
19699 A closed float box looks like this:
19700 \begin_inset Graphics
19701 filename clipart/floatQt4.png
19703 scaleBeforeRotation
19707 – a gray button with a red label.
19710 \begin_layout Standard
19711 It is recommended that you insert floats as a separate standard paragraph
19712 to avoid possible LaTeX-errors that can occur when the surrounding text
19713 is specially formatted.
19716 \begin_layout Standard
19717 Existing figures or tables can be put into a float by highlighting them
19718 and then pressing the corresponding toolbar button for a new float.
19721 \begin_layout Section
19725 \begin_layout Standard
19726 Besides figure and table floats that are described in sections
19727 \begin_inset space ~
19731 \begin_inset CommandInset ref
19733 reference "sec:Figure-Floats"
19738 \begin_inset CommandInset ref
19740 reference "sec:Table-Floats"
19744 respectively, LyX offers the float types
19753 The latter are explained in sec.
19754 \begin_inset space \thinspace{}
19758 \begin_inset CommandInset ref
19760 reference "sec:Wrap-Floats"
19767 \begin_layout Subsection
19769 \begin_inset Index idx
19772 \begin_layout Plain Layout
19773 Floats ! Algorithms
19781 \begin_layout Standard
19782 \begin_inset Float algorithm
19788 \begin_layout Plain Layout
19789 \begin_inset Caption
19791 \begin_layout Plain Layout
19792 \begin_inset CommandInset label
19794 name "alg:Example-Algorithm-float"
19798 Example Algorithm float
19806 \begin_layout LyX-Code
19808 \begin_inset Newline newline
19811 Sum:= Sum + A(I); /*comment*/
19812 \begin_inset Newline newline
19816 \begin_inset VSpace -4mm
19827 \begin_layout Standard
19828 This float type is inserted with the menu
19830 Insert\SpecialChar \menuseparator
19831 Floats\SpecialChar \menuseparator
19835 It is used for program codes and descriptions of algorithms and can be
19836 seen as an alternative to program code listings that are explained in chapter
19837 \begin_inset space ~
19841 \begin_inset CommandInset ref
19843 reference "cha:Program-Code-Listings"
19848 A possible environment for algorithms is the
19852 , described in LyX's
19858 \begin_inset space ~
19862 \begin_inset CommandInset ref
19864 reference "alg:Example-Algorithm-float"
19868 is an example of an algorithm float where -4
19869 \begin_inset space \thinspace{}
19872 mm vertical space was added at the end of the float to have the bottom rule
19873 exactly below the last text line.
19876 \begin_layout Standard
19877 The float label is not automatically translated into the document language.
19878 If your document is not in English, you have to do this manually by adding
19879 the following line to the document preamble
19884 \begin_layout Standard
19889 floatname{algorithm}{your
19890 \begin_inset space ~
19896 \begin_layout Standard
19900 \begin_inset space ~
19906 \begin_inset Quotes eld
19914 \begin_inset Quotes erd
19920 \begin_layout Standard
19921 To insert the list of algorithms you can use the menu
19923 Insert\SpecialChar \menuseparator
19925 \begin_inset space \thinspace{}
19929 \begin_inset space \thinspace{}
19932 TOC\SpecialChar \menuseparator
19935 when your document has the same language as LyX's menu names.
19936 In other cases use this command in TeX-Code instead:
19939 \begin_layout Standard
19944 listof{algorithm}{your
19945 \begin_inset space ~
19951 \begin_layout Standard
19955 \begin_inset space ~
19961 \begin_inset Quotes eld
19969 \begin_inset Quotes erd
19975 \begin_layout Standard
19976 Algorithm floats are not by default numbered in the scheme
19977 \begin_inset Quotes eld
19981 \begin_inset Quotes erd
19984 as is the case for table and figure floats in many document-classes.
19985 To number algorithm floats in the same scheme, add this command to your
19989 \begin_layout Standard
19994 numberwithin{algorithm}{chapter}
19997 \begin_layout Standard
19998 To be able to use the command
20007 \begin_inset space ~
20012 in the document settings the option
20015 \begin_inset space ~
20019 \begin_inset space ~
20023 \begin_inset space ~
20031 \begin_layout Section
20033 \begin_inset Index idx
20036 \begin_layout Plain Layout
20045 \begin_layout Standard
20046 Floats are usually numbered either independently from the sections the floats
20047 are in, or in the scheme
20048 \begin_inset Quotes eld
20052 \begin_inset Quotes erd
20056 \begin_inset Quotes eld
20060 \begin_inset Quotes erd
20064 This depends on the document class used.
20067 \begin_layout Standard
20068 To change section-independent numbering, you can use this command in the
20072 \begin_layout Standard
20084 \begin_layout Standard
20091 is the command that prints the table number, for figure floats, the command
20105 in the command above prints the table number as small roman number.
20108 \begin_layout Standard
20109 To change the numbering scheme for example to
20110 \begin_inset Quotes eld
20114 \begin_inset Quotes erd
20117 , use this command in the preamble:
20120 \begin_layout Standard
20125 numberwithin{table}{subsection}
20128 \begin_layout Standard
20129 To be able to use the command
20138 \begin_inset space ~
20143 in the document settings the option
20146 \begin_inset space ~
20150 \begin_inset space ~
20154 \begin_inset space ~
20162 \begin_layout Standard
20163 Please also have a look at section
20164 \begin_inset space ~
20168 \begin_inset CommandInset ref
20170 reference "sub:Footnote-Numbering"
20174 for the details and important notes about the numbering commands.
20177 \begin_layout Section
20179 \begin_inset CommandInset label
20181 name "sec:Referencing-Floats"
20186 \begin_inset Index idx
20189 \begin_layout Plain Layout
20190 Floats ! References
20196 \begin_inset Index idx
20199 \begin_layout Plain Layout
20200 References ! to Floats
20208 \begin_layout Standard
20209 To reference a float, insert a label into its caption using the menu
20211 Insert\SpecialChar \menuseparator
20214 or the toolbar button
20215 \begin_inset Graphics
20216 filename ../images/label-insert.png
20218 scaleBeforeRotation
20223 A grey label box like this one:
20224 \begin_inset Graphics
20225 filename clipart/labelQt4.png
20227 scaleBeforeRotation
20231 will be inserted and the label window pops up asking for the label text.
20232 LyX offers as text the first words of the caption with a prefix.
20233 The prefix depends on the float type, e.
20234 \begin_inset space \thinspace{}
20238 \begin_inset space \space{}
20241 for figure floats the prefix will be "
20248 \begin_layout Standard
20249 The label is used as anchor and name for the reference.
20250 You can refer to the label using the menu
20252 Insert\SpecialChar \menuseparator
20255 or the toolbar button
20256 \begin_inset Graphics
20257 filename ../images/dialog-show-new-inset_ref.png
20259 scaleBeforeRotation
20264 A grey cross-reference box like this one:
20265 \begin_inset Graphics
20266 filename clipart/referenceQt4.png
20268 scaleBeforeRotation
20272 will be inserted and the cross-reference window appear showing all labels
20274 If you have multiple LyX-documents opened, choose the one you are working
20275 on from the drop-list at the top of the dialog.
20276 You can now sort the labels alphabetically and then choose one.
20277 At the position of the cross-reference box the float number will appear
20281 \begin_layout Standard
20282 It is recommended that you use a protected space between the cross-reference
20283 name and its number to avoid line breaks between them.
20284 If a cross-reference refers to a non-existing label, you will see two question
20285 marks in the output instead of the reference.
20288 \begin_layout Standard
20289 You can change labels at any time by clicking on the label box.
20290 References to the changed label will automatically change its link to the
20291 new label text, so that you don't need to take care about this.
20294 \begin_layout Standard
20298 \begin_inset space ~
20302 \begin_inset space ~
20307 in the cross-reference window sets the cursor before the referred label.
20308 The button text changes then to Go
20309 \begin_inset space ~
20312 Back and you can use it to set the cursor back to the cross-reference.
20313 Right-clicking on a cross-reference box also sets the cursor before the
20314 referenced label but without the possibility of going back.
20317 \begin_layout Subsection
20318 Cross-Reference Formats
20319 \begin_inset CommandInset label
20321 name "sub:Cross-Reference-Formats"
20326 \begin_inset Index idx
20329 \begin_layout Plain Layout
20330 References ! Formats
20338 \begin_layout Standard
20339 There are six varieties of cross-references:
20342 \begin_layout Description
20343 <reference>: prints the float number, this is the default:
20344 \begin_inset CommandInset ref
20346 reference "fig:Two-distorted-images"
20353 \begin_layout Description
20354 (<reference>): prints the float number within two parentheses, this is the
20355 style normally used to reference formulas, especially when the reference
20357 \begin_inset Quotes eld
20361 \begin_inset Quotes erd
20365 \begin_inset CommandInset ref
20374 \begin_layout Description
20375 <page>: prints the page number: Page
20376 \begin_inset space ~
20380 \begin_inset CommandInset ref
20381 LatexCommand pageref
20382 reference "fig:Two-distorted-images"
20389 \begin_layout Description
20391 \begin_inset space ~
20395 \begin_inset space ~
20398 <page>: prints the text "on page" and the page number:
20399 \begin_inset CommandInset ref
20400 LatexCommand vpageref
20401 reference "fig:Two-distorted-images"
20408 \begin_layout Description
20410 \begin_inset space ~
20414 \begin_inset space ~
20418 \begin_inset space ~
20421 <page>: prints the float number, the text "on page", and the page number:
20423 \begin_inset CommandInset ref
20425 reference "fig:Two-distorted-images"
20432 \begin_layout Description
20434 \begin_inset space ~
20437 reference: prints a self-defined cross-reference format.
20438 \begin_inset Newline newline
20442 \begin_inset Note Greyedout
20445 \begin_layout Plain Layout
20450 This feature is only available when you have the LaTeX-package
20459 \begin_inset Index idx
20462 \begin_layout Plain Layout
20463 LaTeX-packages ! prettyref
20469 \begin_inset Index idx
20472 \begin_layout Plain Layout
20473 LaTeX-packages ! refstyle
20484 \begin_inset Newline newline
20487 You can select which LaTeX-package should be used for this feature by setting
20490 Use refstyle (not prettyref) for cross-references
20494 Document\SpecialChar \menuseparator
20495 Settings\SpecialChar \menuseparator
20499 The format is specified by adding the command
20511 (refstyle) to the preamble of the document.
20512 For example redefining all references to figures (which have the label
20514 \begin_inset Quotes eld
20522 \begin_inset Quotes erd
20525 ) can be done with this command
20526 \begin_inset Newline newline
20533 newref{fig}{refcmd={Image on page
20538 \begin_inset Newline newline
20541 For more information about the format, have a look at the package documentations
20543 \begin_inset CommandInset citation
20545 key "prettyref,refstyle"
20552 \begin_layout Description
20554 \begin_inset space ~
20557 reference: prints the caption of the reference:
20558 \begin_inset CommandInset ref
20559 LatexCommand nameref
20560 reference "fig:Two-distorted-images"
20567 \begin_layout Standard
20572 will not print the page number if the label is on the previous, the same,
20575 \begin_inset space \thinspace{}
20579 \begin_inset space \space{}
20583 \begin_inset Quotes eld
20591 \begin_inset Quotes erd
20597 <reference> on page <page>
20599 will not print anything about the page if the label is on the same page.
20602 \begin_layout Standard
20603 The number and current page of the part of the document referred to in the
20604 output is automatically calculated by LaTeX.
20605 The varieties are adjusted in the field
20609 of the cross-reference window that appears when you click on the cross-referenc
20613 \begin_layout Standard
20614 \begin_inset Note Greyedout
20617 \begin_layout Plain Layout
20622 It is recommended to use the LaTeX-package
20627 \begin_inset Index idx
20630 \begin_layout Plain Layout
20631 LaTeX-packages ! refstyle
20641 \begin_inset Index idx
20644 \begin_layout Plain Layout
20645 LaTeX-packages ! prettyref
20650 does not know all of LyX's possible label shortcuts
20654 \begin_layout Plain Layout
20655 \begin_inset Quotes eld
20659 \begin_inset Quotes erd
20662 is for example LyX's shortcut for labels in figure captions.
20667 and is not internationalized.
20675 \begin_layout Standard
20676 \begin_inset Note Greyedout
20679 \begin_layout Plain Layout
20684 Due to a bug in the LaTeX-package
20688 version 1.4w, some cross-reference formats will cause LaTeX errors for document
20689 languages that make the period character active (like French).
20690 For a workaround, see
20691 \begin_inset Newline newline
20695 \begin_inset CommandInset href
20697 target "http://wiki.lyx.org/LaTeX/LatexBugs#toc5"
20709 \begin_layout Subsection
20710 Automatic Reference Naming
20711 \begin_inset Index idx
20714 \begin_layout Plain Layout
20715 References ! Automatic Reference Naming
20723 \begin_layout Standard
20729 \begin_inset Index idx
20732 \begin_layout Plain Layout
20733 LaTeX-packages ! hyperref
20738 , that is enabled in the
20746 dialog, provides a very useful feature that cross-references automatically
20747 include the name of the referenced floats (or text parts like
20752 So you will save having to write e.
20753 \begin_inset space \thinspace{}
20757 \begin_inset space \space{}
20761 \begin_inset Quotes eld
20765 \begin_inset Quotes erd
20768 before every reference to a figure.
20769 To use this feature, enable
20773 and insert this line to the LaTeX preamble:
20776 \begin_layout Standard
20792 \begin_layout Standard
20793 When you prefer other reference names than the default ones, for example
20794 you want instead of
20795 \begin_inset Quotes eld
20799 \begin_inset Quotes erd
20803 \begin_inset Quotes eld
20807 \begin_inset space \thinspace{}
20811 \begin_inset Quotes eld
20814 , you can redefine the name by inserting this in the preamble:
20817 \begin_layout Standard
20828 sectionautorefname}
20829 \begin_inset Newline newline
20833 \begin_inset Phantom HPhantom
20836 \begin_layout Plain Layout
20839 \begin_inset space ~
20852 \begin_layout Standard
20853 When you are using another document language than English, replace
20854 \begin_inset Newline newline
20869 , where *** is the name of the language used.
20872 \begin_layout Standard
20873 To get automatic names, but not for certain reference types, for example
20874 not for equations, use this preamble code:
20877 \begin_layout Standard
20885 \begin_inset Newline newline
20895 \begin_inset Newline newline
20906 equationautorefname}
20907 \begin_inset Newline newline
20911 \begin_inset Phantom HPhantom
20914 \begin_layout Plain Layout
20917 \begin_inset space ~
20932 \begin_layout Standard
20933 More about this topic can be found in
20938 \begin_inset CommandInset citation
20947 \begin_layout Standard
20948 \begin_inset Note Greyedout
20951 \begin_layout Plain Layout
20956 Automatic reference naming cannot be used when you use cross-references
20960 \begin_inset space ~
20965 style, as described in section
20966 \begin_inset space ~
20970 \begin_inset CommandInset ref
20972 reference "sub:Cross-Reference-Formats"
20984 \begin_layout Standard
20989 manual is an example where automatic reference naming is used.
20992 \begin_layout Subsection
20994 \begin_inset CommandInset label
20996 name "sub:Reference-Position"
21001 \begin_inset Index idx
21004 \begin_layout Plain Layout
21005 References ! Reference Position
21013 \begin_layout Standard
21019 \begin_inset Index idx
21022 \begin_layout Plain Layout
21023 LaTeX-packages ! hyperref
21036 dialog to link cross-references in the output, you will see that clicking
21037 on an image float reference jumps to the image label.
21038 The caption will be the first text part on the screen, so that you cannot
21039 see the image without scrolling.
21040 This is because the reference link anchor is placed at the position of
21042 With the use of the package
21047 \begin_inset Index idx
21050 \begin_layout Plain Layout
21051 LaTeX-packages ! hypcap
21056 , which is part of the LaTeX-package
21061 \begin_inset Index idx
21064 \begin_layout Plain Layout
21065 LaTeX-packages ! oberdiek
21070 , the link anchor is placed at the beginning of a float.
21071 To use this feature for figure floats, load
21075 in the document preamble with the line
21078 \begin_layout Standard
21083 usepackage[figure]{hypcap}
21086 \begin_layout Standard
21091 for all float types but this is not recommended for stability reasons.
21092 For more information, have a look at
21097 \begin_inset CommandInset citation
21106 \begin_layout Standard
21107 \begin_inset Note Greyedout
21110 \begin_layout Plain Layout
21119 has no effect on references to subfigures.
21127 \begin_layout Section
21129 \begin_inset CommandInset label
21131 name "sec:Float-Placement"
21136 \begin_inset Index idx
21139 \begin_layout Plain Layout
21148 \begin_layout Standard
21149 Right-clicking on a float-box opens a dialog where you can alter the placement
21150 options that LaTeX uses for positioning the float.
21151 \begin_inset Newline newline
21157 \begin_inset space ~
21162 is only useful for two-column documents: If you select it, the float will
21163 span both columns on the page instead of being confined to just one.
21164 \begin_inset Newline newline
21170 \begin_inset space ~
21175 is used to rotate floats, see section
21176 \begin_inset CommandInset ref
21178 reference "sec:Rotated-Floats"
21185 \begin_layout Standard
21186 You can use one ore more of the following options in the float dialog to
21187 set the placement for a particular float when you uncheck the option
21190 \begin_inset space ~
21194 \begin_inset space ~
21202 \begin_layout Description
21204 \begin_inset space ~
21208 \begin_inset space ~
21211 possible try to place the float on the position where it has been inserted
21214 \begin_layout Description
21216 \begin_inset space ~
21220 \begin_inset space ~
21223 page try to place the float at the top of the current page
21226 \begin_layout Description
21228 \begin_inset space ~
21232 \begin_inset space ~
21235 page try to place the float at the bottom of the current page
21238 \begin_layout Description
21240 \begin_inset space ~
21244 \begin_inset space ~
21247 floats try to place the float on its own page
21250 \begin_layout Standard
21251 The order of the above option is
21256 That means, if you use the default placement, LaTeX will first try out
21260 \begin_inset space ~
21264 \begin_inset space ~
21272 \begin_inset space ~
21276 \begin_inset space ~
21281 , and then the others.
21282 If you do not use the default, LaTeX will try only the checked options
21283 but in the same order.
21285 \begin_inset space ~
21288 placements are possible the procedure is internally repeated but it is tried
21289 to put the float on the following page.
21292 \begin_layout Standard
21293 By default, each option has its own rules:
21296 \begin_layout Labeling
21297 \labelwidthstring 00.00.0000
21301 \begin_inset space ~
21305 \begin_inset space ~
21310 only floats occupying less than 70
21311 \begin_inset space \thinspace{}
21314 % of the page can be placed at the top of a page (
21323 \begin_layout Labeling
21324 \labelwidthstring 00.00.0000
21328 \begin_inset space ~
21332 \begin_inset space ~
21337 : only floats occupying less than 30
21338 \begin_inset space \thinspace{}
21341 % of the page can be placed at the bottom of a page.
21351 \begin_layout Labeling
21352 \labelwidthstring 00.00.0000
21356 \begin_inset space ~
21360 \begin_inset space ~
21365 : only if more than 50
21366 \begin_inset space \thinspace{}
21369 % of the page are occupied by floats, several floats can be set together
21380 \begin_layout Standard
21381 If you don't like these rules, you can ignore them by using the additional
21385 \begin_inset space ~
21389 \begin_inset space ~
21395 \begin_inset Newline newline
21398 You can also redefine the rules with LaTeX-commands that are given in parenthese
21399 s after the rules description above.
21400 To increase for example the often too small default of the bottom-rule
21402 \begin_inset space \thinspace{}
21405 % of the page, add this line to your document preamble:
21408 \begin_layout Standard
21415 bottomfraction}{0.5}
21418 \begin_layout Standard
21419 Sometimes you might need, under all circumstances, a float to be placed
21420 exactly at the position where it is inserted.
21421 For this case you can use the option
21424 \begin_inset space ~
21430 Use this option very rarely and only if the document is almost ready to
21431 be printed, because the float is then no longer able to
21432 \begin_inset Quotes eld
21436 \begin_inset Quotes erd
21439 when you change your document and this will often destroy the page layout.
21442 \begin_layout Standard
21443 There are no placement options for text wrap floats, because they are always
21444 surrounded by the text of a certain paragraph.
21445 \begin_inset VSpace bigskip
21451 \begin_layout Standard
21452 Sometimes you have the problem that a float is placed at the top of a page
21453 while its corresponding section starts at the middle of the page, so that
21454 the reader could think the float is part of the previous section.
21455 To avoid this the LaTeX-command
21462 It suppresses a given float placement for the page where it is inserted
21463 and can therefore be used to avoid floats being set before a section starts.
21464 To get this, add these commands to your document preamble:
21467 \begin_layout Standard
21477 \begin_inset Newline newline
21491 \begin_layout Standard
21492 You can define the same for all section headings, like chapters and subsections.
21493 This definition is not recommended to be used for small text parts like
21494 subsubsections because LaTeX may then have problems finding a suitable
21498 \begin_layout Standard
21499 \begin_inset VSpace bigskip
21502 In some cases it is required to have all figures/tables at the end of the
21504 For this purpose the LaTeX-package
21509 \begin_inset Index idx
21512 \begin_layout Plain Layout
21513 LaTeX-packages ! endfloat
21519 It puts all figure and table floats at the end of the document into their
21521 At the original float position a text hint like
21522 \begin_inset Quotes eld
21528 \begin_inset space ~
21534 \begin_inset Quotes erd
21538 The endfloat-package is loaded in the preamble with the line
21541 \begin_layout Standard
21546 usepackage[options]{endfloat}
21549 \begin_layout Standard
21550 There are various package options to format the created figure/table sections.
21551 For more information we refer to the
21556 \begin_inset CommandInset citation
21563 \begin_inset Newline newline
21567 \begin_inset Note Greyedout
21570 \begin_layout Plain Layout
21575 doesn't provide an automatic translation for the text hint, you have to
21576 do this manually, see section
21577 \begin_inset space ~
21581 \begin_inset CommandInset citation
21593 \begin_inset Newline newline
21597 \begin_inset Note Greyedout
21600 \begin_layout Plain Layout
21605 There is currently a bug in
21609 when the caption contains a German
21610 \begin_inset Quotes eld
21614 \begin_inset Quotes erd
21618 Use in this case the command
21619 \begin_inset Quotes eld
21629 \begin_inset Quotes erd
21632 in TeX-Code instead of
21633 \begin_inset Quotes eld
21637 \begin_inset Quotes erd
21648 \begin_layout Standard
21649 \begin_inset VSpace bigskip
21652 For more details about float placements, have a look at LaTeX books,
21653 \begin_inset CommandInset citation
21655 key "latexcompanion,latexguide,latexbook"
21662 \begin_layout Section
21664 \begin_inset CommandInset label
21666 name "sec:Rotated-Floats"
21671 \begin_inset Index idx
21674 \begin_layout Plain Layout
21683 \begin_layout Standard
21684 Especially for wide tables you might have floats rotated.
21685 To rotate a whole float including the caption, right-click on the float-box
21689 \begin_inset space ~
21697 \begin_layout Standard
21698 Rotated floats are always placed on a page of their own (or column of their
21699 own; in case you have a multi-column document).
21700 You can let them span several columns using the float settings option
21703 \begin_inset space ~
21709 Floats are rotated so that you can read them from the outside margin.
21710 To force a certain rotation direction for all pages, you can add either
21719 to the document class options.
21722 \begin_layout Standard
21723 Referencing rotated floats is the same as for normal floats, the caption
21724 format is also the same: Table
21725 \begin_inset space ~
21729 \begin_inset CommandInset ref
21731 reference "tab:Rotated-table"
21735 is an example of a rotated table float.
21738 \begin_layout Standard
21739 \begin_inset Note Greyedout
21742 \begin_layout Plain Layout
21747 Not all DVI-viewers are able to display rotated floats.
21755 \begin_layout Standard
21756 \begin_inset Float table
21761 \begin_layout Plain Layout
21762 \begin_inset Caption
21764 \begin_layout Plain Layout
21765 \begin_inset CommandInset label
21767 name "tab:Rotated-table"
21779 \begin_layout Plain Layout
21781 \begin_inset Tabular
21782 <lyxtabular version="3" rows="1" columns="5">
21783 <features tabularvalignment="middle">
21784 <column alignment="center" valignment="top" width="0">
21785 <column alignment="center" valignment="top" width="0">
21786 <column alignment="center" valignment="top" width="0">
21787 <column alignment="center" valignment="top" width="0">
21788 <column alignment="center" valignment="top" width="0">
21790 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21793 \begin_layout Plain Layout
21799 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21802 \begin_layout Plain Layout
21808 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21811 \begin_layout Plain Layout
21817 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21820 \begin_layout Plain Layout
21826 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21829 \begin_layout Plain Layout
21848 \begin_layout Section
21850 \begin_inset Index idx
21853 \begin_layout Plain Layout
21862 \begin_layout Standard
21863 Subfloats are for example used when a figure consists of several images.
21864 They are created by inserting a float into an existing float.
21865 The placement of the subfloats can be controlled in the same way as for
21866 paragraphs as shown in table
21867 \begin_inset space ~
21871 \begin_inset CommandInset ref
21873 reference "tab:Two-subtables-side"
21878 \begin_inset CommandInset ref
21880 reference "tab:Two-subtables-upon"
21887 \begin_layout Standard
21888 Referencing subfloats works as for normal floats: Table
21889 \begin_inset space ~
21893 \begin_inset CommandInset ref
21895 reference "tab:This-is-subtable-a"
21900 \begin_inset CommandInset ref
21902 reference "tab:This-is-subtable-b"
21906 are subtables of table
21907 \begin_inset space ~
21911 \begin_inset CommandInset ref
21913 reference "tab:Two-subtables-side"
21920 \begin_layout Standard
21921 \begin_inset Float table
21926 \begin_layout Plain Layout
21927 \begin_inset Caption
21929 \begin_layout Plain Layout
21930 \begin_inset CommandInset label
21932 name "tab:Two-subtables-side"
21936 Two subtables placed side by side.
21944 \begin_layout Plain Layout
21946 \begin_inset space \hfill{}
21950 \begin_inset Float table
21955 \begin_layout Plain Layout
21956 \begin_inset Caption
21958 \begin_layout Plain Layout
21959 \begin_inset CommandInset label
21961 name "tab:This-is-subtable-a"
21965 This is subtable a.
21973 \begin_layout Plain Layout
21975 \begin_inset Tabular
21976 <lyxtabular version="3" rows="1" columns="5">
21977 <features tabularvalignment="middle">
21978 <column alignment="center" valignment="top" width="0">
21979 <column alignment="center" valignment="top" width="0">
21980 <column alignment="center" valignment="top" width="0">
21981 <column alignment="center" valignment="top" width="0">
21982 <column alignment="center" valignment="top" width="0">
21984 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21987 \begin_layout Plain Layout
21993 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21996 \begin_layout Plain Layout
22002 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22005 \begin_layout Plain Layout
22011 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22014 \begin_layout Plain Layout
22020 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22023 \begin_layout Plain Layout
22040 \begin_inset space \hfill{}
22044 \begin_inset Float table
22049 \begin_layout Plain Layout
22050 \begin_inset Caption
22052 \begin_layout Plain Layout
22053 \begin_inset CommandInset label
22055 name "tab:This-is-subtable-b"
22059 This is subtable b.
22067 \begin_layout Plain Layout
22069 \begin_inset Tabular
22070 <lyxtabular version="3" rows="1" columns="5">
22071 <features tabularvalignment="middle">
22072 <column alignment="center" valignment="top" width="0">
22073 <column alignment="center" valignment="top" width="0">
22074 <column alignment="center" valignment="top" width="0">
22075 <column alignment="center" valignment="top" width="0">
22076 <column alignment="center" valignment="top" width="0">
22078 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22081 \begin_layout Plain Layout
22087 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22090 \begin_layout Plain Layout
22096 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22099 \begin_layout Plain Layout
22105 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22108 \begin_layout Plain Layout
22114 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22117 \begin_layout Plain Layout
22134 \begin_inset space \hfill{}
22145 \begin_layout Standard
22146 \begin_inset Float table
22151 \begin_layout Plain Layout
22152 \begin_inset Caption
22154 \begin_layout Plain Layout
22155 \begin_inset CommandInset label
22157 name "tab:Two-subtables-upon"
22161 Two subtables placed one above the other.
22162 (a) table with 4 cells, (b) table with 5 cells.
22170 \begin_layout Plain Layout
22172 \begin_inset Float table
22177 \begin_layout Plain Layout
22178 \begin_inset Caption
22180 \begin_layout Plain Layout
22189 \begin_layout Plain Layout
22191 \begin_inset Tabular
22192 <lyxtabular version="3" rows="1" columns="4">
22193 <features tabularvalignment="middle">
22194 <column alignment="center" valignment="top" width="0">
22195 <column alignment="center" valignment="top" width="0">
22196 <column alignment="center" valignment="top" width="0">
22197 <column alignment="center" valignment="top" width="0">
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" usebox="none">
22211 \begin_layout Plain Layout
22217 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22220 \begin_layout Plain Layout
22226 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22229 \begin_layout Plain Layout
22248 \begin_layout Plain Layout
22250 \begin_inset Float table
22255 \begin_layout Plain Layout
22256 \begin_inset Caption
22258 \begin_layout Plain Layout
22267 \begin_layout Plain Layout
22269 \begin_inset Tabular
22270 <lyxtabular version="3" rows="1" columns="5">
22271 <features tabularvalignment="middle">
22272 <column alignment="center" valignment="top" width="0">
22273 <column alignment="center" valignment="top" width="0">
22274 <column alignment="center" valignment="top" width="0">
22275 <column alignment="center" valignment="top" width="0">
22276 <column alignment="center" valignment="top" width="0">
22278 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22281 \begin_layout Plain Layout
22287 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22290 \begin_layout Plain Layout
22296 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22299 \begin_layout Plain Layout
22305 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22308 \begin_layout Plain Layout
22314 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22317 \begin_layout Plain Layout
22341 \begin_layout Section
22342 Floats Side by Side
22343 \begin_inset Index idx
22346 \begin_layout Plain Layout
22347 Floats ! Side by side
22355 \begin_layout Standard
22356 To place floats side by side, as in Figures
22357 \begin_inset space ~
22361 \begin_inset CommandInset ref
22363 reference "fig:Float-left"
22368 \begin_inset CommandInset ref
22370 reference "fig:Float-right"
22379 In it two minipage boxes are inserted.
22383 \begin_layout Plain Layout
22384 Minipages are explained in section
22385 \begin_inset space ~
22389 \begin_inset CommandInset ref
22391 reference "sec:Minipages"
22400 The width is set to 45
22401 \begin_inset space \thinspace{}
22405 \begin_inset space \thinspace{}
22408 column% and the box alignment to
22413 The minipage boxes contain the image and the caption in the same way as
22414 they are in a float.
22415 The only difference is that the image unit
22418 \begin_inset space ~
22422 \begin_inset space ~
22427 is now calculated according to the width of the minipage boxes.
22430 \begin_layout Standard
22431 \begin_inset Float figure
22436 \begin_layout Plain Layout
22437 \begin_inset Box Frameless
22447 height_special "totalheight"
22450 \begin_layout Plain Layout
22452 \begin_inset Graphics
22453 filename clipart/mobius.eps
22456 scaleBeforeRotation
22463 \begin_layout Plain Layout
22464 \begin_inset Caption
22466 \begin_layout Plain Layout
22467 \begin_inset CommandInset label
22469 name "fig:Float-left"
22473 Float on the left side.
22484 \begin_inset space \hfill{}
22488 \begin_inset Box Frameless
22498 height_special "totalheight"
22501 \begin_layout Plain Layout
22503 \begin_inset Graphics
22504 filename clipart/platypus.eps
22507 scaleBeforeRotation
22514 \begin_layout Plain Layout
22515 \begin_inset Caption
22517 \begin_layout Plain Layout
22518 \begin_inset CommandInset label
22520 name "fig:Float-right"
22524 Float on the right side.
22537 \begin_layout Plain Layout
22546 \begin_layout Section
22548 \begin_inset Index idx
22551 \begin_layout Plain Layout
22552 Caption ! Formatting
22558 \begin_inset Index idx
22561 \begin_layout Plain Layout
22562 Floats ! Caption Formatting
22568 \begin_inset CommandInset label
22570 name "sec:Caption-Formatting"
22577 \begin_layout Standard
22582 environment is the default paragraph environment for
22587 On the LyX screen captions appear as label, e.
22588 \begin_inset space \thinspace{}
22592 \begin_inset space \space{}
22596 \begin_inset Quotes eld
22604 \begin_inset Quotes erd
22607 followed by the caption text.
22609 \begin_inset Quotes eld
22613 \begin_inset Quotes erd
22616 is the actual reference number.
22617 By default the label and the number are in the same font as the caption
22618 text and a colon follows the number to divide the label from the text.
22619 This caption format is not suitable for all document formats.
22623 \begin_layout Standard
22624 To change the default caption format, load the LaTeX-package
22629 \begin_inset Index idx
22632 \begin_layout Plain Layout
22633 LaTeX-packages ! caption
22638 in the document preamble with this line:
22641 \begin_layout Standard
22646 usepackage[format definition]{caption}
22649 \begin_layout Standard
22650 To have for example the label and the number in sans-serif bold font and
22651 the table captions always above the table as in this document, use the
22655 \begin_layout Standard
22660 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
22663 \begin_layout Standard
22664 You can also define different caption formats for the different float types.
22665 In this case load the
22669 package without format specific options and define the different formats
22670 with the help of the command
22673 \begin_layout Standard
22678 captionsetup[float type]{format definition}
22681 \begin_layout Standard
22682 in the document preamble.
22683 For example the caption formats of Figure
22684 \begin_inset space ~
22688 \begin_inset CommandInset ref
22690 reference "fig:This-is-an-fig"
22695 \begin_inset space ~
22699 \begin_inset CommandInset ref
22701 reference "tab:This-is-an-tab"
22705 can be created using these commands in the document preamble:
22708 \begin_layout Standard
22713 usepackage[tableposition=top]{caption}
22716 \begin_inset Newline newline
22723 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
22724 \begin_inset Newline newline
22728 \begin_inset Phantom HPhantom
22731 \begin_layout Plain Layout
22736 captionsetup[figure]{
22742 \begin_inset Newline newline
22747 captionsetup[table]{labelfont={bf,sf}}
22750 \begin_layout Standard
22751 \begin_inset Note Greyedout
22754 \begin_layout Plain Layout
22763 has no effect when a
22768 \begin_inset Index idx
22771 \begin_layout Plain Layout
22772 LaTeX-packages ! KOMA-Script
22777 document class is used.
22778 In this case the document class option
22780 captions=tableheading
22790 \begin_layout Standard
22791 For more information about the package
22795 we refer to its documentation
22796 \begin_inset CommandInset citation
22805 \begin_layout Standard
22806 To change the label name from e.
22807 \begin_inset space \thinspace{}
22811 \begin_inset space \space{}
22815 \begin_inset Quotes eld
22819 \begin_inset Quotes erd
22823 \begin_inset Quotes eld
22827 \begin_inset Quotes erd
22830 use this preamble command:
22833 \begin_layout Standard
22840 fnum@figure}{Image~
22845 \begin_layout Standard
22852 inserts the figure number and
22855 \begin_inset Quotes eld
22861 \begin_inset Quotes erd
22864 creates a protected space.
22867 \begin_layout Standard
22868 \begin_inset VSpace bigskip
22876 \begin_inset Index idx
22879 \begin_layout Plain Layout
22880 LaTeX-packages ! KOMA-Script
22887 article (KOMA-Script)
22895 letter (KOMA-Script)
22899 report (KOMA-Script)
22902 \begin_inset space \thinspace{}
22905 ), you can alternatively to the
22913 's built-in command
22920 For example, to have the caption label in bold, add this command to your
22924 \begin_layout Standard
22929 setkomafont{captionlabel}{
22934 \begin_layout Standard
22935 For more information about
22946 \begin_inset CommandInset citation
22955 \begin_layout Standard
22959 \begin_layout Plain Layout
22963 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
22970 \begin_inset Note Note
22973 \begin_layout Plain Layout
22974 The caption format is changed only for this example.
22982 \begin_layout Standard
22983 \begin_inset Float figure
22989 \begin_layout Plain Layout
22991 \begin_inset Graphics
22992 filename clipart/mobius.eps
22995 scaleBeforeRotation
23002 \begin_layout Plain Layout
23003 \begin_inset Caption
23005 \begin_layout Plain Layout
23006 \begin_inset CommandInset label
23008 name "fig:This-is-an-fig"
23012 This is an example figure caption that is longer than one line to show the
23013 different caption format.
23014 Here a self-defined caption format is used.
23027 \begin_layout Standard
23031 \begin_layout Plain Layout
23035 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
23044 \begin_layout Standard
23045 \begin_inset Float table
23051 \begin_layout Plain Layout
23052 \begin_inset Caption
23054 \begin_layout Plain Layout
23055 \begin_inset CommandInset label
23057 name "tab:This-is-an-tab"
23061 This is an example table caption that is longer than one line to show the
23062 different caption format.
23063 Here the standard caption format for tables in this document is used.
23071 \begin_layout Plain Layout
23073 \begin_inset Tabular
23074 <lyxtabular version="3" rows="1" columns="5">
23075 <features tabularvalignment="middle">
23076 <column alignment="center" valignment="top" width="0">
23077 <column alignment="center" valignment="top" width="0">
23078 <column alignment="center" valignment="top" width="0">
23079 <column alignment="center" valignment="top" width="0">
23080 <column alignment="center" valignment="top" width="0">
23082 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23085 \begin_layout Plain Layout
23091 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23094 \begin_layout Plain Layout
23100 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23103 \begin_layout Plain Layout
23109 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23112 \begin_layout Plain Layout
23118 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23121 \begin_layout Plain Layout
23140 \begin_layout Section
23142 \begin_inset Index idx
23145 \begin_layout Plain Layout
23146 Caption ! Placement
23152 \begin_inset Index idx
23155 \begin_layout Plain Layout
23156 Floats ! Caption Placement
23162 \begin_inset CommandInset label
23164 name "sec:Caption-Placement"
23171 \begin_layout Standard
23172 The common caption placement rule is:
23175 \begin_layout Description
23176 Figure: Caption is set below the figure
23179 \begin_layout Description
23180 Table: Caption is set above the table
23183 \begin_layout Standard
23184 Having the caption above the table is unfortunately not supported in LaTeX's
23186 That means if you are using the document classes
23202 there will be no space between the caption and the table.
23203 To insert the necessary space, add the following option to the load command
23204 of the LaTeX-package
23208 in your document preamble
23212 \begin_layout Plain Layout
23214 \begin_inset space ~
23218 \begin_inset CommandInset ref
23220 reference "sec:Caption-Formatting"
23224 for more information of the package
23236 \begin_layout Standard
23242 \begin_layout Standard
23248 \begin_inset Index idx
23251 \begin_layout Plain Layout
23252 LaTeX-packages ! KOMA-Script
23259 article (KOMA-Script)
23267 letter (KOMA-Script)
23271 report (KOMA-Script)
23274 \begin_inset space \thinspace{}
23277 ), you can alternatively to the
23281 package set the document class option
23283 captions=tableheading
23288 \begin_layout Standard
23289 \begin_inset VSpace bigskip
23292 It is also possible to set the caption beside a figure or table.
23293 To get this the LaTeX-package
23298 \begin_inset Index idx
23301 \begin_layout Plain Layout
23302 LaTeX-packages ! sidecap
23307 has to be loaded in the document preamble with the line
23310 \begin_layout Standard
23315 usepackage[option]{sidecap}
23318 \begin_layout Standard
23319 If you set no option, the caption is placed on the side of the outer page
23320 margin – to the right on odd pages, to the left on even pages.
23321 You can change the placement to inner margin with the option
23326 To force the placement always to the right or left, use the option
23337 \begin_layout Standard
23341 \begin_layout Plain Layout
23351 \begin_inset Note Note
23354 \begin_layout Plain Layout
23355 The following section will only be displayed when the LaTeX-package
23367 \begin_layout Standard
23368 To place in LyX the caption of a float on the side, it is necessary to add
23369 these commands to the document preamble:
23372 \begin_layout Standard
23374 \begin_inset CommandInset line
23385 \begin_layout Standard
23393 \begin_inset Newline newline
23397 \begin_inset Phantom HPhantom
23400 \begin_layout Plain Layout
23403 \begin_inset space ~
23418 \begin_inset Newline newline
23422 \begin_inset Phantom HPhantom
23425 \begin_layout Plain Layout
23428 \begin_inset space ~
23443 \begin_inset Newline newline
23447 \begin_inset Phantom HPhantom
23450 \begin_layout Plain Layout
23453 \begin_inset space ~
23463 renewenvironment{table}{
23470 \begin_layout Standard
23478 \begin_inset Newline newline
23482 \begin_inset Phantom HPhantom
23485 \begin_layout Plain Layout
23488 \begin_inset space ~
23503 \begin_inset Newline newline
23507 \begin_inset Phantom HPhantom
23510 \begin_layout Plain Layout
23513 \begin_inset space ~
23530 \begin_layout Standard
23538 \begin_inset Newline newline
23542 \begin_inset Phantom HPhantom
23545 \begin_layout Plain Layout
23548 \begin_inset space ~
23563 \begin_inset Newline newline
23567 \begin_inset Phantom HPhantom
23570 \begin_layout Plain Layout
23573 \begin_inset space ~
23588 \begin_inset Newline newline
23592 \begin_inset Phantom HPhantom
23595 \begin_layout Plain Layout
23598 \begin_inset space ~
23608 renewenvironment{figure}{
23615 \begin_layout Standard
23623 \begin_inset Newline newline
23627 \begin_inset Phantom HPhantom
23630 \begin_layout Plain Layout
23633 \begin_inset space ~
23648 \begin_inset Newline newline
23652 \begin_inset Phantom HPhantom
23655 \begin_layout Plain Layout
23658 \begin_inset space ~
23675 \begin_layout Standard
23677 \begin_inset CommandInset line
23688 \begin_layout Standard
23689 The commands allow you to redefine the floats so that the caption is set
23691 For figure floats use the command
23694 \begin_layout Standard
23702 \begin_layout Standard
23703 in TeX-Code before the float.
23704 After the float insert the command
23707 \begin_layout Standard
23715 \begin_layout Standard
23716 in TeX-Code to get back to the original float definition.
23719 \begin_layout Standard
23720 For table floats use the corresponding commands
23723 \begin_layout Standard
23737 \begin_layout Standard
23739 \begin_inset space ~
23743 \begin_inset CommandInset ref
23745 reference "fig:cap-beside-fig"
23750 \begin_inset space ~
23754 \begin_inset CommandInset ref
23756 reference "tab:cap-beside-tab"
23760 are examples where the caption is set beside.
23763 \begin_layout Standard
23764 You can see in the examples that the caption text appears at the top of
23765 the floats for table floats and at the bottom for figure floats.
23766 To change this, you can use the command
23769 \begin_layout Standard
23774 sidecaptionvpos{float type}{placement}
23777 \begin_layout Standard
23778 in the document preamble or in TeX-Code before the float.
23779 The float type is either
23787 , the placement can be
23788 \begin_inset Quotes eld
23796 \begin_inset Quotes erd
23800 \begin_inset Quotes eld
23808 \begin_inset Quotes erd
23812 \begin_inset Quotes eld
23820 \begin_inset Quotes erd
23824 To have for example the caption of figure floats vertically centered, use
23828 \begin_layout Standard
23833 sidecaptionvpos{figure}{c}
23836 \begin_layout Standard
23837 This was used for Figure
23838 \begin_inset space ~
23842 \begin_inset CommandInset ref
23844 reference "fig:cap-beside-fig-2"
23851 \begin_layout Standard
23852 \begin_inset VSpace medskip
23855 For more information about the package
23859 we refer to its documentation
23860 \begin_inset CommandInset citation
23869 \begin_layout Standard
23870 \begin_inset Note Greyedout
23873 \begin_layout Plain Layout
23883 \begin_inset Index idx
23886 \begin_layout Plain Layout
23887 LaTeX-packages ! hypcap
23892 , described in section
23893 \begin_inset space ~
23897 \begin_inset CommandInset ref
23899 reference "sub:Reference-Position"
23903 , has no effect on floats with the caption set beside.
23911 \begin_layout Standard
23915 \begin_layout Plain Layout
23927 \begin_layout Standard
23928 \begin_inset Float figure
23933 \begin_layout Plain Layout
23934 \begin_inset Graphics
23935 filename clipart/escher-lsd.eps
23937 scaleBeforeRotation
23944 \begin_layout Plain Layout
23945 \begin_inset Caption
23947 \begin_layout Plain Layout
23948 \begin_inset CommandInset label
23950 name "fig:cap-beside-fig"
23954 This is a caption beside a figure.
23967 \begin_layout Standard
23971 \begin_layout Plain Layout
23983 \begin_layout Standard
23984 \begin_inset Float table
23989 \begin_layout Plain Layout
23990 \begin_inset Caption
23992 \begin_layout Plain Layout
23993 \begin_inset CommandInset label
23995 name "tab:cap-beside-tab"
23999 This is a caption beside a table.
24007 \begin_layout Plain Layout
24008 \begin_inset Tabular
24009 <lyxtabular version="3" rows="4" columns="5">
24010 <features tabularvalignment="middle">
24011 <column alignment="center" valignment="top" width="0">
24012 <column alignment="center" valignment="top" width="0">
24013 <column alignment="center" valignment="top" width="0">
24014 <column alignment="center" valignment="top" width="0">
24015 <column alignment="center" valignment="top" width="0">
24017 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24020 \begin_layout Plain Layout
24026 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24029 \begin_layout Plain Layout
24035 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24038 \begin_layout Plain Layout
24044 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24047 \begin_layout Plain Layout
24053 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24056 \begin_layout Plain Layout
24064 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24067 \begin_layout Plain Layout
24073 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24076 \begin_layout Plain Layout
24082 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24085 \begin_layout Plain Layout
24091 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24094 \begin_layout Plain Layout
24100 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24103 \begin_layout Plain Layout
24111 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24114 \begin_layout Plain Layout
24120 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24123 \begin_layout Plain Layout
24129 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24132 \begin_layout Plain Layout
24138 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24141 \begin_layout Plain Layout
24147 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24150 \begin_layout Plain Layout
24158 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24161 \begin_layout Plain Layout
24167 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24170 \begin_layout Plain Layout
24176 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24179 \begin_layout Plain Layout
24185 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24188 \begin_layout Plain Layout
24194 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24197 \begin_layout Plain Layout
24216 \begin_layout Standard
24220 \begin_layout Plain Layout
24232 \begin_layout Standard
24236 \begin_layout Plain Layout
24240 sidecaptionvpos{figure}{c}
24246 \begin_inset Float figure
24251 \begin_layout Plain Layout
24252 \begin_inset Graphics
24253 filename clipart/escher-lsd.eps
24255 scaleBeforeRotation
24262 \begin_layout Plain Layout
24263 \begin_inset Caption
24265 \begin_layout Plain Layout
24266 \begin_inset CommandInset label
24268 name "fig:cap-beside-fig-2"
24272 This is a vertically centered caption beside a figure.
24285 \begin_layout Standard
24289 \begin_layout Plain Layout
24301 \begin_layout Standard
24305 \begin_layout Plain Layout
24315 \begin_inset Note Note
24318 \begin_layout Plain Layout
24319 The following will be displayed when the LaTeX-package
24331 \begin_layout Standard
24332 You need to install the LaTeX-package
24336 to see the following part of this section in the output.
24339 \begin_layout Standard
24343 \begin_layout Plain Layout
24355 \begin_layout Section
24357 \begin_inset Index idx
24360 \begin_layout Plain Layout
24361 Floats ! Float Lists
24369 \begin_layout Standard
24370 Similar to the table of contents where the sections of the document are
24371 listed, there are listings for all float types, like the figures of the
24373 You can insert them via the
24375 Insert\SpecialChar \menuseparator
24377 \begin_inset space ~
24381 \begin_inset space ~
24389 \begin_layout Standard
24390 The list entries are the float captions or its short title, the float number,
24391 and the page number where they appear in the document.
24394 \begin_layout Standard
24395 You can find the list of figures and tables at the end of this document.
24398 \begin_layout Chapter
24402 \begin_layout Section
24404 \begin_inset Index idx
24407 \begin_layout Plain Layout
24416 \begin_layout Standard
24417 Notes are inserted with the toolbar button
24418 \begin_inset Graphics
24419 filename ../images/note-insert.png
24421 scaleBeforeRotation
24427 Insert\SpecialChar \menuseparator
24431 There are three types of notes:
24434 \begin_layout Description
24436 \begin_inset space ~
24439 Note This note type is for internal notes that won't appear in the output.
24440 Its note-box looks like this:
24441 \begin_inset Newline newline
24445 \begin_inset Newline newline
24449 \begin_inset Graphics
24450 filename clipart/LyXNoteImageQt4.png
24453 scaleBeforeRotation
24458 \begin_inset Note Note
24461 \begin_layout Plain Layout
24462 This is text in a note box that doesn't appear in the output.
24470 \begin_layout Description
24471 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
24472 ent, when you export the document to LaTeX via the menu
24474 File\SpecialChar \menuseparator
24475 Export\SpecialChar \menuseparator
24476 LaTeX (pdflatex) / (plain)
24479 Its note-box looks like this:
24480 \begin_inset Newline newline
24484 \begin_inset Newline newline
24488 \begin_inset Graphics
24489 filename clipart/CommentNoteImageQt4.png
24492 scaleBeforeRotation
24497 \begin_inset Note Comment
24500 \begin_layout Plain Layout
24501 This is text in a note box that only appears as comment in LaTeX-files.
24509 \begin_layout Description
24511 \begin_inset space ~
24514 Out This note will appear in the output as grey text.
24515 Its note-box looks like this:
24516 \begin_inset Newline newline
24520 \begin_inset Newline newline
24524 \begin_inset Graphics
24525 filename clipart/GreyedOutNoteImageQt4.png
24528 scaleBeforeRotation
24533 \begin_inset Newline newline
24540 \begin_layout Plain Layout
24544 renewenvironment{lyxgreyedout}
24547 \begin_layout Plain Layout
24551 textcolor[gray]{0.8}
24561 \begin_inset Note Greyedout
24564 \begin_layout Plain Layout
24569 \begin_layout Plain Layout
24570 This is an example footnote within a greyed out note.
24575 of a comment that appears in the output as grey text.
24584 \begin_layout Plain Layout
24588 renewenvironment{lyxgreyedout}
24591 \begin_layout Plain Layout
24605 \begin_inset Note Note
24608 \begin_layout Plain Layout
24609 The greyed out note is here redefined to show it with the original LyX definitio
24610 n because greyed out notes are redefined in the preamble of this document,
24611 as described below, to have blue text.
24617 \begin_inset Newline newline
24621 \begin_inset Newline newline
24624 As you can see in the example, the first line of greyed out notes is a bit
24625 indented and greyed out notes can have footnotes.
24628 \begin_layout Standard
24629 \begin_inset VSpace bigskip
24632 When you use the toolbar button
24633 \begin_inset Graphics
24634 filename ../images/note-insert.png
24636 scaleBeforeRotation
24643 \begin_inset space ~
24649 You can switch between the five note types by right-clicking on the note-box.
24654 If you want to turn existing text into a note, mark it and click on the
24668 To change a note to text, press the backspace key when the cursor is in
24669 the first position of a note, or press the delete key when the cursor is
24670 in the very last position of the note, respectively.
24673 \begin_layout Standard
24674 \begin_inset VSpace bigskip
24677 You can change the text color of the greyed out notes in the menu
24679 Document\SpecialChar \menuseparator
24680 Settings\SpecialChar \menuseparator
24686 \begin_layout Section
24688 \begin_inset CommandInset label
24690 name "sec:Footnotes"
24695 \begin_inset Index idx
24698 \begin_layout Plain Layout
24705 \begin_inset Index idx
24708 \begin_layout Plain Layout
24717 \begin_layout Standard
24718 Footnotes can be inserted using the toolbar button
24719 \begin_inset Graphics
24720 filename ../images/footnote-insert.png
24722 scaleBeforeRotation
24728 Insert\SpecialChar \menuseparator
24740 then the following footnote-box:
24741 \begin_inset Graphics
24742 filename clipart/footnoteQt4.png
24744 scaleBeforeRotation
24752 where you can enter the footnote text.
24753 If you want to turn existing text into a footnote, mark it and click on
24775 to text, press the Backspace key when the cursor is in the first position
24784 , or press the Delete key when the cursor is in the very last position of
24796 \begin_layout Standard
24797 Here is an example footnote:
24805 \begin_layout Plain Layout
24806 \begin_inset CommandInset label
24808 name "foot:This-is-an"
24812 This is an example footnote.
24825 \begin_layout Plain Layout
24829 newcounter{MyRepeatFoot}
24832 \begin_layout Plain Layout
24836 setcounter{MyRepeatFoot}{
24846 \begin_layout Standard
24847 The footnote will appear in the output as a superscript number at the text
24848 position where the footnote box is placed.
24849 The footnote text is placed at the bottom of the current page.
24850 The footnote number is calculated by LaTeX; the numbers are consecutive.
24851 It depends on your document-class, whether the footnote number is reset
24855 \begin_layout Standard
24856 Footnotes can be referenced like floats: Insert a label into the footnote
24857 and cross-reference this label in the text as described in section
24858 \begin_inset space ~
24862 \begin_inset CommandInset ref
24864 reference "sec:Referencing-Floats"
24869 \begin_inset Newline newline
24872 This is a cross-reference of Footnote
24873 \begin_inset space ~
24877 \begin_inset CommandInset ref
24879 reference "foot:This-is-an"
24886 \begin_layout Standard
24887 \begin_inset VSpace defskip
24890 Footnotes in tables are not printed by LaTeX due to technical reasons.
24891 However there exists another method to print them: Instead of the footnote
24898 is inserted as TeX-code.
24899 The text of the footnote is entered as an argument of the TeX-code command
24907 \begin_inset Newline newline
24910 This was done for the following table with the command
24913 \begin_layout Standard
24920 Printed table footnote.
24925 \begin_layout Standard
24926 \begin_inset Tabular
24927 <lyxtabular version="3" rows="2" columns="1">
24928 <features tabularvalignment="middle">
24929 <column alignment="center" valignment="top" width="0">
24931 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24934 \begin_layout Plain Layout
24935 This an example text.
24939 \begin_layout Plain Layout
24940 This footnote will not be printed!
24952 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24955 \begin_layout Plain Layout
24956 This an example text.
24960 \begin_layout Plain Layout
24983 \begin_layout Plain Layout
24992 Printed table footnote.
24996 \begin_layout Plain Layout
25006 \begin_layout Standard
25007 Footnotes in longtables are described in section
25008 \begin_inset space ~
25012 \begin_inset CommandInset ref
25014 reference "sub:Footnotes-in-Longtables"
25021 \begin_layout Standard
25022 Footnotes in minipage boxes are printed, but inside the box and with a different
25023 numbering because a minipage box is like a page inside a page.
25024 (For more about minipages, see section
25025 \begin_inset space ~
25029 \begin_inset CommandInset ref
25031 reference "sec:Minipages"
25035 .) To get a footnote in the minipage that is output at the bottom of the
25036 page like normal footnotes, also use the method of
25051 \begin_layout Standard
25052 \begin_inset Box Frameless
25062 height_special "totalheight"
25065 \begin_layout Plain Layout
25066 This an example text in a minipage.
25070 \begin_layout Plain Layout
25071 Footnote in the minipage.
25079 \begin_layout Plain Layout
25080 This an example text in a minipage.
25084 \begin_layout Plain Layout
25101 \begin_layout Standard
25105 \begin_layout Plain Layout
25114 Footnote outside the minipage.
25118 \begin_layout Plain Layout
25128 \begin_layout Standard
25129 \begin_inset VSpace defskip
25135 \begin_layout Standard
25136 To refer to the same footnote several times without printing the footnote
25137 text every time, use the command
25141 footnotemark[number]
25144 \begin_inset Newline newline
25147 As you do not know the number of the repeating footnote while you are writing
25148 the text, you have to store its number.
25149 For the following footnote mark example, these commands were inserted in
25150 TeX-code after Footnote
25151 \begin_inset space ~
25155 \begin_inset CommandInset ref
25157 reference "foot:This-is-an"
25161 to store the footnote number:
25164 \begin_layout Standard
25169 newcounter{MyRepeatFoot}
25170 \begin_inset Newline newline
25175 setcounter{MyRepeatFoot}{
25180 \begin_layout Standard
25181 The footnote mark was then created with this command:
25184 \begin_layout Standard
25194 \begin_layout Standard
25195 Here is a repeated footnote:
25203 \begin_layout Plain Layout
25217 \begin_layout Standard
25218 If you want to repeat the previous footnote, you can omit the storage of
25219 the footnote number and just use this command instead:
25222 \begin_layout Standard
25232 \begin_layout Standard
25233 Here is another repeated footnote:
25241 \begin_layout Plain Layout
25255 \begin_layout Subsection
25257 \begin_inset CommandInset label
25259 name "sub:Footnote-Numbering"
25264 \begin_inset Index idx
25267 \begin_layout Plain Layout
25268 Footnotes ! Numbering
25276 \begin_layout Standard
25277 To reset the footnote number back to 1 after each section
25279 , add this command to your document preamble:
25282 \begin_layout Standard
25287 @addtoreset{footnote}{section}
25290 \begin_layout Standard
25291 \begin_inset VSpace bigskip
25294 The following preamble command changes the footnote numbering style to small
25298 \begin_layout Standard
25310 \begin_layout Standard
25314 \begin_layout Plain Layout
25327 This is a footnote with roman numbering:
25331 \begin_layout Plain Layout
25332 This is an example footnote with roman numbering.
25340 \begin_layout Standard
25341 To change the numbering style to capital roman numerals replace in the command
25356 \begin_inset Quotes eld
25360 \begin_inset Quotes erd
25363 footnotes with capital or small Latin letters use
25377 \begin_inset Quotes eld
25381 \begin_inset Quotes erd
25384 footnotes with symbols use
25393 \begin_layout Standard
25394 \begin_inset Note Greyedout
25397 \begin_layout Plain Layout
25402 You can only number 26 footnotes with Latin letters, because this numbering
25403 is limited to single letters.
25409 \begin_inset Newline newline
25413 \begin_inset Note Greyedout
25416 \begin_layout Plain Layout
25421 You can only number 9 footnotes with symbols.
25429 \begin_layout Standard
25430 To return to the default numbering style after you have changed to another
25443 in the command above.
25447 \begin_layout Plain Layout
25463 \begin_layout Standard
25464 \begin_inset VSpace bigskip
25470 \begin_layout Standard
25471 If you want to have footnotes numbered in the scheme
25472 \begin_inset Quotes eld
25476 \begin_inset Quotes erd
25479 , add the following command to your document preamble:
25482 \begin_layout Standard
25487 numberwithin{footnote}{chapter}
25490 \begin_layout Standard
25491 To be able to use the command
25500 \begin_inset space ~
25505 in the document settings the option
25508 \begin_inset space ~
25512 \begin_inset space ~
25516 \begin_inset space ~
25524 \begin_layout Standard
25528 \begin_layout Plain Layout
25532 numberwithin{footnote}{chapter}
25537 This is another example footnote:
25543 \begin_layout Plain Layout
25544 This is a footnote numbered in the scheme
25545 \begin_inset Quotes eld
25549 \begin_inset Quotes erd
25563 \begin_layout Plain Layout
25579 \begin_layout Standard
25580 \begin_inset Note Greyedout
25583 \begin_layout Plain Layout
25594 always prints out the footnote number as arabic number; previous redefinitions
25595 to get non-arabic numbers are overwritten.
25603 \begin_layout Standard
25604 So to get for example the scheme
25605 \begin_inset Quotes eld
25611 \begin_inset Quotes erd
25614 , use this command instead of
25623 \begin_layout Standard
25637 \begin_layout Subsection
25639 \begin_inset Index idx
25642 \begin_layout Plain Layout
25643 Footnotes ! Placement
25651 \begin_layout Standard
25652 If you have several footnotes in one page, they appear without vertical
25653 space between them at the bottom of the page.
25654 To make them more readable you can e.
25655 \begin_inset space \thinspace{}
25659 \begin_inset space \space{}
25663 \begin_inset space \thinspace{}
25666 mm space with the following preamble command:
25669 \begin_layout Standard
25679 \begin_inset Newline newline
25693 \begin_layout Standard
25694 \begin_inset VSpace bigskip
25697 In a two-column document the footnotes appear at the bottom of every column,
25699 \begin_inset space ~
25703 \begin_inset CommandInset ref
25705 reference "fig:Standard-footnote-placement"
25710 If the footnotes should only appear at the bottom of the right column,
25712 \begin_inset space ~
25716 \begin_inset CommandInset ref
25718 reference "fig:Footnote-placement-in"
25722 , use the LaTeX-package
25727 \begin_inset Index idx
25730 \begin_layout Plain Layout
25731 LaTeX-packages ! ftnright
25736 with this command in the document preamble:
25739 \begin_layout Standard
25744 usepackage{ftnright}
25747 \begin_layout Standard
25748 \begin_inset Float figure
25754 \begin_layout Plain Layout
25758 \begin_layout Plain Layout
25768 \begin_inset Graphics
25769 filename clipart/without_fntright.pdf
25771 scaleBeforeRotation
25779 \begin_layout Plain Layout
25789 \begin_layout Plain Layout
25790 \begin_inset Caption
25792 \begin_layout Plain Layout
25793 \begin_inset CommandInset label
25795 name "fig:Standard-footnote-placement"
25799 Standard footnote placement in two-column documents.
25812 \begin_layout Standard
25813 \begin_inset Float figure
25819 \begin_layout Plain Layout
25823 \begin_layout Plain Layout
25833 \begin_inset Graphics
25834 filename clipart/with_fntright.pdf
25836 scaleBeforeRotation
25844 \begin_layout Plain Layout
25854 \begin_layout Plain Layout
25855 \begin_inset Caption
25857 \begin_layout Plain Layout
25858 \begin_inset CommandInset label
25860 name "fig:Footnote-placement-in"
25864 Footnote placement in two-column documents when the LaTeX-package
25881 \begin_layout Standard
25882 \begin_inset VSpace bigskip
25885 In some scientific literature it is usual to collect the footnotes and print
25886 them in a separate paragraph at the end of a section, as in Figure
25887 \begin_inset space ~
25891 \begin_inset CommandInset ref
25893 reference "fig:Endnotes"
25898 They are then called
25899 \begin_inset Quotes eld
25903 \begin_inset Quotes erd
25907 \begin_inset Index idx
25910 \begin_layout Plain Layout
25916 To use endnotes instead of footnotes in your document, load in the menu
25919 Document\SpecialChar \menuseparator
25920 Settings\SpecialChar \menuseparator
25926 \begin_inset space ~
25930 \begin_inset space ~
25936 To insert the collected footnotes, insert the command
25939 \begin_layout Standard
25947 \begin_layout Standard
25948 in TeX-Code at the end of a section or chapter.
25951 \begin_layout Standard
25952 \begin_inset Float figure
25957 \begin_layout Plain Layout
25962 \begin_layout Plain Layout
25972 \begin_inset Graphics
25973 filename clipart/endnotes.pdf
25974 scaleBeforeRotation
25982 \begin_layout Plain Layout
25992 \begin_layout Plain Layout
25993 \begin_inset Caption
25995 \begin_layout Plain Layout
25996 \begin_inset CommandInset label
25998 name "fig:Endnotes"
26002 Endnotes – footnotes are printed in a separate paragraph at the end of sections
26016 \begin_layout Standard
26017 \begin_inset VSpace medskip
26020 The paragraph heading for the endnotes isn't automatically translated into
26021 the document language, this must be done manually.
26022 The following preamble command translates the default English
26023 \begin_inset Quotes eld
26027 \begin_inset Quotes erd
26031 \begin_inset Quotes eld
26035 \begin_inset Quotes erd
26041 \begin_layout Standard
26048 notesname}{Anmerkungen}
26051 \begin_layout Standard
26052 \begin_inset VSpace medskip
26055 The numbering of endnotes can be changed like the footnote numbering as
26056 described in section
26057 \begin_inset space ~
26061 \begin_inset CommandInset ref
26063 reference "sub:Footnote-Numbering"
26067 ; just replace the command
26080 To reset the endnote number use the command
26086 as described in section
26087 \begin_inset space ~
26091 \begin_inset CommandInset ref
26093 reference "sub:Footnote-Numbering"
26097 and replace the command parameter
26108 \begin_layout Standard
26109 For endnotes there is the command
26113 endnotemark[number]
26115 similar to the command
26121 , that is described in section
26122 \begin_inset space ~
26126 \begin_inset CommandInset ref
26128 reference "sec:Footnotes"
26135 \begin_layout Standard
26136 \begin_inset VSpace bigskip
26139 Footnotes can also be placed in the page margin and the footnote text alignment
26140 can be changed, see the LaTeX-package
26145 \begin_inset Index idx
26148 \begin_layout Plain Layout
26149 LaTeX-packages ! footmisc
26155 \begin_inset CommandInset citation
26161 for more information about this.
26164 \begin_layout Standard
26165 For various further footnote formatting issues have a look at LaTeX-books,
26167 \begin_inset CommandInset citation
26169 key "latexcompanion,latexguide,latexbook"
26179 \begin_inset Index idx
26182 \begin_layout Plain Layout
26183 LaTeX-packages ! KOMA-Script
26188 document class, you can adjust all footnote settings using class-specific
26190 \begin_inset CommandInset citation
26199 \begin_layout Section
26201 \begin_inset Index idx
26204 \begin_layout Plain Layout
26205 Notes ! Margin Notes
26213 \begin_layout Standard
26214 Margin notes look and behave in LyX like footnotes.
26215 They are inserted via the menu
26217 Insert\SpecialChar \menuseparator
26219 \begin_inset space ~
26224 or the toolbar button
26225 \begin_inset Graphics
26226 filename ../images/marginalnote-insert.png
26228 scaleBeforeRotation
26243 \begin_inset Quotes eld
26247 \begin_inset Quotes erd
26250 appears where you can enter the text of the margin note.
26253 \begin_layout Standard
26254 At the side is an example margin note.
26259 \begin_inset Marginal
26262 \begin_layout Plain Layout
26263 This is a margin note.
26271 \begin_layout Standard
26272 Margin notes appear at the right side in single-sided documents.
26273 In double-sided documents they appear in the outer margin – left on even
26274 pages, right on odd pages.
26275 The text of margin notes is aligned opposite to the outer margin – right-aligne
26276 d when the note appears in the left margin.
26277 The first line of the margin note is placed at the position of the text
26278 line where it is inserted in the document.
26281 \begin_layout Standard
26282 \begin_inset VSpace bigskip
26285 To place the margin note in the inner margin, add the command
26288 \begin_layout Standard
26296 \begin_layout Standard
26297 in TeX-Code before a margin note.
26298 The new placement is valid for all subsequent margin notes.
26303 \begin_layout Plain Layout
26313 \begin_inset Marginal
26316 \begin_layout Plain Layout
26317 This is a margin note in the inner margin.
26325 \begin_inset Newline newline
26331 \begin_inset Note Greyedout
26334 \begin_layout Plain Layout
26339 There is often not enough space in the inner margin so that the notes are
26340 not correctly displayed in the output.
26348 \begin_layout Standard
26349 To return to the default placement insert the command
26352 \begin_layout Standard
26360 \begin_layout Standard
26365 \begin_layout Plain Layout
26375 \begin_inset Note Greyedout
26378 \begin_layout Plain Layout
26383 The command is ignored when it is within a paragraph where also the command
26398 \begin_layout Standard
26399 \begin_inset VSpace bigskip
26406 \begin_inset Marginal
26409 \begin_layout Plain Layout
26410 AVeryLongMarginParWord that isn't hyphenated.
26418 Similar to the case described in section
26419 \begin_inset space ~
26423 \begin_inset CommandInset ref
26425 reference "sub:Multiple-Lines-in"
26429 , long words cannot be hyphenated when they are the first word in a margin
26431 To avoid this, insert 0
26432 \begin_inset space \thinspace{}
26435 pt horizontal space before the word
26440 \begin_inset Marginal
26443 \begin_layout Plain Layout
26444 \begin_inset space \hspace*{}
26448 AVeryLongMarginParWord that is hyphenated.
26456 \begin_layout Standard
26457 \begin_inset VSpace bigskip
26463 \begin_layout Standard
26464 \begin_inset Note Greyedout
26467 \begin_layout Plain Layout
26472 Margin notes can normally not be used inside tables, floats, and footnotes.
26480 \begin_layout Standard
26481 \begin_inset VSpace bigskip
26487 \begin_layout Standard
26491 \begin_layout Plain Layout
26501 \begin_inset Note Note
26504 \begin_layout Plain Layout
26505 The following section will only be displayed when the LaTeX-package
26517 \begin_layout Standard
26518 This restriction can be evaded by using the LaTeX-package
26523 \begin_inset Index idx
26526 \begin_layout Plain Layout
26527 LaTeX-packages ! marginnote
26533 By adding these two lines to your document preamble, the command used by
26534 LyX for margin notes is redefined to use the command provided by the
26541 \begin_layout Standard
26546 usepackage{marginnote}
26547 \begin_inset Newline newline
26559 \begin_layout Standard
26560 This is also used in this document because
26564 has another useful feature: You can set a vertical offset for the note.
26565 This is often needed when too many margin notes are too close together
26566 or for a better page layout.
26567 The offset is set in LyX as TeX-Code directly after the margin note in
26571 \begin_layout Standard
26577 \begin_layout Standard
26578 where the offset is a length with one of the units listed in Table
26579 \begin_inset space ~
26583 \begin_inset CommandInset ref
26585 reference "tab:Units"
26590 A negative value shifts the note up, a positive value shifts it down.
26594 For example the margin note beside this text line is shifted up 1.5
26595 \begin_inset space \thinspace{}
26598 cm with the TeX-Code-command
26599 \begin_inset Quotes eld
26609 \begin_inset Quotes erd
26613 \begin_inset Marginal
26616 \begin_layout Plain Layout
26617 This margin note is shifted up 1.5
26618 \begin_inset space \thinspace{}
26621 cm from its original position.
26633 \begin_layout Plain Layout
26643 \begin_layout Standard
26644 \begin_inset VSpace medskip
26651 you can also change the alignment of the text in the margin note.
26652 For example the commands
26655 \begin_layout Standard
26662 raggedleftmarginnote}{
26665 \begin_inset Newline newline
26672 raggedrightmarginnote}{
26677 \begin_layout Standard
26678 set the alignment to centered.
26683 raggedleftmarginnote
26685 denotes margin notes that appear at the left side.
26692 \begin_layout Plain Layout
26698 raggedleftmarginnote}{
26703 \begin_layout Plain Layout
26709 raggedrightmarginnote}{
26717 \begin_inset Marginal
26720 \begin_layout Plain Layout
26721 The text of this margin note is centered.
26732 \begin_layout Standard
26739 raggedleftmarginnote}{
26742 \begin_inset Newline newline
26749 raggedrightmarginnote}{
26758 \begin_layout Plain Layout
26764 raggedleftmarginnote}{
26769 \begin_layout Plain Layout
26775 raggedrightmarginnote}{
26785 \begin_layout Standard
26786 \begin_inset VSpace medskip
26789 For the other features of
26793 refer to its documentation
26794 \begin_inset CommandInset citation
26803 \begin_layout Standard
26804 \begin_inset VSpace bigskip
26807 You can adjust the layout of margin notes by changing its definition.
26808 To create for example a header for all margin notes with the underlined,
26809 sans-serif, and bold header text
26810 \begin_inset Quotes eld
26822 \begin_inset Quotes erd
26825 , add this to your document preamble:
26828 \begin_layout Standard
26838 \begin_inset Newline newline
26848 \begin_inset Newline newline
26852 \begin_inset Phantom HPhantom
26855 \begin_layout Plain Layout
26858 \begin_inset space ~
26874 underbar{Attention!}}}%
26875 \begin_inset Newline newline
26879 \begin_inset Phantom HPhantom
26882 \begin_layout Plain Layout
26885 \begin_inset space ~
26902 \begin_layout Standard
26909 \begin_layout Plain Layout
26920 \begin_layout Plain Layout
26931 \begin_layout Plain Layout
26939 underbar{Attention!}}}%
26942 \begin_layout Plain Layout
26956 \begin_inset Marginal
26959 \begin_layout Plain Layout
26960 This is a margin note with a defined heading.
26972 \begin_layout Plain Layout
26986 \begin_layout Plain Layout
27003 \begin_inset Note Note
27006 \begin_layout Plain Layout
27007 The margin note format is changed only for this example.
27015 \begin_layout Standard
27019 \begin_layout Plain Layout
27029 \begin_inset Note Note
27032 \begin_layout Plain Layout
27033 The following will be displayed when the LaTeX-package
27045 \begin_layout Standard
27046 You need to install the LaTeX-package
27050 to see the following part of this section in the output.
27053 \begin_layout Standard
27057 \begin_layout Plain Layout
27069 \begin_layout Chapter
27073 \begin_layout Section
27075 \begin_inset Index idx
27078 \begin_layout Plain Layout
27079 Boxes ! Introduction
27087 \begin_layout Standard
27088 Boxes are used to format a block of text.
27089 Boxes can be used to write documents with multiple languages, see section
27090 \begin_inset space ~
27094 \begin_inset CommandInset ref
27096 reference "sec:Minipages"
27100 , to frame texts, see section
27101 \begin_inset space ~
27105 \begin_inset CommandInset ref
27107 reference "sec:Decoration"
27111 , to prevent words from being hyphenated, see section
27112 \begin_inset space ~
27116 \begin_inset CommandInset ref
27118 reference "sec:Prevent-Hyphenation"
27122 , to align text, see section
27123 \begin_inset space ~
27127 \begin_inset CommandInset ref
27129 reference "sub:Vertical-Alignment"
27133 , or to set the background color of texts, see section
27134 \begin_inset space ~
27138 \begin_inset CommandInset ref
27140 reference "sec:Colored-Boxes"
27147 \begin_layout Standard
27148 Boxes can be inserted with the menu
27150 Insert\SpecialChar \menuseparator
27153 or the toolbar button
27154 \begin_inset Graphics
27155 filename ../images/box-insert.png
27157 scaleBeforeRotation
27162 A grey box with the label
27167 \begin_inset Graphics
27168 filename clipart/BoxInsetDefaultQt4.png
27170 scaleBeforeRotation
27175 The box type can be specified by right-clicking on the box and selecting
27181 The box dialog offers the
27184 \begin_inset space ~
27206 is the default for new boxes and is explained in section
27207 \begin_inset space ~
27211 \begin_inset CommandInset ref
27213 reference "sec:Minipages"
27221 is described in section
27222 \begin_inset space ~
27226 \begin_inset CommandInset ref
27228 reference "sec:Parboxes"
27237 \begin_inset CommandInset ref
27239 reference "sec:Prevent-Hyphenation"
27246 \begin_layout Standard
27247 Boxes are not numbered and can therefore not be referenced like floats or
27251 \begin_layout Standard
27252 \begin_inset Note Greyedout
27255 \begin_layout Plain Layout
27260 Boxes must not be the item in an
27276 \begin_layout Standard
27277 \begin_inset Note Greyedout
27280 \begin_layout Plain Layout
27285 For an unknown reason you can only set the
27288 \begin_inset space ~
27297 when you use a framed box.
27301 \begin_inset space ~
27306 type and without frames are explained in section
27307 \begin_inset space ~
27311 \begin_inset CommandInset ref
27313 reference "sec:Prevent-Hyphenation"
27325 \begin_layout Section
27327 \begin_inset CommandInset label
27329 name "sec:Box-Dialog"
27334 \begin_inset Index idx
27337 \begin_layout Plain Layout
27346 \begin_layout Subsection
27348 \begin_inset Index idx
27351 \begin_layout Plain Layout
27360 \begin_layout Standard
27361 In the box dialog you can adjust the box geometry in the fields
27370 The available units for the geometry are explained in Table
27371 \begin_inset space ~
27375 \begin_inset CommandInset ref
27377 reference "tab:Units"
27386 offers the following additional sizes:
27389 \begin_layout Description
27390 Depth This is the plain text
27391 \begin_inset Quotes eld
27395 \begin_inset Quotes erd
27399 It ignores the total depth when there are multiple text lines in the box:
27400 \begin_inset Newline newline
27404 \begin_inset Newline newline
27408 \begin_inset Newline newline
27412 \begin_inset Box Boxed
27422 height_special "depth"
27425 \begin_layout Plain Layout
27427 Box height set to 1
27428 \begin_inset space \thinspace{}
27437 \begin_inset Newline newline
27441 \begin_inset Newline newline
27447 \begin_layout Description
27448 Height This is the height of the text that is inside the box.
27450 \begin_inset space \thinspace{}
27454 \begin_inset space \space{}
27457 2 for this size will set the box height to 2
27458 \begin_inset space ~
27461 times the text height:
27462 \begin_inset Box Boxed
27472 height_special "height"
27475 \begin_layout Plain Layout
27477 Box height set to 2
27478 \begin_inset space \thinspace{}
27489 \begin_layout Description
27491 \begin_inset space ~
27494 Height This is the Height
27495 \begin_inset space \thinspace{}
27499 \begin_inset space \thinspace{}
27503 \begin_inset Box Boxed
27513 height_special "totalheight"
27516 \begin_layout Plain Layout
27518 Box height set to 1
27519 \begin_inset space \thinspace{}
27523 \begin_inset space ~
27534 \begin_layout Description
27535 Width This sets the width of the box as height:
27536 \begin_inset Box Boxed
27546 height_special "width"
27549 \begin_layout Plain Layout
27551 Box height set to 1
27552 \begin_inset space \thinspace{}
27563 \begin_layout Subsection
27565 \begin_inset Index idx
27568 \begin_layout Plain Layout
27577 \begin_layout Standard
27578 When you have chosen an
27581 \begin_inset space ~
27586 , the vertical box alignment can be:
27589 \begin_layout Description
27590 Top This is an example text line.
27592 \begin_inset Box Boxed
27602 height_special "totalheight"
27605 \begin_layout Plain Layout
27607 This box is top-aligned.
27612 This is an example text line.
27615 \begin_layout Description
27616 Middle This is an example text line.
27618 \begin_inset Box Boxed
27628 height_special "totalheight"
27631 \begin_layout Plain Layout
27633 This box is middle-aligned.
27638 This is an example text line.
27641 \begin_layout Description
27642 Bottom This is an example text line.
27644 \begin_inset Box Boxed
27654 height_special "totalheight"
27657 \begin_layout Plain Layout
27659 This box is bottom-aligned.
27664 This is an example text line.
27667 \begin_layout Standard
27668 \begin_inset Note Greyedout
27671 \begin_layout Plain Layout
27676 The vertical box alignment can be lost in the output when you have two
27677 boxes in a line and one has e.
27678 \begin_inset space \thinspace{}
27682 \begin_inset space \space{}
27685 a shadow and the other one not.
27693 \begin_layout Standard
27694 The horizontal box alignment can be set via LyX's paragraph dialog when
27695 you set the box into its own paragraph.
27698 \begin_layout Standard
27699 \begin_inset VSpace bigskip
27702 When you have chosen an
27705 \begin_inset space ~
27710 , the box content can be aligned vertically to:
27713 \begin_layout Description
27714 top This is an example text line.
27716 \begin_inset Box Boxed
27726 height_special "totalheight"
27729 \begin_layout Plain Layout
27731 This box text is top-aligned.
27736 This is an example text line.
27739 \begin_layout Description
27740 middle This is an example text line.
27742 \begin_inset Box Boxed
27752 height_special "totalheight"
27755 \begin_layout Plain Layout
27757 This box text is middle-aligned.
27762 This is an example text line.
27765 \begin_layout Description
27766 bottom This is an example text line.
27768 \begin_inset Box Boxed
27778 height_special "totalheight"
27781 \begin_layout Plain Layout
27783 This box text is bottom-aligned.
27788 This is an example text line.
27791 \begin_layout Description
27792 stretch This is an example text line.
27794 \begin_inset Box Boxed
27804 height_special "totalheight"
27807 \begin_layout Plain Layout
27812 \begin_layout Plain Layout
27817 \begin_layout Plain Layout
27824 This is an example text line.
27827 \begin_layout Standard
27828 To stretch the box content, it must consist of more than one paragraph.
27829 In the example above every text line is in an own paragraph.
27832 \begin_layout Standard
27833 \begin_inset VSpace bigskip
27836 To align the box content horizontally you can use LyX's paragraph dialog
27837 when you have chosen an
27840 \begin_inset space ~
27848 \begin_layout Standard
27850 \begin_inset Box Boxed
27860 height_special "totalheight"
27863 \begin_layout Plain Layout
27868 \begin_layout Plain Layout
27873 \begin_layout Plain Layout
27883 \begin_layout Standard
27884 If you have not set an
27887 \begin_inset space ~
27892 , you can align the box content horizontally in the box dialog.
27895 \begin_layout Standard
27897 \begin_inset Box Boxed
27907 height_special "totalheight"
27910 \begin_layout Plain Layout
27911 This box text is horizontally stretched.
27919 \begin_layout Subsection
27921 \begin_inset CommandInset label
27923 name "sec:Decoration"
27928 \begin_inset Index idx
27931 \begin_layout Plain Layout
27940 \begin_layout Standard
27941 The type of the box can be specified in the box dialog in the drop-down
27947 The following types are possible:
27950 \begin_layout Description
27952 \begin_inset space ~
27955 frame Nothing is drawn.
27958 \begin_layout Description
27960 \begin_inset space ~
27964 \begin_inset space ~
27967 frame This draws a rectangular frame around the box.
27968 The frame line thickness has the size of
27976 \begin_inset Box Boxed
27986 height_special "totalheight"
27989 \begin_layout Plain Layout
27999 \begin_layout Description
28001 \begin_inset space ~
28005 \begin_inset space ~
28008 thin This draws an oval frame around the box.
28009 The frame line thickness has the size 0.4
28010 \begin_inset space \thinspace{}
28015 \begin_inset Box ovalbox
28025 height_special "totalheight"
28028 \begin_layout Plain Layout
28038 \begin_layout Description
28040 \begin_inset space ~
28044 \begin_inset space ~
28047 thick This draws an oval frame around the box.
28048 The frame line thickness has the size 0.8
28049 \begin_inset space \thinspace{}
28054 \begin_inset Box Ovalbox
28064 height_special "totalheight"
28067 \begin_layout Plain Layout
28077 \begin_layout Description
28079 \begin_inset space ~
28082 shadow This draws a rectangular frame with a shadow around the box.
28083 The frame line thickness has the size of
28089 , the shadow has a width of 4
28090 \begin_inset space \thinspace{}
28095 \begin_inset Box Shadowbox
28105 height_special "totalheight"
28108 \begin_layout Plain Layout
28118 \begin_layout Description
28120 \begin_inset space ~
28123 background This draws a box with a red background.
28124 Unlike colored boxes
28128 \begin_layout Plain Layout
28130 \begin_inset space \thinspace{}
28134 \begin_inset CommandInset ref
28136 reference "sec:Colored-Boxes"
28145 , it always uses the whole column width and the box is set as its own paragraph.
28147 \begin_inset Box Shaded
28157 height_special "totalheight"
28160 \begin_layout Plain Layout
28161 Shaded background box
28169 \begin_layout Description
28171 \begin_inset space ~
28175 \begin_inset space ~
28178 frame This draws a double-line rectangular frame around the box.
28179 The line thickness of the inner frame is 0.75
28180 \begin_inset space \thinspace{}
28189 , the thickness of the outer frame is 1.5
28190 \begin_inset space \thinspace{}
28200 The distance between the lines is 1.5
28201 \begin_inset space \thinspace{}
28211 \begin_inset space \thinspace{}
28215 \begin_inset space \thinspace{}
28219 \begin_inset space \thinspace{}
28224 \begin_inset Box Doublebox
28234 height_special "totalheight"
28237 \begin_layout Plain Layout
28239 Double rectangular box
28247 \begin_layout Standard
28248 \begin_inset VSpace bigskip
28251 LyX's box label will reflect the different frame types.
28252 To be able to use all types, the LaTeX-package
28257 \begin_inset Index idx
28260 \begin_layout Plain Layout
28261 LaTeX-packages ! fancybox
28269 \begin_layout Standard
28270 \begin_inset VSpace bigskip
28273 When you use the decoration
28275 simple rectangular frame
28277 and no inner box, you can allow page breaks within a box.
28278 Note that then, unlike other framed boxes, the frame always uses the whole
28279 column width, the box is set as its own paragraph, and
28291 have no effect on this box type.
28292 The frame line thickness has the size of
28300 \begin_inset Box Framed
28310 height_special "totalheight"
28313 \begin_layout Plain Layout
28314 Allow page break box
28322 \begin_layout Section
28324 \begin_inset Index idx
28327 \begin_layout Plain Layout
28328 Boxes ! Customization
28336 \begin_layout Standard
28337 The default value for the size
28344 \begin_inset space \thinspace{}
28348 It can be changed with the following command in TeX-code to e.
28349 \begin_inset space \thinspace{}
28353 \begin_inset space \space{}
28357 \begin_inset space \thinspace{}
28363 \begin_layout Standard
28373 \begin_layout Standard
28377 \begin_layout Plain Layout
28389 \begin_inset Box Boxed
28399 height_special "totalheight"
28402 \begin_layout Plain Layout
28404 Rectangular box with
28411 \begin_inset space \thinspace{}
28415 \begin_inset space \thinspace{}
28419 \begin_inset space \thinspace{}
28431 \begin_layout Plain Layout
28445 \begin_layout Standard
28446 \begin_inset VSpace bigskip
28449 The space between the frame and the box content is for all frame styles
28451 \begin_inset space \thinspace{}
28455 You can change it by setting the length
28462 For example the command
28465 \begin_layout Standard
28475 \begin_layout Standard
28476 sets the value to 10
28477 \begin_inset space \thinspace{}
28480 pt, as with the following box:
28483 \begin_layout Standard
28487 \begin_layout Plain Layout
28499 \begin_inset Box Boxed
28509 height_special "totalheight"
28512 \begin_layout Plain Layout
28514 Rectangular box with
28521 \begin_inset space \thinspace{}
28525 \begin_inset space \thinspace{}
28529 \begin_inset space \thinspace{}
28541 \begin_layout Plain Layout
28555 \begin_layout Standard
28556 \begin_inset VSpace bigskip
28559 The diameter of the round corners of the oval boxes can be set with the
28570 \begin_layout Standard
28578 \begin_layout Standard
28579 sets the diameter to 1
28580 \begin_inset space \thinspace{}
28587 \begin_layout Standard
28595 \begin_layout Standard
28596 sets the diameter to
28599 \begin_inset space \thinspace{}
28603 \begin_inset space \thinspace{}
28606 minimum(width and height of box)
28618 \begin_layout Standard
28622 \begin_layout Plain Layout
28632 \begin_inset Box Ovalbox
28642 height_special "totalheight"
28645 \begin_layout Plain Layout
28654 \begin_inset space \thinspace{}
28658 \begin_inset space \thinspace{}
28662 \begin_inset space \thinspace{}
28674 \begin_layout Plain Layout
28686 \begin_layout Standard
28687 \begin_inset VSpace bigskip
28690 The size of the shadow can be adjusted by changing the length
28698 \begin_inset space \thinspace{}
28701 pt for the following box by this command:
28704 \begin_layout Standard
28714 \begin_layout Standard
28718 \begin_layout Plain Layout
28730 \begin_inset Box Shadowbox
28740 height_special "totalheight"
28743 \begin_layout Plain Layout
28752 \begin_inset space \thinspace{}
28756 \begin_inset space \thinspace{}
28760 \begin_inset space \thinspace{}
28772 \begin_layout Plain Layout
28786 \begin_layout Standard
28787 \begin_inset VSpace bigskip
28793 \begin_layout Standard
28794 The default value for the size
28801 \begin_inset space \thinspace{}
28805 The default space between the note content and the frame is 9
28806 \begin_inset space \thinspace{}
28809 pt and can be changed with the value of
28816 For example the frame appearance of the following
28820 is set with the TeX-Code commands
28823 \begin_layout Standard
28831 \begin_inset Newline newline
28841 \begin_layout Standard
28845 \begin_layout Plain Layout
28854 \begin_layout Plain Layout
28866 \begin_inset Box Framed
28876 height_special "totalheight"
28879 \begin_layout Plain Layout
28893 \begin_layout Plain Layout
28902 \begin_layout Plain Layout
28916 \begin_layout Standard
28917 \begin_inset VSpace bigskip
28923 \begin_layout Standard
28928 boxes the default space between the box content and the box border is 3
28929 \begin_inset space \thinspace{}
28932 pt and can be changed with the value of
28939 The default background color red can either be changed locally with the
28944 definecolor{shadecolor}
28946 or globally with the menu
28948 Tools\SpecialChar \menuseparator
28949 Preferences\SpecialChar \menuseparator
28950 Colors\SpecialChar \menuseparator
28952 \begin_inset space ~
28964 command is explained in section
28965 \begin_inset space ~
28969 \begin_inset CommandInset ref
28971 reference "sec:Colored-Tables"
28979 \begin_layout Plain Layout
28986 requires the LaTeX-package
28990 in the preamble, see section
28991 \begin_inset space ~
28995 \begin_inset CommandInset ref
28997 reference "sec:Colored-Boxes"
29006 For example the appearance of the following shaded background box is set
29007 with the TeX-Code commands
29010 \begin_layout Standard
29020 \begin_inset Newline newline
29027 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
29030 \begin_layout Standard
29034 \begin_layout Plain Layout
29043 \begin_layout Plain Layout
29047 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
29053 \begin_inset Box Shaded
29063 height_special "totalheight"
29066 \begin_layout Plain Layout
29069 This is yellow text in a
29079 box with dark green background.
29088 \begin_layout Plain Layout
29097 \begin_layout Plain Layout
29101 definecolor{shadecolor}{rgb}{1,0,0}
29109 \begin_layout Standard
29110 \begin_inset VSpace bigskip
29113 Changed lengths and widths are valid for all boxes following the commands
29117 \begin_layout Section
29119 \begin_inset CommandInset label
29121 name "sec:Minipages"
29126 \begin_inset Index idx
29129 \begin_layout Plain Layout
29138 \begin_layout Standard
29139 Minipages are treated by LaTeX as pages within pages and can therefore for
29140 example have their own footnotes.
29143 \begin_layout Standard
29144 Minipages are useful when you write documents with different languages.
29147 \begin_layout Standard
29148 Below are two example minipages side by side.
29149 Their width is set to 45
29150 \begin_inset space \thinspace{}
29153 col% and they are separated by a horizontal fill, that was inserted via
29156 Insert\SpecialChar \menuseparator
29158 \begin_inset space ~
29161 Formatting\SpecialChar \menuseparator
29163 \begin_inset space ~
29169 \begin_inset Newpage newpage
29175 \begin_layout Standard
29176 \begin_inset Box Frameless
29186 height_special "totalheight"
29189 \begin_layout Plain Layout
29192 Dies ist ein deutscher Text.
29193 Dies ist ein deutscher Text.
29194 Dies ist ein deutscher Text.
29195 Dies ist ein deutscher Text.
29196 Dies ist ein deutscher Text.
29197 Dies ist ein deutscher Text.
29198 Dies ist ein deutscher Text.
29199 Dies ist ein deutscher Text.
29200 Dies ist ein deutscher Text.
29201 Dies ist ein deutscher Text.
29202 Dies ist ein deutscher Text.
29203 Dies ist ein deutscher Text.
29204 Dies ist ein deutscher Text
29208 \begin_layout Plain Layout
29211 Dies ist eine deutsche Fußnote.
29217 Dies ist ein deutscher Text.
29218 Dies ist ein deutscher Text.
29224 \begin_inset space \hfill{}
29228 \begin_inset Box Frameless
29238 height_special "totalheight"
29241 \begin_layout Plain Layout
29242 This is an English Text.
29243 This is an English Text.
29244 This is an English Text.
29245 This is an English Text.
29246 This is an English Text.
29247 This is an English Text.
29248 This is an English Text.
29249 This is an English Text.
29250 This is an English Text.
29251 This is an English Text.
29252 This is an English Text.
29253 This is an English Text.
29254 This is an English Text.
29255 This is an English Text.
29256 This is an English Text.
29257 This is an English Text.
29261 \begin_layout Plain Layout
29262 This is an English footnote.
29267 This is an English Text.
29276 \begin_layout Standard
29277 \begin_inset VSpace bigskip
29280 The document-wide paragraph settings are ignored within minipages.
29281 That means that there will be no space between paragraphs in minipages
29282 although you set it to e.
29283 \begin_inset space \thinspace{}
29287 \begin_inset space \space{}
29294 in the document settings.
29297 \begin_layout Standard
29298 Minipages can also be used to set a background color for text parts, see
29300 \begin_inset space ~
29304 \begin_inset CommandInset ref
29306 reference "sub:Color-for-Paragraphs"
29313 \begin_layout Standard
29314 \begin_inset Note Greyedout
29317 \begin_layout Plain Layout
29322 You cannot have floats or margin notes inside minipages but minipages can
29323 be used inside tables, floats, and other boxes.
29331 \begin_layout Section
29333 \begin_inset CommandInset label
29335 name "sec:Parboxes"
29340 \begin_inset Index idx
29343 \begin_layout Plain Layout
29352 \begin_layout Standard
29353 Parboxes are very similar to minipages with the difference that they cannot
29357 \begin_layout Standard
29359 \begin_inset Box Frameless
29369 height_special "totalheight"
29372 \begin_layout Plain Layout
29373 This a text within a parbox.
29374 This a text within a parbox.
29377 \begin_layout Plain Layout
29378 This footnote won't appear:
29382 \begin_layout Plain Layout
29383 This footnote is inside a parbox and will therefore not appear.
29396 \begin_layout Section
29397 Boxes for Words and Characters
29398 \begin_inset Index idx
29401 \begin_layout Plain Layout
29402 Boxes ! for Characters
29410 \begin_layout Subsection
29411 Prevent Hyphenation
29412 \begin_inset CommandInset label
29414 name "sec:Prevent-Hyphenation"
29419 \begin_inset Index idx
29422 \begin_layout Plain Layout
29423 Boxes ! to Prevent Hyphenation
29431 \begin_layout Standard
29432 You can use the box type
29436 to prevent words or text from being hyphenated.
29437 \begin_inset Newline newline
29440 Here is an example text:
29443 \begin_layout Standard
29444 This line is an example to show how you can prevent the hyphenation of
29445 \begin_inset Quotes eld
29449 \begin_inset Quotes erd
29455 \begin_layout Standard
29456 To prevent the hyphenation of the word
29457 \begin_inset Quotes eld
29461 \begin_inset Quotes erd
29464 , put the word into a box, set the
29467 \begin_inset space ~
29477 \begin_inset space \thinspace{}
29483 \begin_layout Standard
29484 This is the result:
29487 \begin_layout Standard
29488 This line is an example to show how you can prevent the hyphenation of
29489 \begin_inset Box Frameless
29499 height_special "totalheight"
29502 \begin_layout Plain Layout
29503 \begin_inset Quotes eld
29507 \begin_inset Quotes erd
29518 \begin_layout Standard
29519 You can alternatively set the command
29520 \begin_inset Quotes eld
29530 \begin_inset Quotes grd
29533 as TeX-Code directly before the word:
29536 \begin_layout Standard
29537 This line is an example to show how you can prevent the hyphenation of
29538 \begin_inset Quotes eld
29545 \begin_layout Plain Layout
29555 \begin_inset Quotes erd
29561 \begin_layout Standard
29562 Of course the word now protrudes over the side margin.
29563 To avoid this, add via the menu
29565 Insert\SpecialChar \menuseparator
29566 Formatting\SpecialChar \menuseparator
29568 \begin_inset space ~
29572 \begin_inset space ~
29580 arg "newline-insert newline"
29583 ) a line break before the word:
29586 \begin_layout Standard
29587 This line is an example to show how you can prevent the hyphenation of
29588 \begin_inset Newline newline
29592 \begin_inset Box Frameless
29602 height_special "totalheight"
29605 \begin_layout Plain Layout
29606 \begin_inset Quotes eld
29610 \begin_inset Quotes erd
29621 \begin_layout Subsection
29623 \begin_inset CommandInset label
29625 name "sub:Vertical-Alignment"
29630 \begin_inset Index idx
29633 \begin_layout Plain Layout
29634 Boxes ! for Vertical Alignment
29640 \begin_inset Index idx
29643 \begin_layout Plain Layout
29652 \begin_layout Standard
29653 With the help of the command
29659 you can align words, characters or other boxes vertically relative to the
29667 is used with the following scheme:
29670 \begin_layout Standard
29675 raisebox{lift}[height][depth]{box content}
29678 \begin_layout Standard
29679 The lift can be a positive value to raise the box or a negative value to
29683 \begin_layout Standard
29684 To align for example the word
29685 \begin_inset Quotes eld
29689 \begin_inset Quotes erd
29692 so that the bottom of the
29693 \begin_inset Quotes eld
29697 \begin_inset Quotes erd
29701 \begin_inset Quotes eld
29705 \begin_inset Quotes erd
29708 is at the baseline, insert the command
29711 \begin_layout Standard
29721 \begin_layout Standard
29722 in TeX-Code before the word.
29723 After the word insert a closing brace
29724 \begin_inset Quotes eld
29732 \begin_inset Quotes erd
29736 \begin_inset Newline newline
29739 This is the result:
29742 \begin_layout Standard
29743 This is a text line with the word
29747 \begin_layout Plain Layout
29759 \begin_inset Quotes eld
29763 \begin_inset Quotes erd
29770 \begin_layout Plain Layout
29780 \begin_layout Standard
29781 \begin_inset VSpace bigskip
29784 When you raise or lower characters in a line, the line distance will be
29788 \begin_layout Standard
29789 This is a text line with the word
29793 \begin_layout Plain Layout
29805 \begin_inset Quotes eld
29809 \begin_inset Quotes erd
29816 \begin_layout Plain Layout
29824 \begin_inset Newline newline
29827 This is a text line with the word
29831 \begin_layout Plain Layout
29841 \begin_inset Quotes eld
29845 \begin_inset Quotes erd
29852 \begin_layout Plain Layout
29862 \begin_layout Standard
29863 If you want to prevent this for a certain reason, set the box height to
29868 \begin_layout Standard
29878 \begin_layout Standard
29879 This is a text line with the word
29883 \begin_layout Plain Layout
29895 \begin_inset Quotes eld
29899 \begin_inset Quotes erd
29906 \begin_layout Plain Layout
29914 \begin_inset Newline newline
29917 This is a text line with the word
29921 \begin_layout Plain Layout
29925 raisebox{0.5cm}[0pt]{
29931 \begin_inset Quotes eld
29935 \begin_inset Quotes erd
29942 \begin_layout Plain Layout
29952 \begin_layout Section
29954 \begin_inset CommandInset label
29956 name "sec:Colored-Boxes"
29961 \begin_inset Index idx
29964 \begin_layout Plain Layout
29973 \begin_layout Subsection
29975 \begin_inset Index idx
29978 \begin_layout Plain Layout
29987 \begin_layout Standard
29988 To color the background of text the text must be put into a so called
29989 \begin_inset Quotes eld
29993 \begin_inset Quotes erd
29997 This requires that the LaTeX-package
30002 \begin_inset Index idx
30005 \begin_layout Plain Layout
30006 LaTeX-packages ! color
30011 is loaded in the document preamble with the command
30014 \begin_layout Standard
30019 @ifundefined{textcolor}
30020 \begin_inset Newline newline
30024 \begin_inset Phantom HPhantom
30027 \begin_layout Plain Layout
30030 \begin_inset space ~
30040 usepackage{color}}{}
30043 \begin_layout Standard
30048 will be loaded automatically by LyX when you color text.
30052 \begin_layout Plain Layout
30053 To avoid it being loaded twice the command
30067 \begin_layout Standard
30068 \begin_inset VSpace medskip
30071 Colorboxes are created with the command
30078 This will be used with the following scheme:
30081 \begin_layout Standard
30086 colorbox{color}{box content}
30089 \begin_layout Standard
30090 The box content can also be a box and colorboxes can also be within other
30094 \begin_layout Standard
30095 The following colors are predefined:
30096 \begin_inset Newline newline
30135 \begin_inset Newline newline
30138 You can also define your own color as described in section
30139 \begin_inset space ~
30143 \begin_inset CommandInset ref
30145 reference "sec:Colored-Tables"
30152 \begin_layout Standard
30154 \begin_inset space \thinspace{}
30158 \begin_inset space \space{}
30161 a red background for a word, insert the command
30164 \begin_layout Standard
30172 \begin_layout Standard
30173 before the word in TeX-Code.
30174 After the word insert a closing brace
30175 \begin_inset Quotes eld
30183 \begin_inset Quotes erd
30187 \begin_inset Newline newline
30190 This is the result:
30193 \begin_layout Standard
30194 This is a line where the word
30198 \begin_layout Plain Layout
30208 \begin_inset Quotes eld
30212 \begin_inset Quotes erd
30219 \begin_layout Plain Layout
30226 has a red background.
30229 \begin_layout Standard
30230 \begin_inset VSpace bigskip
30233 If you would like the box frame in a different color, you can use the command
30240 with the following scheme:
30243 \begin_layout Standard
30248 fcolorbox{frame color}{box color}{box content}
30251 \begin_layout Standard
30265 The frame thickness and the space between the frame and the box content
30266 can be adjusted with the lengths
30278 , respectively, as described in section
30279 \begin_inset space ~
30283 \begin_inset CommandInset ref
30285 reference "sec:Decoration"
30292 \begin_layout Standard
30293 For the following example the command
30296 \begin_layout Standard
30301 fcolorbox{cyan}{magenta}{
30304 \begin_layout Standard
30308 \begin_layout Standard
30309 Here is an example where the frame line thickness was set to 1
30310 \begin_inset space \thinspace{}
30314 \begin_inset Newline newline
30321 \begin_layout Plain Layout
30336 \begin_layout Plain Layout
30340 fcolorbox{cyan}{magenta}{
30345 This is text within a colored, framed box.
30349 \begin_layout Plain Layout
30359 \begin_layout Standard
30360 \begin_inset VSpace bigskip
30363 Of course you can also have colored text inside a colorbox:
30364 \begin_inset Newline newline
30371 \begin_layout Plain Layout
30375 fcolorbox{cyan}{magenta}{
30382 This is colored text within a colored, framed box.
30388 \begin_layout Plain Layout
30399 \begin_layout Plain Layout
30413 \begin_layout Standard
30414 \begin_inset VSpace medskip
30420 \begin_layout Standard
30421 \begin_inset Note Greyedout
30424 \begin_layout Plain Layout
30429 Text in colorboxes cannot have line breaks.
30430 To color multiple text lines or paragraphs, use a box inside a colorbox
30431 as described in the following.
30439 \begin_layout Subsection
30440 Color for Paragraphs
30441 \begin_inset CommandInset label
30443 name "sub:Color-for-Paragraphs"
30448 \begin_inset Index idx
30451 \begin_layout Plain Layout
30452 Color ! for Paragraphs
30460 \begin_layout Standard
30461 To set the background color for more than one text line, put the text into
30463 Before the minipage insert the
30472 \begin_layout Standard
30480 \begin_layout Standard
30482 After the minipage insert a closing brace
30483 \begin_inset Quotes eld
30491 \begin_inset Quotes erd
30497 \begin_layout Standard
30501 \begin_layout Plain Layout
30505 colorbox{lightgrey}{
30511 \begin_inset Box Frameless
30521 height_special "totalheight"
30524 \begin_layout Plain Layout
30525 This is text with background color.
30526 This is text with background color.
30529 \begin_layout Plain Layout
30530 \begin_inset VSpace defskip
30533 The text can have footnotes
30537 \begin_layout Plain Layout
30538 Another example footnote
30543 and can include tables and figures.
30546 \begin_layout Plain Layout
30548 \begin_inset Tabular
30549 <lyxtabular version="3" rows="3" columns="3">
30550 <features tabularvalignment="middle">
30551 <column alignment="center" valignment="top" width="0">
30552 <column alignment="center" valignment="top" width="0">
30553 <column alignment="center" valignment="top" width="0">
30555 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30558 \begin_layout Plain Layout
30564 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30567 \begin_layout Plain Layout
30573 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30576 \begin_layout Plain Layout
30584 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30587 \begin_layout Plain Layout
30593 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30596 \begin_layout Plain Layout
30598 \begin_inset Quotes erd
30606 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30609 \begin_layout Plain Layout
30617 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30620 \begin_layout Plain Layout
30626 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30629 \begin_layout Plain Layout
30635 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30638 \begin_layout Plain Layout
30658 \begin_layout Plain Layout
30668 \begin_layout Section
30669 Rotated and Scaled Boxes
30672 \begin_layout Standard
30673 To use the commands described in this section, the LaTeX-package
30678 \begin_inset Index idx
30681 \begin_layout Plain Layout
30682 LaTeX-packages ! graphicx
30687 needs to be loaded in the document preamble with the command
30690 \begin_layout Standard
30695 @ifundefined{rotatebox}
30696 \begin_inset Newline newline
30700 \begin_inset Phantom HPhantom
30703 \begin_layout Plain Layout
30706 \begin_inset space ~
30716 usepackage{graphicx}}{}
30719 \begin_layout Standard
30720 \begin_inset Note Greyedout
30723 \begin_layout Plain Layout
30728 Some DVI-viewers can't display rotated or scaled material.
30736 \begin_layout Standard
30737 \begin_inset Note Greyedout
30740 \begin_layout Plain Layout
30745 Floats mustn't be inside a rotated or scaled box.
30753 \begin_layout Subsection
30755 \begin_inset Index idx
30758 \begin_layout Plain Layout
30765 \begin_inset Index idx
30768 \begin_layout Plain Layout
30775 \begin_inset Index idx
30778 \begin_layout Plain Layout
30785 \begin_inset Index idx
30788 \begin_layout Plain Layout
30789 Table Customization ! Rotating
30797 \begin_layout Standard
30798 To rotate material, you can put it into a rotated box.
30799 Such a box is created using the command
30805 in TeX-Code with the following scheme:
30808 \begin_layout Standard
30813 rotatebox[rotation origin]{rotation angle}{box content}
30816 \begin_layout Standard
30817 The rotation origin is specified in the form
30822 The following positions are possible:
30842 (top), along with meaningful combinations of the four base positions.
30847 means that the rotation origin is at the top left corner of the box.
30848 When no rotation origin is specified, the position
30853 The rotation angle is a number that can be negative that specifies the
30855 The rotation direction is counterclockwise.
30858 \begin_layout Standard
30859 In the following example the command
30863 rotatebox[origin=c]{60}{
30865 was inserted as TeX-Code before the text
30866 \begin_inset Quotes eld
30870 \begin_inset Quotes erd
30873 ; after the text the box was closed by a closing brace
30880 \begin_layout Standard
30885 \begin_layout Plain Layout
30889 rotatebox[origin=c]{60}{
30898 \begin_layout Plain Layout
30908 \begin_layout Standard
30909 The box content can also be another box or an inline formula:
30912 \begin_layout Standard
30917 \begin_layout Plain Layout
30921 rotatebox[origin=r]{-60}{
30927 \begin_inset Box Doublebox
30937 height_special "totalheight"
30940 \begin_layout Plain Layout
30950 \begin_layout Plain Layout
30961 \begin_layout Plain Layout
30965 rotatebox[origin=lb]{60}{
30971 \begin_inset Formula $\int A\,\mathrm{d}x=B$
30978 \begin_layout Plain Layout
30988 \begin_layout Standard
30989 or an image or table:
30992 \begin_layout Standard
30997 \begin_layout Plain Layout
31001 rotatebox[origin=lb]{90}{
31007 \begin_inset Graphics
31008 filename clipart/platypus.eps
31018 \begin_layout Plain Layout
31025 with a rotated image
31029 \begin_layout Plain Layout
31033 rotatebox[origin=l]{-90}{
31039 \begin_inset Tabular
31040 <lyxtabular version="3" rows="2" columns="2">
31041 <features tabularvalignment="middle">
31042 <column alignment="center" valignment="top" width="0">
31043 <column alignment="center" valignment="top" width="0">
31045 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31048 \begin_layout Plain Layout
31054 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31057 \begin_layout Plain Layout
31065 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31068 \begin_layout Plain Layout
31074 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31077 \begin_layout Plain Layout
31092 \begin_layout Plain Layout
31102 \begin_layout Subsection
31104 \begin_inset Index idx
31107 \begin_layout Plain Layout
31114 \begin_inset Index idx
31117 \begin_layout Plain Layout
31124 \begin_inset Index idx
31127 \begin_layout Plain Layout
31134 \begin_inset Index idx
31137 \begin_layout Plain Layout
31138 Table Customization ! Scaling
31146 \begin_layout Standard
31147 To scale material the commands
31159 can be used as TeX-Code.
31162 \begin_layout Standard
31169 is used with the following scheme:
31172 \begin_layout Standard
31177 scalebox{horizontal}[vertical]{box content}
31180 \begin_layout Standard
31181 Horizontal and vertical are the corresponding scaling factors.
31182 If no vertical scaling factor is given, the horizontal factor will also
31183 be used as the vertical one.
31186 \begin_layout Standard
31193 creates for example a double size
31197 \begin_layout Plain Layout
31210 \begin_layout Plain Layout
31217 , compared with the document text size.
31220 \begin_layout Standard
31225 scalebox{2}[1]{Hello}
31227 on the other hand distorts the
31231 \begin_layout Plain Layout
31244 \begin_layout Plain Layout
31254 \begin_layout Standard
31255 If the scaling factor is negative, the box content will be mirrored.
31256 Therefore the command
31260 scalebox{-1}[1]{Hello}
31262 can be used to create mirror writing:
31266 \begin_layout Plain Layout
31279 \begin_layout Plain Layout
31289 \begin_layout Standard
31294 scalebox{1}[-1]{Hello}
31300 \begin_layout Plain Layout
31313 \begin_layout Plain Layout
31323 \begin_layout Standard
31328 scalebox{-1}[1]{box content}
31330 there exists the command
31331 \begin_inset Newline newline
31338 reflectbox{box content}
31343 \begin_layout Standard
31344 \begin_inset VSpace bigskip
31353 is used to scale the box to a defined width and height.
31354 The command scheme is:
31357 \begin_layout Standard
31362 resizebox{width}{height}{box content}
31365 \begin_layout Standard
31366 If one of the two command arguments given is an exclamation mark
31370 , the size is set so that the aspect ratio of the box content is kept.
31373 \begin_layout Standard
31378 resizebox{2cm}{1cm}{Hello}
31384 \begin_layout Plain Layout
31388 resizebox{2cm}{1cm}{
31397 \begin_layout Plain Layout
31405 \begin_inset Newline newline
31412 resizebox{2cm}{!}{Hello}
31418 \begin_layout Plain Layout
31431 \begin_layout Plain Layout
31441 \begin_layout Standard
31442 \begin_inset VSpace bigskip
31446 \begin_inset Note Greyedout
31449 \begin_layout Plain Layout
31466 are set to zero, no LaTeX-errors occur when exporting the document but
31467 the exported files can not or only partly be displayed.
31475 \begin_layout Standard
31476 \begin_inset VSpace bigskip
31482 \begin_layout Standard
31483 The boxes can be combined in any order.
31485 \begin_inset space \thinspace{}
31489 \begin_inset space \space{}
31493 \begin_inset Newline newline
31500 rotatebox[origin=c]{-45}{
31504 reflectbox{Hello}}}
31505 \begin_inset Newline newline
31513 \begin_layout Standard
31518 \begin_layout Plain Layout
31522 rotatebox[origin=c]{-45}{
31535 \begin_layout Plain Layout
31545 \begin_layout Standard
31547 Images, tables, and inline formulas are allowed as box content:
31550 \begin_layout Standard
31555 \begin_layout Plain Layout
31559 rotatebox[origin=c]{-30}{
31569 \begin_inset Graphics
31570 filename clipart/platypus.eps
31580 \begin_layout Plain Layout
31591 \begin_layout Plain Layout
31595 rotatebox[origin=c]{-45}{
31605 \begin_inset Tabular
31606 <lyxtabular version="3" rows="2" columns="2">
31607 <features tabularvalignment="middle">
31608 <column alignment="center" valignment="top" width="0">
31609 <column alignment="center" valignment="top" width="0">
31611 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31614 \begin_layout Plain Layout
31620 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31623 \begin_layout Plain Layout
31631 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31634 \begin_layout Plain Layout
31640 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31643 \begin_layout Plain Layout
31658 \begin_layout Plain Layout
31669 \begin_layout Plain Layout
31673 rotatebox[origin=c]{-45}{
31683 \begin_inset Formula $\int A\,\mathrm{d}x=B$
31690 \begin_layout Plain Layout
31700 \begin_layout Standard
31701 When the global formula style
31705 is used in the document
31709 \begin_layout Plain Layout
31711 \begin_inset Quotes eld
31715 \begin_inset Quotes erd
31718 is added to the document class options.
31723 , display style formulas can also be scaled.
31726 \begin_layout Chapter
31727 Objects Surrounded by Text
31728 \begin_inset Index idx
31731 \begin_layout Plain Layout
31740 \begin_layout Section
31742 \begin_inset CommandInset label
31744 name "sec:Wrap-Floats"
31749 \begin_inset Index idx
31752 \begin_layout Plain Layout
31753 Floats ! Wrap Floats
31759 \begin_inset Index idx
31762 \begin_layout Plain Layout
31763 Surrounded by text ! Wrap Floats
31771 \begin_layout Standard
31772 \begin_inset Wrap figure
31779 \begin_layout Plain Layout
31780 \begin_inset Graphics
31781 filename clipart/mobius.eps
31783 scaleBeforeRotation
31784 rotateOrigin center
31791 \begin_layout Plain Layout
31792 \begin_inset Caption
31794 \begin_layout Plain Layout
31795 \begin_inset CommandInset label
31797 name "fig:This-is-a"
31801 This is a figure wrap float.
31811 This float type is used if you want to wrap text around a figure or table
31812 so that it only occupies some fraction of the column width.
31813 It can be inserted using the menu
31815 Insert\SpecialChar \menuseparator
31816 Floats\SpecialChar \menuseparator
31818 \begin_inset space ~
31822 \begin_inset space ~
31830 \begin_inset space ~
31834 \begin_inset space ~
31839 if the LaTeX-package
31844 \begin_inset Index idx
31847 \begin_layout Plain Layout
31848 LaTeX-packages ! wrapfig
31852 \begin_layout Plain Layout
31870 \begin_layout Plain Layout
31871 Installing a LaTeX-package is explained it in the
31874 \begin_inset space ~
31884 The settings of the float can be modified by right-clicking on the float
31886 The mandatory settings are the float
31899 that specifies how much the float is set into the paragraph
31900 \begin_inset space \thinspace{}
31904 \begin_inset space \thinspace{}
31907 page margin, and the
31910 \begin_inset space ~
31915 that specifies how many text lines the float will approximately need.
31916 The line span is often hard to approximate; so it is better only to use
31917 it when you encounter float placement problems.
31918 You can furthermore decide if LaTeX is allowed to let the float float within
31919 the paragraph or to surrounding paragraphs.
31921 \begin_inset space ~
31925 \begin_inset CommandInset ref
31927 reference "fig:This-is-a"
31931 is an example text wrap float with a width of 40
31932 \begin_inset space \thinspace{}
31936 \begin_inset space \thinspace{}
31939 cm overhang, set to the left.
31942 \begin_layout Standard
31943 \begin_inset Note Greyedout
31946 \begin_layout Plain Layout
31952 \begin_inset space ~
31955 wrap float floats are fragile! E.
31956 \begin_inset space \thinspace{}
31960 \begin_inset space \space{}
31963 having a figure too close to the bottom of the page can mess things up in
31964 such a way that the float does not appear in the output or that it is placed
31965 over some other text.
31973 \begin_layout Standard
31974 In general, the following applies for wrap floats:
31977 \begin_layout Itemize
31978 They should not be placed in paragraphs that run over a page break.
31979 That means that wrap floats are better inserted in their exact place when
31980 the document is almost finished and you are able to estimate where page
31981 breaks will appear.
31984 \begin_layout Itemize
31985 They should either be placed in their own paragraph before the paragraph
31986 where they should wrap into or within a paragraph.
31989 \begin_layout Itemize
31990 In consecutive paragraphs they may cause troubles, so ensure that there
31991 is a text paragraph between them as separator.
31994 \begin_layout Itemize
31995 They are not allowed in section headings or tables.
31998 \begin_layout Itemize
31999 Their numbering and referencing works as described in chap.
32000 \begin_inset space \thinspace{}
32004 \begin_inset CommandInset ref
32006 reference "chap:Floats"
32013 \begin_layout Section
32014 Surrounded Fixed Objects
32015 \begin_inset Index idx
32018 \begin_layout Plain Layout
32019 Surrounded by text ! Fixed objects
32027 \begin_layout Standard
32028 The wrap floats described in sec.
32029 \begin_inset space \thinspace{}
32033 \begin_inset CommandInset ref
32035 reference "sec:Wrap-Floats"
32039 have these positions in the paragraph:
32042 \begin_layout Standard
32045 \begin_inset Tabular
32046 <lyxtabular version="3" rows="2" columns="2">
32047 <features tabularvalignment="middle">
32048 <column alignment="center" valignment="top" width="0">
32049 <column alignment="center" valignment="top" width="0">
32051 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32054 \begin_layout Plain Layout
32055 \begin_inset Graphics
32056 filename ../images/dialog-show-new-inset_graphics.png
32058 scaleBeforeRotation
32059 BoundingBox 0bp 6bp 22bp 22bp
32068 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
32071 \begin_layout Plain Layout
32079 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
32082 \begin_layout Plain Layout
32088 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
32091 \begin_layout Plain Layout
32103 \begin_inset Tabular
32104 <lyxtabular version="3" rows="2" columns="2">
32105 <features tabularvalignment="middle">
32106 <column alignment="center" valignment="top" width="0">
32107 <column alignment="center" valignment="top" width="0">
32109 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32112 \begin_layout Plain Layout
32118 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
32121 \begin_layout Plain Layout
32122 \begin_inset Graphics
32123 filename ../images/dialog-show-new-inset_graphics.png
32125 scaleBeforeRotation
32126 BoundingBox 0bp 6bp 22bp 22bp
32137 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
32140 \begin_layout Plain Layout
32146 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
32149 \begin_layout Plain Layout
32163 \begin_layout Standard
32164 To get an object exactly at the position where it is inserted, for example
32165 to get one of these positions:
32166 \begin_inset VSpace defskip
32172 \begin_layout Standard
32175 \begin_inset Tabular
32176 <lyxtabular version="3" rows="2" columns="2">
32177 <features tabularvalignment="middle">
32178 <column alignment="center" valignment="top" width="0">
32179 <column alignment="center" valignment="top" width="0">
32181 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32184 \begin_layout Plain Layout
32190 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
32193 \begin_layout Plain Layout
32201 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
32204 \begin_layout Plain Layout
32205 \begin_inset Graphics
32206 filename ../images/dialog-show-new-inset_graphics.png
32208 scaleBeforeRotation
32209 BoundingBox 0bp 6bp 22bp 22bp
32218 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
32221 \begin_layout Plain Layout
32233 \begin_inset Tabular
32234 <lyxtabular version="3" rows="2" columns="2">
32235 <features tabularvalignment="middle">
32236 <column alignment="center" valignment="top" width="0">
32237 <column alignment="center" valignment="top" width="0">
32239 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32242 \begin_layout Plain Layout
32248 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
32251 \begin_layout Plain Layout
32259 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
32262 \begin_layout Plain Layout
32268 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
32271 \begin_layout Plain Layout
32272 \begin_inset Graphics
32273 filename ../images/dialog-show-new-inset_graphics.png
32275 scaleBeforeRotation
32276 BoundingBox 0bp 6bp 22bp 22bp
32291 \begin_inset Tabular
32292 <lyxtabular version="3" rows="2" columns="3">
32293 <features tabularvalignment="middle">
32294 <column alignment="center" valignment="top" width="0">
32295 <column alignment="center" valignment="top" width="0">
32296 <column alignment="center" valignment="top" width="0">
32298 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32301 \begin_layout Plain Layout
32307 <cell alignment="center" valignment="top" topline="true" usebox="none">
32310 \begin_layout Plain Layout
32311 \begin_inset Graphics
32312 filename ../images/dialog-show-new-inset_graphics.png
32314 scaleBeforeRotation
32315 BoundingBox 0bp 6bp 22bp 22bp
32324 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
32327 \begin_layout Plain Layout
32335 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
32338 \begin_layout Plain Layout
32344 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
32347 \begin_layout Plain Layout
32353 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
32356 \begin_layout Plain Layout
32368 \begin_inset Tabular
32369 <lyxtabular version="3" rows="2" columns="3">
32370 <features tabularvalignment="middle">
32371 <column alignment="center" valignment="top" width="0">
32372 <column alignment="center" valignment="top" width="0">
32373 <column alignment="center" valignment="top" width="0">
32375 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32378 \begin_layout Plain Layout
32384 <cell alignment="center" valignment="top" topline="true" usebox="none">
32387 \begin_layout Plain Layout
32393 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
32396 \begin_layout Plain Layout
32404 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
32407 \begin_layout Plain Layout
32413 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
32416 \begin_layout Plain Layout
32417 \begin_inset Graphics
32418 filename ../images/dialog-show-new-inset_graphics.png
32420 scaleBeforeRotation
32421 BoundingBox 0bp 6bp 22bp 22bp
32430 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
32433 \begin_layout Plain Layout
32447 \begin_layout Standard
32450 \begin_inset Tabular
32451 <lyxtabular version="3" rows="3" columns="2">
32452 <features tabularvalignment="middle">
32453 <column alignment="center" valignment="top" width="0">
32454 <column alignment="center" valignment="top" width="0">
32456 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32459 \begin_layout Plain Layout
32465 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
32468 \begin_layout Plain Layout
32476 <cell alignment="center" valignment="top" leftline="true" usebox="none">
32479 \begin_layout Plain Layout
32480 \begin_inset Graphics
32481 filename ../images/dialog-show-new-inset_graphics.png
32483 scaleBeforeRotation
32484 BoundingBox 0bp 6bp 22bp 22bp
32493 <cell alignment="center" valignment="top" rightline="true" usebox="none">
32496 \begin_layout Plain Layout
32504 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
32507 \begin_layout Plain Layout
32513 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
32516 \begin_layout Plain Layout
32528 \begin_inset Tabular
32529 <lyxtabular version="3" rows="3" columns="3">
32530 <features tabularvalignment="middle">
32531 <column alignment="center" valignment="top" width="0">
32532 <column alignment="center" valignment="top" width="0">
32533 <column alignment="center" valignment="top" width="0">
32535 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32538 \begin_layout Plain Layout
32544 <cell alignment="center" valignment="top" topline="true" usebox="none">
32547 \begin_layout Plain Layout
32553 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
32556 \begin_layout Plain Layout
32564 <cell alignment="center" valignment="top" leftline="true" usebox="none">
32567 \begin_layout Plain Layout
32573 <cell alignment="center" valignment="top" usebox="none">
32576 \begin_layout Plain Layout
32577 \begin_inset Graphics
32578 filename ../images/dialog-show-new-inset_graphics.png
32580 scaleBeforeRotation
32581 BoundingBox 0bp 6bp 22bp 22bp
32590 <cell alignment="center" valignment="top" rightline="true" usebox="none">
32593 \begin_layout Plain Layout
32601 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
32604 \begin_layout Plain Layout
32610 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
32613 \begin_layout Plain Layout
32619 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
32622 \begin_layout Plain Layout
32634 \begin_inset Tabular
32635 <lyxtabular version="3" rows="3" columns="2">
32636 <features tabularvalignment="middle">
32637 <column alignment="center" valignment="top" width="0">
32638 <column alignment="center" valignment="top" width="0">
32640 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32643 \begin_layout Plain Layout
32649 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
32652 \begin_layout Plain Layout
32660 <cell alignment="center" valignment="top" leftline="true" usebox="none">
32663 \begin_layout Plain Layout
32669 <cell alignment="center" valignment="top" rightline="true" usebox="none">
32672 \begin_layout Plain Layout
32673 \begin_inset Graphics
32674 filename ../images/dialog-show-new-inset_graphics.png
32676 scaleBeforeRotation
32677 BoundingBox 0bp 6bp 22bp 22bp
32688 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
32691 \begin_layout Plain Layout
32697 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
32700 \begin_layout Plain Layout
32714 \begin_layout Standard
32716 you can use the LaTeX-package
32721 \begin_inset Index idx
32724 \begin_layout Plain Layout
32725 LaTeX-packages ! picinpar
32731 Here is an example:
32734 \begin_layout Standard
32738 \begin_layout Plain Layout
32748 \begin_inset Note Note
32751 \begin_layout Plain Layout
32752 The following section will only be displayed when the LaTeX-package
32764 \begin_layout Standard
32768 \begin_layout Plain Layout
32772 begin{window}[2,c,{
32778 \begin_inset Graphics
32779 filename clipart/mobius.eps
32782 scaleBeforeRotation
32783 rotateOrigin center
32791 \begin_layout Plain Layout
32796 \begin_layout Plain Layout
32805 It was in the spring of the year 1894 that all London was interested, and
32806 the fashionable world dismayed, by the murder of the Honourable Ronald
32807 Adair under most unusual and inexplicable circumstances.
32808 The public has already learned those particulars of the crime which
32814 \begin_layout Plain Layout
32825 came out in the police investigation, but a good deal was suppressed upon
32826 that occasion, since the case for the prosecution was so overwhelmingly
32827 strong that it was not necessary to bring forward all the facts.
32828 Only now, at the end of nearly ten years, am I allowed to supply those
32829 missing links which make up the whole of that remarkable chain.
32835 \begin_layout Plain Layout
32847 \begin_layout Standard
32851 \begin_layout Plain Layout
32860 Footnote of the paragraph with the fixed object.
32864 \begin_layout Plain Layout
32874 \begin_layout Standard
32875 Surrounded fixed objects are used to let text float around them, at which
32876 the object's position in the paragraph can be determined by the number
32878 In contrary to floats is it not possible to have a numbered caption.
32881 \begin_layout Standard
32882 A fixed object is inserted by adding the command
32885 \begin_layout Standard
32890 begin{window}[2,c,{
32893 \begin_layout Standard
32894 as TeX Code at the beginning of the paragraph.
32895 The first parameter in the bracket, here '2', defines the number of lines
32896 above the object, the second, here 'c', the position of the object.
32897 The positions 'l', 'c' and 'r' (for left, center, right) are possible.
32898 Behind the command you insert the object.
32899 In this example an image with a width of 40
32900 \begin_inset space \thinspace{}
32903 % of the text column width was inserted.
32904 The object can also be a table, a box or an equation.
32905 Behind the object the command
32908 \begin_layout Standard
32911 },description text]
32912 \begin_inset Newline newline
32918 \begin_layout Standard
32921 \begin_inset Quotes eld
32929 \begin_inset Quotes erd
32932 is in the second line.
32933 The description text is optional.
32934 The text surrounding the object must be in the same paragraph as the object,
32935 so it must begin directly after the
32940 At the end of the paragraph insert the command:
32943 \begin_layout Standard
32951 \begin_layout Standard
32952 Within a paragraph with a fixed object, you cannot insert footnotes in the
32954 You have to use instead the command
32960 inside the paragraph and outside the command
32966 as described in sec.
32967 \begin_inset space \thinspace{}
32971 \begin_inset CommandInset ref
32973 reference "sec:Footnotes"
32980 \begin_layout Standard
32984 \begin_layout Plain Layout
32994 \begin_inset Note Note
32997 \begin_layout Plain Layout
32998 The following will be displayed when the LaTeX-package
33010 \begin_layout Standard
33011 You need to install the LaTeX-package
33015 to see the following part of this section in the output.
33018 \begin_layout Standard
33022 \begin_layout Plain Layout
33034 \begin_layout Section
33036 \begin_inset Index idx
33039 \begin_layout Plain Layout
33046 \begin_inset Index idx
33049 \begin_layout Plain Layout
33050 Surrounded by text ! Initials
33058 \begin_layout Standard
33059 To use initials, you must have the LaTeX package
33064 \begin_inset Index idx
33067 \begin_layout Plain Layout
33068 LaTeX-packages ! lettrine
33073 installed and use the module
33077 in your document (menu
33079 Document\SpecialChar \menuseparator
33080 Settings\SpecialChar \menuseparator
33084 To insert an initial, use the style
33089 This style has a mandatory and an optional argument.
33090 The mandatory argument is inserted via the menu
33092 Insert\SpecialChar \menuseparator
33094 \begin_inset space ~
33099 and contains the letter that is the initial.
33100 To use the also the optional argument, insert another argument in front
33101 of the mandatory argument.
33102 This one contains parameters to modify the initial.
33103 For more information about the possible parameters see the documentation
33109 \begin_inset CommandInset citation
33116 The style itself contains the text that is surrounding the initial.
33117 The usual style is hereby that the word whose first letter is the initial,
33123 To tell LaTeX where this word is finished, add a closing brace '
33127 ' as TeX Code behind it.
33128 At the end of the style there must be an opening brace '
33135 \begin_layout Standard
33136 Here are some examples:
33139 \begin_layout Enumerate
33140 No optional argument, the initial is the letter 'I' in the math font
33141 \begin_inset Formula $\mathfrak{Fraktur}$
33148 \begin_layout Initial
33149 \begin_inset Argument
33152 \begin_layout Plain Layout
33153 \begin_inset Formula $\mathfrak{I}$
33165 \begin_layout Plain Layout
33172 was in the spring of the year 1894 that all London was interested, and
33173 the fashionable world dismayed, by the murder of the Honourable Ronald
33174 Adair under most unusual and inexplicable circumstances.
33175 The public has already learned those particulars of the crime which came
33176 out in the police investigation, but a good deal was suppressed upon that
33177 occasion, since the case for the prosecution was so overwhelmingly strong
33178 that it was not necessary to bring forward all the facts.
33182 \begin_layout Plain Layout
33190 \begin_inset Newpage newpage
33197 \begin_layout Enumerate
33198 Only one line is surrounding the initial, which is formed by two letters
33199 in standard font and no text is printed in small caps:
33203 \begin_layout Initial
33204 \begin_inset Argument
33207 \begin_layout Plain Layout
33214 \begin_inset Argument
33217 \begin_layout Plain Layout
33227 \begin_layout Plain Layout
33234 was in the spring of the year 1894 that all London was interested, and
33235 the fashionable world dismayed, by the murder of the Honourable Ronald
33236 Adair under most unusual and inexplicable circumstances.
33237 The public has already learned those particulars of the crime which came
33238 out in the police investigation, but a good deal was suppressed upon that
33239 occasion, since the case for the prosecution was so overwhelmingly strong
33240 that it was not necessary to bring forward all the facts.
33244 \begin_layout Plain Layout
33255 \begin_layout Enumerate
33256 Magenta, hanging initial over 3
33257 \begin_inset space ~
33260 lines in the math font
33261 \begin_inset Formula $\mathcal{CALLIGRAPHIC}$
33265 \begin_inset Quotes eld
33268 t was in the spring
33269 \begin_inset Quotes erd
33276 ; to color the initial, you must insert this command before the initial:
33277 \begin_inset Newline newline
33291 \begin_inset Newline newline
33299 \begin_inset Quotes eld
33303 \begin_inset Quotes erd
33307 \begin_inset Quotes eld
33311 \begin_inset Quotes erd
33315 \begin_inset Quotes eld
33319 \begin_inset Quotes erd
33323 \begin_inset Quotes eld
33327 \begin_inset Quotes erd
33331 \begin_inset Quotes eld
33335 \begin_inset Quotes erd
33339 \begin_inset Quotes eld
33343 \begin_inset Quotes erd
33347 \begin_inset Quotes eld
33351 \begin_inset Quotes erd
33355 \begin_inset Quotes eld
33359 \begin_inset Quotes erd
33362 , and add this command to the document preamble:
33363 \begin_inset Newline newline
33370 @ifundefined{textcolor}
33371 \begin_inset Newline newline
33375 \begin_inset space ~
33380 usepackage{color}}{}
33384 \begin_layout Standard
33388 \begin_layout Plain Layout
33402 \begin_inset Note Note
33405 \begin_layout Plain Layout
33406 makes the initial magenta
33414 \begin_layout Initial
33415 \begin_inset Argument
33418 \begin_layout Plain Layout
33419 lines=3, lhang=0.33, loversize=0.25
33425 \begin_inset Argument
33428 \begin_layout Plain Layout
33429 \begin_inset Formula $\mathcal{I}$
33437 t was in the spring
33441 \begin_layout Plain Layout
33448 of the year 1894 that all London was interested, and the fashionable world
33449 dismayed, by the murder of the Honourable Ronald Adair under most unusual
33450 and inexplicable circumstances.
33451 The public has already learned those particulars of the crime which came
33452 out in the police investigation, but a good deal was suppressed upon that
33453 occasion, since the case for the prosecution was so overwhelmingly strong
33454 that it was not necessary to bring forward all the facts.
33458 \begin_layout Plain Layout
33469 \begin_layout Chapter
33470 External Document Parts
33471 \begin_inset Index idx
33474 \begin_layout Plain Layout
33475 External Document Parts
33483 \begin_layout Standard
33486 Insert\SpecialChar \menuseparator
33489 you can insert external material to your document.
33493 \begin_layout Description
33495 \begin_inset space ~
33498 Document Another LyX document; its content is directly inserted to your
33502 \begin_layout Description
33504 \begin_inset space ~
33507 Text A text document; each line is inserted in your document as a separate
33511 \begin_layout Description
33513 \begin_inset space ~
33517 \begin_inset space ~
33521 \begin_inset space ~
33524 Lines A text document; text lines are inserted in your document continuously
33525 but an empty text line creates a new paragraph.
33528 \begin_layout Description
33530 \begin_inset space ~
33533 Material Files in various formats.
33536 \begin_layout Description
33538 \begin_inset space ~
33541 Document LyX or LaTeX-documents.
33544 \begin_layout Section
33546 \begin_inset Index idx
33549 \begin_layout Plain Layout
33550 External Document Parts ! External Material
33558 \begin_layout Standard
33559 The external material feature allows you to insert files in to your document
33560 without converting them to a format that can be read by the document output
33562 LyX takes care of the necessary conversions.
33563 This is similar to images that can be inserted in various image formats
33565 When you have enabled Instant Preview in LyX's preferences under
33568 \begin_inset space ~
33572 \begin_inset space ~
33575 feel\SpecialChar \menuseparator
33578 , the external material types Dia and Xfig are directly shown in LyX.
33581 \begin_layout Standard
33582 External material can be inserted via the
33586 dialog that is accessible with the menu
33588 Insert\SpecialChar \menuseparator
33589 File\SpecialChar \menuseparator
33591 \begin_inset space ~
33597 Currently the following file types (
33604 \begin_layout Description
33605 ChessDiagram This template supports chess position diagrams made with the
33609 \begin_inset CommandInset href
33612 target "http://en.wikipedia.org/wiki/XBoard"
33621 \begin_layout Description
33622 Date This inserts the date in the form
33627 This is a date inserted as external material:
33628 \begin_inset External
33635 \begin_inset space ~
33639 \begin_inset Note Note
33642 \begin_layout Plain Layout
33643 Remove the protected space when bug 4398 is fixed!
33649 \begin_inset Newline newline
33652 The date is not shown within LyX, only in the output.
33653 There are two other methods of inserting a date: Via menu
33655 Insert\SpecialChar \menuseparator
33658 and with the LaTeX command
33665 The different methods are compared in Table
33666 \begin_inset space ~
33670 \begin_inset CommandInset ref
33672 reference "tab:Comparison-of-the"
33679 \begin_layout Description
33680 Dia This template supports diagrams created with the program
33683 \begin_inset CommandInset href
33686 target "http://en.wikipedia.org/wiki/Dia_(software)"
33695 \begin_layout Description
33696 LilyPond This template is used for music notation typeset with the program
33697 \begin_inset Newline linebreak
33703 \begin_inset CommandInset href
33706 target "http://en.wikipedia.org/wiki/LilyPond"
33715 \begin_layout Description
33716 PDFPages With this template you can insert PDF documents to your document.
33717 To insert certain or all pages of a PDF, use the
33727 LaTeX and LyX options
33729 tab according to the template description in the dialog.
33734 option is given, only the first page of the PDF will be inserted.
33737 \begin_layout Description
33738 RasterImage This can be used for bitmap images.
33739 Nearly all popular image formats are supported.
33740 The image can be treated in the
33744 dialog like the images that are usually included via the
33748 dialog as described in section
33749 \begin_inset space ~
33753 \begin_inset CommandInset ref
33755 reference "sec:Graphics-Dialog"
33760 The difference is that only raster images are allowed; that means that
33761 PDF and EPS-images are not supported.
33764 \begin_layout Description
33765 XFig This template supports images created with the program
33768 \begin_inset CommandInset href
33771 target "http://en.wikipedia.org/wiki/Xfig"
33780 \begin_layout Standard
33781 \begin_inset Float table
33787 \begin_layout Plain Layout
33788 \begin_inset Caption
33790 \begin_layout Plain Layout
33791 \begin_inset CommandInset label
33793 name "tab:Comparison-of-the"
33797 Comparison of the date input methods.
33805 \begin_layout Plain Layout
33807 \begin_inset Tabular
33808 <lyxtabular version="3" rows="4" columns="4">
33809 <features tabularvalignment="middle">
33810 <column alignment="center" valignment="top" width="0">
33811 <column alignment="center" valignment="top" width="0">
33812 <column alignment="center" valignment="top" width="0">
33813 <column alignment="center" valignment="top" width="0">
33815 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33818 \begin_layout Plain Layout
33824 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33827 \begin_layout Plain Layout
33830 External Material\SpecialChar \menuseparator
33836 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33839 \begin_layout Plain Layout
33842 Insert\SpecialChar \menuseparator
33848 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33851 \begin_layout Plain Layout
33863 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33866 \begin_layout Plain Layout
33872 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33875 \begin_layout Plain Layout
33881 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33884 \begin_layout Plain Layout
33890 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33893 \begin_layout Plain Layout
33894 as TeX-Code inset box
33901 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33904 \begin_layout Plain Layout
33910 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33913 \begin_layout Plain Layout
33919 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33922 \begin_layout Plain Layout
33928 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33931 \begin_layout Plain Layout
33939 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
33942 \begin_layout Plain Layout
33948 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
33951 \begin_layout Plain Layout
33957 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
33960 \begin_layout Plain Layout
33966 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
33969 \begin_layout Plain Layout
33988 \begin_layout Standard
33989 When you use the option
34001 dialog, only the path to the inserted file is shown in the output.
34002 \begin_inset Newline newline
34005 External material is displayed in LyX either as a box like this:
34006 \begin_inset Graphics
34007 filename clipart/ExternalMaterialQt4.png
34009 scaleBeforeRotation
34013 or as image, depending on the option
34019 LaTeX and LyX options
34024 \begin_layout Standard
34031 manual explains how you can define your own templates.
34034 \begin_layout Section
34036 \begin_inset CommandInset label
34038 name "sec:Child-Documents"
34043 \begin_inset Index idx
34046 \begin_layout Plain Layout
34047 External Document Parts ! Child Documents
34053 \begin_inset Index idx
34056 \begin_layout Plain Layout
34065 \begin_layout Standard
34066 Child documents are used if you have a long document consisting of several
34067 larger parts or sections.
34068 For maintenance it is often useful and sometimes even required to split
34069 the document into several files that can be revised separately.
34070 The different documents are then the so called
34071 \begin_inset Quotes eld
34075 \begin_inset Quotes erd
34078 , and a master document connects them to print the full document or parts
34080 A child document inherits elements of its master, for example the LaTeX
34081 preamble, the bibliography, and labels for cross-references.
34084 \begin_layout Standard
34085 To be able to work on child documents without the need to open their master,
34086 specify in the child document the master in the menu
34088 Document\SpecialChar \menuseparator
34089 Settings\SpecialChar \menuseparator
34091 \begin_inset space ~
34097 This master document will then be used in the background by LyX when you
34098 edit the child document.
34101 \begin_layout Standard
34102 Included documents are displayed in LyX as a box like this:
34103 \begin_inset Graphics
34104 filename clipart/ChildDocumentQt4.png
34106 scaleBeforeRotation
34110 To include child documents in a master document use the menu
34112 Insert\SpecialChar \menuseparator
34113 File\SpecialChar \menuseparator
34115 \begin_inset space ~
34121 A dialog pops up where you can choose between four include methods:
34124 \begin_layout Description
34125 Include You can include LyX- and LaTeX-documents.
34134 dialog, the included documents will be opened in LyX in a new file tab
34135 so that you can modify them.
34136 \begin_inset Newline newline
34142 \begin_layout Standard
34143 Here is a child document inserted using
34148 \begin_inset CommandInset include
34149 LatexCommand include
34150 filename "DummyDocument1.lyx"
34157 \begin_layout Standard
34158 The section numbering includes the sections of the included files in the
34159 order they are inserted in the master document.
34160 The included example document has for example a subsection that is numbered
34161 as a subsection of this section.
34162 Labels of included documents can be referenced: Subsection
34163 \begin_inset space ~
34167 \begin_inset CommandInset ref
34169 reference "sub:External-Subsection-1"
34176 \begin_layout Standard
34177 The preamble of the child document is ignored; only the preamble of the
34178 master document is used.
34179 Branches in child documents will be ignored by the master document when
34180 the master document does not have a branch with the same name.
34181 Included documents are inserted starting on a new page and ending with
34185 \begin_layout Standard
34186 \begin_inset Note Greyedout
34189 \begin_layout Plain Layout
34194 If you have included a LyX- or LaTeX-file, you are warned when you export/view
34195 the document in case the child document uses another document class than
34196 the master document as this will lead to unexpected outputs.
34204 \begin_layout Description
34205 Input This method is very similar to the Include method.
34206 The differences are:
34210 \begin_layout Itemize
34211 Input files don't start with a new page and don't end with a page break.
34214 \begin_layout Itemize
34215 Input files can be previewed in LyX when
34218 \begin_inset space ~
34223 is enabled in LyX's preferences under
34226 \begin_inset space ~
34230 \begin_inset space ~
34233 feel\SpecialChar \menuseparator
34239 \begin_layout Itemize
34240 You cannot exclude Input files via the menu
34242 Document\SpecialChar \menuseparator
34243 Settings\SpecialChar \menuseparator
34250 \begin_layout Standard
34251 Here is a child document inserted using
34256 \begin_inset CommandInset include
34258 filename "DummyDocument2.lyx"
34265 \begin_layout Description
34266 Verbatim With this method any text file can be included.
34267 The file is shown in the output with its source code; no command used in
34268 the text is invoked.
34269 You can use the option
34271 Mark spaces in output
34273 that displays the character
34274 \begin_inset Quotes eld
34281 \begin_layout Plain Layout
34291 \begin_inset Quotes erd
34294 for every space character in the source code.
34295 The difference from the method via the menu
34297 Insert\SpecialChar \menuseparator
34298 File\SpecialChar \menuseparator
34300 \begin_inset space ~
34305 is that the document content is not shown in LyX.
34308 \begin_layout Standard
34309 Here is a child document inserted as Verbatim:
34310 \begin_inset CommandInset include
34311 LatexCommand verbatiminput
34312 filename "DummyTextDocument.txt"
34317 \begin_inset VSpace bigskip
34320 Here is a child document inserted as Verbatim using the
34322 Mark spaces in output
34325 \begin_inset CommandInset include
34326 LatexCommand verbatiminput*
34327 filename "DummyTextDocument.txt"
34334 \begin_layout Standard
34335 \begin_inset VSpace bigskip
34341 \begin_layout Standard
34342 \begin_inset Note Greyedout
34345 \begin_layout Plain Layout
34350 As you can see in the examples above, the text of the documents included
34355 is not broken at the end of the document lines.
34363 \begin_layout Description
34364 Listings This type is described in chapter
34365 \begin_inset space ~
34369 \begin_inset CommandInset ref
34371 reference "cha:Program-Code-Listings"
34378 \begin_layout Standard
34379 \begin_inset Note Greyedout
34382 \begin_layout Plain Layout
34387 Including the same document twice in a document using different methods
34388 could cause LaTeX-problems.
34396 \begin_layout Standard
34397 If you want to view/export only selected children of your master document,
34398 either because you want to save compiling time or because you want to distribut
34399 e single chapters of the book you are just writing, you can exclude children
34401 This is done via the menu
34403 Document\SpecialChar \menuseparator
34404 Settings\SpecialChar \menuseparator
34408 You can exclude\SpecialChar \slash{}
34409 include children by double-clicking on the
34413 column of the respective child document in the list (note that this only
34414 works for documents embedded via
34415 \begin_inset Quotes eld
34419 \begin_inset Quotes erd
34423 \begin_inset Quotes eld
34427 \begin_inset Quotes erd
34433 Maintain counters and references
34435 is enabled, LyX will assure that all page numbers, references etc.
34436 \begin_inset space ~
34439 are correct as if the whole document was processed.
34440 This is useful if you want the selected sub-documents to look exactly as
34441 in the context of the whole document.
34442 However, LyX needs to process the whole document in the background for
34444 So if you want to save compile time and if counters and references do not
34445 need to be correct, disable this checkbox.
34448 \begin_layout Standard
34449 Alternatively, you can put each included file into a branch.
34453 \begin_layout Plain Layout
34454 Branches are described in section
34467 By enabling\SpecialChar \slash{}
34468 disabling branches you can decide which included files will
34469 appear in the output.
34470 This has the advantage that it also works with Input'ed sub-documents.
34471 However, counters and references will not be maintained with this approach.
34474 \begin_layout Chapter
34475 Program Code Listings
34476 \begin_inset CommandInset label
34478 name "cha:Program-Code-Listings"
34483 \begin_inset Index idx
34486 \begin_layout Plain Layout
34493 \begin_inset Index idx
34496 \begin_layout Plain Layout
34503 \begin_inset Index idx
34506 \begin_layout Plain Layout
34515 \begin_layout Standard
34516 To include and typeset program code you can use the
34520 inset that can be inserted via the menu
34522 Insert\SpecialChar \menuseparator
34531 \begin_inset Index idx
34534 \begin_layout Plain Layout
34535 LaTeX-packages ! listings
34540 provides a powerful and flexible way to insert program source code into
34544 \begin_layout Standard
34545 Right-clicking on a listings inset opens the context menu containing where
34546 you can set the listings format.
34549 \begin_layout Standard
34550 By default, a listing starts a new paragraph in the output.
34551 The placement option
34554 \begin_inset space ~
34559 prints the listing inline like this:
34560 \begin_inset listings
34561 lstparams "language={C++}"
34565 \begin_layout Plain Layout
34573 \begin_inset Newline newline
34580 creates a listings float where you can specify the placement options
34581 \begin_inset Quotes eld
34589 \begin_inset Quotes erd
34593 \begin_inset Quotes eld
34601 \begin_inset Quotes erd
34605 \begin_inset Quotes eld
34613 \begin_inset Quotes erd
34617 \begin_inset Quotes eld
34625 \begin_inset Quotes erd
34628 corresponding to the float placement options described in section
34629 \begin_inset space ~
34633 \begin_inset CommandInset ref
34635 reference "sec:Float-Placement"
34640 The placement options can be mixed and are inserted without any separation,
34642 \begin_inset space \thinspace{}
34646 \begin_inset space \space{}
34650 \begin_inset Quotes eld
34658 \begin_inset Quotes erd
34663 \begin_inset Quotes eld
34667 \begin_inset Quotes erd
34670 has sometimes no effect, but you don't need to use the
34674 option in this case as also non-float listings can have captions and be
34678 \begin_layout Standard
34679 You can add captions to listings with the menu
34681 Insert\SpecialChar \menuseparator
34685 Listings can be referenced like floats: Listing
34686 \begin_inset space ~
34690 \begin_inset CommandInset ref
34692 reference "lst:Example-Listing"
34699 \begin_layout Standard
34700 \begin_inset listings
34701 lstparams "language=Python"
34705 \begin_layout Plain Layout
34707 \begin_inset Caption
34709 \begin_layout Plain Layout
34710 \begin_inset CommandInset label
34712 name "lst:Example-Listing"
34716 Example Listing float
34721 # Example listing float
34724 \begin_layout Plain Layout
34729 \begin_layout Plain Layout
34731 'this is a python function'
34734 \begin_layout Plain Layout
34744 \begin_layout Standard
34745 When you have set a programming language in the listings dialog, the keywords
34746 of this language will be recognized and specially typeset in the output.
34747 In the example listings the Python keyword
34748 \begin_inset Quotes eld
34752 \begin_inset Quotes erd
34755 is recognized and printed bold in the output.
34758 \begin_layout Standard
34759 \begin_inset Note Greyedout
34762 \begin_layout Plain Layout
34767 If you don't get bold keywords when using typewriter fonts, your
34771 font probably doesn't provide a bold shape.
34772 In this case select a different one in the menu
34774 Document\SpecialChar \menuseparator
34775 Settings\SpecialChar \menuseparator
34787 provide bold shapes.)
34795 \begin_layout Standard
34799 \begin_inset space ~
34804 of the listings dialog you can specify the line numbering style.
34805 You can insert a number to specify which lines are numbered in the field
34812 \begin_inset space \thinspace{}
34816 \begin_inset space \space{}
34820 \begin_inset Quotes eld
34824 \begin_inset Quotes erd
34827 , only every 3rd line will be numbered.
34830 \begin_layout Standard
34831 You can furthermore specify a range of lines; only these will then appear
34835 Extended character table
34837 should be used when you use national characters like the German umlauts
34839 \begin_inset Newline newline
34842 Here is an example listing with left line numbering, step
34843 \begin_inset Quotes eld
34847 \begin_inset Quotes erd
34851 \begin_inset Quotes eld
34855 \begin_inset Quotes erd
34859 \begin_inset Quotes eld
34862 Extended character table
34863 \begin_inset Quotes erd
34867 \begin_inset Quotes eld
34871 \begin_inset space ~
34875 \begin_inset space ~
34879 \begin_inset Quotes erd
34883 \begin_inset space \thinspace{}
34887 \begin_inset space \thinspace{}
34893 \begin_layout Standard
34894 \begin_inset listings
34895 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
34899 \begin_layout Plain Layout
34904 \begin_layout Plain Layout
34906 'this is a python function'
34909 \begin_layout Plain Layout
34914 \begin_layout Plain Layout
34919 \begin_layout Plain Layout
34921 'This is a German word: Tschüß'
34924 \begin_layout Plain Layout
34929 \begin_layout Plain Layout
34934 \begin_layout Plain Layout
34936 'this is a python function'
34939 \begin_layout Plain Layout
34949 \begin_layout Standard
34950 When you have tabulators in your listing, you can specify the number of
34951 characters that are spanned by a tabulator in the field
34954 \begin_inset space ~
34962 \begin_layout Standard
34963 \begin_inset Note Greyedout
34966 \begin_layout Plain Layout
34971 Due to a bug in the
34975 package the line numbering is shifted by a line by every previous listing.
34976 That's the reason why the lines 2 and 5 are numbered in the above listing
34977 and not the lines 3 and 6.
34985 \begin_layout Standard
34986 \begin_inset VSpace bigskip
34992 \begin_layout Standard
34993 It is also possible to print lines from a file as listing.
34994 To do this, use the menu
34996 Insert\SpecialChar \menuseparator
34997 File\SpecialChar \menuseparator
35000 and choose the type
35008 \begin_layout Plain Layout
35009 The other child document types are described in section
35010 \begin_inset space ~
35014 \begin_inset CommandInset ref
35016 reference "sec:Child-Documents"
35025 In the child document dialog you can specify the listing parameters in
35027 To show a list of all available parameters, type in a question mark
35028 \begin_inset Quotes eld
35032 \begin_inset Quotes erd
35038 \begin_layout Standard
35039 To reference child document listings, write a label text into the corresponding
35040 field of the child document dialog.
35041 The label can then be referenced using the menu
35043 Insert\SpecialChar \menuseparator
35049 \begin_layout Standard
35051 \begin_inset space ~
35055 \begin_inset CommandInset ref
35057 reference "lst:file-listing"
35061 is an example for a listing of a file; there the lines 10
35062 \begin_inset space \thinspace{}
35066 \begin_inset space \thinspace{}
35069 15 of this LyX file are listed.
35072 \begin_layout Standard
35073 \begin_inset CommandInset include
35074 LatexCommand lstinputlisting
35075 filename "EmbeddedObjects.lyx"
35076 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
35083 \begin_layout Standard
35084 \begin_inset VSpace bigskip
35090 \begin_layout Standard
35091 Inserting a formula into a listing can be done the following way:
35094 \begin_layout Enumerate
35095 Open the listings dialog and add
35096 \begin_inset Newline newline
35104 \begin_inset Newline newline
35107 to the field of the
35114 \begin_layout Enumerate
35115 Create a formula outside the listing
35118 \begin_layout Enumerate
35119 Copy the content of the formula (not the formula inset) to the clipboard
35129 \begin_layout Enumerate
35130 In the listing write
35131 \begin_inset Quotes eld
35139 \begin_inset Quotes erd
35142 and copy from the clipboard between the dollar-signs (shortcut
35151 \begin_layout Standard
35152 \begin_inset listings
35153 lstparams "language=Python,mathescape=true"
35157 \begin_layout Plain Layout
35159 \begin_inset Caption
35161 \begin_layout Plain Layout
35162 Example Listing float containing a formula
35167 # Example listing float
35170 \begin_layout Plain Layout
35175 \begin_layout Plain Layout
35188 \begin_layout Plain Layout
35198 \begin_layout Standard
35199 \begin_inset VSpace bigskip
35205 \begin_layout Standard
35206 Global listings settings can be set in the
35208 Document\SpecialChar \menuseparator
35209 Settings\SpecialChar \menuseparator
35213 To get there a list of available options, type in a question mark
35214 \begin_inset Quotes eld
35218 \begin_inset Quotes erd
35224 \begin_layout Standard
35225 For more information about the
35229 package, we refer to its documentation
35230 \begin_inset CommandInset citation
35239 \begin_layout Standard
35240 \begin_inset Newpage newpage
35246 \begin_layout Chapter
35248 Units available in LyX
35249 \begin_inset Index idx
35252 \begin_layout Plain Layout
35259 \begin_inset CommandInset label
35261 name "cha:Units-available-in"
35268 \begin_layout Standard
35269 To understand the units described in this documentation, Table
35270 \begin_inset space ~
35274 \begin_inset CommandInset ref
35276 reference "tab:Units"
35280 explains all units available in LyX.
35283 \begin_layout Standard
35284 \begin_inset Float table
35290 \begin_layout Plain Layout
35291 \begin_inset Caption
35293 \begin_layout Plain Layout
35294 \begin_inset CommandInset label
35308 \begin_layout Plain Layout
35309 \begin_inset VSpace medskip
35315 \begin_layout Plain Layout
35317 \begin_inset Tabular
35318 <lyxtabular version="3" rows="20" columns="2">
35319 <features tabularvalignment="middle">
35320 <column alignment="center" valignment="top" width="0">
35321 <column alignment="center" valignment="top" width="0">
35323 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35326 \begin_layout Plain Layout
35332 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
35335 \begin_layout Plain Layout
35343 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35346 \begin_layout Plain Layout
35352 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35355 \begin_layout Plain Layout
35363 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35366 \begin_layout Plain Layout
35372 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35375 \begin_layout Plain Layout
35383 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35386 \begin_layout Plain Layout
35392 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35395 \begin_layout Plain Layout
35403 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35406 \begin_layout Plain Layout
35412 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35415 \begin_layout Plain Layout
35417 \begin_inset space \thinspace{}
35421 \begin_inset space \thinspace{}
35431 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35434 \begin_layout Plain Layout
35440 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35443 \begin_layout Plain Layout
35445 \begin_inset space \thinspace{}
35449 \begin_inset space \thinspace{}
35459 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35462 \begin_layout Plain Layout
35468 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35471 \begin_layout Plain Layout
35472 scaled point (65536
35473 \begin_inset space \thinspace{}
35477 \begin_inset space \thinspace{}
35487 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35490 \begin_layout Plain Layout
35496 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35499 \begin_layout Plain Layout
35501 \begin_inset space \thinspace{}
35505 \begin_inset space \thinspace{}
35515 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35518 \begin_layout Plain Layout
35524 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35527 \begin_layout Plain Layout
35529 \begin_inset space \thinspace{}
35533 \begin_inset Formula $\approx$
35537 \begin_inset space \thinspace{}
35547 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35550 \begin_layout Plain Layout
35556 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35559 \begin_layout Plain Layout
35561 \begin_inset space \thinspace{}
35565 \begin_inset space \thinspace{}
35575 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35578 \begin_layout Plain Layout
35584 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35587 \begin_layout Plain Layout
35588 % of original image width
35595 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35598 \begin_layout Plain Layout
35604 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35607 \begin_layout Plain Layout
35615 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35618 \begin_layout Plain Layout
35624 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35627 \begin_layout Plain Layout
35635 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35638 \begin_layout Plain Layout
35644 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35647 \begin_layout Plain Layout
35655 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35658 \begin_layout Plain Layout
35664 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35667 \begin_layout Plain Layout
35675 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35678 \begin_layout Plain Layout
35684 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35687 \begin_layout Plain Layout
35695 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35698 \begin_layout Plain Layout
35704 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35707 \begin_layout Plain Layout
35715 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35718 \begin_layout Plain Layout
35724 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35727 \begin_layout Plain Layout
35739 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35742 \begin_layout Plain Layout
35748 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35751 \begin_layout Plain Layout
35763 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35766 \begin_layout Plain Layout
35772 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
35775 \begin_layout Plain Layout
35777 \begin_inset space \thinspace{}
35781 \begin_inset space \thinspace{}
35802 \begin_layout Chapter
35803 Output File Formats with Graphics
35804 \begin_inset CommandInset label
35806 name "cha:Output-File-Formats"
35813 \begin_layout Section
35815 \begin_inset Index idx
35818 \begin_layout Plain Layout
35825 \begin_inset Index idx
35828 \begin_layout Plain Layout
35833 \begin_layout Plain Layout
35844 \begin_layout Plain Layout
35859 \begin_layout Standard
35860 This file type has the extension
35861 \begin_inset Quotes eld
35869 \begin_inset Quotes erd
35874 \begin_inset Quotes eld
35878 \begin_inset Quotes erd
35881 (DVI), because it is completely portable; you can move them from one machine
35882 to another without needing to do any sort of conversion.
35883 At the time when this file-format was developed, this was no matter of
35885 DVIs are used for quick previews and as pre-stage for other output formats,
35889 \begin_layout Standard
35890 \begin_inset Note Greyedout
35893 \begin_layout Plain Layout
35898 DVI-files do not contain images; they will only be a linked.
35903 So don't forget this, if you move your
35907 file to another computer.
35908 This property can also slow down your computer when you view the DVI, because
35909 the DVI-viewer has to convert the image in the background to make it visible
35910 when you scroll in the DVI.
35911 So it is recommended that you use PDF for files with many images.
35914 \begin_layout Standard
35915 You can export your document to DVI by using the menu
35917 File\SpecialChar \menuseparator
35918 Export\SpecialChar \menuseparator
35922 You can view your document as DVI via the
35926 menu or by using the toolbar button
35927 \begin_inset Graphics
35928 filename ../images/buffer-view_dvi.png
35930 scaleBeforeRotation
35937 \begin_layout Section
35939 \begin_inset CommandInset label
35941 name "sec:PostScript"
35946 \begin_inset Index idx
35949 \begin_layout Plain Layout
35950 File Formats ! PostScript
35956 \begin_inset Index idx
35959 \begin_layout Plain Layout
35964 \begin_layout Plain Layout
35975 \begin_layout Plain Layout
35990 \begin_layout Standard
35991 This file type has the extension
35992 \begin_inset Quotes eld
36000 \begin_inset Quotes erd
36004 PostScript was developed by the company
36008 as a printer language.
36009 The file therefore contains commands that the printer uses to print the
36011 PostScript can be seen as a
36012 \begin_inset Quotes eld
36015 programming language
36016 \begin_inset Quotes erd
36019 ; you can calculate with it and draw diagrams and images
36023 \begin_layout Plain Layout
36024 If you are interested to learn more about this, have a look at the LaTeX-package
36030 \begin_inset CommandInset citation
36042 Due to this ability, the files are often bigger than PDFs.
36045 \begin_layout Standard
36046 PostScript can only contain images in the format
36047 \begin_inset Quotes eld
36050 Encapsulated PostScript
36051 \begin_inset Quotes erd
36054 (EPS, file extension
36055 \begin_inset Quotes eld
36063 \begin_inset Quotes erd
36067 As LyX allows you to use any known image format in your document, it has
36068 to convert images in the background to EPS.
36070 \begin_inset space ~
36074 \begin_inset space ~
36077 images in your document, LyX has to do 50
36078 \begin_inset space ~
36081 conversions whenever you view or export your document.
36082 This will slow down your work flow with LyX drastically.
36083 So if you plan to use PostScript, you can insert your images directly as
36084 EPS to avoid this problem.
36087 \begin_layout Standard
36088 You can export your document to PostScript using the menu
36090 File\SpecialChar \menuseparator
36091 Export\SpecialChar \menuseparator
36095 You can view your document as PostScript via the
36099 menu or by using the toolbar button
36100 \begin_inset Graphics
36101 filename ../images/buffer-view_ps.png
36103 scaleBeforeRotation
36110 \begin_layout Section
36112 \begin_inset Index idx
36115 \begin_layout Plain Layout
36122 \begin_inset Index idx
36125 \begin_layout Plain Layout
36134 \begin_layout Standard
36135 This file type has the extension
36136 \begin_inset Quotes eld
36144 \begin_inset Quotes erd
36149 \begin_inset Quotes eld
36152 Portable Document Format
36153 \begin_inset Quotes erd
36156 (PDF) was developed by
36160 as a derivative of PostScript.
36161 It is more compressed and it uses fewer commands than PostScript.
36163 \begin_inset Quotes eld
36167 \begin_inset Quotes erd
36170 implies, it can be processed at any computer system and the printed output
36171 looks exactly the same.
36174 \begin_layout Standard
36175 PDF can contain images in its own PDF format, in the format
36176 \begin_inset Quotes eld
36179 Joint Photographic Experts Group
36180 \begin_inset Quotes erd
36183 (JPG, file extension
36184 \begin_inset Quotes eld
36192 \begin_inset Quotes erd
36196 \begin_inset Quotes eld
36204 \begin_inset Quotes erd
36207 ), and in the format
36208 \begin_inset Quotes eld
36211 Portable Network Graphics
36212 \begin_inset Quotes erd
36215 (PNG, file extension
36216 \begin_inset Quotes eld
36224 \begin_inset Quotes erd
36228 Nevertheless you can use any other image format, because LyX converts them
36229 in the background to one of these formats.
36230 But as described in the section about PostScript, the image conversion
36231 will slow down your work flow.
36232 So it is recommended that you use images in one of the three mentioned
36236 \begin_layout Standard
36237 You can export your document to PDF via the menu
36239 File\SpecialChar \menuseparator
36242 in three different ways:
36245 \begin_layout Description
36247 \begin_inset space ~
36250 (ps2pdf) This uses the program
36254 that creates a PDF from a PostScript-version of your file.
36255 The PostScript-version is produced by the program
36259 which uses a DVI-version as intermediate step.
36260 So this export variant consists of three conversions.
36263 \begin_layout Description
36265 \begin_inset space ~
36268 (dvipdfm) This uses the program
36272 that converts your file in the background to DVI and in a second step to
36276 \begin_layout Description
36278 \begin_inset space ~
36281 (pdflatex) This uses the program
36285 that converts your file directly to PDF.
36288 \begin_layout Standard
36289 It is recommended that you use
36292 \begin_inset space ~
36301 supports all features of actual PDF-versions, is quick and works stable.
36306 is not under development and therefore a bit outdated.
36309 \begin_layout Standard
36310 You can view your document as PDF via the
36314 menu or by using the toolbar button
36315 \begin_inset Graphics
36316 filename ../images/buffer-view_pdf2.png
36318 scaleBeforeRotation
36329 \begin_inset space ~
36337 \begin_layout Chapter
36338 Explanation of Equation
36339 \begin_inset space ~
36343 \begin_inset CommandInset ref
36350 \begin_inset CommandInset label
36352 name "cha:Explanation-of-Equation"
36359 \begin_layout Standard
36360 We can calculate the total width of
36365 \begin_inset Formula $W_{\mathrm{tot\, n}}$
36371 \begin_layout Standard
36372 \begin_inset Formula
36374 W_{\mathrm{tot}\, n}=n\cdot(W_{g\, n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}
36380 \begin_inset Formula $W_{g\, n}$
36383 is the given width of all cells,
36389 is the LaTeX-length between the cell text and the cell border (its default
36391 \begin_inset space \thinspace{}
36401 is the thickness of the cell border line, the default is 0.4
36402 \begin_inset space \thinspace{}
36408 \begin_layout Standard
36410 \begin_inset space ~
36414 \begin_inset CommandInset ref
36416 reference "eq:Wtot_n"
36420 , the total width of a multicolumn
36421 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
36427 \begin_layout Standard
36428 \begin_inset Formula
36430 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}
36438 \begin_layout Standard
36439 By setting equation
36440 \begin_inset space ~
36444 \begin_inset CommandInset ref
36446 reference "eq:Wtot_n"
36451 \begin_inset CommandInset ref
36453 reference "eq:Wtot_mult"
36457 equal we can calculate the needed given width
36458 \begin_inset Formula $W_{g\, n}$
36465 columns are spanned, so that each column has a total width of
36466 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
36472 \begin_layout Standard
36473 \begin_inset Formula
36475 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n
36483 \begin_layout Bibliography
36484 \labelwidthstring Bibliography
36485 \begin_inset CommandInset bibitem
36486 LatexCommand bibitem
36487 key "latexcompanion"
36491 Frank Mittelbach and Michel Goossens:
36493 The LaTeX Companion Second Edition.
36496 Addison-Wesley, 2004
36499 \begin_layout Bibliography
36500 \labelwidthstring Bibliography
36501 \begin_inset CommandInset bibitem
36502 LatexCommand bibitem
36507 Helmut Kopka and Patrick W.
36510 A Guide to LaTeX Fourth Edition.
36513 Addison-Wesley, 2003
36516 \begin_layout Bibliography
36517 \labelwidthstring Bibliography
36518 \begin_inset CommandInset bibitem
36519 LatexCommand bibitem
36526 LaTeX: A Document Preparation System.
36529 Addison-Wesley, second edition, 1994
36532 \begin_layout Bibliography
36533 \labelwidthstring Bibliography
36534 \begin_inset CommandInset bibitem
36535 LatexCommand bibitem
36540 Documentation of the LaTeX-package
36543 \begin_inset CommandInset href
36546 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
36553 \begin_inset Index idx
36556 \begin_layout Plain Layout
36557 LaTeX-packages ! booktabs
36565 \begin_layout Bibliography
36566 \labelwidthstring Bibliography
36567 \begin_inset CommandInset bibitem
36568 LatexCommand bibitem
36573 Documentation of the LaTeX-package
36576 \begin_inset CommandInset href
36579 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf"
36586 \begin_inset Index idx
36589 \begin_layout Plain Layout
36590 LaTeX-packages ! caption
36598 \begin_layout Bibliography
36599 \labelwidthstring Bibliography
36600 \begin_inset CommandInset bibitem
36601 LatexCommand bibitem
36606 Documentation of the LaTeX-package
36609 \begin_inset CommandInset href
36612 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
36619 \begin_inset Index idx
36622 \begin_layout Plain Layout
36623 LaTeX-packages ! endfloat
36631 \begin_layout Bibliography
36632 \labelwidthstring Bibliography
36633 \begin_inset CommandInset bibitem
36634 LatexCommand bibitem
36639 Documentation of the LaTeX-package
36642 \begin_inset CommandInset href
36645 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/wrapfig/wrapfig.sty"
36652 \begin_inset Index idx
36655 \begin_layout Plain Layout
36656 LaTeX-packages ! wrapfig
36660 \begin_layout Plain Layout
36677 \begin_layout Bibliography
36678 \labelwidthstring Bibliography
36679 \begin_inset CommandInset bibitem
36680 LatexCommand bibitem
36685 Documentation of the LaTeX-package
36688 \begin_inset CommandInset href
36691 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
36698 \begin_inset Index idx
36701 \begin_layout Plain Layout
36702 LaTeX-packages ! footmisc
36710 \begin_layout Bibliography
36711 \labelwidthstring Bibliography
36712 \begin_inset CommandInset bibitem
36713 LatexCommand bibitem
36718 Documentation of the LaTeX-package
36721 \begin_inset CommandInset href
36724 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
36731 \begin_inset Index idx
36734 \begin_layout Plain Layout
36735 LaTeX-packages ! hyperref
36743 \begin_layout Bibliography
36744 \labelwidthstring Bibliography
36745 \begin_inset CommandInset bibitem
36746 LatexCommand bibitem
36751 Documentation of the LaTeX-package
36754 \begin_inset CommandInset href
36757 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
36764 \begin_inset Index idx
36767 \begin_layout Plain Layout
36768 LaTeX-packages ! hyperref
36776 \begin_layout Bibliography
36777 \labelwidthstring Bibliography
36778 \begin_inset CommandInset bibitem
36779 LatexCommand bibitem
36784 Documentation of the LaTeX-package
36787 \begin_inset CommandInset href
36790 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf"
36797 \begin_inset Index idx
36800 \begin_layout Plain Layout
36801 LaTeX-packages ! KOMA-Script
36809 \begin_layout Bibliography
36810 \labelwidthstring Bibliography
36811 \begin_inset CommandInset bibitem
36812 LatexCommand bibitem
36817 Documentation of the LaTeX-package
36820 \begin_inset CommandInset href
36823 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
36830 \begin_inset Index idx
36833 \begin_layout Plain Layout
36834 LaTeX-packages ! listings
36842 \begin_layout Bibliography
36843 \labelwidthstring Bibliography
36844 \begin_inset CommandInset bibitem
36845 LatexCommand bibitem
36850 Documentation of the LaTeX-package
36853 \begin_inset CommandInset href
36856 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
36863 \begin_inset Index idx
36866 \begin_layout Plain Layout
36867 LaTeX-packages ! marginnote
36875 \begin_layout Bibliography
36876 \labelwidthstring Bibliography
36877 \begin_inset CommandInset bibitem
36878 LatexCommand bibitem
36883 Documentation of the LaTeX-package
36886 \begin_inset CommandInset href
36889 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/lettrine.pdf"
36896 \begin_inset CommandInset href
36899 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/demo.pdf"
36904 \begin_inset Index idx
36907 \begin_layout Plain Layout
36908 LaTeX-packages ! lettrine
36916 \begin_layout Bibliography
36917 \labelwidthstring Bibliography
36918 \begin_inset CommandInset bibitem
36919 LatexCommand bibitem
36924 Web page of the LaTeX-package
36927 \begin_inset CommandInset href
36930 target "http://tug.org/PSTricks/"
36937 \begin_inset Index idx
36940 \begin_layout Plain Layout
36941 LaTeX-packages ! PSTricks
36949 \begin_layout Bibliography
36950 \labelwidthstring Bibliography
36951 \begin_inset CommandInset bibitem
36952 LatexCommand bibitem
36957 Documentation of the LaTeX-package
36960 \begin_inset CommandInset href
36963 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
36970 \begin_inset Index idx
36973 \begin_layout Plain Layout
36974 LaTeX-packages ! sidecap
36982 \begin_layout Bibliography
36983 \labelwidthstring Bibliography
36984 \begin_inset CommandInset bibitem
36985 LatexCommand bibitem
36990 Documentation of the LaTeX-package
36993 \begin_inset CommandInset href
36996 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
37003 \begin_inset Index idx
37006 \begin_layout Plain Layout
37007 LaTeX-packages ! prettyref
37015 \begin_layout Bibliography
37016 \labelwidthstring Bibliography
37017 \begin_inset CommandInset bibitem
37018 LatexCommand bibitem
37023 Documentation of the LaTeX-package
37026 \begin_inset CommandInset href
37029 target "http://www.ctan.org/tex-archive/macros/latex/contrib/refstyle/doc/latex/refstyle/refstyle.pdf"
37036 \begin_inset Index idx
37039 \begin_layout Plain Layout
37040 LaTeX-packages ! refstyle
37048 \begin_layout Bibliography
37049 \labelwidthstring Bibliography
37050 \begin_inset CommandInset bibitem
37051 LatexCommand bibitem
37057 \begin_inset CommandInset href
37060 target "http://wiki.lyx.org/LyX/NewInLyX20"
37064 about new features in
37071 \begin_layout Standard
37072 \begin_inset CommandInset index_print
37073 LatexCommand printindex