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 Standard
12819 To start a new line in a multirow you can use a forced line break (shortcut
12823 arg "newline-insert newline"
12826 ) but this will not respect the cell lines as demonstrated in this table:
12829 \begin_layout Standard
12832 \begin_inset Tabular
12833 <lyxtabular version="3" rows="3" columns="2">
12834 <features tabularvalignment="middle">
12835 <column alignment="left" valignment="middle" width="2cm">
12836 <column alignment="center" valignment="top" width="0">
12838 <cell multirow="3" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12841 \begin_layout Plain Layout
12843 \begin_inset Newline newline
12847 \begin_inset Newline newline
12855 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12858 \begin_layout Plain Layout
12866 <cell multirow="4" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12869 \begin_layout Plain Layout
12875 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12878 \begin_layout Plain Layout
12886 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12889 \begin_layout Plain Layout
12895 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12898 \begin_layout Plain Layout
12912 \begin_layout Standard
12913 Therefore be careful with forced line breaks.
12916 \begin_layout Section
12918 \begin_inset CommandInset label
12920 name "sec:Formal-Tables"
12925 \begin_inset Index idx
12928 \begin_layout Plain Layout
12937 \begin_layout Standard
12938 Tables are often typeset in books similar to Table
12939 \begin_inset space ~
12943 \begin_inset CommandInset ref
12945 reference "tab:Example-booktabs-table"
12950 This kind of tables is called
12951 \begin_inset Quotes eld
12959 \begin_inset Quotes erd
12963 To make a table a formal table use the option
12971 tab of the table dialog.
12974 \begin_layout Standard
12975 \begin_inset Float table
12981 \begin_layout Plain Layout
12982 \begin_inset Caption
12984 \begin_layout Plain Layout
12985 \begin_inset CommandInset label
12987 name "tab:Example-booktabs-table"
12991 Example booktabs-table
12999 \begin_layout Plain Layout
13001 \begin_inset Tabular
13002 <lyxtabular version="3" rows="8" columns="4">
13003 <features booktabs="true" tabularvalignment="middle">
13004 <column alignment="center" valignment="top" width="0">
13005 <column alignment="center" valignment="top" width="0">
13006 <column alignment="center" valignment="top" width="0">
13007 <column alignment="center" valignment="top" width="0">
13009 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13012 \begin_layout Plain Layout
13018 <cell alignment="center" valignment="top" topline="true" usebox="none">
13021 \begin_layout Plain Layout
13023 \begin_inset space \thinspace{}
13031 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
13034 \begin_layout Plain Layout
13036 \begin_inset space \thinspace{}
13044 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13047 \begin_layout Plain Layout
13055 <cell alignment="center" valignment="top" rightline="true" usebox="none">
13058 \begin_layout Plain Layout
13062 \begin_layout Plain Layout
13075 \begin_layout Plain Layout
13084 Detector thickness in µm
13089 <cell alignment="center" valignment="top" usebox="none">
13092 \begin_layout Plain Layout
13098 <cell alignment="center" valignment="top" usebox="none">
13101 \begin_layout Plain Layout
13107 <cell alignment="center" valignment="top" usebox="none">
13110 \begin_layout Plain Layout
13118 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13121 \begin_layout Plain Layout
13127 <cell alignment="center" valignment="top" topline="true" usebox="none">
13130 \begin_layout Plain Layout
13136 <cell alignment="center" valignment="top" topline="true" usebox="none">
13139 \begin_layout Plain Layout
13145 <cell alignment="center" valignment="top" topline="true" usebox="none">
13148 \begin_layout Plain Layout
13155 <row topspace="default">
13156 <cell alignment="center" valignment="top" rightline="true" usebox="none">
13159 \begin_layout Plain Layout
13160 Spatial resolution in µm
13165 <cell alignment="center" valignment="top" usebox="none">
13168 \begin_layout Plain Layout
13174 <cell alignment="center" valignment="top" usebox="none">
13177 \begin_layout Plain Layout
13183 <cell alignment="center" valignment="top" usebox="none">
13186 \begin_layout Plain Layout
13193 <row topspace="default">
13194 <cell alignment="center" valignment="top" rightline="true" usebox="none">
13197 \begin_layout Plain Layout
13199 \begin_inset Formula $f_{\mathrm{max}}$
13207 <cell alignment="center" valignment="top" usebox="none">
13210 \begin_layout Plain Layout
13216 <cell alignment="center" valignment="top" usebox="none">
13219 \begin_layout Plain Layout
13225 <cell alignment="center" valignment="top" usebox="none">
13228 \begin_layout Plain Layout
13235 <row topspace="default">
13236 <cell alignment="center" valignment="top" rightline="true" usebox="none">
13239 \begin_layout Plain Layout
13243 \begin_layout Plain Layout
13247 cmidrule(l{10pt}){1-1}
13252 LSF-spatial resolution
13257 <cell alignment="center" valignment="top" usebox="none">
13260 \begin_layout Plain Layout
13266 <cell alignment="center" valignment="top" usebox="none">
13269 \begin_layout Plain Layout
13275 <cell alignment="center" valignment="top" usebox="none">
13278 \begin_layout Plain Layout
13286 <cell alignment="center" valignment="top" rightline="true" usebox="none">
13289 \begin_layout Plain Layout
13295 <cell alignment="center" valignment="top" usebox="none">
13298 \begin_layout Plain Layout
13304 <cell alignment="center" valignment="top" usebox="none">
13307 \begin_layout Plain Layout
13313 <cell alignment="center" valignment="top" usebox="none">
13316 \begin_layout Plain Layout
13324 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
13327 \begin_layout Plain Layout
13333 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13336 \begin_layout Plain Layout
13342 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13345 \begin_layout Plain Layout
13351 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13354 \begin_layout Plain Layout
13373 \begin_layout Standard
13374 Spaces to table rows can be added using the
13378 tab of the table dialog as described in section
13379 \begin_inset space ~
13383 \begin_inset CommandInset ref
13385 reference "sub:Row-Spacing"
13392 \begin_layout Standard
13393 Unlike normal tables, formal tables have no vertical table lines.
13394 The horizontal table lines can be set as for normal tables but they appear
13395 with different widths in the output:
13396 \begin_inset Newline newline
13399 The first and the last table line have a default width of 0.08
13400 \begin_inset space \thinspace{}
13403 em while the other lines have a default width of 0.05
13404 \begin_inset space \thinspace{}
13410 \begin_layout Standard
13411 The default widths can be changed with the following preamble lines
13414 \begin_layout Standard
13424 \begin_inset Newline newline
13436 \begin_layout Standard
13437 This example is for the first line, the so called
13442 If you want to change the width for the last line, replace
13451 To change the width for the other lines replace
13460 You can use all units listed in appendix
13461 \begin_inset space ~
13465 \begin_inset CommandInset ref
13467 reference "cha:Units-available-in"
13474 \begin_layout Standard
13475 Lines that do not span all table columns can be created by setting a table
13476 line for multicolumn cells.
13477 LyX will then internally use the command
13483 to create this line.
13487 \begin_layout Standard
13492 cmidrule[width](trim){startcol-endcol}
13495 \begin_layout Standard
13502 are currently not supported by LyX so you have to use TeX-Code to be able
13510 s can manually be created by inserting the command as TeX-Code as the first
13511 cell entry of the first cell of a row.
13512 The line is then drawn in the output above the current row.
13515 \begin_layout Standard
13516 The default for the width is 0.03
13517 \begin_inset space \thinspace{}
13521 Startcol is the number of the column where the line starts and endcol the
13522 column number where the line ends.
13523 The endcol always needs to be specified, also when the line should span
13525 The optional parameter trim could be either
13533 where the trimwidth is also optional.
13534 Using for example the parameter
13538 means that the line is trimmed from its left end by 2
13539 \begin_inset space \thinspace{}
13543 If you don't specify the trimwidth the lines are trimmed by the default
13545 \begin_inset space \thinspace{}
13551 \begin_layout Standard
13552 \begin_inset VSpace bigskip
13556 \begin_inset space ~
13560 \begin_inset CommandInset ref
13562 reference "tab:Example-booktabs-table"
13566 was created using the commands
13569 \begin_layout Standard
13579 \begin_layout Standard
13580 at the beginning of the second row and
13583 \begin_layout Standard
13588 cmidrule(l{10pt}){1-1}
13591 \begin_layout Standard
13595 \begin_layout Standard
13596 \begin_inset VSpace bigskip
13602 \begin_layout Standard
13603 You might want to have overlapping
13610 \begin_inset space ~
13614 \begin_inset CommandInset ref
13616 reference "tab:Special-booktabs-table"
13621 This can be achieved with the TeX-Code command
13624 \begin_layout Standard
13632 \begin_layout Standard
13633 The command that was used for the second row of Table
13634 \begin_inset space ~
13638 \begin_inset CommandInset ref
13640 reference "tab:Special-booktabs-table"
13647 \begin_layout Standard
13661 \begin_layout Standard
13662 The command for the sixth row is
13665 \begin_layout Standard
13677 \begin_layout Standard
13678 \begin_inset VSpace bigskip
13684 \begin_layout Standard
13685 If you are anyway not satisfied with the border line spacing, you can use
13686 the following command to produce lines that span over all table columns
13691 \begin_layout Standard
13696 specialrule{width}{space above}{space below}
13699 \begin_layout Standard
13700 For more information about these features, refer to the manual of the LaTeX-pack
13706 \begin_inset CommandInset citation
13713 \begin_inset Index idx
13716 \begin_layout Plain Layout
13717 LaTeX-packages ! booktabs
13725 \begin_layout Standard
13726 \begin_inset Float table
13732 \begin_layout Plain Layout
13733 \begin_inset Caption
13735 \begin_layout Plain Layout
13736 \begin_inset CommandInset label
13738 name "tab:Special-booktabs-table"
13742 Special booktabs-table
13750 \begin_layout Plain Layout
13752 \begin_inset Tabular
13753 <lyxtabular version="3" rows="8" columns="4">
13754 <features booktabs="true" tabularvalignment="middle">
13755 <column alignment="center" valignment="top" width="0">
13756 <column alignment="center" valignment="top" width="0">
13757 <column alignment="center" valignment="top" width="0">
13758 <column alignment="center" valignment="top" width="0">
13760 <cell alignment="center" valignment="top" topline="true" usebox="none">
13763 \begin_layout Plain Layout
13769 <cell alignment="center" valignment="top" topline="true" usebox="none">
13772 \begin_layout Plain Layout
13774 \begin_inset space \thinspace{}
13782 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
13785 \begin_layout Plain Layout
13787 \begin_inset space \thinspace{}
13795 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13798 \begin_layout Plain Layout
13806 <cell alignment="center" valignment="top" usebox="none">
13809 \begin_layout Plain Layout
13813 \begin_layout Plain Layout
13826 \begin_layout Plain Layout
13839 \begin_layout Plain Layout
13852 \begin_layout Plain Layout
13861 Detector thickness in µm
13866 <cell alignment="center" valignment="top" usebox="none">
13869 \begin_layout Plain Layout
13875 <cell alignment="center" valignment="top" usebox="none">
13878 \begin_layout Plain Layout
13884 <cell alignment="center" valignment="top" usebox="none">
13887 \begin_layout Plain Layout
13895 <cell alignment="center" valignment="top" topline="true" usebox="none">
13898 \begin_layout Plain Layout
13904 <cell alignment="center" valignment="top" topline="true" usebox="none">
13907 \begin_layout Plain Layout
13913 <cell alignment="center" valignment="top" topline="true" usebox="none">
13916 \begin_layout Plain Layout
13922 <cell alignment="center" valignment="top" topline="true" usebox="none">
13925 \begin_layout Plain Layout
13932 <row topspace="default">
13933 <cell alignment="center" valignment="top" usebox="none">
13936 \begin_layout Plain Layout
13937 Spatial resolution in µm
13942 <cell alignment="center" valignment="top" usebox="none">
13945 \begin_layout Plain Layout
13951 <cell alignment="center" valignment="top" usebox="none">
13954 \begin_layout Plain Layout
13960 <cell alignment="center" valignment="top" usebox="none">
13963 \begin_layout Plain Layout
13970 <row topspace="default">
13971 <cell alignment="center" valignment="top" usebox="none">
13974 \begin_layout Plain Layout
13976 \begin_inset Formula $f_{\mathrm{max}}$
13984 <cell alignment="center" valignment="top" usebox="none">
13987 \begin_layout Plain Layout
13993 <cell alignment="center" valignment="top" usebox="none">
13996 \begin_layout Plain Layout
14002 <cell alignment="center" valignment="top" usebox="none">
14005 \begin_layout Plain Layout
14013 <cell alignment="center" valignment="top" topline="true" usebox="none">
14016 \begin_layout Plain Layout
14020 \begin_layout Plain Layout
14033 \begin_layout Plain Layout
14042 LSF-spatial resolution
14047 <cell alignment="center" valignment="top" topline="true" usebox="none">
14050 \begin_layout Plain Layout
14056 <cell alignment="center" valignment="top" topline="true" usebox="none">
14059 \begin_layout Plain Layout
14065 <cell alignment="center" valignment="top" topline="true" usebox="none">
14068 \begin_layout Plain Layout
14076 <cell alignment="center" valignment="top" usebox="none">
14079 \begin_layout Plain Layout
14085 <cell alignment="center" valignment="top" usebox="none">
14088 \begin_layout Plain Layout
14094 <cell alignment="center" valignment="top" usebox="none">
14097 \begin_layout Plain Layout
14103 <cell alignment="center" valignment="top" usebox="none">
14106 \begin_layout Plain Layout
14114 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
14117 \begin_layout Plain Layout
14123 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
14126 \begin_layout Plain Layout
14132 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
14135 \begin_layout Plain Layout
14141 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
14144 \begin_layout Plain Layout
14163 \begin_layout Section
14164 Vertical Table Alignment
14165 \begin_inset Index idx
14168 \begin_layout Plain Layout
14177 \begin_layout Standard
14178 To align tables vertically in a text line the table must be inside a box.
14179 The box can then be vertically aligned as described in section
14180 \begin_inset space ~
14184 \begin_inset CommandInset ref
14186 reference "sec:Box-Dialog"
14193 \begin_layout Standard
14194 In the following example the tables are inside a minipage
14198 \begin_layout Plain Layout
14199 Minipages are described in section
14200 \begin_inset space ~
14204 \begin_inset CommandInset ref
14206 reference "sec:Minipages"
14215 box that has a width of 15
14216 \begin_inset space \thinspace{}
14222 \begin_layout Itemize
14224 \begin_inset Box Frameless
14234 height_special "totalheight"
14237 \begin_layout Plain Layout
14238 \begin_inset Tabular
14239 <lyxtabular version="3" rows="3" columns="3">
14240 <features tabularvalignment="middle">
14241 <column alignment="center" valignment="top" width="0">
14242 <column alignment="center" valignment="top" width="0">
14243 <column alignment="center" valignment="top" width="0">
14245 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14248 \begin_layout Plain Layout
14254 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14257 \begin_layout Plain Layout
14263 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14266 \begin_layout Plain Layout
14274 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14277 \begin_layout Plain Layout
14283 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14286 \begin_layout Plain Layout
14292 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14295 \begin_layout Plain Layout
14303 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14306 \begin_layout Plain Layout
14312 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14315 \begin_layout Plain Layout
14321 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14324 \begin_layout Plain Layout
14344 \begin_layout Plain Layout
14356 \begin_inset Box Frameless
14366 height_special "totalheight"
14369 \begin_layout Plain Layout
14370 \begin_inset Tabular
14371 <lyxtabular version="3" rows="3" columns="3">
14372 <features tabularvalignment="middle">
14373 <column alignment="center" valignment="top" width="0">
14374 <column alignment="center" valignment="top" width="0">
14375 <column alignment="center" valignment="top" width="0">
14377 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14380 \begin_layout Plain Layout
14386 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14389 \begin_layout Plain Layout
14395 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14398 \begin_layout Plain Layout
14406 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14409 \begin_layout Plain Layout
14415 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14418 \begin_layout Plain Layout
14424 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14427 \begin_layout Plain Layout
14435 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14438 \begin_layout Plain Layout
14444 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14447 \begin_layout Plain Layout
14453 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14456 \begin_layout Plain Layout
14476 \begin_layout Plain Layout
14486 \begin_layout Itemize
14488 \begin_inset Box Frameless
14498 height_special "totalheight"
14501 \begin_layout Plain Layout
14502 \begin_inset Tabular
14503 <lyxtabular version="3" rows="3" columns="3">
14504 <features tabularvalignment="middle">
14505 <column alignment="center" valignment="top" width="0">
14506 <column alignment="center" valignment="top" width="0">
14507 <column alignment="center" valignment="top" width="0">
14509 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14512 \begin_layout Plain Layout
14518 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14521 \begin_layout Plain Layout
14527 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14530 \begin_layout Plain Layout
14538 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14541 \begin_layout Plain Layout
14547 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14550 \begin_layout Plain Layout
14556 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14559 \begin_layout Plain Layout
14567 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14570 \begin_layout Plain Layout
14576 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14579 \begin_layout Plain Layout
14585 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14588 \begin_layout Plain Layout
14607 \begin_layout Itemize
14609 \begin_inset Box Frameless
14619 height_special "totalheight"
14622 \begin_layout Plain Layout
14623 \begin_inset Tabular
14624 <lyxtabular version="3" rows="3" columns="3">
14625 <features tabularvalignment="middle">
14626 <column alignment="center" valignment="top" width="0">
14627 <column alignment="center" valignment="top" width="0">
14628 <column alignment="center" valignment="top" width="0">
14630 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14633 \begin_layout Plain Layout
14639 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14642 \begin_layout Plain Layout
14648 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14651 \begin_layout Plain Layout
14659 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14662 \begin_layout Plain Layout
14668 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14671 \begin_layout Plain Layout
14677 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14680 \begin_layout Plain Layout
14688 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14691 \begin_layout Plain Layout
14697 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14700 \begin_layout Plain Layout
14706 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14709 \begin_layout Plain Layout
14729 \begin_layout Plain Layout
14741 \begin_inset Box Frameless
14751 height_special "totalheight"
14754 \begin_layout Plain Layout
14755 \begin_inset Tabular
14756 <lyxtabular version="3" rows="3" columns="3">
14757 <features tabularvalignment="middle">
14758 <column alignment="center" valignment="top" width="0">
14759 <column alignment="center" valignment="top" width="0">
14760 <column alignment="center" valignment="top" width="0">
14762 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14765 \begin_layout Plain Layout
14771 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14774 \begin_layout Plain Layout
14780 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14783 \begin_layout Plain Layout
14791 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14794 \begin_layout Plain Layout
14800 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14803 \begin_layout Plain Layout
14809 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14812 \begin_layout Plain Layout
14820 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14823 \begin_layout Plain Layout
14829 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14832 \begin_layout Plain Layout
14838 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14841 \begin_layout Plain Layout
14861 \begin_layout Plain Layout
14871 \begin_layout Standard
14872 As you will see, the content of the first and last table row is not correctly
14874 To get this alignment, the minipage box must be set into a raisebox
14878 \begin_layout Plain Layout
14879 Raiseboxes are described in section
14880 \begin_inset space ~
14884 \begin_inset CommandInset ref
14886 reference "sub:Vertical-Alignment"
14896 In the example above the second table in the first item is aligned using
14897 the TeX-Code-command
14900 \begin_layout Standard
14910 \begin_layout Standard
14912 After the box the closing brace
14916 is inserted as TeX-Code.
14917 For the second table in the last item the command
14920 \begin_layout Standard
14930 \begin_layout Standard
14934 \begin_layout Standard
14935 \begin_inset Note Greyedout
14938 \begin_layout Plain Layout
14943 The alignment of the table row content to the surrounding text line is
14945 The required value for the
14951 command for this alignment depends on the document font, the font size,
14952 and the table line thickness.
14960 \begin_layout Section
14962 \begin_inset CommandInset label
14964 name "sec:Colored-Tables"
14969 \begin_inset Index idx
14972 \begin_layout Plain Layout
14981 \begin_layout Subsection
14983 \begin_inset Index idx
14986 \begin_layout Plain Layout
14987 Table Color ! for Cells
14993 \begin_inset Index idx
14996 \begin_layout Plain Layout
14997 Color ! for Table Cells
15005 \begin_layout Standard
15006 \begin_inset Float table
15012 \begin_layout Plain Layout
15013 \begin_inset Caption
15015 \begin_layout Plain Layout
15016 \begin_inset CommandInset label
15018 name "tab:Table-colored-without"
15022 Table colored without using the package
15027 \begin_inset Argument
15030 \begin_layout Plain Layout
15031 Table without colortbl
15044 \begin_layout Plain Layout
15046 \begin_inset Tabular
15047 <lyxtabular version="3" rows="3" columns="3">
15048 <features tabularvalignment="middle">
15049 <column alignment="center" valignment="top" width="0">
15050 <column alignment="center" valignment="top" width="0">
15051 <column alignment="center" valignment="top" width="0">
15053 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15056 \begin_layout Plain Layout
15064 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15067 \begin_layout Plain Layout
15075 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15078 \begin_layout Plain Layout
15088 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15091 \begin_layout Plain Layout
15099 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15102 \begin_layout Plain Layout
15110 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15113 \begin_layout Plain Layout
15123 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15126 \begin_layout Plain Layout
15134 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15137 \begin_layout Plain Layout
15145 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
15148 \begin_layout Plain Layout
15169 \begin_layout Standard
15170 If you only need colored text, mark the cells and choose a color in the
15173 Edit\SpecialChar \menuseparator
15175 \begin_inset space ~
15181 This was used to create Table
15182 \begin_inset space ~
15186 \begin_inset CommandInset ref
15188 reference "tab:Table-colored-without"
15193 In any other case you have to use the LaTeX-package
15198 \begin_inset Index idx
15201 \begin_layout Plain Layout
15202 LaTeX-packages ! colortbl
15210 \begin_layout Standard
15214 \begin_layout Plain Layout
15224 \begin_inset Note Note
15227 \begin_layout Plain Layout
15228 The following section part will only be displayed when the LaTeX-package
15241 \begin_layout Standard
15242 To create colored tables,
15246 must be loaded in the preamble with the line
15249 \begin_layout Standard
15254 usepackage{colortbl}
15257 \begin_layout Standard
15258 The color of a column is adjusted with the command
15261 \begin_layout Standard
15266 columncolor{name of color}
15269 \begin_layout Standard
15275 More about the command
15279 is contained in section
15280 \begin_inset space ~
15284 \begin_inset CommandInset ref
15286 reference "sub:Multicolumn-Calculations"
15293 \begin_layout Standard
15294 The following color names are predefined:
15297 \begin_layout Standard
15331 \begin_layout Standard
15332 \begin_inset VSpace medskip
15338 \begin_layout Standard
15339 You can also define your own color with the command
15342 \begin_layout Standard
15347 definecolor{color name}{color model}{color values}
15350 \begin_layout Standard
15351 The color model can be
15354 \begin_layout Labeling
15355 \labelwidthstring 00.00.0000
15356 cmyk: cyan, magenta, yellow, black
15359 \begin_layout Labeling
15360 \labelwidthstring 00.00.0000
15361 rgb: red, green blue
15364 \begin_layout Labeling
15365 \labelwidthstring 00.00.0000
15369 \begin_layout Standard
15370 and the color values are comma separated numbers between 0 and 1 describing
15371 the factor for the corresponding color of the color model.
15374 \begin_layout Standard
15376 \begin_inset space \thinspace{}
15380 \begin_inset space \space{}
15387 " in the preamble with
15390 \begin_layout Standard
15395 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
15398 \begin_layout Standard
15406 \begin_layout Standard
15411 definecolor{lightgray}{gray}{0.8}
15414 \begin_layout Standard
15415 \begin_inset VSpace medskip
15421 \begin_layout Standard
15422 Lines are colored with the command
15425 \begin_layout Standard
15430 rowcolor{name of color}
15433 \begin_layout Standard
15434 and cells are colored with the command
15437 \begin_layout Standard
15442 cellcolor{name of color}
15445 \begin_layout Standard
15446 Both commands are inserted at the beginning of a cell as TeX-Code.
15449 \begin_layout Standard
15450 To color characters in the table, mark the cells and use the LyX menu
15452 Edit\SpecialChar \menuseparator
15454 \begin_inset space ~
15460 If a cell contains TeX-Code mark only the characters, otherwise the colored
15461 TeX-Code will cause LaTeX-errors.
15464 \begin_layout Standard
15465 \begin_inset Note Greyedout
15468 \begin_layout Plain Layout
15473 Not all DVI-viewers are able to display self-defined colors.
15481 \begin_layout Standard
15482 \begin_inset VSpace bigskip
15488 \begin_layout Standard
15490 \begin_inset space ~
15494 \begin_inset CommandInset ref
15496 reference "tab:Table-colored-using"
15500 do the following: The color of the first column should be
15508 \begin_layout Standard
15513 columncolor{darkgreen}
15518 \begin_layout Standard
15519 as LaTeX-argument for this column.
15520 The first row should be blue, therefore the TeX-Code command
15523 \begin_layout Standard
15531 \begin_layout Standard
15532 is inserted to the first cell of this row.
15533 Note that this overwrites the column color for the first cell.
15534 The last cell of the last row is colored magenta by inserting the TeX-Code
15538 \begin_layout Standard
15546 \begin_layout Standard
15547 The characters could now be colored using the menu
15549 Edit\SpecialChar \menuseparator
15551 \begin_inset space ~
15559 \begin_layout Standard
15560 \begin_inset Float table
15566 \begin_layout Plain Layout
15567 \begin_inset Caption
15569 \begin_layout Plain Layout
15570 \begin_inset CommandInset label
15572 name "tab:Table-colored-using"
15576 Table colored using the package
15581 \begin_inset Argument
15584 \begin_layout Plain Layout
15585 Table with colortbl
15598 \begin_layout Plain Layout
15600 \begin_inset Tabular
15601 <lyxtabular version="3" rows="3" columns="3">
15602 <features tabularvalignment="middle">
15603 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
15604 <column alignment="center" valignment="top" width="0">
15605 <column alignment="center" valignment="top" width="0">
15607 <cell alignment="center" valignment="top" usebox="none">
15610 \begin_layout Plain Layout
15614 \begin_layout Plain Layout
15630 <cell alignment="center" valignment="top" usebox="none">
15633 \begin_layout Plain Layout
15641 <cell alignment="center" valignment="top" usebox="none">
15644 \begin_layout Plain Layout
15654 <cell alignment="center" valignment="top" usebox="none">
15657 \begin_layout Plain Layout
15665 <cell alignment="center" valignment="top" usebox="none">
15668 \begin_layout Plain Layout
15676 <cell alignment="center" valignment="top" usebox="none">
15679 \begin_layout Plain Layout
15689 <cell alignment="center" valignment="top" usebox="none">
15692 \begin_layout Plain Layout
15700 <cell alignment="center" valignment="top" usebox="none">
15703 \begin_layout Plain Layout
15711 <cell alignment="center" valignment="top" usebox="none">
15714 \begin_layout Plain Layout
15718 \begin_layout Plain Layout
15747 \begin_layout Standard
15751 \begin_layout Plain Layout
15761 \begin_inset Note Note
15764 \begin_layout Plain Layout
15765 The following will be displayed when the LaTeX-package
15777 \begin_layout Standard
15778 You need to install the package
15782 to see the content of this section in the output.
15785 \begin_layout Standard
15789 \begin_layout Plain Layout
15801 \begin_layout Subsection
15803 \begin_inset Index idx
15806 \begin_layout Plain Layout
15807 Table Color ! for Lines
15813 \begin_inset Index idx
15816 \begin_layout Plain Layout
15817 Color ! for Table Lines
15825 \begin_layout Standard
15826 As described in section
15827 \begin_inset space ~
15831 \begin_inset CommandInset ref
15833 reference "sub:Line-Thickness"
15837 , the line thickness for all lines in a table can be adjusted with the length
15846 \begin_inset space \thinspace{}
15849 pt for all tables of this section.
15853 \begin_layout Plain Layout
15859 arrayrulewidth}{1.5pt}
15867 \begin_layout Standard
15868 To color vertical lines for example with green, create the following column
15869 format in the document preamble, according to the description in section
15870 \begin_inset space ~
15874 \begin_inset CommandInset ref
15876 reference "sub:Customized-Format"
15883 \begin_layout Standard
15888 newcolumntype{W}{!{
15895 \begin_layout Standard
15897 \begin_inset space ~
15901 \begin_inset CommandInset ref
15903 reference "tab:Table-with-vertical-colored"
15911 was used for the last column and
15915 for the other columns.
15918 \begin_layout Standard
15919 If you want to have several colors, define more column formats.
15922 \begin_layout Standard
15923 \begin_inset Float table
15929 \begin_layout Plain Layout
15930 \begin_inset Caption
15932 \begin_layout Plain Layout
15933 \begin_inset CommandInset label
15935 name "tab:Table-with-vertical-colored"
15939 Table with colored vertical lines
15947 \begin_layout Plain Layout
15949 \begin_inset Tabular
15950 <lyxtabular version="3" rows="3" columns="3">
15951 <features tabularvalignment="middle">
15952 <column alignment="center" valignment="top" width="0" special="Wc">
15953 <column alignment="center" valignment="top" width="0" special="Wc">
15954 <column alignment="center" valignment="top" width="0" special="WcW">
15956 <cell alignment="center" valignment="top" topline="true" usebox="none">
15959 \begin_layout Plain Layout
15965 <cell alignment="center" valignment="top" topline="true" usebox="none">
15968 \begin_layout Plain Layout
15974 <cell alignment="center" valignment="top" topline="true" usebox="none">
15977 \begin_layout Plain Layout
15985 <cell alignment="center" valignment="top" topline="true" usebox="none">
15988 \begin_layout Plain Layout
15994 <cell alignment="center" valignment="top" topline="true" usebox="none">
15997 \begin_layout Plain Layout
16003 <cell alignment="center" valignment="top" topline="true" usebox="none">
16006 \begin_layout Plain Layout
16014 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
16017 \begin_layout Plain Layout
16023 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
16026 \begin_layout Plain Layout
16032 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
16035 \begin_layout Plain Layout
16054 \begin_layout Standard
16055 \begin_inset VSpace bigskip
16058 To color horizontal lines for example with red, as in Table
16059 \begin_inset space ~
16063 \begin_inset CommandInset ref
16065 reference "tab:Table-with-horizontal-colored"
16069 , insert these commands in TeX-Code before the table or table float:
16072 \begin_layout Standard
16082 \begin_inset Newline newline
16090 \begin_inset Newline newline
16094 \begin_inset Phantom HPhantom
16097 \begin_layout Plain Layout
16100 \begin_inset space ~
16110 arrayrulecolor{red}
16114 arrayrulecolor{black}}
16117 \begin_layout Standard
16121 \begin_layout Plain Layout
16132 \begin_layout Plain Layout
16141 \begin_layout Plain Layout
16145 arrayrulecolor{red}
16149 arrayrulecolor{black}}
16155 \begin_inset Float table
16161 \begin_layout Plain Layout
16162 \begin_inset Caption
16164 \begin_layout Plain Layout
16165 \begin_inset CommandInset label
16167 name "tab:Table-with-horizontal-colored"
16171 Table with colored horizontal lines
16179 \begin_layout Plain Layout
16181 \begin_inset Tabular
16182 <lyxtabular version="3" rows="3" columns="3">
16183 <features tabularvalignment="middle">
16184 <column alignment="center" valignment="top" width="0">
16185 <column alignment="center" valignment="top" width="0">
16186 <column alignment="center" valignment="top" width="0">
16188 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16191 \begin_layout Plain Layout
16197 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16200 \begin_layout Plain Layout
16206 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16209 \begin_layout Plain Layout
16217 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16220 \begin_layout Plain Layout
16226 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16229 \begin_layout Plain Layout
16235 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16238 \begin_layout Plain Layout
16246 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16249 \begin_layout Plain Layout
16255 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16258 \begin_layout Plain Layout
16264 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16267 \begin_layout Plain Layout
16286 \begin_layout Standard
16287 To return to the default line color black, insert this command in TeX-Code
16288 after the table or table float:
16291 \begin_layout Standard
16303 \begin_layout Standard
16305 \begin_inset space ~
16309 \begin_inset CommandInset ref
16311 reference "tab:Table-with-colored"
16315 is an example with colored vertical and horizontal lines.
16318 \begin_layout Standard
16319 \begin_inset Float table
16325 \begin_layout Plain Layout
16326 \begin_inset Caption
16328 \begin_layout Plain Layout
16329 \begin_inset CommandInset label
16331 name "tab:Table-with-colored"
16335 Table with colored lines
16343 \begin_layout Plain Layout
16345 \begin_inset Tabular
16346 <lyxtabular version="3" rows="3" columns="3">
16347 <features tabularvalignment="middle">
16348 <column alignment="center" valignment="top" width="0" special="Wc">
16349 <column alignment="center" valignment="top" width="0" special="Wc">
16350 <column alignment="center" valignment="top" width="0" special="WcW">
16352 <cell alignment="center" valignment="top" topline="true" usebox="none">
16355 \begin_layout Plain Layout
16361 <cell alignment="center" valignment="top" topline="true" usebox="none">
16364 \begin_layout Plain Layout
16370 <cell alignment="center" valignment="top" topline="true" usebox="none">
16373 \begin_layout Plain Layout
16381 <cell alignment="center" valignment="top" topline="true" usebox="none">
16384 \begin_layout Plain Layout
16390 <cell alignment="center" valignment="top" topline="true" usebox="none">
16393 \begin_layout Plain Layout
16399 <cell alignment="center" valignment="top" topline="true" usebox="none">
16402 \begin_layout Plain Layout
16409 <row topspace="default">
16410 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
16413 \begin_layout Plain Layout
16419 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
16422 \begin_layout Plain Layout
16428 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
16431 \begin_layout Plain Layout
16450 \begin_layout Standard
16454 \begin_layout Plain Layout
16470 \begin_layout Standard
16474 \begin_layout Plain Layout
16480 arrayrulewidth}{0.4pt}
16488 \begin_layout Section
16489 Table Customization
16490 \begin_inset Index idx
16493 \begin_layout Plain Layout
16494 Table Customization
16500 \begin_inset Index idx
16503 \begin_layout Plain Layout
16504 Table ! Customization
16512 \begin_layout Subsection
16514 \begin_inset CommandInset label
16516 name "sub:Row-Spacing"
16521 \begin_inset Index idx
16524 \begin_layout Plain Layout
16525 Table Customization ! Row Spacing
16533 \begin_layout Standard
16534 You can add vertical space to table rows in the
16538 tab of the table dialog.
16539 You find there three possibilities:
16542 \begin_layout Description
16544 \begin_inset space ~
16548 \begin_inset space ~
16551 row will add space above the characters of the table row.
16552 If the table is a formal table
16556 \begin_layout Plain Layout
16557 Formal tables are explained in section
16558 \begin_inset space ~
16562 \begin_inset CommandInset ref
16564 reference "sec:Formal-Tables"
16573 LyX will insert as default 0.5
16574 \begin_inset space \thinspace{}
16578 For normal tables the inserted space will unfortunately destroy the vertical
16579 table lines as in the following table:
16580 \begin_inset VSpace medskip
16584 \begin_inset Newline newline
16588 \begin_inset space \hspace*{}
16593 \begin_inset space \hfill{}
16597 \begin_inset Tabular
16598 <lyxtabular version="3" rows="3" columns="1">
16599 <features tabularvalignment="middle">
16600 <column alignment="center" valignment="top" width="0">
16602 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16605 \begin_layout Plain Layout
16612 <row topspace="3mm">
16613 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16616 \begin_layout Plain Layout
16618 \begin_inset space \thinspace{}
16621 mm space top of row
16628 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16631 \begin_layout Plain Layout
16643 \begin_inset space \hfill{}
16647 \begin_inset space \hspace*{}
16652 \begin_inset VSpace medskip
16656 \begin_inset Newline newline
16659 So inserting space in the top of row for normal tables is only useful when
16660 you don't have vertical lines.
16663 \begin_layout Description
16665 \begin_inset space ~
16669 \begin_inset space ~
16672 row will add space below the characters of the table row.
16673 If the table is a formal table LyX will insert as default 0.5
16674 \begin_inset space \thinspace{}
16677 em space, for normal tables the default size is 2
16678 \begin_inset space \thinspace{}
16684 \begin_layout Description
16686 \begin_inset space ~
16689 rows adds space between the current and the following row.
16690 If the table is a formal table LyX will insert as default 0.5
16691 \begin_inset space \thinspace{}
16695 For normal tables the inserted space will unfortunately destroy the vertical
16696 table lines as in the following table:
16697 \begin_inset VSpace medskip
16701 \begin_inset Newline newline
16705 \begin_inset space \hspace*{}
16710 \begin_inset space \hfill{}
16714 \begin_inset Tabular
16715 <lyxtabular version="3" rows="3" columns="1">
16716 <features tabularvalignment="middle">
16717 <column alignment="center" valignment="top" width="0">
16719 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16722 \begin_layout Plain Layout
16729 <row interlinespace="3mm">
16730 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16733 \begin_layout Plain Layout
16734 \begin_inset Formula $\downarrow$
16738 \begin_inset space \thinspace{}
16741 mm space between row
16742 \begin_inset Formula $\downarrow$
16752 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16755 \begin_layout Plain Layout
16756 \begin_inset Formula $\uparrow$
16760 \begin_inset space \thinspace{}
16763 mm space between row
16764 \begin_inset Formula $\uparrow$
16778 \begin_inset space \hfill{}
16782 \begin_inset space \hspace*{}
16787 \begin_inset VSpace medskip
16791 \begin_inset Newline newline
16794 So inserting space between rows for normal tables is only useful when you
16795 don't have vertical lines.
16798 \begin_layout Standard
16799 \begin_inset VSpace bigskip
16802 When you want to add extra height to all cells of all tables, you can do
16803 this with the following preamble lines:
16806 \begin_layout Standard
16811 @ifundefined{extrarowheight}
16812 \begin_inset Newline newline
16816 \begin_inset Phantom HPhantom
16819 \begin_layout Plain Layout
16822 \begin_inset space ~
16832 usepackage{array}}{}
16833 \begin_inset Newline newline
16840 extrarowheight}{height}
16843 \begin_layout Standard
16844 But this has the disadvantage that the cell texts are no longer exactly
16845 vertically centered.
16850 will be loaded automatically by LyX when you use self defined table formats.
16851 To avoid that it being loaded twice the command
16857 is used in the above command.)
16860 \begin_layout Standard
16861 If you are using font sizes larger than the normal size, the table borders
16862 are often too close to the letters.
16863 This can be corrected by inserting the command
16869 in TeX code at the beginning of a table row.
16871 \begin_inset space ~
16875 \begin_inset CommandInset ref
16877 reference "tab:Vertical-alignment-of"
16881 illustrates the effect.
16884 \begin_layout Standard
16886 \begin_inset Float table
16892 \begin_layout Plain Layout
16893 \begin_inset Caption
16895 \begin_layout Plain Layout
16896 \begin_inset CommandInset label
16898 name "tab:Vertical-alignment-of"
16902 Vertical alignment of text with large font sizes.
16910 \begin_layout Plain Layout
16911 \begin_inset space \hfill{}
16915 \begin_inset Float table
16920 \begin_layout Plain Layout
16921 \begin_inset Caption
16923 \begin_layout Plain Layout
16932 \begin_layout Plain Layout
16935 \begin_inset Tabular
16936 <lyxtabular version="3" rows="6" columns="1">
16937 <features tabularvalignment="middle">
16938 <column alignment="left" valignment="top" width="0">
16940 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16943 \begin_layout Plain Layout
16951 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16954 \begin_layout Plain Layout
16964 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16967 \begin_layout Plain Layout
16977 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16980 \begin_layout Plain Layout
16990 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16993 \begin_layout Plain Layout
17003 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17006 \begin_layout Plain Layout
17025 \begin_inset space \hfill{}
17029 \begin_inset Float table
17034 \begin_layout Plain Layout
17035 \begin_inset Caption
17037 \begin_layout Plain Layout
17038 Table using the command
17052 \begin_layout Plain Layout
17055 \begin_inset Tabular
17056 <lyxtabular version="3" rows="6" columns="1">
17057 <features tabularvalignment="middle">
17058 <column alignment="left" valignment="top" width="0">
17060 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17063 \begin_layout Plain Layout
17071 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17074 \begin_layout Plain Layout
17080 \begin_layout Plain Layout
17096 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17099 \begin_layout Plain Layout
17105 \begin_layout Plain Layout
17121 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17124 \begin_layout Plain Layout
17130 \begin_layout Plain Layout
17146 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17149 \begin_layout Plain Layout
17155 \begin_layout Plain Layout
17171 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17174 \begin_layout Plain Layout
17180 \begin_layout Plain Layout
17207 \begin_inset space \hfill{}
17218 \begin_layout Subsection
17219 Special Cell Alignment
17220 \begin_inset CommandInset label
17222 name "sub:Special-Cell-Alignment"
17227 \begin_inset Index idx
17230 \begin_layout Plain Layout
17231 Table Customization ! Special Cell Alignment
17239 \begin_layout Standard
17240 Sometimes it looks better when the cell entries of a column are aligned
17241 with a special character, e.
17242 \begin_inset space \thinspace{}
17246 \begin_inset space \space{}
17249 with the decimal separator as in Table
17250 \begin_inset space ~
17254 \begin_inset CommandInset ref
17256 reference "tab:Table-cells-align"
17261 This alignment is achieved by setting the cursor into the column and then
17262 either pressing the toolbar button
17263 \begin_inset Graphics
17264 filename ../images/tabular-feature_align-decimal.png
17266 scaleBeforeRotation
17270 or setting the alignment in the table settings to
17273 \begin_inset space ~
17277 \begin_inset space ~
17283 The alignment character can be a character of your choice and is specified
17284 in the table settings.
17287 \begin_layout Standard
17288 \begin_inset Float table
17294 \begin_layout Plain Layout
17295 \begin_inset Caption
17297 \begin_layout Plain Layout
17298 \begin_inset CommandInset label
17300 name "tab:Table-cells-align"
17304 Table cells of a column aligned with the decimal separator.
17312 \begin_layout Plain Layout
17314 \begin_inset Tabular
17315 <lyxtabular version="3" rows="4" columns="1">
17316 <features booktabs="true" tabularvalignment="middle">
17317 <column alignment="decimal" decimal_point="." valignment="top" width="0pt">
17319 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
17322 \begin_layout Plain Layout
17330 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17333 \begin_layout Plain Layout
17341 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
17344 \begin_layout Plain Layout
17352 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
17355 \begin_layout Plain Layout
17374 \begin_layout Standard
17375 \begin_inset Float table
17381 \begin_layout Plain Layout
17382 \begin_inset Caption
17384 \begin_layout Plain Layout
17385 \begin_inset CommandInset label
17387 name "tab:Table-align-operator"
17391 Table cells of a column aligned with the operators.
17399 \begin_layout Plain Layout
17401 \begin_inset Tabular
17402 <lyxtabular version="3" rows="4" columns="2">
17403 <features booktabs="true" tabularvalignment="middle">
17404 <column alignment="right" valignment="top" width="0pt">
17405 <column alignment="left" valignment="top" width="0pt" special="@{}l">
17407 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
17410 \begin_layout Plain Layout
17416 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17419 \begin_layout Plain Layout
17427 <cell alignment="center" valignment="top" usebox="none">
17430 \begin_layout Plain Layout
17431 \begin_inset Formula $12\,+$
17439 <cell alignment="center" valignment="top" usebox="none">
17442 \begin_layout Plain Layout
17443 \begin_inset Formula $\,6$
17453 <cell alignment="center" valignment="top" usebox="none">
17456 \begin_layout Plain Layout
17457 \begin_inset Formula $0\,-$
17465 <cell alignment="center" valignment="top" usebox="none">
17468 \begin_layout Plain Layout
17469 \begin_inset Formula $\,68$
17479 <cell alignment="center" valignment="top" usebox="none">
17482 \begin_layout Plain Layout
17483 \begin_inset Formula $-123\,/$
17491 <cell alignment="center" valignment="top" usebox="none">
17494 \begin_layout Plain Layout
17495 \begin_inset Formula $\,0$
17516 \begin_layout Standard
17517 For alignments at characters in formulas this method does not work because
17518 the field to specify the alignment character does not allow formulas.
17519 In this case one need to use the method from Table
17520 \begin_inset space ~
17524 \begin_inset CommandInset ref
17526 reference "tab:Table-align-operator"
17531 This table was created with a 4×2 table.
17532 The heading is a centered multicolumn.
17533 The first column is right-aligned and contains the first part including
17535 The second column is left aligned and contains the rest.
17536 A small space was added at the beginning of each cell of the second column
17537 to get the space that is usually around operators.
17538 To omit the space that is normally between two table columns, the following
17539 LaTeX-argument was used for the second column:
17542 \begin_layout Standard
17548 \begin_layout Standard
17550 \begin_inset space ~
17554 \begin_inset CommandInset ref
17556 reference "tab:Several-table-cell"
17560 shows some example alignments.
17561 For the alignment with the relation sign, a small space was added like
17562 for the second column of Table
17563 \begin_inset space ~
17567 \begin_inset CommandInset ref
17569 reference "tab:Table-align-operator"
17576 \begin_layout Standard
17577 \begin_inset Float table
17583 \begin_layout Plain Layout
17584 \begin_inset Caption
17586 \begin_layout Plain Layout
17587 \begin_inset CommandInset label
17589 name "tab:Several-table-cell"
17593 Several table cell alignments.
17601 \begin_layout Plain Layout
17603 \begin_inset Tabular
17604 <lyxtabular version="3" rows="4" columns="6">
17605 <features tabularvalignment="middle">
17606 <column alignment="right" valignment="top" width="0">
17607 <column alignment="left" valignment="top" width="0" special="@{}l">
17608 <column alignment="right" valignment="top" width="0">
17609 <column alignment="left" valignment="top" width="0" special="@{}l">
17610 <column alignment="right" valignment="top" width="0">
17611 <column alignment="left" valignment="top" width="0" special="@{}l">
17613 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17616 \begin_layout Plain Layout
17622 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17625 \begin_layout Plain Layout
17631 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17634 \begin_layout Plain Layout
17640 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17643 \begin_layout Plain Layout
17649 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
17652 \begin_layout Plain Layout
17658 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17661 \begin_layout Plain Layout
17669 <cell alignment="center" valignment="top" usebox="none">
17672 \begin_layout Plain Layout
17678 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17681 \begin_layout Plain Layout
17683 \begin_inset space \thinspace{}
17691 <cell alignment="center" valignment="top" usebox="none">
17694 \begin_layout Plain Layout
17695 \begin_inset Formula $10\cdot$
17703 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17706 \begin_layout Plain Layout
17707 \begin_inset Formula $10^{\mbox{-}17}$
17715 <cell alignment="center" valignment="top" usebox="none">
17718 \begin_layout Plain Layout
17719 \begin_inset Formula $\Gamma(t)\propto$
17727 <cell alignment="center" valignment="top" usebox="none">
17730 \begin_layout Plain Layout
17731 \begin_inset Formula $\:\Upsilon(t)$
17741 <cell alignment="center" valignment="top" usebox="none">
17744 \begin_layout Plain Layout
17750 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17753 \begin_layout Plain Layout
17755 \begin_inset space \thinspace{}
17763 <cell alignment="center" valignment="top" usebox="none">
17766 \begin_layout Plain Layout
17767 \begin_inset Formula $5.78\cdot$
17775 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17778 \begin_layout Plain Layout
17779 \begin_inset Formula $10^{7}$
17787 <cell alignment="center" valignment="top" usebox="none">
17790 \begin_layout Plain Layout
17791 \begin_inset Formula $A\ne$
17799 <cell alignment="center" valignment="top" usebox="none">
17802 \begin_layout Plain Layout
17803 \begin_inset Formula $\: B_{\mathrm{red}}$
17813 <cell alignment="center" valignment="top" usebox="none">
17816 \begin_layout Plain Layout
17822 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17825 \begin_layout Plain Layout
17827 \begin_inset space \thinspace{}
17835 <cell alignment="center" valignment="top" usebox="none">
17838 \begin_layout Plain Layout
17840 \begin_inset Formula $33.5\cdot$
17848 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17851 \begin_layout Plain Layout
17852 \begin_inset Formula $10^{4}$
17860 <cell alignment="center" valignment="top" usebox="none">
17863 \begin_layout Plain Layout
17864 \begin_inset Formula $\sin(\alpha)\ge$
17872 <cell alignment="center" valignment="top" usebox="none">
17875 \begin_layout Plain Layout
17876 \begin_inset Formula $\:\sin(\beta)$
17897 \begin_layout Subsection
17898 Customized Cell/Column Format
17899 \begin_inset CommandInset label
17901 name "sub:Customized-Format"
17906 \begin_inset Index idx
17909 \begin_layout Plain Layout
17910 Table Customization ! Cell/Column Format
17918 \begin_layout Standard
17919 Calculating the required width for spanned columns as in section
17920 \begin_inset space ~
17924 \begin_inset CommandInset ref
17926 reference "sub:Multicolumn-Calculations"
17930 is very annoying if you have several tables with multicolumn cells.
17931 To make life easier, you can define a cell/column format in the preamble,
17932 so that it can be used in all tables of the document.
17933 The format is defined with the command
17936 \begin_layout Standard
17941 newcolumntype{name of format}[number of arguments]{commands}
17944 \begin_layout Standard
17945 The format name may only consist of one letter.
17970 are predefined and cannot be used.
17971 But all letters are allowed as capitals.
17974 \begin_layout Standard
17975 \begin_inset VSpace medskip
17981 \begin_layout Standard
17982 For vertically and horizontally centered multicolumn cells with a fixed
17983 width you can define the cell format
17986 \begin_layout Standard
17991 newcolumntype{M}[1]{>{
17998 \begin_layout Standard
18005 avoids the problem of hyphenating the first word, as described in section
18006 \begin_inset space ~
18010 \begin_inset CommandInset ref
18012 reference "sub:Multiple-Lines-in"
18017 Now you can simply enter
18020 \begin_layout Standard
18026 \begin_layout Standard
18027 as LaTeX-argument in the table dialog to create a multicolumn.
18030 \begin_layout Standard
18031 \begin_inset VSpace bigskip
18037 \begin_layout Standard
18038 For cells spanned by a multicolumn cell, you can define the format
18041 \begin_layout Standard
18046 newcolumntype{S}[2]{>{
18051 \begin_inset Newline newline
18055 \begin_inset Phantom HPhantom
18058 \begin_layout Plain Layout
18072 arrayrulewidth)*(1-#2))/#2}}
18075 \begin_layout Standard
18076 This format uses equation
18077 \begin_inset CommandInset ref
18083 to calculate the required width so that each spanned cell has the same
18087 \begin_layout Standard
18091 \begin_layout Standard
18094 S{width of multicolumn cell}{number of spanned columns}
18097 \begin_layout Standard
18098 as LaTeX-argument of the column.
18101 \begin_layout Standard
18102 \begin_inset VSpace bigskip
18108 \begin_layout Standard
18109 For colored columns, you can define
18112 \begin_layout Standard
18117 newcolumntype{K}[1]{>{
18124 \begin_layout Standard
18126 \begin_inset Quotes eld
18130 \begin_inset Quotes erd
18133 at the end creates a column with a flexible width whose text is horizontally
18138 \begin_layout Standard
18144 \begin_layout Standard
18148 \begin_layout Standard
18149 \begin_inset VSpace bigskip
18155 \begin_layout Standard
18157 \begin_inset space ~
18161 \begin_inset CommandInset ref
18163 reference "tab:Table-using-user-defined"
18167 use the LaTeX-arguments
18170 \begin_layout Standard
18176 \begin_layout Standard
18177 for the first column and the multicolumn,
18180 \begin_layout Standard
18186 \begin_layout Standard
18187 for the last column, and
18190 \begin_layout Standard
18196 \begin_layout Standard
18197 for the cells in the second column.
18200 \begin_layout Standard
18201 \begin_inset Float table
18207 \begin_layout Plain Layout
18208 \begin_inset Caption
18210 \begin_layout Plain Layout
18211 \begin_inset CommandInset label
18213 name "tab:Table-using-user-defined"
18217 Table using user-defined table formats
18225 \begin_layout Plain Layout
18227 \begin_inset Tabular
18228 <lyxtabular version="3" rows="3" columns="4">
18229 <features tabularvalignment="middle">
18230 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
18231 <column alignment="center" valignment="middle" width="0" special="S{2.5cm}{2}">
18232 <column alignment="center" valignment="middle" width="0">
18233 <column alignment="center" valignment="middle" width="0" special="K{red}">
18235 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18238 \begin_layout Plain Layout
18239 verylongtablecellword
18244 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
18247 \begin_layout Plain Layout
18248 multiple lines multicolumn
18253 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18256 \begin_layout Plain Layout
18262 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18265 \begin_layout Plain Layout
18273 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18276 \begin_layout Plain Layout
18282 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18285 \begin_layout Plain Layout
18291 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18294 \begin_layout Plain Layout
18300 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18303 \begin_layout Plain Layout
18311 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18314 \begin_layout Plain Layout
18320 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18323 \begin_layout Plain Layout
18329 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18332 \begin_layout Plain Layout
18338 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18341 \begin_layout Plain Layout
18360 \begin_layout Subsection
18362 \begin_inset CommandInset label
18364 name "sub:Line-Thickness"
18369 \begin_inset Index idx
18372 \begin_layout Plain Layout
18373 Table Customization ! Line Thickness
18381 \begin_layout Standard
18382 The line thickness for all lines in a table can be adjusted with the length
18390 To set for example a line thickness of 1.5
18391 \begin_inset space \thinspace{}
18395 \begin_inset space ~
18399 \begin_inset CommandInset ref
18401 reference "tab:Table-with-1.5"
18405 , insert the command
18408 \begin_layout Standard
18415 arrayrulewidth}{1.5pt}
18418 \begin_layout Standard
18419 in TeX-Code before the table or table float.
18420 The changed thickness is valid for all subsequent tables.
18421 To use the default value again, set
18428 \begin_inset space \thinspace{}
18431 pt in TeX-Code after the table or table float.
18434 \begin_layout Standard
18438 \begin_layout Plain Layout
18444 arrayrulewidth}{1.5pt}
18450 \begin_inset Float table
18455 \begin_layout Plain Layout
18456 \begin_inset Caption
18458 \begin_layout Plain Layout
18459 \begin_inset CommandInset label
18461 name "tab:Table-with-1.5"
18466 \begin_inset space \thinspace{}
18477 \begin_layout Plain Layout
18479 \begin_inset Tabular
18480 <lyxtabular version="3" rows="3" columns="3">
18481 <features tabularvalignment="middle">
18482 <column alignment="center" valignment="top" width="0">
18483 <column alignment="center" valignment="top" width="0">
18484 <column alignment="center" valignment="top" width="0">
18486 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18489 \begin_layout Plain Layout
18495 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18498 \begin_layout Plain Layout
18504 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18507 \begin_layout Plain Layout
18515 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18518 \begin_layout Plain Layout
18524 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18527 \begin_layout Plain Layout
18533 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18536 \begin_layout Plain Layout
18544 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18547 \begin_layout Plain Layout
18553 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18556 \begin_layout Plain Layout
18562 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18565 \begin_layout Plain Layout
18585 \begin_layout Plain Layout
18591 arrayrulewidth}{0.4pt}
18599 \begin_layout Standard
18600 \begin_inset VSpace bigskip
18603 To set the line thickness to 1.5
18604 \begin_inset space \thinspace{}
18607 pt only for horizontal lines, as in Table
18608 \begin_inset space ~
18612 \begin_inset CommandInset ref
18614 reference "tab:Table-with-horizontal"
18618 , insert these commands in TeX-Code before the table or table float:
18621 \begin_layout Standard
18631 \begin_inset Newline newline
18639 \begin_inset Newline newline
18648 arrayrulewidth 1.5pt}
18649 \begin_inset Newline newline
18660 arrayrulewidth 0.4pt}}
18663 \begin_layout Standard
18664 To return to the default line thickness, insert this command in TeX-Code
18665 after the table or table float:
18668 \begin_layout Standard
18680 \begin_layout Standard
18684 \begin_layout Plain Layout
18695 \begin_layout Plain Layout
18704 \begin_layout Plain Layout
18712 arrayrulewidth 1.5pt}
18715 \begin_layout Plain Layout
18725 arrayrulewidth 0.4pt}}
18731 \begin_inset Float table
18736 \begin_layout Plain Layout
18737 \begin_inset Caption
18739 \begin_layout Plain Layout
18740 \begin_inset CommandInset label
18742 name "tab:Table-with-horizontal"
18747 \begin_inset space \thinspace{}
18750 pt thick horizontal lines
18758 \begin_layout Plain Layout
18760 \begin_inset Tabular
18761 <lyxtabular version="3" rows="3" columns="3">
18762 <features tabularvalignment="middle">
18763 <column alignment="center" valignment="top" width="0">
18764 <column alignment="center" valignment="top" width="0">
18765 <column alignment="center" valignment="top" width="0">
18767 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18770 \begin_layout Plain Layout
18776 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18779 \begin_layout Plain Layout
18785 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18788 \begin_layout Plain Layout
18796 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18799 \begin_layout Plain Layout
18805 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18808 \begin_layout Plain Layout
18814 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18817 \begin_layout Plain Layout
18825 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18828 \begin_layout Plain Layout
18834 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18837 \begin_layout Plain Layout
18843 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18846 \begin_layout Plain Layout
18866 \begin_layout Plain Layout
18882 \begin_layout Standard
18883 \begin_inset VSpace bigskip
18886 To set the line thickness to 1.5
18887 \begin_inset space \thinspace{}
18890 pt only for vertical lines, create the following column format in the document
18891 preamble, according to the description in section
18892 \begin_inset space ~
18896 \begin_inset CommandInset ref
18898 reference "sub:Customized-Format"
18905 \begin_layout Standard
18910 newcolumntype{V}{!{
18912 vrule width 1.5pt}}
18915 \begin_layout Standard
18917 \begin_inset space ~
18921 \begin_inset CommandInset ref
18923 reference "tab:Table-with-vertical"
18930 \begin_layout Standard
18936 \begin_layout Standard
18937 was used for the last column and
18940 \begin_layout Standard
18946 \begin_layout Standard
18947 for the other columns.
18950 \begin_layout Standard
18951 \begin_inset Float table
18956 \begin_layout Plain Layout
18957 \begin_inset Caption
18959 \begin_layout Plain Layout
18960 \begin_inset CommandInset label
18962 name "tab:Table-with-vertical"
18967 \begin_inset space \thinspace{}
18970 pt thick vertical lines
18978 \begin_layout Plain Layout
18980 \begin_inset Tabular
18981 <lyxtabular version="3" rows="3" columns="3">
18982 <features tabularvalignment="middle">
18983 <column alignment="center" valignment="top" width="0" special="Vc">
18984 <column alignment="center" valignment="top" width="0" special="Vc">
18985 <column alignment="center" valignment="top" width="0" special="VcV">
18987 <cell alignment="center" valignment="top" topline="true" usebox="none">
18990 \begin_layout Plain Layout
18996 <cell alignment="center" valignment="top" topline="true" usebox="none">
18999 \begin_layout Plain Layout
19005 <cell alignment="center" valignment="top" topline="true" usebox="none">
19008 \begin_layout Plain Layout
19016 <cell alignment="center" valignment="top" topline="true" usebox="none">
19019 \begin_layout Plain Layout
19025 <cell alignment="center" valignment="top" topline="true" usebox="none">
19028 \begin_layout Plain Layout
19034 <cell alignment="center" valignment="top" topline="true" usebox="none">
19037 \begin_layout Plain Layout
19045 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19048 \begin_layout Plain Layout
19054 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19057 \begin_layout Plain Layout
19063 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19066 \begin_layout Plain Layout
19085 \begin_layout Subsection
19087 \begin_inset Index idx
19090 \begin_layout Plain Layout
19091 Table Customization ! Dashed Lines
19099 \begin_layout Standard
19103 \begin_layout Plain Layout
19113 \begin_inset Note Note
19116 \begin_layout Plain Layout
19117 The following section will only be displayed when the LaTeX-package
19129 \begin_layout Standard
19130 \begin_inset Float table
19136 \begin_layout Plain Layout
19137 \begin_inset Caption
19139 \begin_layout Plain Layout
19140 \begin_inset CommandInset label
19142 name "tab:Table-with-dashed"
19146 Table with dashed lines
19154 \begin_layout Plain Layout
19156 \begin_inset Tabular
19157 <lyxtabular version="3" rows="5" columns="5">
19158 <features tabularvalignment="middle">
19159 <column alignment="center" valignment="top" width="0">
19160 <column alignment="center" valignment="top" width="0">
19161 <column alignment="center" valignment="top" width="0" special=":c">
19162 <column alignment="center" valignment="top" width="0">
19163 <column alignment="center" valignment="top" width="0">
19165 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19168 \begin_layout Plain Layout
19174 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19177 \begin_layout Plain Layout
19183 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19186 \begin_layout Plain Layout
19192 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19195 \begin_layout Plain Layout
19201 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19204 \begin_layout Plain Layout
19212 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19215 \begin_layout Plain Layout
19221 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19224 \begin_layout Plain Layout
19230 <cell alignment="center" valignment="top" topline="true" usebox="none">
19233 \begin_layout Plain Layout
19239 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19242 \begin_layout Plain Layout
19248 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19251 \begin_layout Plain Layout
19259 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19262 \begin_layout Plain Layout
19266 \begin_layout Plain Layout
19280 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19283 \begin_layout Plain Layout
19289 <cell alignment="center" valignment="top" usebox="none">
19292 \begin_layout Plain Layout
19298 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19301 \begin_layout Plain Layout
19307 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
19310 \begin_layout Plain Layout
19318 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19321 \begin_layout Plain Layout
19325 \begin_layout Plain Layout
19339 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19342 \begin_layout Plain Layout
19348 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
19351 \begin_layout Plain Layout
19357 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none" special="c:">
19360 \begin_layout Plain Layout
19366 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19369 \begin_layout Plain Layout
19377 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19380 \begin_layout Plain Layout
19386 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19389 \begin_layout Plain Layout
19395 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19398 \begin_layout Plain Layout
19404 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19407 \begin_layout Plain Layout
19413 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19416 \begin_layout Plain Layout
19435 \begin_layout Standard
19436 LyX does not natively support dashed lines, so you have to use TeX-Code.
19437 As a prerequisite the LaTeX-package
19442 \begin_inset Index idx
19445 \begin_layout Plain Layout
19446 LaTeX-packages ! arydshln
19451 must be loaded in the document preamble with the command
19454 \begin_layout Standard
19459 usepackage{arydshln}
19462 \begin_layout Standard
19463 To make a vertical line dashed, enter the colon
19464 \begin_inset Quotes eld
19468 \begin_inset Quotes erd
19471 together with the character for the horizontal alignment as LaTeX-argument
19472 in the table cell dialog.
19475 \begin_layout Standard
19476 For a horizontal dashed line add the command
19479 \begin_layout Standard
19487 \begin_layout Standard
19488 in TeX-Code as first element of the first cell in the table row.
19491 \begin_layout Standard
19492 For dashed multicolumn lines use the command
19495 \begin_layout Standard
19500 cdashline{line number
19505 \begin_layout Standard
19506 in TeX-Code as the first element of the first cell in the table row.
19507 If you have for example a multicolumn spanning columns 2 to 4 and you want
19508 to have a dashed line above, add the command
19511 \begin_layout Standard
19519 \begin_layout Standard
19520 as the first element of the first cell in the row of the multicolumn.
19523 \begin_layout Standard
19524 \begin_inset VSpace bigskip
19530 \begin_layout Standard
19532 \begin_inset space ~
19536 \begin_inset CommandInset ref
19538 reference "tab:Table-with-dashed"
19543 \begin_inset Quotes eld
19551 \begin_inset Quotes erd
19554 as LaTeX-argument of the third column.
19555 The TeX-Code command
19561 was inserted in the first cell of the third row and the TeX-Code command
19562 \begin_inset Newline newline
19571 was inserted in the first cell of the fourth row.
19574 \begin_layout Standard
19575 \begin_inset Note Greyedout
19578 \begin_layout Plain Layout
19587 is apparently not compatible with the LaTeX-package
19592 \begin_inset Index idx
19595 \begin_layout Plain Layout
19596 LaTeX-packages ! colortbl
19601 that is used for colored tables in section
19602 \begin_inset space ~
19606 \begin_inset CommandInset ref
19608 reference "sec:Colored-Tables"
19613 That means colored tables cannot have dashed lines.
19621 \begin_layout Standard
19625 \begin_layout Plain Layout
19635 \begin_inset Note Note
19638 \begin_layout Plain Layout
19639 The following will be displayed when the LaTeX-package
19651 \begin_layout Standard
19652 You need to install the package
19656 to see the content of this section in the output.
19659 \begin_layout Standard
19663 \begin_layout Plain Layout
19675 \begin_layout Chapter
19677 \begin_inset CommandInset label
19684 \begin_inset Index idx
19687 \begin_layout Plain Layout
19696 \begin_layout Section
19698 \begin_inset CommandInset label
19700 name "sec:FloatIntroduction"
19705 \begin_inset Index idx
19708 \begin_layout Plain Layout
19709 Floats ! Introduction
19717 \begin_layout Standard
19718 A float is a block of text associated with some sort of label, which doesn't
19719 have a fixed location.
19721 \begin_inset Quotes eld
19725 \begin_inset Quotes erd
19728 forward or backward a page or two, to wherever it fits best.
19736 \begin_inset space ~
19741 are also floats, because they can float to the next page when there are
19742 too many notes on the page.
19745 \begin_layout Standard
19746 Floats allow a high quality layout.
19747 Images and tables can be spread evenly to the pages to avoid white space
19748 and pages without text.
19749 As the floating often destroys the context between the text and the image/table
19750 , every float can be referenced in the text.
19751 Floats are therefore numbered.
19752 Referencing is described in section
19753 \begin_inset space ~
19757 \begin_inset CommandInset ref
19759 reference "sec:Referencing-Floats"
19766 \begin_layout Standard
19767 To insert a float, use the menu
19769 Insert\SpecialChar \menuseparator
19777 inset, a box with a label.
19778 The label will automatically be translated to the document language in
19780 After the label you can insert the caption text.
19781 The image or table is inserted above or below the caption in a separate
19782 paragraph within the float.
19783 More about the caption placement is contained in section
19784 \begin_inset space ~
19788 \begin_inset CommandInset ref
19790 reference "sec:Caption-Placement"
19795 To keep your LyX-document readable, you can open and close the float box
19796 by left-clicking on the box label.
19797 A closed float box looks like this:
19798 \begin_inset Graphics
19799 filename clipart/floatQt4.png
19801 scaleBeforeRotation
19805 – a gray button with a red label.
19808 \begin_layout Standard
19809 It is recommended that you insert floats as a separate standard paragraph
19810 to avoid possible LaTeX-errors that can occur when the surrounding text
19811 is specially formatted.
19814 \begin_layout Standard
19815 Existing figures or tables can be put into a float by highlighting them
19816 and then pressing the corresponding toolbar button for a new float.
19819 \begin_layout Section
19823 \begin_layout Standard
19824 Besides figure and table floats that are described in sections
19825 \begin_inset space ~
19829 \begin_inset CommandInset ref
19831 reference "sec:Figure-Floats"
19836 \begin_inset CommandInset ref
19838 reference "sec:Table-Floats"
19842 respectively, LyX offers the float types
19851 The latter are explained in sec.
19852 \begin_inset space \thinspace{}
19856 \begin_inset CommandInset ref
19858 reference "sec:Wrap-Floats"
19865 \begin_layout Subsection
19867 \begin_inset Index idx
19870 \begin_layout Plain Layout
19871 Floats ! Algorithms
19879 \begin_layout Standard
19880 \begin_inset Float algorithm
19886 \begin_layout Plain Layout
19887 \begin_inset Caption
19889 \begin_layout Plain Layout
19890 \begin_inset CommandInset label
19892 name "alg:Example-Algorithm-float"
19896 Example Algorithm float
19904 \begin_layout LyX-Code
19906 \begin_inset Newline newline
19909 Sum:= Sum + A(I); /*comment*/
19910 \begin_inset Newline newline
19914 \begin_inset VSpace -4mm
19925 \begin_layout Standard
19926 This float type is inserted with the menu
19928 Insert\SpecialChar \menuseparator
19929 Floats\SpecialChar \menuseparator
19933 It is used for program codes and descriptions of algorithms and can be
19934 seen as an alternative to program code listings that are explained in chapter
19935 \begin_inset space ~
19939 \begin_inset CommandInset ref
19941 reference "cha:Program-Code-Listings"
19946 A possible environment for algorithms is the
19950 , described in LyX's
19956 \begin_inset space ~
19960 \begin_inset CommandInset ref
19962 reference "alg:Example-Algorithm-float"
19966 is an example of an algorithm float where -4
19967 \begin_inset space \thinspace{}
19970 mm vertical space was added at the end of the float to have the bottom rule
19971 exactly below the last text line.
19974 \begin_layout Standard
19975 The float label is not automatically translated into the document language.
19976 If your document is not in English, you have to do this manually by adding
19977 the following line to the document preamble
19982 \begin_layout Standard
19987 floatname{algorithm}{your
19988 \begin_inset space ~
19994 \begin_layout Standard
19998 \begin_inset space ~
20004 \begin_inset Quotes eld
20012 \begin_inset Quotes erd
20018 \begin_layout Standard
20019 To insert the list of algorithms you can use the menu
20021 Insert\SpecialChar \menuseparator
20023 \begin_inset space \thinspace{}
20027 \begin_inset space \thinspace{}
20030 TOC\SpecialChar \menuseparator
20033 when your document has the same language as LyX's menu names.
20034 In other cases use this command in TeX-Code instead:
20037 \begin_layout Standard
20042 listof{algorithm}{your
20043 \begin_inset space ~
20049 \begin_layout Standard
20053 \begin_inset space ~
20059 \begin_inset Quotes eld
20067 \begin_inset Quotes erd
20073 \begin_layout Standard
20074 Algorithm floats are not by default numbered in the scheme
20075 \begin_inset Quotes eld
20079 \begin_inset Quotes erd
20082 as is the case for table and figure floats in many document-classes.
20083 To number algorithm floats in the same scheme, add this command to your
20087 \begin_layout Standard
20092 numberwithin{algorithm}{chapter}
20095 \begin_layout Standard
20096 To be able to use the command
20105 \begin_inset space ~
20110 in the document settings the option
20113 \begin_inset space ~
20117 \begin_inset space ~
20121 \begin_inset space ~
20129 \begin_layout Section
20131 \begin_inset Index idx
20134 \begin_layout Plain Layout
20143 \begin_layout Standard
20144 Floats are usually numbered either independently from the sections the floats
20145 are in, or in the scheme
20146 \begin_inset Quotes eld
20150 \begin_inset Quotes erd
20154 \begin_inset Quotes eld
20158 \begin_inset Quotes erd
20162 This depends on the document class used.
20165 \begin_layout Standard
20166 To change section-independent numbering, you can use this command in the
20170 \begin_layout Standard
20182 \begin_layout Standard
20189 is the command that prints the table number, for figure floats, the command
20203 in the command above prints the table number as small roman number.
20206 \begin_layout Standard
20207 To change the numbering scheme for example to
20208 \begin_inset Quotes eld
20212 \begin_inset Quotes erd
20215 , use this command in the preamble:
20218 \begin_layout Standard
20223 numberwithin{table}{subsection}
20226 \begin_layout Standard
20227 To be able to use the command
20236 \begin_inset space ~
20241 in the document settings the option
20244 \begin_inset space ~
20248 \begin_inset space ~
20252 \begin_inset space ~
20260 \begin_layout Standard
20261 Please also have a look at section
20262 \begin_inset space ~
20266 \begin_inset CommandInset ref
20268 reference "sub:Footnote-Numbering"
20272 for the details and important notes about the numbering commands.
20275 \begin_layout Section
20277 \begin_inset CommandInset label
20279 name "sec:Referencing-Floats"
20284 \begin_inset Index idx
20287 \begin_layout Plain Layout
20288 Floats ! References
20294 \begin_inset Index idx
20297 \begin_layout Plain Layout
20298 References ! to Floats
20306 \begin_layout Standard
20307 To reference a float, insert a label into its caption using the menu
20309 Insert\SpecialChar \menuseparator
20312 or the toolbar button
20313 \begin_inset Graphics
20314 filename ../images/label-insert.png
20316 scaleBeforeRotation
20321 A grey label box like this one:
20322 \begin_inset Graphics
20323 filename clipart/labelQt4.png
20325 scaleBeforeRotation
20329 will be inserted and the label window pops up asking for the label text.
20330 LyX offers as text the first words of the caption with a prefix.
20331 The prefix depends on the float type, e.
20332 \begin_inset space \thinspace{}
20336 \begin_inset space \space{}
20339 for figure floats the prefix will be "
20346 \begin_layout Standard
20347 The label is used as anchor and name for the reference.
20348 You can refer to the label using the menu
20350 Insert\SpecialChar \menuseparator
20353 or the toolbar button
20354 \begin_inset Graphics
20355 filename ../images/dialog-show-new-inset_ref.png
20357 scaleBeforeRotation
20362 A grey cross-reference box like this one:
20363 \begin_inset Graphics
20364 filename clipart/referenceQt4.png
20366 scaleBeforeRotation
20370 will be inserted and the cross-reference window appear showing all labels
20372 If you have multiple LyX-documents opened, choose the one you are working
20373 on from the drop-list at the top of the dialog.
20374 You can now sort the labels alphabetically and then choose one.
20375 At the position of the cross-reference box the float number will appear
20379 \begin_layout Standard
20380 It is recommended that you use a protected space between the cross-reference
20381 name and its number to avoid line breaks between them.
20382 If a cross-reference refers to a non-existing label, you will see two question
20383 marks in the output instead of the reference.
20386 \begin_layout Standard
20387 You can change labels at any time by clicking on the label box.
20388 References to the changed label will automatically change its link to the
20389 new label text, so that you don't need to take care about this.
20392 \begin_layout Standard
20396 \begin_inset space ~
20400 \begin_inset space ~
20405 in the cross-reference window sets the cursor before the referred label.
20406 The button text changes then to Go
20407 \begin_inset space ~
20410 Back and you can use it to set the cursor back to the cross-reference.
20411 Right-clicking on a cross-reference box also sets the cursor before the
20412 referenced label but without the possibility of going back.
20415 \begin_layout Subsection
20416 Cross-Reference Formats
20417 \begin_inset CommandInset label
20419 name "sub:Cross-Reference-Formats"
20424 \begin_inset Index idx
20427 \begin_layout Plain Layout
20428 References ! Formats
20436 \begin_layout Standard
20437 There are six varieties of cross-references:
20440 \begin_layout Description
20441 <reference>: prints the float number, this is the default:
20442 \begin_inset CommandInset ref
20444 reference "fig:Two-distorted-images"
20451 \begin_layout Description
20452 (<reference>): prints the float number within two parentheses, this is the
20453 style normally used to reference formulas, especially when the reference
20455 \begin_inset Quotes eld
20459 \begin_inset Quotes erd
20463 \begin_inset CommandInset ref
20472 \begin_layout Description
20473 <page>: prints the page number: Page
20474 \begin_inset space ~
20478 \begin_inset CommandInset ref
20479 LatexCommand pageref
20480 reference "fig:Two-distorted-images"
20487 \begin_layout Description
20489 \begin_inset space ~
20493 \begin_inset space ~
20496 <page>: prints the text "on page" and the page number:
20497 \begin_inset CommandInset ref
20498 LatexCommand vpageref
20499 reference "fig:Two-distorted-images"
20506 \begin_layout Description
20508 \begin_inset space ~
20512 \begin_inset space ~
20516 \begin_inset space ~
20519 <page>: prints the float number, the text "on page", and the page number:
20521 \begin_inset CommandInset ref
20523 reference "fig:Two-distorted-images"
20530 \begin_layout Description
20532 \begin_inset space ~
20535 reference: prints a self-defined cross-reference format.
20536 \begin_inset Newline newline
20540 \begin_inset Note Greyedout
20543 \begin_layout Plain Layout
20548 This feature is only available when you have the LaTeX-package
20557 \begin_inset Index idx
20560 \begin_layout Plain Layout
20561 LaTeX-packages ! prettyref
20567 \begin_inset Index idx
20570 \begin_layout Plain Layout
20571 LaTeX-packages ! refstyle
20582 \begin_inset Newline newline
20585 You can select which LaTeX-package should be used for this feature by setting
20588 Use refstyle (not prettyref) for cross-references
20592 Document\SpecialChar \menuseparator
20593 Settings\SpecialChar \menuseparator
20597 The format is specified by adding the command
20609 (refstyle) to the preamble of the document.
20610 For example redefining all references to figures (which have the label
20612 \begin_inset Quotes eld
20620 \begin_inset Quotes erd
20623 ) can be done with this command
20624 \begin_inset Newline newline
20631 newref{fig}{refcmd={Image on page
20636 \begin_inset Newline newline
20639 For more information about the format, have a look at the package documentations
20641 \begin_inset CommandInset citation
20643 key "prettyref,refstyle"
20650 \begin_layout Description
20652 \begin_inset space ~
20655 reference: prints the caption of the reference:
20656 \begin_inset CommandInset ref
20657 LatexCommand nameref
20658 reference "fig:Two-distorted-images"
20665 \begin_layout Standard
20670 will not print the page number if the label is on the previous, the same,
20673 \begin_inset space \thinspace{}
20677 \begin_inset space \space{}
20681 \begin_inset Quotes eld
20689 \begin_inset Quotes erd
20695 <reference> on page <page>
20697 will not print anything about the page if the label is on the same page.
20700 \begin_layout Standard
20701 The number and current page of the part of the document referred to in the
20702 output is automatically calculated by LaTeX.
20703 The varieties are adjusted in the field
20707 of the cross-reference window that appears when you click on the cross-referenc
20711 \begin_layout Standard
20712 \begin_inset Note Greyedout
20715 \begin_layout Plain Layout
20720 It is recommended to use the LaTeX-package
20725 \begin_inset Index idx
20728 \begin_layout Plain Layout
20729 LaTeX-packages ! refstyle
20739 \begin_inset Index idx
20742 \begin_layout Plain Layout
20743 LaTeX-packages ! prettyref
20748 does not know all of LyX's possible label shortcuts
20752 \begin_layout Plain Layout
20753 \begin_inset Quotes eld
20757 \begin_inset Quotes erd
20760 is for example LyX's shortcut for labels in figure captions.
20765 and is not internationalized.
20773 \begin_layout Standard
20774 \begin_inset Note Greyedout
20777 \begin_layout Plain Layout
20782 Due to a bug in the LaTeX-package
20786 version 1.4w, some cross-reference formats will cause LaTeX errors for document
20787 languages that make the period character active (like French).
20788 For a workaround, see
20789 \begin_inset Newline newline
20793 \begin_inset CommandInset href
20795 target "http://wiki.lyx.org/LaTeX/LatexBugs#toc5"
20807 \begin_layout Subsection
20808 Automatic Reference Naming
20809 \begin_inset Index idx
20812 \begin_layout Plain Layout
20813 References ! Automatic Reference Naming
20821 \begin_layout Standard
20827 \begin_inset Index idx
20830 \begin_layout Plain Layout
20831 LaTeX-packages ! hyperref
20836 , that is enabled in the
20844 dialog, provides a very useful feature that cross-references automatically
20845 include the name of the referenced floats (or text parts like
20850 So you will save having to write e.
20851 \begin_inset space \thinspace{}
20855 \begin_inset space \space{}
20859 \begin_inset Quotes eld
20863 \begin_inset Quotes erd
20866 before every reference to a figure.
20867 To use this feature, enable
20871 and insert this line to the LaTeX preamble:
20874 \begin_layout Standard
20890 \begin_layout Standard
20891 When you prefer other reference names than the default ones, for example
20892 you want instead of
20893 \begin_inset Quotes eld
20897 \begin_inset Quotes erd
20901 \begin_inset Quotes eld
20905 \begin_inset space \thinspace{}
20909 \begin_inset Quotes eld
20912 , you can redefine the name by inserting this in the preamble:
20915 \begin_layout Standard
20926 sectionautorefname}
20927 \begin_inset Newline newline
20931 \begin_inset Phantom HPhantom
20934 \begin_layout Plain Layout
20937 \begin_inset space ~
20950 \begin_layout Standard
20951 When you are using another document language than English, replace
20952 \begin_inset Newline newline
20967 , where *** is the name of the language used.
20970 \begin_layout Standard
20971 To get automatic names, but not for certain reference types, for example
20972 not for equations, use this preamble code:
20975 \begin_layout Standard
20983 \begin_inset Newline newline
20993 \begin_inset Newline newline
21004 equationautorefname}
21005 \begin_inset Newline newline
21009 \begin_inset Phantom HPhantom
21012 \begin_layout Plain Layout
21015 \begin_inset space ~
21030 \begin_layout Standard
21031 More about this topic can be found in
21036 \begin_inset CommandInset citation
21045 \begin_layout Standard
21046 \begin_inset Note Greyedout
21049 \begin_layout Plain Layout
21054 Automatic reference naming cannot be used when you use cross-references
21058 \begin_inset space ~
21063 style, as described in section
21064 \begin_inset space ~
21068 \begin_inset CommandInset ref
21070 reference "sub:Cross-Reference-Formats"
21082 \begin_layout Standard
21087 manual is an example where automatic reference naming is used.
21090 \begin_layout Subsection
21092 \begin_inset CommandInset label
21094 name "sub:Reference-Position"
21099 \begin_inset Index idx
21102 \begin_layout Plain Layout
21103 References ! Reference Position
21111 \begin_layout Standard
21117 \begin_inset Index idx
21120 \begin_layout Plain Layout
21121 LaTeX-packages ! hyperref
21134 dialog to link cross-references in the output, you will see that clicking
21135 on an image float reference jumps to the image label.
21136 The caption will be the first text part on the screen, so that you cannot
21137 see the image without scrolling.
21138 This is because the reference link anchor is placed at the position of
21140 With the use of the package
21145 \begin_inset Index idx
21148 \begin_layout Plain Layout
21149 LaTeX-packages ! hypcap
21154 , which is part of the LaTeX-package
21159 \begin_inset Index idx
21162 \begin_layout Plain Layout
21163 LaTeX-packages ! oberdiek
21168 , the link anchor is placed at the beginning of a float.
21169 To use this feature for figure floats, load
21173 in the document preamble with the line
21176 \begin_layout Standard
21181 usepackage[figure]{hypcap}
21184 \begin_layout Standard
21189 for all float types but this is not recommended for stability reasons.
21190 For more information, have a look at
21195 \begin_inset CommandInset citation
21204 \begin_layout Standard
21205 \begin_inset Note Greyedout
21208 \begin_layout Plain Layout
21217 has no effect on references to subfigures.
21225 \begin_layout Section
21227 \begin_inset CommandInset label
21229 name "sec:Float-Placement"
21234 \begin_inset Index idx
21237 \begin_layout Plain Layout
21246 \begin_layout Standard
21247 Right-clicking on a float-box opens a dialog where you can alter the placement
21248 options that LaTeX uses for positioning the float.
21249 \begin_inset Newline newline
21255 \begin_inset space ~
21260 is only useful for two-column documents: If you select it, the float will
21261 span both columns on the page instead of being confined to just one.
21262 \begin_inset Newline newline
21268 \begin_inset space ~
21273 is used to rotate floats, see section
21274 \begin_inset CommandInset ref
21276 reference "sec:Rotated-Floats"
21283 \begin_layout Standard
21284 You can use one ore more of the following options in the float dialog to
21285 set the placement for a particular float when you uncheck the option
21288 \begin_inset space ~
21292 \begin_inset space ~
21300 \begin_layout Description
21302 \begin_inset space ~
21306 \begin_inset space ~
21309 possible try to place the float on the position where it has been inserted
21312 \begin_layout Description
21314 \begin_inset space ~
21318 \begin_inset space ~
21321 page try to place the float at the top of the current page
21324 \begin_layout Description
21326 \begin_inset space ~
21330 \begin_inset space ~
21333 page try to place the float at the bottom of the current page
21336 \begin_layout Description
21338 \begin_inset space ~
21342 \begin_inset space ~
21345 floats try to place the float on its own page
21348 \begin_layout Standard
21349 The order of the above option is
21354 That means, if you use the default placement, LaTeX will first try out
21358 \begin_inset space ~
21362 \begin_inset space ~
21370 \begin_inset space ~
21374 \begin_inset space ~
21379 , and then the others.
21380 If you do not use the default, LaTeX will try only the checked options
21381 but in the same order.
21383 \begin_inset space ~
21386 placements are possible the procedure is internally repeated but it is tried
21387 to put the float on the following page.
21390 \begin_layout Standard
21391 By default, each option has its own rules:
21394 \begin_layout Labeling
21395 \labelwidthstring 00.00.0000
21399 \begin_inset space ~
21403 \begin_inset space ~
21408 only floats occupying less than 70
21409 \begin_inset space \thinspace{}
21412 % of the page can be placed at the top of a page (
21421 \begin_layout Labeling
21422 \labelwidthstring 00.00.0000
21426 \begin_inset space ~
21430 \begin_inset space ~
21435 : only floats occupying less than 30
21436 \begin_inset space \thinspace{}
21439 % of the page can be placed at the bottom of a page.
21449 \begin_layout Labeling
21450 \labelwidthstring 00.00.0000
21454 \begin_inset space ~
21458 \begin_inset space ~
21463 : only if more than 50
21464 \begin_inset space \thinspace{}
21467 % of the page are occupied by floats, several floats can be set together
21478 \begin_layout Standard
21479 If you don't like these rules, you can ignore them by using the additional
21483 \begin_inset space ~
21487 \begin_inset space ~
21493 \begin_inset Newline newline
21496 You can also redefine the rules with LaTeX-commands that are given in parenthese
21497 s after the rules description above.
21498 To increase for example the often too small default of the bottom-rule
21500 \begin_inset space \thinspace{}
21503 % of the page, add this line to your document preamble:
21506 \begin_layout Standard
21513 bottomfraction}{0.5}
21516 \begin_layout Standard
21517 Sometimes you might need, under all circumstances, a float to be placed
21518 exactly at the position where it is inserted.
21519 For this case you can use the option
21522 \begin_inset space ~
21528 Use this option very rarely and only if the document is almost ready to
21529 be printed, because the float is then no longer able to
21530 \begin_inset Quotes eld
21534 \begin_inset Quotes erd
21537 when you change your document and this will often destroy the page layout.
21540 \begin_layout Standard
21541 There are no placement options for text wrap floats, because they are always
21542 surrounded by the text of a certain paragraph.
21543 \begin_inset VSpace bigskip
21549 \begin_layout Standard
21550 Sometimes you have the problem that a float is placed at the top of a page
21551 while its corresponding section starts at the middle of the page, so that
21552 the reader could think the float is part of the previous section.
21553 To avoid this the LaTeX-command
21560 It suppresses a given float placement for the page where it is inserted
21561 and can therefore be used to avoid floats being set before a section starts.
21562 To get this, add these commands to your document preamble:
21565 \begin_layout Standard
21575 \begin_inset Newline newline
21589 \begin_layout Standard
21590 You can define the same for all section headings, like chapters and subsections.
21591 This definition is not recommended to be used for small text parts like
21592 subsubsections because LaTeX may then have problems finding a suitable
21596 \begin_layout Standard
21597 \begin_inset VSpace bigskip
21600 In some cases it is required to have all figures/tables at the end of the
21602 For this purpose the LaTeX-package
21607 \begin_inset Index idx
21610 \begin_layout Plain Layout
21611 LaTeX-packages ! endfloat
21617 It puts all figure and table floats at the end of the document into their
21619 At the original float position a text hint like
21620 \begin_inset Quotes eld
21626 \begin_inset space ~
21632 \begin_inset Quotes erd
21636 The endfloat-package is loaded in the preamble with the line
21639 \begin_layout Standard
21644 usepackage[options]{endfloat}
21647 \begin_layout Standard
21648 There are various package options to format the created figure/table sections.
21649 For more information we refer to the
21654 \begin_inset CommandInset citation
21661 \begin_inset Newline newline
21665 \begin_inset Note Greyedout
21668 \begin_layout Plain Layout
21673 doesn't provide an automatic translation for the text hint, you have to
21674 do this manually, see section
21675 \begin_inset space ~
21679 \begin_inset CommandInset citation
21691 \begin_inset Newline newline
21695 \begin_inset Note Greyedout
21698 \begin_layout Plain Layout
21703 There is currently a bug in
21707 when the caption contains a German
21708 \begin_inset Quotes eld
21712 \begin_inset Quotes erd
21716 Use in this case the command
21717 \begin_inset Quotes eld
21727 \begin_inset Quotes erd
21730 in TeX-Code instead of
21731 \begin_inset Quotes eld
21735 \begin_inset Quotes erd
21746 \begin_layout Standard
21747 \begin_inset VSpace bigskip
21750 For more details about float placements, have a look at LaTeX books,
21751 \begin_inset CommandInset citation
21753 key "latexcompanion,latexguide,latexbook"
21760 \begin_layout Section
21762 \begin_inset CommandInset label
21764 name "sec:Rotated-Floats"
21769 \begin_inset Index idx
21772 \begin_layout Plain Layout
21781 \begin_layout Standard
21782 Especially for wide tables you might have floats rotated.
21783 To rotate a whole float including the caption, right-click on the float-box
21787 \begin_inset space ~
21795 \begin_layout Standard
21796 Rotated floats are always placed on a page of their own (or column of their
21797 own; in case you have a multi-column document).
21798 You can let them span several columns using the float settings option
21801 \begin_inset space ~
21807 Floats are rotated so that you can read them from the outside margin.
21808 To force a certain rotation direction for all pages, you can add either
21817 to the document class options.
21820 \begin_layout Standard
21821 Referencing rotated floats is the same as for normal floats, the caption
21822 format is also the same: Table
21823 \begin_inset space ~
21827 \begin_inset CommandInset ref
21829 reference "tab:Rotated-table"
21833 is an example of a rotated table float.
21836 \begin_layout Standard
21837 \begin_inset Note Greyedout
21840 \begin_layout Plain Layout
21845 Not all DVI-viewers are able to display rotated floats.
21853 \begin_layout Standard
21854 \begin_inset Float table
21859 \begin_layout Plain Layout
21860 \begin_inset Caption
21862 \begin_layout Plain Layout
21863 \begin_inset CommandInset label
21865 name "tab:Rotated-table"
21877 \begin_layout Plain Layout
21879 \begin_inset Tabular
21880 <lyxtabular version="3" rows="1" columns="5">
21881 <features tabularvalignment="middle">
21882 <column alignment="center" valignment="top" width="0">
21883 <column alignment="center" valignment="top" width="0">
21884 <column alignment="center" valignment="top" width="0">
21885 <column alignment="center" valignment="top" width="0">
21886 <column alignment="center" valignment="top" width="0">
21888 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21891 \begin_layout Plain Layout
21897 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21900 \begin_layout Plain Layout
21906 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21909 \begin_layout Plain Layout
21915 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21918 \begin_layout Plain Layout
21924 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21927 \begin_layout Plain Layout
21946 \begin_layout Section
21948 \begin_inset Index idx
21951 \begin_layout Plain Layout
21960 \begin_layout Standard
21961 Subfloats are for example used when a figure consists of several images.
21962 They are created by inserting a float into an existing float.
21963 The placement of the subfloats can be controlled in the same way as for
21964 paragraphs as shown in table
21965 \begin_inset space ~
21969 \begin_inset CommandInset ref
21971 reference "tab:Two-subtables-side"
21976 \begin_inset CommandInset ref
21978 reference "tab:Two-subtables-upon"
21985 \begin_layout Standard
21986 Referencing subfloats works as for normal floats: Table
21987 \begin_inset space ~
21991 \begin_inset CommandInset ref
21993 reference "tab:This-is-subtable-a"
21998 \begin_inset CommandInset ref
22000 reference "tab:This-is-subtable-b"
22004 are subtables of table
22005 \begin_inset space ~
22009 \begin_inset CommandInset ref
22011 reference "tab:Two-subtables-side"
22018 \begin_layout Standard
22019 \begin_inset Float table
22024 \begin_layout Plain Layout
22025 \begin_inset Caption
22027 \begin_layout Plain Layout
22028 \begin_inset CommandInset label
22030 name "tab:Two-subtables-side"
22034 Two subtables placed side by side.
22042 \begin_layout Plain Layout
22044 \begin_inset space \hfill{}
22048 \begin_inset Float table
22053 \begin_layout Plain Layout
22054 \begin_inset Caption
22056 \begin_layout Plain Layout
22057 \begin_inset CommandInset label
22059 name "tab:This-is-subtable-a"
22063 This is subtable a.
22071 \begin_layout Plain Layout
22073 \begin_inset Tabular
22074 <lyxtabular version="3" rows="1" columns="5">
22075 <features tabularvalignment="middle">
22076 <column alignment="center" valignment="top" width="0">
22077 <column alignment="center" valignment="top" width="0">
22078 <column alignment="center" valignment="top" width="0">
22079 <column alignment="center" valignment="top" width="0">
22080 <column alignment="center" valignment="top" width="0">
22082 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22085 \begin_layout Plain Layout
22091 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22094 \begin_layout Plain Layout
22100 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22103 \begin_layout Plain Layout
22109 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22112 \begin_layout Plain Layout
22118 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22121 \begin_layout Plain Layout
22138 \begin_inset space \hfill{}
22142 \begin_inset Float table
22147 \begin_layout Plain Layout
22148 \begin_inset Caption
22150 \begin_layout Plain Layout
22151 \begin_inset CommandInset label
22153 name "tab:This-is-subtable-b"
22157 This is subtable b.
22165 \begin_layout Plain Layout
22167 \begin_inset Tabular
22168 <lyxtabular version="3" rows="1" columns="5">
22169 <features tabularvalignment="middle">
22170 <column alignment="center" valignment="top" width="0">
22171 <column alignment="center" valignment="top" width="0">
22172 <column alignment="center" valignment="top" width="0">
22173 <column alignment="center" valignment="top" width="0">
22174 <column alignment="center" valignment="top" width="0">
22176 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22179 \begin_layout Plain Layout
22185 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22188 \begin_layout Plain Layout
22194 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22197 \begin_layout Plain Layout
22203 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22206 \begin_layout Plain Layout
22212 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22215 \begin_layout Plain Layout
22232 \begin_inset space \hfill{}
22243 \begin_layout Standard
22244 \begin_inset Float table
22249 \begin_layout Plain Layout
22250 \begin_inset Caption
22252 \begin_layout Plain Layout
22253 \begin_inset CommandInset label
22255 name "tab:Two-subtables-upon"
22259 Two subtables placed one above the other.
22260 (a) table with 4 cells, (b) table with 5 cells.
22268 \begin_layout Plain Layout
22270 \begin_inset Float table
22275 \begin_layout Plain Layout
22276 \begin_inset Caption
22278 \begin_layout Plain Layout
22287 \begin_layout Plain Layout
22289 \begin_inset Tabular
22290 <lyxtabular version="3" rows="1" columns="4">
22291 <features tabularvalignment="middle">
22292 <column alignment="center" valignment="top" width="0">
22293 <column alignment="center" valignment="top" width="0">
22294 <column alignment="center" valignment="top" width="0">
22295 <column alignment="center" valignment="top" width="0">
22297 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22300 \begin_layout Plain Layout
22306 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22309 \begin_layout Plain Layout
22315 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22318 \begin_layout Plain Layout
22324 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22327 \begin_layout Plain Layout
22346 \begin_layout Plain Layout
22348 \begin_inset Float table
22353 \begin_layout Plain Layout
22354 \begin_inset Caption
22356 \begin_layout Plain Layout
22365 \begin_layout Plain Layout
22367 \begin_inset Tabular
22368 <lyxtabular version="3" rows="1" columns="5">
22369 <features tabularvalignment="middle">
22370 <column alignment="center" valignment="top" width="0">
22371 <column alignment="center" valignment="top" width="0">
22372 <column alignment="center" valignment="top" width="0">
22373 <column alignment="center" valignment="top" width="0">
22374 <column alignment="center" valignment="top" width="0">
22376 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22379 \begin_layout Plain Layout
22385 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22388 \begin_layout Plain Layout
22394 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22397 \begin_layout Plain Layout
22403 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22406 \begin_layout Plain Layout
22412 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22415 \begin_layout Plain Layout
22439 \begin_layout Section
22440 Floats Side by Side
22441 \begin_inset Index idx
22444 \begin_layout Plain Layout
22445 Floats ! Side by side
22453 \begin_layout Standard
22454 To place floats side by side, as in Figures
22455 \begin_inset space ~
22459 \begin_inset CommandInset ref
22461 reference "fig:Float-left"
22466 \begin_inset CommandInset ref
22468 reference "fig:Float-right"
22477 In it two minipage boxes are inserted.
22481 \begin_layout Plain Layout
22482 Minipages are explained in section
22483 \begin_inset space ~
22487 \begin_inset CommandInset ref
22489 reference "sec:Minipages"
22498 The width is set to 45
22499 \begin_inset space \thinspace{}
22503 \begin_inset space \thinspace{}
22506 column% and the box alignment to
22511 The minipage boxes contain the image and the caption in the same way as
22512 they are in a float.
22513 The only difference is that the image unit
22516 \begin_inset space ~
22520 \begin_inset space ~
22525 is now calculated according to the width of the minipage boxes.
22528 \begin_layout Standard
22529 \begin_inset Float figure
22534 \begin_layout Plain Layout
22535 \begin_inset Box Frameless
22545 height_special "totalheight"
22548 \begin_layout Plain Layout
22550 \begin_inset Graphics
22551 filename clipart/mobius.eps
22554 scaleBeforeRotation
22561 \begin_layout Plain Layout
22562 \begin_inset Caption
22564 \begin_layout Plain Layout
22565 \begin_inset CommandInset label
22567 name "fig:Float-left"
22571 Float on the left side.
22582 \begin_inset space \hfill{}
22586 \begin_inset Box Frameless
22596 height_special "totalheight"
22599 \begin_layout Plain Layout
22601 \begin_inset Graphics
22602 filename clipart/platypus.eps
22605 scaleBeforeRotation
22612 \begin_layout Plain Layout
22613 \begin_inset Caption
22615 \begin_layout Plain Layout
22616 \begin_inset CommandInset label
22618 name "fig:Float-right"
22622 Float on the right side.
22635 \begin_layout Plain Layout
22644 \begin_layout Section
22646 \begin_inset Index idx
22649 \begin_layout Plain Layout
22650 Caption ! Formatting
22656 \begin_inset Index idx
22659 \begin_layout Plain Layout
22660 Floats ! Caption Formatting
22666 \begin_inset CommandInset label
22668 name "sec:Caption-Formatting"
22675 \begin_layout Standard
22680 environment is the default paragraph environment for
22685 On the LyX screen captions appear as label, e.
22686 \begin_inset space \thinspace{}
22690 \begin_inset space \space{}
22694 \begin_inset Quotes eld
22702 \begin_inset Quotes erd
22705 followed by the caption text.
22707 \begin_inset Quotes eld
22711 \begin_inset Quotes erd
22714 is the actual reference number.
22715 By default the label and the number are in the same font as the caption
22716 text and a colon follows the number to divide the label from the text.
22717 This caption format is not suitable for all document formats.
22721 \begin_layout Standard
22722 To change the default caption format, load the LaTeX-package
22727 \begin_inset Index idx
22730 \begin_layout Plain Layout
22731 LaTeX-packages ! caption
22736 in the document preamble with this line:
22739 \begin_layout Standard
22744 usepackage[format definition]{caption}
22747 \begin_layout Standard
22748 To have for example the label and the number in sans-serif bold font and
22749 the table captions always above the table as in this document, use the
22753 \begin_layout Standard
22758 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
22761 \begin_layout Standard
22762 You can also define different caption formats for the different float types.
22763 In this case load the
22767 package without format specific options and define the different formats
22768 with the help of the command
22771 \begin_layout Standard
22776 captionsetup[float type]{format definition}
22779 \begin_layout Standard
22780 in the document preamble.
22781 For example the caption formats of Figure
22782 \begin_inset space ~
22786 \begin_inset CommandInset ref
22788 reference "fig:This-is-an-fig"
22793 \begin_inset space ~
22797 \begin_inset CommandInset ref
22799 reference "tab:This-is-an-tab"
22803 can be created using these commands in the document preamble:
22806 \begin_layout Standard
22811 usepackage[tableposition=top]{caption}
22814 \begin_inset Newline newline
22821 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
22822 \begin_inset Newline newline
22826 \begin_inset Phantom HPhantom
22829 \begin_layout Plain Layout
22834 captionsetup[figure]{
22840 \begin_inset Newline newline
22845 captionsetup[table]{labelfont={bf,sf}}
22848 \begin_layout Standard
22849 \begin_inset Note Greyedout
22852 \begin_layout Plain Layout
22861 has no effect when a
22866 \begin_inset Index idx
22869 \begin_layout Plain Layout
22870 LaTeX-packages ! KOMA-Script
22875 document class is used.
22876 In this case the document class option
22878 captions=tableheading
22888 \begin_layout Standard
22889 For more information about the package
22893 we refer to its documentation
22894 \begin_inset CommandInset citation
22903 \begin_layout Standard
22904 To change the label name from e.
22905 \begin_inset space \thinspace{}
22909 \begin_inset space \space{}
22913 \begin_inset Quotes eld
22917 \begin_inset Quotes erd
22921 \begin_inset Quotes eld
22925 \begin_inset Quotes erd
22928 use this preamble command:
22931 \begin_layout Standard
22938 fnum@figure}{Image~
22943 \begin_layout Standard
22950 inserts the figure number and
22953 \begin_inset Quotes eld
22959 \begin_inset Quotes erd
22962 creates a protected space.
22965 \begin_layout Standard
22966 \begin_inset VSpace bigskip
22974 \begin_inset Index idx
22977 \begin_layout Plain Layout
22978 LaTeX-packages ! KOMA-Script
22985 article (KOMA-Script)
22993 letter (KOMA-Script)
22997 report (KOMA-Script)
23000 \begin_inset space \thinspace{}
23003 ), you can alternatively to the
23011 's built-in command
23018 For example, to have the caption label in bold, add this command to your
23022 \begin_layout Standard
23027 setkomafont{captionlabel}{
23032 \begin_layout Standard
23033 For more information about
23044 \begin_inset CommandInset citation
23053 \begin_layout Standard
23057 \begin_layout Plain Layout
23061 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
23068 \begin_inset Note Note
23071 \begin_layout Plain Layout
23072 The caption format is changed only for this example.
23080 \begin_layout Standard
23081 \begin_inset Float figure
23087 \begin_layout Plain Layout
23089 \begin_inset Graphics
23090 filename clipart/mobius.eps
23093 scaleBeforeRotation
23100 \begin_layout Plain Layout
23101 \begin_inset Caption
23103 \begin_layout Plain Layout
23104 \begin_inset CommandInset label
23106 name "fig:This-is-an-fig"
23110 This is an example figure caption that is longer than one line to show the
23111 different caption format.
23112 Here a self-defined caption format is used.
23125 \begin_layout Standard
23129 \begin_layout Plain Layout
23133 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
23142 \begin_layout Standard
23143 \begin_inset Float table
23149 \begin_layout Plain Layout
23150 \begin_inset Caption
23152 \begin_layout Plain Layout
23153 \begin_inset CommandInset label
23155 name "tab:This-is-an-tab"
23159 This is an example table caption that is longer than one line to show the
23160 different caption format.
23161 Here the standard caption format for tables in this document is used.
23169 \begin_layout Plain Layout
23171 \begin_inset Tabular
23172 <lyxtabular version="3" rows="1" columns="5">
23173 <features tabularvalignment="middle">
23174 <column alignment="center" valignment="top" width="0">
23175 <column alignment="center" valignment="top" width="0">
23176 <column alignment="center" valignment="top" width="0">
23177 <column alignment="center" valignment="top" width="0">
23178 <column alignment="center" valignment="top" width="0">
23180 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23183 \begin_layout Plain Layout
23189 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23192 \begin_layout Plain Layout
23198 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23201 \begin_layout Plain Layout
23207 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23210 \begin_layout Plain Layout
23216 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23219 \begin_layout Plain Layout
23238 \begin_layout Section
23240 \begin_inset Index idx
23243 \begin_layout Plain Layout
23244 Caption ! Placement
23250 \begin_inset Index idx
23253 \begin_layout Plain Layout
23254 Floats ! Caption Placement
23260 \begin_inset CommandInset label
23262 name "sec:Caption-Placement"
23269 \begin_layout Standard
23270 The common caption placement rule is:
23273 \begin_layout Description
23274 Figure: Caption is set below the figure
23277 \begin_layout Description
23278 Table: Caption is set above the table
23281 \begin_layout Standard
23282 Having the caption above the table is unfortunately not supported in LaTeX's
23284 That means if you are using the document classes
23300 there will be no space between the caption and the table.
23301 To insert the necessary space, add the following option to the load command
23302 of the LaTeX-package
23306 in your document preamble
23310 \begin_layout Plain Layout
23312 \begin_inset space ~
23316 \begin_inset CommandInset ref
23318 reference "sec:Caption-Formatting"
23322 for more information of the package
23334 \begin_layout Standard
23340 \begin_layout Standard
23346 \begin_inset Index idx
23349 \begin_layout Plain Layout
23350 LaTeX-packages ! KOMA-Script
23357 article (KOMA-Script)
23365 letter (KOMA-Script)
23369 report (KOMA-Script)
23372 \begin_inset space \thinspace{}
23375 ), you can alternatively to the
23379 package set the document class option
23381 captions=tableheading
23386 \begin_layout Standard
23387 \begin_inset VSpace bigskip
23390 It is also possible to set the caption beside a figure or table.
23391 To get this the LaTeX-package
23396 \begin_inset Index idx
23399 \begin_layout Plain Layout
23400 LaTeX-packages ! sidecap
23405 has to be loaded in the document preamble with the line
23408 \begin_layout Standard
23413 usepackage[option]{sidecap}
23416 \begin_layout Standard
23417 If you set no option, the caption is placed on the side of the outer page
23418 margin – to the right on odd pages, to the left on even pages.
23419 You can change the placement to inner margin with the option
23424 To force the placement always to the right or left, use the option
23435 \begin_layout Standard
23439 \begin_layout Plain Layout
23449 \begin_inset Note Note
23452 \begin_layout Plain Layout
23453 The following section will only be displayed when the LaTeX-package
23465 \begin_layout Standard
23466 To place in LyX the caption of a float on the side, it is necessary to add
23467 these commands to the document preamble:
23470 \begin_layout Standard
23472 \begin_inset CommandInset line
23483 \begin_layout Standard
23491 \begin_inset Newline newline
23495 \begin_inset Phantom HPhantom
23498 \begin_layout Plain Layout
23501 \begin_inset space ~
23516 \begin_inset Newline newline
23520 \begin_inset Phantom HPhantom
23523 \begin_layout Plain Layout
23526 \begin_inset space ~
23541 \begin_inset Newline newline
23545 \begin_inset Phantom HPhantom
23548 \begin_layout Plain Layout
23551 \begin_inset space ~
23561 renewenvironment{table}{
23568 \begin_layout Standard
23576 \begin_inset Newline newline
23580 \begin_inset Phantom HPhantom
23583 \begin_layout Plain Layout
23586 \begin_inset space ~
23601 \begin_inset Newline newline
23605 \begin_inset Phantom HPhantom
23608 \begin_layout Plain Layout
23611 \begin_inset space ~
23628 \begin_layout Standard
23636 \begin_inset Newline newline
23640 \begin_inset Phantom HPhantom
23643 \begin_layout Plain Layout
23646 \begin_inset space ~
23661 \begin_inset Newline newline
23665 \begin_inset Phantom HPhantom
23668 \begin_layout Plain Layout
23671 \begin_inset space ~
23686 \begin_inset Newline newline
23690 \begin_inset Phantom HPhantom
23693 \begin_layout Plain Layout
23696 \begin_inset space ~
23706 renewenvironment{figure}{
23713 \begin_layout Standard
23721 \begin_inset Newline newline
23725 \begin_inset Phantom HPhantom
23728 \begin_layout Plain Layout
23731 \begin_inset space ~
23746 \begin_inset Newline newline
23750 \begin_inset Phantom HPhantom
23753 \begin_layout Plain Layout
23756 \begin_inset space ~
23773 \begin_layout Standard
23775 \begin_inset CommandInset line
23786 \begin_layout Standard
23787 The commands allow you to redefine the floats so that the caption is set
23789 For figure floats use the command
23792 \begin_layout Standard
23800 \begin_layout Standard
23801 in TeX-Code before the float.
23802 After the float insert the command
23805 \begin_layout Standard
23813 \begin_layout Standard
23814 in TeX-Code to get back to the original float definition.
23817 \begin_layout Standard
23818 For table floats use the corresponding commands
23821 \begin_layout Standard
23835 \begin_layout Standard
23837 \begin_inset space ~
23841 \begin_inset CommandInset ref
23843 reference "fig:cap-beside-fig"
23848 \begin_inset space ~
23852 \begin_inset CommandInset ref
23854 reference "tab:cap-beside-tab"
23858 are examples where the caption is set beside.
23861 \begin_layout Standard
23862 You can see in the examples that the caption text appears at the top of
23863 the floats for table floats and at the bottom for figure floats.
23864 To change this, you can use the command
23867 \begin_layout Standard
23872 sidecaptionvpos{float type}{placement}
23875 \begin_layout Standard
23876 in the document preamble or in TeX-Code before the float.
23877 The float type is either
23885 , the placement can be
23886 \begin_inset Quotes eld
23894 \begin_inset Quotes erd
23898 \begin_inset Quotes eld
23906 \begin_inset Quotes erd
23910 \begin_inset Quotes eld
23918 \begin_inset Quotes erd
23922 To have for example the caption of figure floats vertically centered, use
23926 \begin_layout Standard
23931 sidecaptionvpos{figure}{c}
23934 \begin_layout Standard
23935 This was used for Figure
23936 \begin_inset space ~
23940 \begin_inset CommandInset ref
23942 reference "fig:cap-beside-fig-2"
23949 \begin_layout Standard
23950 \begin_inset VSpace medskip
23953 For more information about the package
23957 we refer to its documentation
23958 \begin_inset CommandInset citation
23967 \begin_layout Standard
23968 \begin_inset Note Greyedout
23971 \begin_layout Plain Layout
23981 \begin_inset Index idx
23984 \begin_layout Plain Layout
23985 LaTeX-packages ! hypcap
23990 , described in section
23991 \begin_inset space ~
23995 \begin_inset CommandInset ref
23997 reference "sub:Reference-Position"
24001 , has no effect on floats with the caption set beside.
24009 \begin_layout Standard
24013 \begin_layout Plain Layout
24025 \begin_layout Standard
24026 \begin_inset Float figure
24031 \begin_layout Plain Layout
24032 \begin_inset Graphics
24033 filename clipart/escher-lsd.eps
24035 scaleBeforeRotation
24042 \begin_layout Plain Layout
24043 \begin_inset Caption
24045 \begin_layout Plain Layout
24046 \begin_inset CommandInset label
24048 name "fig:cap-beside-fig"
24052 This is a caption beside a figure.
24065 \begin_layout Standard
24069 \begin_layout Plain Layout
24081 \begin_layout Standard
24082 \begin_inset Float table
24087 \begin_layout Plain Layout
24088 \begin_inset Caption
24090 \begin_layout Plain Layout
24091 \begin_inset CommandInset label
24093 name "tab:cap-beside-tab"
24097 This is a caption beside a table.
24105 \begin_layout Plain Layout
24106 \begin_inset Tabular
24107 <lyxtabular version="3" rows="4" columns="5">
24108 <features tabularvalignment="middle">
24109 <column alignment="center" valignment="top" width="0">
24110 <column alignment="center" valignment="top" width="0">
24111 <column alignment="center" valignment="top" width="0">
24112 <column alignment="center" valignment="top" width="0">
24113 <column alignment="center" valignment="top" width="0">
24115 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24118 \begin_layout Plain Layout
24124 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24127 \begin_layout Plain Layout
24133 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24136 \begin_layout Plain Layout
24142 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24145 \begin_layout Plain Layout
24151 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24154 \begin_layout Plain Layout
24162 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24165 \begin_layout Plain Layout
24171 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24174 \begin_layout Plain Layout
24180 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24183 \begin_layout Plain Layout
24189 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24192 \begin_layout Plain Layout
24198 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24201 \begin_layout Plain Layout
24209 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24212 \begin_layout Plain Layout
24218 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24221 \begin_layout Plain Layout
24227 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24230 \begin_layout Plain Layout
24236 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24239 \begin_layout Plain Layout
24245 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24248 \begin_layout Plain Layout
24256 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24259 \begin_layout Plain Layout
24265 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24268 \begin_layout Plain Layout
24274 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24277 \begin_layout Plain Layout
24283 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24286 \begin_layout Plain Layout
24292 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24295 \begin_layout Plain Layout
24314 \begin_layout Standard
24318 \begin_layout Plain Layout
24330 \begin_layout Standard
24334 \begin_layout Plain Layout
24338 sidecaptionvpos{figure}{c}
24344 \begin_inset Float figure
24349 \begin_layout Plain Layout
24350 \begin_inset Graphics
24351 filename clipart/escher-lsd.eps
24353 scaleBeforeRotation
24360 \begin_layout Plain Layout
24361 \begin_inset Caption
24363 \begin_layout Plain Layout
24364 \begin_inset CommandInset label
24366 name "fig:cap-beside-fig-2"
24370 This is a vertically centered caption beside a figure.
24383 \begin_layout Standard
24387 \begin_layout Plain Layout
24399 \begin_layout Standard
24403 \begin_layout Plain Layout
24413 \begin_inset Note Note
24416 \begin_layout Plain Layout
24417 The following will be displayed when the LaTeX-package
24429 \begin_layout Standard
24430 You need to install the LaTeX-package
24434 to see the following part of this section in the output.
24437 \begin_layout Standard
24441 \begin_layout Plain Layout
24453 \begin_layout Section
24455 \begin_inset Index idx
24458 \begin_layout Plain Layout
24459 Floats ! Float Lists
24467 \begin_layout Standard
24468 Similar to the table of contents where the sections of the document are
24469 listed, there are listings for all float types, like the figures of the
24471 You can insert them via the
24473 Insert\SpecialChar \menuseparator
24475 \begin_inset space ~
24479 \begin_inset space ~
24487 \begin_layout Standard
24488 The list entries are the float captions or its short title, the float number,
24489 and the page number where they appear in the document.
24492 \begin_layout Standard
24493 You can find the list of figures and tables at the end of this document.
24496 \begin_layout Chapter
24500 \begin_layout Section
24502 \begin_inset Index idx
24505 \begin_layout Plain Layout
24514 \begin_layout Standard
24515 Notes are inserted with the toolbar button
24516 \begin_inset Graphics
24517 filename ../images/note-insert.png
24519 scaleBeforeRotation
24525 Insert\SpecialChar \menuseparator
24529 There are three types of notes:
24532 \begin_layout Description
24534 \begin_inset space ~
24537 Note This note type is for internal notes that won't appear in the output.
24538 Its note-box looks like this:
24539 \begin_inset Newline newline
24543 \begin_inset Newline newline
24547 \begin_inset Graphics
24548 filename clipart/LyXNoteImageQt4.png
24551 scaleBeforeRotation
24556 \begin_inset Note Note
24559 \begin_layout Plain Layout
24560 This is text in a note box that doesn't appear in the output.
24568 \begin_layout Description
24569 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
24570 ent, when you export the document to LaTeX via the menu
24572 File\SpecialChar \menuseparator
24573 Export\SpecialChar \menuseparator
24574 LaTeX (pdflatex) / (plain)
24577 Its note-box looks like this:
24578 \begin_inset Newline newline
24582 \begin_inset Newline newline
24586 \begin_inset Graphics
24587 filename clipart/CommentNoteImageQt4.png
24590 scaleBeforeRotation
24595 \begin_inset Note Comment
24598 \begin_layout Plain Layout
24599 This is text in a note box that only appears as comment in LaTeX-files.
24607 \begin_layout Description
24609 \begin_inset space ~
24612 Out This note will appear in the output as grey text.
24613 Its note-box looks like this:
24614 \begin_inset Newline newline
24618 \begin_inset Newline newline
24622 \begin_inset Graphics
24623 filename clipart/GreyedOutNoteImageQt4.png
24626 scaleBeforeRotation
24631 \begin_inset Newline newline
24638 \begin_layout Plain Layout
24642 renewenvironment{lyxgreyedout}
24645 \begin_layout Plain Layout
24649 textcolor[gray]{0.8}
24659 \begin_inset Note Greyedout
24662 \begin_layout Plain Layout
24667 \begin_layout Plain Layout
24668 This is an example footnote within a greyed out note.
24673 of a comment that appears in the output as grey text.
24682 \begin_layout Plain Layout
24686 renewenvironment{lyxgreyedout}
24689 \begin_layout Plain Layout
24703 \begin_inset Note Note
24706 \begin_layout Plain Layout
24707 The greyed out note is here redefined to show it with the original LyX definitio
24708 n because greyed out notes are redefined in the preamble of this document,
24709 as described below, to have blue text.
24715 \begin_inset Newline newline
24719 \begin_inset Newline newline
24722 As you can see in the example, the first line of greyed out notes is a bit
24723 indented and greyed out notes can have footnotes.
24726 \begin_layout Standard
24727 \begin_inset VSpace bigskip
24730 When you use the toolbar button
24731 \begin_inset Graphics
24732 filename ../images/note-insert.png
24734 scaleBeforeRotation
24741 \begin_inset space ~
24747 You can switch between the five note types by right-clicking on the note-box.
24752 If you want to turn existing text into a note, mark it and click on the
24766 To change a note to text, press the backspace key when the cursor is in
24767 the first position of a note, or press the delete key when the cursor is
24768 in the very last position of the note, respectively.
24771 \begin_layout Standard
24772 \begin_inset VSpace bigskip
24775 You can change the text color of the greyed out notes in the menu
24777 Document\SpecialChar \menuseparator
24778 Settings\SpecialChar \menuseparator
24784 \begin_layout Section
24786 \begin_inset CommandInset label
24788 name "sec:Footnotes"
24793 \begin_inset Index idx
24796 \begin_layout Plain Layout
24803 \begin_inset Index idx
24806 \begin_layout Plain Layout
24815 \begin_layout Standard
24816 Footnotes can be inserted using the toolbar button
24817 \begin_inset Graphics
24818 filename ../images/footnote-insert.png
24820 scaleBeforeRotation
24826 Insert\SpecialChar \menuseparator
24838 then the following footnote-box:
24839 \begin_inset Graphics
24840 filename clipart/footnoteQt4.png
24842 scaleBeforeRotation
24850 where you can enter the footnote text.
24851 If you want to turn existing text into a footnote, mark it and click on
24873 to text, press the Backspace key when the cursor is in the first position
24882 , or press the Delete key when the cursor is in the very last position of
24894 \begin_layout Standard
24895 Here is an example footnote:
24903 \begin_layout Plain Layout
24904 \begin_inset CommandInset label
24906 name "foot:This-is-an"
24910 This is an example footnote.
24923 \begin_layout Plain Layout
24927 newcounter{MyRepeatFoot}
24930 \begin_layout Plain Layout
24934 setcounter{MyRepeatFoot}{
24944 \begin_layout Standard
24945 The footnote will appear in the output as a superscript number at the text
24946 position where the footnote box is placed.
24947 The footnote text is placed at the bottom of the current page.
24948 The footnote number is calculated by LaTeX; the numbers are consecutive.
24949 It depends on your document-class, whether the footnote number is reset
24953 \begin_layout Standard
24954 Footnotes can be referenced like floats: Insert a label into the footnote
24955 and cross-reference this label in the text as described in section
24956 \begin_inset space ~
24960 \begin_inset CommandInset ref
24962 reference "sec:Referencing-Floats"
24967 \begin_inset Newline newline
24970 This is a cross-reference of Footnote
24971 \begin_inset space ~
24975 \begin_inset CommandInset ref
24977 reference "foot:This-is-an"
24984 \begin_layout Standard
24985 \begin_inset VSpace defskip
24988 Footnotes in tables are not printed by LaTeX due to technical reasons.
24989 However there exists another method to print them: Instead of the footnote
24996 is inserted as TeX-code.
24997 The text of the footnote is entered as an argument of the TeX-code command
25005 \begin_inset Newline newline
25008 This was done for the following table with the command
25011 \begin_layout Standard
25018 Printed table footnote.
25023 \begin_layout Standard
25024 \begin_inset Tabular
25025 <lyxtabular version="3" rows="2" columns="1">
25026 <features tabularvalignment="middle">
25027 <column alignment="center" valignment="top" width="0">
25029 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25032 \begin_layout Plain Layout
25033 This an example text.
25037 \begin_layout Plain Layout
25038 This footnote will not be printed!
25050 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25053 \begin_layout Plain Layout
25054 This an example text.
25058 \begin_layout Plain Layout
25081 \begin_layout Plain Layout
25090 Printed table footnote.
25094 \begin_layout Plain Layout
25104 \begin_layout Standard
25105 Footnotes in longtables are described in section
25106 \begin_inset space ~
25110 \begin_inset CommandInset ref
25112 reference "sub:Footnotes-in-Longtables"
25119 \begin_layout Standard
25120 Footnotes in minipage boxes are printed, but inside the box and with a different
25121 numbering because a minipage box is like a page inside a page.
25122 (For more about minipages, see section
25123 \begin_inset space ~
25127 \begin_inset CommandInset ref
25129 reference "sec:Minipages"
25133 .) To get a footnote in the minipage that is output at the bottom of the
25134 page like normal footnotes, also use the method of
25149 \begin_layout Standard
25150 \begin_inset Box Frameless
25160 height_special "totalheight"
25163 \begin_layout Plain Layout
25164 This an example text in a minipage.
25168 \begin_layout Plain Layout
25169 Footnote in the minipage.
25177 \begin_layout Plain Layout
25178 This an example text in a minipage.
25182 \begin_layout Plain Layout
25199 \begin_layout Standard
25203 \begin_layout Plain Layout
25212 Footnote outside the minipage.
25216 \begin_layout Plain Layout
25226 \begin_layout Standard
25227 \begin_inset VSpace defskip
25233 \begin_layout Standard
25234 To refer to the same footnote several times without printing the footnote
25235 text every time, use the command
25239 footnotemark[number]
25242 \begin_inset Newline newline
25245 As you do not know the number of the repeating footnote while you are writing
25246 the text, you have to store its number.
25247 For the following footnote mark example, these commands were inserted in
25248 TeX-code after Footnote
25249 \begin_inset space ~
25253 \begin_inset CommandInset ref
25255 reference "foot:This-is-an"
25259 to store the footnote number:
25262 \begin_layout Standard
25267 newcounter{MyRepeatFoot}
25268 \begin_inset Newline newline
25273 setcounter{MyRepeatFoot}{
25278 \begin_layout Standard
25279 The footnote mark was then created with this command:
25282 \begin_layout Standard
25292 \begin_layout Standard
25293 Here is a repeated footnote:
25301 \begin_layout Plain Layout
25315 \begin_layout Standard
25316 If you want to repeat the previous footnote, you can omit the storage of
25317 the footnote number and just use this command instead:
25320 \begin_layout Standard
25330 \begin_layout Standard
25331 Here is another repeated footnote:
25339 \begin_layout Plain Layout
25353 \begin_layout Subsection
25355 \begin_inset CommandInset label
25357 name "sub:Footnote-Numbering"
25362 \begin_inset Index idx
25365 \begin_layout Plain Layout
25366 Footnotes ! Numbering
25374 \begin_layout Standard
25375 To reset the footnote number back to 1 after each section
25377 , add this command to your document preamble:
25380 \begin_layout Standard
25385 @addtoreset{footnote}{section}
25388 \begin_layout Standard
25389 \begin_inset VSpace bigskip
25392 The following preamble command changes the footnote numbering style to small
25396 \begin_layout Standard
25408 \begin_layout Standard
25412 \begin_layout Plain Layout
25425 This is a footnote with roman numbering:
25429 \begin_layout Plain Layout
25430 This is an example footnote with roman numbering.
25438 \begin_layout Standard
25439 To change the numbering style to capital roman numerals replace in the command
25454 \begin_inset Quotes eld
25458 \begin_inset Quotes erd
25461 footnotes with capital or small Latin letters use
25475 \begin_inset Quotes eld
25479 \begin_inset Quotes erd
25482 footnotes with symbols use
25491 \begin_layout Standard
25492 \begin_inset Note Greyedout
25495 \begin_layout Plain Layout
25500 You can only number 26 footnotes with Latin letters, because this numbering
25501 is limited to single letters.
25507 \begin_inset Newline newline
25511 \begin_inset Note Greyedout
25514 \begin_layout Plain Layout
25519 You can only number 9 footnotes with symbols.
25527 \begin_layout Standard
25528 To return to the default numbering style after you have changed to another
25541 in the command above.
25545 \begin_layout Plain Layout
25561 \begin_layout Standard
25562 \begin_inset VSpace bigskip
25568 \begin_layout Standard
25569 If you want to have footnotes numbered in the scheme
25570 \begin_inset Quotes eld
25574 \begin_inset Quotes erd
25577 , add the following command to your document preamble:
25580 \begin_layout Standard
25585 numberwithin{footnote}{chapter}
25588 \begin_layout Standard
25589 To be able to use the command
25598 \begin_inset space ~
25603 in the document settings the option
25606 \begin_inset space ~
25610 \begin_inset space ~
25614 \begin_inset space ~
25622 \begin_layout Standard
25626 \begin_layout Plain Layout
25630 numberwithin{footnote}{chapter}
25635 This is another example footnote:
25641 \begin_layout Plain Layout
25642 This is a footnote numbered in the scheme
25643 \begin_inset Quotes eld
25647 \begin_inset Quotes erd
25661 \begin_layout Plain Layout
25677 \begin_layout Standard
25678 \begin_inset Note Greyedout
25681 \begin_layout Plain Layout
25692 always prints out the footnote number as arabic number; previous redefinitions
25693 to get non-arabic numbers are overwritten.
25701 \begin_layout Standard
25702 So to get for example the scheme
25703 \begin_inset Quotes eld
25709 \begin_inset Quotes erd
25712 , use this command instead of
25721 \begin_layout Standard
25735 \begin_layout Subsection
25737 \begin_inset Index idx
25740 \begin_layout Plain Layout
25741 Footnotes ! Placement
25749 \begin_layout Standard
25750 If you have several footnotes in one page, they appear without vertical
25751 space between them at the bottom of the page.
25752 To make them more readable you can e.
25753 \begin_inset space \thinspace{}
25757 \begin_inset space \space{}
25761 \begin_inset space \thinspace{}
25764 mm space with the following preamble command:
25767 \begin_layout Standard
25777 \begin_inset Newline newline
25791 \begin_layout Standard
25792 \begin_inset VSpace bigskip
25795 In a two-column document the footnotes appear at the bottom of every column,
25797 \begin_inset space ~
25801 \begin_inset CommandInset ref
25803 reference "fig:Standard-footnote-placement"
25808 If the footnotes should only appear at the bottom of the right column,
25810 \begin_inset space ~
25814 \begin_inset CommandInset ref
25816 reference "fig:Footnote-placement-in"
25820 , use the LaTeX-package
25825 \begin_inset Index idx
25828 \begin_layout Plain Layout
25829 LaTeX-packages ! ftnright
25834 with this command in the document preamble:
25837 \begin_layout Standard
25842 usepackage{ftnright}
25845 \begin_layout Standard
25846 \begin_inset Float figure
25852 \begin_layout Plain Layout
25856 \begin_layout Plain Layout
25866 \begin_inset Graphics
25867 filename clipart/without_fntright.pdf
25869 scaleBeforeRotation
25877 \begin_layout Plain Layout
25887 \begin_layout Plain Layout
25888 \begin_inset Caption
25890 \begin_layout Plain Layout
25891 \begin_inset CommandInset label
25893 name "fig:Standard-footnote-placement"
25897 Standard footnote placement in two-column documents.
25910 \begin_layout Standard
25911 \begin_inset Float figure
25917 \begin_layout Plain Layout
25921 \begin_layout Plain Layout
25931 \begin_inset Graphics
25932 filename clipart/with_fntright.pdf
25934 scaleBeforeRotation
25942 \begin_layout Plain Layout
25952 \begin_layout Plain Layout
25953 \begin_inset Caption
25955 \begin_layout Plain Layout
25956 \begin_inset CommandInset label
25958 name "fig:Footnote-placement-in"
25962 Footnote placement in two-column documents when the LaTeX-package
25979 \begin_layout Standard
25980 \begin_inset VSpace bigskip
25983 In some scientific literature it is usual to collect the footnotes and print
25984 them in a separate paragraph at the end of a section, as in Figure
25985 \begin_inset space ~
25989 \begin_inset CommandInset ref
25991 reference "fig:Endnotes"
25996 They are then called
25997 \begin_inset Quotes eld
26001 \begin_inset Quotes erd
26005 \begin_inset Index idx
26008 \begin_layout Plain Layout
26014 To use endnotes instead of footnotes in your document, load in the menu
26017 Document\SpecialChar \menuseparator
26018 Settings\SpecialChar \menuseparator
26024 \begin_inset space ~
26028 \begin_inset space ~
26034 To insert the collected footnotes, insert the command
26037 \begin_layout Standard
26045 \begin_layout Standard
26046 in TeX-Code at the end of a section or chapter.
26049 \begin_layout Standard
26050 \begin_inset Float figure
26055 \begin_layout Plain Layout
26060 \begin_layout Plain Layout
26070 \begin_inset Graphics
26071 filename clipart/endnotes.pdf
26072 scaleBeforeRotation
26080 \begin_layout Plain Layout
26090 \begin_layout Plain Layout
26091 \begin_inset Caption
26093 \begin_layout Plain Layout
26094 \begin_inset CommandInset label
26096 name "fig:Endnotes"
26100 Endnotes – footnotes are printed in a separate paragraph at the end of sections
26114 \begin_layout Standard
26115 \begin_inset VSpace medskip
26118 The paragraph heading for the endnotes isn't automatically translated into
26119 the document language, this must be done manually.
26120 The following preamble command translates the default English
26121 \begin_inset Quotes eld
26125 \begin_inset Quotes erd
26129 \begin_inset Quotes eld
26133 \begin_inset Quotes erd
26139 \begin_layout Standard
26146 notesname}{Anmerkungen}
26149 \begin_layout Standard
26150 \begin_inset VSpace medskip
26153 The numbering of endnotes can be changed like the footnote numbering as
26154 described in section
26155 \begin_inset space ~
26159 \begin_inset CommandInset ref
26161 reference "sub:Footnote-Numbering"
26165 ; just replace the command
26178 To reset the endnote number use the command
26184 as described in section
26185 \begin_inset space ~
26189 \begin_inset CommandInset ref
26191 reference "sub:Footnote-Numbering"
26195 and replace the command parameter
26206 \begin_layout Standard
26207 For endnotes there is the command
26211 endnotemark[number]
26213 similar to the command
26219 , that is described in section
26220 \begin_inset space ~
26224 \begin_inset CommandInset ref
26226 reference "sec:Footnotes"
26233 \begin_layout Standard
26234 \begin_inset VSpace bigskip
26237 Footnotes can also be placed in the page margin and the footnote text alignment
26238 can be changed, see the LaTeX-package
26243 \begin_inset Index idx
26246 \begin_layout Plain Layout
26247 LaTeX-packages ! footmisc
26253 \begin_inset CommandInset citation
26259 for more information about this.
26262 \begin_layout Standard
26263 For various further footnote formatting issues have a look at LaTeX-books,
26265 \begin_inset CommandInset citation
26267 key "latexcompanion,latexguide,latexbook"
26277 \begin_inset Index idx
26280 \begin_layout Plain Layout
26281 LaTeX-packages ! KOMA-Script
26286 document class, you can adjust all footnote settings using class-specific
26288 \begin_inset CommandInset citation
26297 \begin_layout Section
26299 \begin_inset Index idx
26302 \begin_layout Plain Layout
26303 Notes ! Margin Notes
26311 \begin_layout Standard
26312 Margin notes look and behave in LyX like footnotes.
26313 They are inserted via the menu
26315 Insert\SpecialChar \menuseparator
26317 \begin_inset space ~
26322 or the toolbar button
26323 \begin_inset Graphics
26324 filename ../images/marginalnote-insert.png
26326 scaleBeforeRotation
26341 \begin_inset Quotes eld
26345 \begin_inset Quotes erd
26348 appears where you can enter the text of the margin note.
26351 \begin_layout Standard
26352 At the side is an example margin note.
26357 \begin_inset Marginal
26360 \begin_layout Plain Layout
26361 This is a margin note.
26369 \begin_layout Standard
26370 Margin notes appear at the right side in single-sided documents.
26371 In double-sided documents they appear in the outer margin – left on even
26372 pages, right on odd pages.
26373 The text of margin notes is aligned opposite to the outer margin – right-aligne
26374 d when the note appears in the left margin.
26375 The first line of the margin note is placed at the position of the text
26376 line where it is inserted in the document.
26379 \begin_layout Standard
26380 \begin_inset VSpace bigskip
26383 To place the margin note in the inner margin, add the command
26386 \begin_layout Standard
26394 \begin_layout Standard
26395 in TeX-Code before a margin note.
26396 The new placement is valid for all subsequent margin notes.
26401 \begin_layout Plain Layout
26411 \begin_inset Marginal
26414 \begin_layout Plain Layout
26415 This is a margin note in the inner margin.
26423 \begin_inset Newline newline
26429 \begin_inset Note Greyedout
26432 \begin_layout Plain Layout
26437 There is often not enough space in the inner margin so that the notes are
26438 not correctly displayed in the output.
26446 \begin_layout Standard
26447 To return to the default placement insert the command
26450 \begin_layout Standard
26458 \begin_layout Standard
26463 \begin_layout Plain Layout
26473 \begin_inset Note Greyedout
26476 \begin_layout Plain Layout
26481 The command is ignored when it is within a paragraph where also the command
26496 \begin_layout Standard
26497 \begin_inset VSpace bigskip
26504 \begin_inset Marginal
26507 \begin_layout Plain Layout
26508 AVeryLongMarginParWord that isn't hyphenated.
26516 Similar to the case described in section
26517 \begin_inset space ~
26521 \begin_inset CommandInset ref
26523 reference "sub:Multiple-Lines-in"
26527 , long words cannot be hyphenated when they are the first word in a margin
26529 To avoid this, insert 0
26530 \begin_inset space \thinspace{}
26533 pt horizontal space before the word
26538 \begin_inset Marginal
26541 \begin_layout Plain Layout
26542 \begin_inset space \hspace*{}
26546 AVeryLongMarginParWord that is hyphenated.
26554 \begin_layout Standard
26555 \begin_inset VSpace bigskip
26561 \begin_layout Standard
26562 \begin_inset Note Greyedout
26565 \begin_layout Plain Layout
26570 Margin notes can normally not be used inside tables, floats, and footnotes.
26578 \begin_layout Standard
26579 \begin_inset VSpace bigskip
26585 \begin_layout Standard
26589 \begin_layout Plain Layout
26599 \begin_inset Note Note
26602 \begin_layout Plain Layout
26603 The following section will only be displayed when the LaTeX-package
26615 \begin_layout Standard
26616 This restriction can be evaded by using the LaTeX-package
26621 \begin_inset Index idx
26624 \begin_layout Plain Layout
26625 LaTeX-packages ! marginnote
26631 By adding these two lines to your document preamble, the command used by
26632 LyX for margin notes is redefined to use the command provided by the
26639 \begin_layout Standard
26644 usepackage{marginnote}
26645 \begin_inset Newline newline
26657 \begin_layout Standard
26658 This is also used in this document because
26662 has another useful feature: You can set a vertical offset for the note.
26663 This is often needed when too many margin notes are too close together
26664 or for a better page layout.
26665 The offset is set in LyX as TeX-Code directly after the margin note in
26669 \begin_layout Standard
26675 \begin_layout Standard
26676 where the offset is a length with one of the units listed in Table
26677 \begin_inset space ~
26681 \begin_inset CommandInset ref
26683 reference "tab:Units"
26688 A negative value shifts the note up, a positive value shifts it down.
26692 For example the margin note beside this text line is shifted up 1.5
26693 \begin_inset space \thinspace{}
26696 cm with the TeX-Code-command
26697 \begin_inset Quotes eld
26707 \begin_inset Quotes erd
26711 \begin_inset Marginal
26714 \begin_layout Plain Layout
26715 This margin note is shifted up 1.5
26716 \begin_inset space \thinspace{}
26719 cm from its original position.
26731 \begin_layout Plain Layout
26741 \begin_layout Standard
26742 \begin_inset VSpace medskip
26749 you can also change the alignment of the text in the margin note.
26750 For example the commands
26753 \begin_layout Standard
26760 raggedleftmarginnote}{
26763 \begin_inset Newline newline
26770 raggedrightmarginnote}{
26775 \begin_layout Standard
26776 set the alignment to centered.
26781 raggedleftmarginnote
26783 denotes margin notes that appear at the left side.
26790 \begin_layout Plain Layout
26796 raggedleftmarginnote}{
26801 \begin_layout Plain Layout
26807 raggedrightmarginnote}{
26815 \begin_inset Marginal
26818 \begin_layout Plain Layout
26819 The text of this margin note is centered.
26830 \begin_layout Standard
26837 raggedleftmarginnote}{
26840 \begin_inset Newline newline
26847 raggedrightmarginnote}{
26856 \begin_layout Plain Layout
26862 raggedleftmarginnote}{
26867 \begin_layout Plain Layout
26873 raggedrightmarginnote}{
26883 \begin_layout Standard
26884 \begin_inset VSpace medskip
26887 For the other features of
26891 refer to its documentation
26892 \begin_inset CommandInset citation
26901 \begin_layout Standard
26902 \begin_inset VSpace bigskip
26905 You can adjust the layout of margin notes by changing its definition.
26906 To create for example a header for all margin notes with the underlined,
26907 sans-serif, and bold header text
26908 \begin_inset Quotes eld
26920 \begin_inset Quotes erd
26923 , add this to your document preamble:
26926 \begin_layout Standard
26936 \begin_inset Newline newline
26946 \begin_inset Newline newline
26950 \begin_inset Phantom HPhantom
26953 \begin_layout Plain Layout
26956 \begin_inset space ~
26972 underbar{Attention!}}}%
26973 \begin_inset Newline newline
26977 \begin_inset Phantom HPhantom
26980 \begin_layout Plain Layout
26983 \begin_inset space ~
27000 \begin_layout Standard
27007 \begin_layout Plain Layout
27018 \begin_layout Plain Layout
27029 \begin_layout Plain Layout
27037 underbar{Attention!}}}%
27040 \begin_layout Plain Layout
27054 \begin_inset Marginal
27057 \begin_layout Plain Layout
27058 This is a margin note with a defined heading.
27070 \begin_layout Plain Layout
27084 \begin_layout Plain Layout
27101 \begin_inset Note Note
27104 \begin_layout Plain Layout
27105 The margin note format is changed only for this example.
27113 \begin_layout Standard
27117 \begin_layout Plain Layout
27127 \begin_inset Note Note
27130 \begin_layout Plain Layout
27131 The following will be displayed when the LaTeX-package
27143 \begin_layout Standard
27144 You need to install the LaTeX-package
27148 to see the following part of this section in the output.
27151 \begin_layout Standard
27155 \begin_layout Plain Layout
27167 \begin_layout Chapter
27171 \begin_layout Section
27173 \begin_inset Index idx
27176 \begin_layout Plain Layout
27177 Boxes ! Introduction
27185 \begin_layout Standard
27186 Boxes are used to format a block of text.
27187 Boxes can be used to write documents with multiple languages, see section
27188 \begin_inset space ~
27192 \begin_inset CommandInset ref
27194 reference "sec:Minipages"
27198 , to frame texts, see section
27199 \begin_inset space ~
27203 \begin_inset CommandInset ref
27205 reference "sec:Decoration"
27209 , to prevent words from being hyphenated, see section
27210 \begin_inset space ~
27214 \begin_inset CommandInset ref
27216 reference "sec:Prevent-Hyphenation"
27220 , to align text, see section
27221 \begin_inset space ~
27225 \begin_inset CommandInset ref
27227 reference "sub:Vertical-Alignment"
27231 , or to set the background color of texts, see section
27232 \begin_inset space ~
27236 \begin_inset CommandInset ref
27238 reference "sec:Colored-Boxes"
27245 \begin_layout Standard
27246 Boxes can be inserted with the menu
27248 Insert\SpecialChar \menuseparator
27251 or the toolbar button
27252 \begin_inset Graphics
27253 filename ../images/box-insert.png
27255 scaleBeforeRotation
27260 A grey box with the label
27265 \begin_inset Graphics
27266 filename clipart/BoxInsetDefaultQt4.png
27268 scaleBeforeRotation
27273 The box type can be specified by right-clicking on the box and selecting
27279 The box dialog offers the
27282 \begin_inset space ~
27304 is the default for new boxes and is explained in section
27305 \begin_inset space ~
27309 \begin_inset CommandInset ref
27311 reference "sec:Minipages"
27319 is described in section
27320 \begin_inset space ~
27324 \begin_inset CommandInset ref
27326 reference "sec:Parboxes"
27335 \begin_inset CommandInset ref
27337 reference "sec:Prevent-Hyphenation"
27344 \begin_layout Standard
27345 Boxes are not numbered and can therefore not be referenced like floats or
27349 \begin_layout Standard
27350 \begin_inset Note Greyedout
27353 \begin_layout Plain Layout
27358 Boxes must not be the item in an
27374 \begin_layout Standard
27375 \begin_inset Note Greyedout
27378 \begin_layout Plain Layout
27383 For an unknown reason you can only set the
27386 \begin_inset space ~
27395 when you use a framed box.
27399 \begin_inset space ~
27404 type and without frames are explained in section
27405 \begin_inset space ~
27409 \begin_inset CommandInset ref
27411 reference "sec:Prevent-Hyphenation"
27423 \begin_layout Section
27425 \begin_inset CommandInset label
27427 name "sec:Box-Dialog"
27432 \begin_inset Index idx
27435 \begin_layout Plain Layout
27444 \begin_layout Subsection
27446 \begin_inset Index idx
27449 \begin_layout Plain Layout
27458 \begin_layout Standard
27459 In the box dialog you can adjust the box geometry in the fields
27468 The available units for the geometry are explained in Table
27469 \begin_inset space ~
27473 \begin_inset CommandInset ref
27475 reference "tab:Units"
27484 offers the following additional sizes:
27487 \begin_layout Description
27488 Depth This is the plain text
27489 \begin_inset Quotes eld
27493 \begin_inset Quotes erd
27497 It ignores the total depth when there are multiple text lines in the box:
27498 \begin_inset Newline newline
27502 \begin_inset Newline newline
27506 \begin_inset Newline newline
27510 \begin_inset Box Boxed
27520 height_special "depth"
27523 \begin_layout Plain Layout
27525 Box height set to 1
27526 \begin_inset space \thinspace{}
27535 \begin_inset Newline newline
27539 \begin_inset Newline newline
27545 \begin_layout Description
27546 Height This is the height of the text that is inside the box.
27548 \begin_inset space \thinspace{}
27552 \begin_inset space \space{}
27555 2 for this size will set the box height to 2
27556 \begin_inset space ~
27559 times the text height:
27560 \begin_inset Box Boxed
27570 height_special "height"
27573 \begin_layout Plain Layout
27575 Box height set to 2
27576 \begin_inset space \thinspace{}
27587 \begin_layout Description
27589 \begin_inset space ~
27592 Height This is the Height
27593 \begin_inset space \thinspace{}
27597 \begin_inset space \thinspace{}
27601 \begin_inset Box Boxed
27611 height_special "totalheight"
27614 \begin_layout Plain Layout
27616 Box height set to 1
27617 \begin_inset space \thinspace{}
27621 \begin_inset space ~
27632 \begin_layout Description
27633 Width This sets the width of the box as height:
27634 \begin_inset Box Boxed
27644 height_special "width"
27647 \begin_layout Plain Layout
27649 Box height set to 1
27650 \begin_inset space \thinspace{}
27661 \begin_layout Subsection
27663 \begin_inset Index idx
27666 \begin_layout Plain Layout
27675 \begin_layout Standard
27676 When you have chosen an
27679 \begin_inset space ~
27684 , the vertical box alignment can be:
27687 \begin_layout Description
27688 Top This is an example text line.
27690 \begin_inset Box Boxed
27700 height_special "totalheight"
27703 \begin_layout Plain Layout
27705 This box is top-aligned.
27710 This is an example text line.
27713 \begin_layout Description
27714 Middle This is an example text line.
27716 \begin_inset Box Boxed
27726 height_special "totalheight"
27729 \begin_layout Plain Layout
27731 This box is middle-aligned.
27736 This is an example text line.
27739 \begin_layout Description
27740 Bottom This is an example text line.
27742 \begin_inset Box Boxed
27752 height_special "totalheight"
27755 \begin_layout Plain Layout
27757 This box is bottom-aligned.
27762 This is an example text line.
27765 \begin_layout Standard
27766 \begin_inset Note Greyedout
27769 \begin_layout Plain Layout
27774 The vertical box alignment can be lost in the output when you have two
27775 boxes in a line and one has e.
27776 \begin_inset space \thinspace{}
27780 \begin_inset space \space{}
27783 a shadow and the other one not.
27791 \begin_layout Standard
27792 The horizontal box alignment can be set via LyX's paragraph dialog when
27793 you set the box into its own paragraph.
27796 \begin_layout Standard
27797 \begin_inset VSpace bigskip
27800 When you have chosen an
27803 \begin_inset space ~
27808 , the box content can be aligned vertically to:
27811 \begin_layout Description
27812 top This is an example text line.
27814 \begin_inset Box Boxed
27824 height_special "totalheight"
27827 \begin_layout Plain Layout
27829 This box text is top-aligned.
27834 This is an example text line.
27837 \begin_layout Description
27838 middle This is an example text line.
27840 \begin_inset Box Boxed
27850 height_special "totalheight"
27853 \begin_layout Plain Layout
27855 This box text is middle-aligned.
27860 This is an example text line.
27863 \begin_layout Description
27864 bottom This is an example text line.
27866 \begin_inset Box Boxed
27876 height_special "totalheight"
27879 \begin_layout Plain Layout
27881 This box text is bottom-aligned.
27886 This is an example text line.
27889 \begin_layout Description
27890 stretch This is an example text line.
27892 \begin_inset Box Boxed
27902 height_special "totalheight"
27905 \begin_layout Plain Layout
27910 \begin_layout Plain Layout
27915 \begin_layout Plain Layout
27922 This is an example text line.
27925 \begin_layout Standard
27926 To stretch the box content, it must consist of more than one paragraph.
27927 In the example above every text line is in an own paragraph.
27930 \begin_layout Standard
27931 \begin_inset VSpace bigskip
27934 To align the box content horizontally you can use LyX's paragraph dialog
27935 when you have chosen an
27938 \begin_inset space ~
27946 \begin_layout Standard
27948 \begin_inset Box Boxed
27958 height_special "totalheight"
27961 \begin_layout Plain Layout
27966 \begin_layout Plain Layout
27971 \begin_layout Plain Layout
27981 \begin_layout Standard
27982 If you have not set an
27985 \begin_inset space ~
27990 , you can align the box content horizontally in the box dialog.
27993 \begin_layout Standard
27995 \begin_inset Box Boxed
28005 height_special "totalheight"
28008 \begin_layout Plain Layout
28009 This box text is horizontally stretched.
28017 \begin_layout Subsection
28019 \begin_inset CommandInset label
28021 name "sec:Decoration"
28026 \begin_inset Index idx
28029 \begin_layout Plain Layout
28038 \begin_layout Standard
28039 The type of the box can be specified in the box dialog in the drop-down
28045 The following types are possible:
28048 \begin_layout Description
28050 \begin_inset space ~
28053 frame Nothing is drawn.
28056 \begin_layout Description
28058 \begin_inset space ~
28062 \begin_inset space ~
28065 frame This draws a rectangular frame around the box.
28066 The frame line thickness has the size of
28074 \begin_inset Box Boxed
28084 height_special "totalheight"
28087 \begin_layout Plain Layout
28097 \begin_layout Description
28099 \begin_inset space ~
28103 \begin_inset space ~
28106 thin This draws an oval frame around the box.
28107 The frame line thickness has the size 0.4
28108 \begin_inset space \thinspace{}
28113 \begin_inset Box ovalbox
28123 height_special "totalheight"
28126 \begin_layout Plain Layout
28136 \begin_layout Description
28138 \begin_inset space ~
28142 \begin_inset space ~
28145 thick This draws an oval frame around the box.
28146 The frame line thickness has the size 0.8
28147 \begin_inset space \thinspace{}
28152 \begin_inset Box Ovalbox
28162 height_special "totalheight"
28165 \begin_layout Plain Layout
28175 \begin_layout Description
28177 \begin_inset space ~
28180 shadow This draws a rectangular frame with a shadow around the box.
28181 The frame line thickness has the size of
28187 , the shadow has a width of 4
28188 \begin_inset space \thinspace{}
28193 \begin_inset Box Shadowbox
28203 height_special "totalheight"
28206 \begin_layout Plain Layout
28216 \begin_layout Description
28218 \begin_inset space ~
28221 background This draws a box with a red background.
28222 Unlike colored boxes
28226 \begin_layout Plain Layout
28228 \begin_inset space \thinspace{}
28232 \begin_inset CommandInset ref
28234 reference "sec:Colored-Boxes"
28243 , it always uses the whole column width and the box is set as its own paragraph.
28245 \begin_inset Box Shaded
28255 height_special "totalheight"
28258 \begin_layout Plain Layout
28259 Shaded background box
28267 \begin_layout Description
28269 \begin_inset space ~
28273 \begin_inset space ~
28276 frame This draws a double-line rectangular frame around the box.
28277 The line thickness of the inner frame is 0.75
28278 \begin_inset space \thinspace{}
28287 , the thickness of the outer frame is 1.5
28288 \begin_inset space \thinspace{}
28298 The distance between the lines is 1.5
28299 \begin_inset space \thinspace{}
28309 \begin_inset space \thinspace{}
28313 \begin_inset space \thinspace{}
28317 \begin_inset space \thinspace{}
28322 \begin_inset Box Doublebox
28332 height_special "totalheight"
28335 \begin_layout Plain Layout
28337 Double rectangular box
28345 \begin_layout Standard
28346 \begin_inset VSpace bigskip
28349 LyX's box label will reflect the different frame types.
28350 To be able to use all types, the LaTeX-package
28355 \begin_inset Index idx
28358 \begin_layout Plain Layout
28359 LaTeX-packages ! fancybox
28367 \begin_layout Standard
28368 \begin_inset VSpace bigskip
28371 When you use the decoration
28373 simple rectangular frame
28375 and no inner box, you can allow page breaks within a box.
28376 Note that then, unlike other framed boxes, the frame always uses the whole
28377 column width, the box is set as its own paragraph, and
28389 have no effect on this box type.
28390 The frame line thickness has the size of
28398 \begin_inset Box Framed
28408 height_special "totalheight"
28411 \begin_layout Plain Layout
28412 Allow page break box
28420 \begin_layout Section
28422 \begin_inset Index idx
28425 \begin_layout Plain Layout
28426 Boxes ! Customization
28434 \begin_layout Standard
28435 The default value for the size
28442 \begin_inset space \thinspace{}
28446 It can be changed with the following command in TeX-code to e.
28447 \begin_inset space \thinspace{}
28451 \begin_inset space \space{}
28455 \begin_inset space \thinspace{}
28461 \begin_layout Standard
28471 \begin_layout Standard
28475 \begin_layout Plain Layout
28487 \begin_inset Box Boxed
28497 height_special "totalheight"
28500 \begin_layout Plain Layout
28502 Rectangular box with
28509 \begin_inset space \thinspace{}
28513 \begin_inset space \thinspace{}
28517 \begin_inset space \thinspace{}
28529 \begin_layout Plain Layout
28543 \begin_layout Standard
28544 \begin_inset VSpace bigskip
28547 The space between the frame and the box content is for all frame styles
28549 \begin_inset space \thinspace{}
28553 You can change it by setting the length
28560 For example the command
28563 \begin_layout Standard
28573 \begin_layout Standard
28574 sets the value to 10
28575 \begin_inset space \thinspace{}
28578 pt, as with the following box:
28581 \begin_layout Standard
28585 \begin_layout Plain Layout
28597 \begin_inset Box Boxed
28607 height_special "totalheight"
28610 \begin_layout Plain Layout
28612 Rectangular box with
28619 \begin_inset space \thinspace{}
28623 \begin_inset space \thinspace{}
28627 \begin_inset space \thinspace{}
28639 \begin_layout Plain Layout
28653 \begin_layout Standard
28654 \begin_inset VSpace bigskip
28657 The diameter of the round corners of the oval boxes can be set with the
28668 \begin_layout Standard
28676 \begin_layout Standard
28677 sets the diameter to 1
28678 \begin_inset space \thinspace{}
28685 \begin_layout Standard
28693 \begin_layout Standard
28694 sets the diameter to
28697 \begin_inset space \thinspace{}
28701 \begin_inset space \thinspace{}
28704 minimum(width and height of box)
28716 \begin_layout Standard
28720 \begin_layout Plain Layout
28730 \begin_inset Box Ovalbox
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
28784 \begin_layout Standard
28785 \begin_inset VSpace bigskip
28788 The size of the shadow can be adjusted by changing the length
28796 \begin_inset space \thinspace{}
28799 pt for the following box by this command:
28802 \begin_layout Standard
28812 \begin_layout Standard
28816 \begin_layout Plain Layout
28828 \begin_inset Box Shadowbox
28838 height_special "totalheight"
28841 \begin_layout Plain Layout
28850 \begin_inset space \thinspace{}
28854 \begin_inset space \thinspace{}
28858 \begin_inset space \thinspace{}
28870 \begin_layout Plain Layout
28884 \begin_layout Standard
28885 \begin_inset VSpace bigskip
28891 \begin_layout Standard
28892 The default value for the size
28899 \begin_inset space \thinspace{}
28903 The default space between the note content and the frame is 9
28904 \begin_inset space \thinspace{}
28907 pt and can be changed with the value of
28914 For example the frame appearance of the following
28918 is set with the TeX-Code commands
28921 \begin_layout Standard
28929 \begin_inset Newline newline
28939 \begin_layout Standard
28943 \begin_layout Plain Layout
28952 \begin_layout Plain Layout
28964 \begin_inset Box Framed
28974 height_special "totalheight"
28977 \begin_layout Plain Layout
28991 \begin_layout Plain Layout
29000 \begin_layout Plain Layout
29014 \begin_layout Standard
29015 \begin_inset VSpace bigskip
29021 \begin_layout Standard
29026 boxes the default space between the box content and the box border is 3
29027 \begin_inset space \thinspace{}
29030 pt and can be changed with the value of
29037 The default background color red can either be changed locally with the
29042 definecolor{shadecolor}
29044 or globally with the menu
29046 Tools\SpecialChar \menuseparator
29047 Preferences\SpecialChar \menuseparator
29048 Colors\SpecialChar \menuseparator
29050 \begin_inset space ~
29062 command is explained in section
29063 \begin_inset space ~
29067 \begin_inset CommandInset ref
29069 reference "sec:Colored-Tables"
29077 \begin_layout Plain Layout
29084 requires the LaTeX-package
29088 in the preamble, see section
29089 \begin_inset space ~
29093 \begin_inset CommandInset ref
29095 reference "sec:Colored-Boxes"
29104 For example the appearance of the following shaded background box is set
29105 with the TeX-Code commands
29108 \begin_layout Standard
29118 \begin_inset Newline newline
29125 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
29128 \begin_layout Standard
29132 \begin_layout Plain Layout
29141 \begin_layout Plain Layout
29145 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
29151 \begin_inset Box Shaded
29161 height_special "totalheight"
29164 \begin_layout Plain Layout
29167 This is yellow text in a
29177 box with dark green background.
29186 \begin_layout Plain Layout
29195 \begin_layout Plain Layout
29199 definecolor{shadecolor}{rgb}{1,0,0}
29207 \begin_layout Standard
29208 \begin_inset VSpace bigskip
29211 Changed lengths and widths are valid for all boxes following the commands
29215 \begin_layout Section
29217 \begin_inset CommandInset label
29219 name "sec:Minipages"
29224 \begin_inset Index idx
29227 \begin_layout Plain Layout
29236 \begin_layout Standard
29237 Minipages are treated by LaTeX as pages within pages and can therefore for
29238 example have their own footnotes.
29241 \begin_layout Standard
29242 Minipages are useful when you write documents with different languages.
29245 \begin_layout Standard
29246 Below are two example minipages side by side.
29247 Their width is set to 45
29248 \begin_inset space \thinspace{}
29251 col% and they are separated by a horizontal fill, that was inserted via
29254 Insert\SpecialChar \menuseparator
29256 \begin_inset space ~
29259 Formatting\SpecialChar \menuseparator
29261 \begin_inset space ~
29267 \begin_inset Newpage newpage
29273 \begin_layout Standard
29274 \begin_inset Box Frameless
29284 height_special "totalheight"
29287 \begin_layout Plain Layout
29290 Dies ist ein deutscher Text.
29291 Dies ist ein deutscher Text.
29292 Dies ist ein deutscher Text.
29293 Dies ist ein deutscher Text.
29294 Dies ist ein deutscher Text.
29295 Dies ist ein deutscher Text.
29296 Dies ist ein deutscher Text.
29297 Dies ist ein deutscher Text.
29298 Dies ist ein deutscher Text.
29299 Dies ist ein deutscher Text.
29300 Dies ist ein deutscher Text.
29301 Dies ist ein deutscher Text.
29302 Dies ist ein deutscher Text
29306 \begin_layout Plain Layout
29309 Dies ist eine deutsche Fußnote.
29315 Dies ist ein deutscher Text.
29316 Dies ist ein deutscher Text.
29322 \begin_inset space \hfill{}
29326 \begin_inset Box Frameless
29336 height_special "totalheight"
29339 \begin_layout Plain Layout
29340 This is an English Text.
29341 This is an English Text.
29342 This is an English Text.
29343 This is an English Text.
29344 This is an English Text.
29345 This is an English Text.
29346 This is an English Text.
29347 This is an English Text.
29348 This is an English Text.
29349 This is an English Text.
29350 This is an English Text.
29351 This is an English Text.
29352 This is an English Text.
29353 This is an English Text.
29354 This is an English Text.
29355 This is an English Text.
29359 \begin_layout Plain Layout
29360 This is an English footnote.
29365 This is an English Text.
29374 \begin_layout Standard
29375 \begin_inset VSpace bigskip
29378 The document-wide paragraph settings are ignored within minipages.
29379 That means that there will be no space between paragraphs in minipages
29380 although you set it to e.
29381 \begin_inset space \thinspace{}
29385 \begin_inset space \space{}
29392 in the document settings.
29395 \begin_layout Standard
29396 Minipages can also be used to set a background color for text parts, see
29398 \begin_inset space ~
29402 \begin_inset CommandInset ref
29404 reference "sub:Color-for-Paragraphs"
29411 \begin_layout Standard
29412 \begin_inset Note Greyedout
29415 \begin_layout Plain Layout
29420 You cannot have floats or margin notes inside minipages but minipages can
29421 be used inside tables, floats, and other boxes.
29429 \begin_layout Section
29431 \begin_inset CommandInset label
29433 name "sec:Parboxes"
29438 \begin_inset Index idx
29441 \begin_layout Plain Layout
29450 \begin_layout Standard
29451 Parboxes are very similar to minipages with the difference that they cannot
29455 \begin_layout Standard
29457 \begin_inset Box Frameless
29467 height_special "totalheight"
29470 \begin_layout Plain Layout
29471 This a text within a parbox.
29472 This a text within a parbox.
29475 \begin_layout Plain Layout
29476 This footnote won't appear:
29480 \begin_layout Plain Layout
29481 This footnote is inside a parbox and will therefore not appear.
29494 \begin_layout Section
29495 Boxes for Words and Characters
29496 \begin_inset Index idx
29499 \begin_layout Plain Layout
29500 Boxes ! for Characters
29508 \begin_layout Subsection
29509 Prevent Hyphenation
29510 \begin_inset CommandInset label
29512 name "sec:Prevent-Hyphenation"
29517 \begin_inset Index idx
29520 \begin_layout Plain Layout
29521 Boxes ! to Prevent Hyphenation
29529 \begin_layout Standard
29530 You can use the box type
29534 to prevent words or text from being hyphenated.
29535 \begin_inset Newline newline
29538 Here is an example text:
29541 \begin_layout Standard
29542 This line is an example to show how you can prevent the hyphenation of
29543 \begin_inset Quotes eld
29547 \begin_inset Quotes erd
29553 \begin_layout Standard
29554 To prevent the hyphenation of the word
29555 \begin_inset Quotes eld
29559 \begin_inset Quotes erd
29562 , put the word into a box, set the
29565 \begin_inset space ~
29575 \begin_inset space \thinspace{}
29581 \begin_layout Standard
29582 This is the result:
29585 \begin_layout Standard
29586 This line is an example to show how you can prevent the hyphenation of
29587 \begin_inset Box Frameless
29597 height_special "totalheight"
29600 \begin_layout Plain Layout
29601 \begin_inset Quotes eld
29605 \begin_inset Quotes erd
29616 \begin_layout Standard
29617 You can alternatively set the command
29618 \begin_inset Quotes eld
29628 \begin_inset Quotes grd
29631 as TeX-Code directly before the word:
29634 \begin_layout Standard
29635 This line is an example to show how you can prevent the hyphenation of
29636 \begin_inset Quotes eld
29643 \begin_layout Plain Layout
29653 \begin_inset Quotes erd
29659 \begin_layout Standard
29660 Of course the word now protrudes over the side margin.
29661 To avoid this, add via the menu
29663 Insert\SpecialChar \menuseparator
29664 Formatting\SpecialChar \menuseparator
29666 \begin_inset space ~
29670 \begin_inset space ~
29678 arg "newline-insert newline"
29681 ) a line break before the word:
29684 \begin_layout Standard
29685 This line is an example to show how you can prevent the hyphenation of
29686 \begin_inset Newline newline
29690 \begin_inset Box Frameless
29700 height_special "totalheight"
29703 \begin_layout Plain Layout
29704 \begin_inset Quotes eld
29708 \begin_inset Quotes erd
29719 \begin_layout Subsection
29721 \begin_inset CommandInset label
29723 name "sub:Vertical-Alignment"
29728 \begin_inset Index idx
29731 \begin_layout Plain Layout
29732 Boxes ! for Vertical Alignment
29738 \begin_inset Index idx
29741 \begin_layout Plain Layout
29750 \begin_layout Standard
29751 With the help of the command
29757 you can align words, characters or other boxes vertically relative to the
29765 is used with the following scheme:
29768 \begin_layout Standard
29773 raisebox{lift}[height][depth]{box content}
29776 \begin_layout Standard
29777 The lift can be a positive value to raise the box or a negative value to
29781 \begin_layout Standard
29782 To align for example the word
29783 \begin_inset Quotes eld
29787 \begin_inset Quotes erd
29790 so that the bottom of the
29791 \begin_inset Quotes eld
29795 \begin_inset Quotes erd
29799 \begin_inset Quotes eld
29803 \begin_inset Quotes erd
29806 is at the baseline, insert the command
29809 \begin_layout Standard
29819 \begin_layout Standard
29820 in TeX-Code before the word.
29821 After the word insert a closing brace
29822 \begin_inset Quotes eld
29830 \begin_inset Quotes erd
29834 \begin_inset Newline newline
29837 This is the result:
29840 \begin_layout Standard
29841 This is a text line with the word
29845 \begin_layout Plain Layout
29857 \begin_inset Quotes eld
29861 \begin_inset Quotes erd
29868 \begin_layout Plain Layout
29878 \begin_layout Standard
29879 \begin_inset VSpace bigskip
29882 When you raise or lower characters in a line, the line distance will be
29886 \begin_layout Standard
29887 This is a text line with the word
29891 \begin_layout Plain Layout
29903 \begin_inset Quotes eld
29907 \begin_inset Quotes erd
29914 \begin_layout Plain Layout
29922 \begin_inset Newline newline
29925 This is a text line with the word
29929 \begin_layout Plain Layout
29939 \begin_inset Quotes eld
29943 \begin_inset Quotes erd
29950 \begin_layout Plain Layout
29960 \begin_layout Standard
29961 If you want to prevent this for a certain reason, set the box height to
29966 \begin_layout Standard
29976 \begin_layout Standard
29977 This is a text line with the word
29981 \begin_layout Plain Layout
29993 \begin_inset Quotes eld
29997 \begin_inset Quotes erd
30004 \begin_layout Plain Layout
30012 \begin_inset Newline newline
30015 This is a text line with the word
30019 \begin_layout Plain Layout
30023 raisebox{0.5cm}[0pt]{
30029 \begin_inset Quotes eld
30033 \begin_inset Quotes erd
30040 \begin_layout Plain Layout
30050 \begin_layout Section
30052 \begin_inset CommandInset label
30054 name "sec:Colored-Boxes"
30059 \begin_inset Index idx
30062 \begin_layout Plain Layout
30071 \begin_layout Subsection
30073 \begin_inset Index idx
30076 \begin_layout Plain Layout
30085 \begin_layout Standard
30086 To color the background of text the text must be put into a so called
30087 \begin_inset Quotes eld
30091 \begin_inset Quotes erd
30095 This requires that the LaTeX-package
30100 \begin_inset Index idx
30103 \begin_layout Plain Layout
30104 LaTeX-packages ! color
30109 is loaded in the document preamble with the command
30112 \begin_layout Standard
30117 @ifundefined{textcolor}
30118 \begin_inset Newline newline
30122 \begin_inset Phantom HPhantom
30125 \begin_layout Plain Layout
30128 \begin_inset space ~
30138 usepackage{color}}{}
30141 \begin_layout Standard
30146 will be loaded automatically by LyX when you color text.
30150 \begin_layout Plain Layout
30151 To avoid it being loaded twice the command
30165 \begin_layout Standard
30166 \begin_inset VSpace medskip
30169 Colorboxes are created with the command
30176 This will be used with the following scheme:
30179 \begin_layout Standard
30184 colorbox{color}{box content}
30187 \begin_layout Standard
30188 The box content can also be a box and colorboxes can also be within other
30192 \begin_layout Standard
30193 The following colors are predefined:
30194 \begin_inset Newline newline
30233 \begin_inset Newline newline
30236 You can also define your own color as described in section
30237 \begin_inset space ~
30241 \begin_inset CommandInset ref
30243 reference "sec:Colored-Tables"
30250 \begin_layout Standard
30252 \begin_inset space \thinspace{}
30256 \begin_inset space \space{}
30259 a red background for a word, insert the command
30262 \begin_layout Standard
30270 \begin_layout Standard
30271 before the word in TeX-Code.
30272 After the word insert a closing brace
30273 \begin_inset Quotes eld
30281 \begin_inset Quotes erd
30285 \begin_inset Newline newline
30288 This is the result:
30291 \begin_layout Standard
30292 This is a line where the word
30296 \begin_layout Plain Layout
30306 \begin_inset Quotes eld
30310 \begin_inset Quotes erd
30317 \begin_layout Plain Layout
30324 has a red background.
30327 \begin_layout Standard
30328 \begin_inset VSpace bigskip
30331 If you would like the box frame in a different color, you can use the command
30338 with the following scheme:
30341 \begin_layout Standard
30346 fcolorbox{frame color}{box color}{box content}
30349 \begin_layout Standard
30363 The frame thickness and the space between the frame and the box content
30364 can be adjusted with the lengths
30376 , respectively, as described in section
30377 \begin_inset space ~
30381 \begin_inset CommandInset ref
30383 reference "sec:Decoration"
30390 \begin_layout Standard
30391 For the following example the command
30394 \begin_layout Standard
30399 fcolorbox{cyan}{magenta}{
30402 \begin_layout Standard
30406 \begin_layout Standard
30407 Here is an example where the frame line thickness was set to 1
30408 \begin_inset space \thinspace{}
30412 \begin_inset Newline newline
30419 \begin_layout Plain Layout
30434 \begin_layout Plain Layout
30438 fcolorbox{cyan}{magenta}{
30443 This is text within a colored, framed box.
30447 \begin_layout Plain Layout
30457 \begin_layout Standard
30458 \begin_inset VSpace bigskip
30461 Of course you can also have colored text inside a colorbox:
30462 \begin_inset Newline newline
30469 \begin_layout Plain Layout
30473 fcolorbox{cyan}{magenta}{
30480 This is colored text within a colored, framed box.
30486 \begin_layout Plain Layout
30497 \begin_layout Plain Layout
30511 \begin_layout Standard
30512 \begin_inset VSpace medskip
30518 \begin_layout Standard
30519 \begin_inset Note Greyedout
30522 \begin_layout Plain Layout
30527 Text in colorboxes cannot have line breaks.
30528 To color multiple text lines or paragraphs, use a box inside a colorbox
30529 as described in the following.
30537 \begin_layout Subsection
30538 Color for Paragraphs
30539 \begin_inset CommandInset label
30541 name "sub:Color-for-Paragraphs"
30546 \begin_inset Index idx
30549 \begin_layout Plain Layout
30550 Color ! for Paragraphs
30558 \begin_layout Standard
30559 To set the background color for more than one text line, put the text into
30561 Before the minipage insert the
30570 \begin_layout Standard
30578 \begin_layout Standard
30580 After the minipage insert a closing brace
30581 \begin_inset Quotes eld
30589 \begin_inset Quotes erd
30595 \begin_layout Standard
30599 \begin_layout Plain Layout
30603 colorbox{lightgrey}{
30609 \begin_inset Box Frameless
30619 height_special "totalheight"
30622 \begin_layout Plain Layout
30623 This is text with background color.
30624 This is text with background color.
30627 \begin_layout Plain Layout
30628 \begin_inset VSpace defskip
30631 The text can have footnotes
30635 \begin_layout Plain Layout
30636 Another example footnote
30641 and can include tables and figures.
30644 \begin_layout Plain Layout
30646 \begin_inset Tabular
30647 <lyxtabular version="3" rows="3" columns="3">
30648 <features tabularvalignment="middle">
30649 <column alignment="center" valignment="top" width="0">
30650 <column alignment="center" valignment="top" width="0">
30651 <column alignment="center" valignment="top" width="0">
30653 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30656 \begin_layout Plain Layout
30662 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30665 \begin_layout Plain Layout
30671 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30674 \begin_layout Plain Layout
30682 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30685 \begin_layout Plain Layout
30691 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30694 \begin_layout Plain Layout
30696 \begin_inset Quotes erd
30704 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30707 \begin_layout Plain Layout
30715 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30718 \begin_layout Plain Layout
30724 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30727 \begin_layout Plain Layout
30733 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30736 \begin_layout Plain Layout
30756 \begin_layout Plain Layout
30766 \begin_layout Section
30767 Rotated and Scaled Boxes
30770 \begin_layout Standard
30771 To use the commands described in this section, the LaTeX-package
30776 \begin_inset Index idx
30779 \begin_layout Plain Layout
30780 LaTeX-packages ! graphicx
30785 needs to be loaded in the document preamble with the command
30788 \begin_layout Standard
30793 @ifundefined{rotatebox}
30794 \begin_inset Newline newline
30798 \begin_inset Phantom HPhantom
30801 \begin_layout Plain Layout
30804 \begin_inset space ~
30814 usepackage{graphicx}}{}
30817 \begin_layout Standard
30818 \begin_inset Note Greyedout
30821 \begin_layout Plain Layout
30826 Some DVI-viewers can't display rotated or scaled material.
30834 \begin_layout Standard
30835 \begin_inset Note Greyedout
30838 \begin_layout Plain Layout
30843 Floats mustn't be inside a rotated or scaled box.
30851 \begin_layout Subsection
30853 \begin_inset Index idx
30856 \begin_layout Plain Layout
30863 \begin_inset Index idx
30866 \begin_layout Plain Layout
30873 \begin_inset Index idx
30876 \begin_layout Plain Layout
30883 \begin_inset Index idx
30886 \begin_layout Plain Layout
30887 Table Customization ! Rotating
30895 \begin_layout Standard
30896 To rotate material, you can put it into a rotated box.
30897 Such a box is created using the command
30903 in TeX-Code with the following scheme:
30906 \begin_layout Standard
30911 rotatebox[rotation origin]{rotation angle}{box content}
30914 \begin_layout Standard
30915 The rotation origin is specified in the form
30920 The following positions are possible:
30940 (top), along with meaningful combinations of the four base positions.
30945 means that the rotation origin is at the top left corner of the box.
30946 When no rotation origin is specified, the position
30951 The rotation angle is a number that can be negative that specifies the
30953 The rotation direction is counterclockwise.
30956 \begin_layout Standard
30957 In the following example the command
30961 rotatebox[origin=c]{60}{
30963 was inserted as TeX-Code before the text
30964 \begin_inset Quotes eld
30968 \begin_inset Quotes erd
30971 ; after the text the box was closed by a closing brace
30978 \begin_layout Standard
30983 \begin_layout Plain Layout
30987 rotatebox[origin=c]{60}{
30996 \begin_layout Plain Layout
31006 \begin_layout Standard
31007 The box content can also be another box or an inline formula:
31010 \begin_layout Standard
31015 \begin_layout Plain Layout
31019 rotatebox[origin=r]{-60}{
31025 \begin_inset Box Doublebox
31035 height_special "totalheight"
31038 \begin_layout Plain Layout
31048 \begin_layout Plain Layout
31059 \begin_layout Plain Layout
31063 rotatebox[origin=lb]{60}{
31069 \begin_inset Formula $\int A\,\mathrm{d}x=B$
31076 \begin_layout Plain Layout
31086 \begin_layout Standard
31087 or an image or table:
31090 \begin_layout Standard
31095 \begin_layout Plain Layout
31099 rotatebox[origin=lb]{90}{
31105 \begin_inset Graphics
31106 filename clipart/platypus.eps
31116 \begin_layout Plain Layout
31123 with a rotated image
31127 \begin_layout Plain Layout
31131 rotatebox[origin=l]{-90}{
31137 \begin_inset Tabular
31138 <lyxtabular version="3" rows="2" columns="2">
31139 <features tabularvalignment="middle">
31140 <column alignment="center" valignment="top" width="0">
31141 <column alignment="center" valignment="top" width="0">
31143 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31146 \begin_layout Plain Layout
31152 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31155 \begin_layout Plain Layout
31163 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31166 \begin_layout Plain Layout
31172 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31175 \begin_layout Plain Layout
31190 \begin_layout Plain Layout
31200 \begin_layout Subsection
31202 \begin_inset Index idx
31205 \begin_layout Plain Layout
31212 \begin_inset Index idx
31215 \begin_layout Plain Layout
31222 \begin_inset Index idx
31225 \begin_layout Plain Layout
31232 \begin_inset Index idx
31235 \begin_layout Plain Layout
31236 Table Customization ! Scaling
31244 \begin_layout Standard
31245 To scale material the commands
31257 can be used as TeX-Code.
31260 \begin_layout Standard
31267 is used with the following scheme:
31270 \begin_layout Standard
31275 scalebox{horizontal}[vertical]{box content}
31278 \begin_layout Standard
31279 Horizontal and vertical are the corresponding scaling factors.
31280 If no vertical scaling factor is given, the horizontal factor will also
31281 be used as the vertical one.
31284 \begin_layout Standard
31291 creates for example a double size
31295 \begin_layout Plain Layout
31308 \begin_layout Plain Layout
31315 , compared with the document text size.
31318 \begin_layout Standard
31323 scalebox{2}[1]{Hello}
31325 on the other hand distorts the
31329 \begin_layout Plain Layout
31342 \begin_layout Plain Layout
31352 \begin_layout Standard
31353 If the scaling factor is negative, the box content will be mirrored.
31354 Therefore the command
31358 scalebox{-1}[1]{Hello}
31360 can be used to create mirror writing:
31364 \begin_layout Plain Layout
31377 \begin_layout Plain Layout
31387 \begin_layout Standard
31392 scalebox{1}[-1]{Hello}
31398 \begin_layout Plain Layout
31411 \begin_layout Plain Layout
31421 \begin_layout Standard
31426 scalebox{-1}[1]{box content}
31428 there exists the command
31429 \begin_inset Newline newline
31436 reflectbox{box content}
31441 \begin_layout Standard
31442 \begin_inset VSpace bigskip
31451 is used to scale the box to a defined width and height.
31452 The command scheme is:
31455 \begin_layout Standard
31460 resizebox{width}{height}{box content}
31463 \begin_layout Standard
31464 If one of the two command arguments given is an exclamation mark
31468 , the size is set so that the aspect ratio of the box content is kept.
31471 \begin_layout Standard
31476 resizebox{2cm}{1cm}{Hello}
31482 \begin_layout Plain Layout
31486 resizebox{2cm}{1cm}{
31495 \begin_layout Plain Layout
31503 \begin_inset Newline newline
31510 resizebox{2cm}{!}{Hello}
31516 \begin_layout Plain Layout
31529 \begin_layout Plain Layout
31539 \begin_layout Standard
31540 \begin_inset VSpace bigskip
31544 \begin_inset Note Greyedout
31547 \begin_layout Plain Layout
31564 are set to zero, no LaTeX-errors occur when exporting the document but
31565 the exported files can not or only partly be displayed.
31573 \begin_layout Standard
31574 \begin_inset VSpace bigskip
31580 \begin_layout Standard
31581 The boxes can be combined in any order.
31583 \begin_inset space \thinspace{}
31587 \begin_inset space \space{}
31591 \begin_inset Newline newline
31598 rotatebox[origin=c]{-45}{
31602 reflectbox{Hello}}}
31603 \begin_inset Newline newline
31611 \begin_layout Standard
31616 \begin_layout Plain Layout
31620 rotatebox[origin=c]{-45}{
31633 \begin_layout Plain Layout
31643 \begin_layout Standard
31645 Images, tables, and inline formulas are allowed as box content:
31648 \begin_layout Standard
31653 \begin_layout Plain Layout
31657 rotatebox[origin=c]{-30}{
31667 \begin_inset Graphics
31668 filename clipart/platypus.eps
31678 \begin_layout Plain Layout
31689 \begin_layout Plain Layout
31693 rotatebox[origin=c]{-45}{
31703 \begin_inset Tabular
31704 <lyxtabular version="3" rows="2" columns="2">
31705 <features tabularvalignment="middle">
31706 <column alignment="center" valignment="top" width="0">
31707 <column alignment="center" valignment="top" width="0">
31709 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31712 \begin_layout Plain Layout
31718 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31721 \begin_layout Plain Layout
31729 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31732 \begin_layout Plain Layout
31738 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31741 \begin_layout Plain Layout
31756 \begin_layout Plain Layout
31767 \begin_layout Plain Layout
31771 rotatebox[origin=c]{-45}{
31781 \begin_inset Formula $\int A\,\mathrm{d}x=B$
31788 \begin_layout Plain Layout
31798 \begin_layout Standard
31799 When the global formula style
31803 is used in the document
31807 \begin_layout Plain Layout
31809 \begin_inset Quotes eld
31813 \begin_inset Quotes erd
31816 is added to the document class options.
31821 , display style formulas can also be scaled.
31824 \begin_layout Chapter
31825 Objects Surrounded by Text
31826 \begin_inset Index idx
31829 \begin_layout Plain Layout
31838 \begin_layout Section
31840 \begin_inset CommandInset label
31842 name "sec:Wrap-Floats"
31847 \begin_inset Index idx
31850 \begin_layout Plain Layout
31851 Floats ! Wrap Floats
31857 \begin_inset Index idx
31860 \begin_layout Plain Layout
31861 Surrounded by text ! Wrap Floats
31869 \begin_layout Standard
31870 \begin_inset Wrap figure
31877 \begin_layout Plain Layout
31878 \begin_inset Graphics
31879 filename clipart/mobius.eps
31881 scaleBeforeRotation
31882 rotateOrigin center
31889 \begin_layout Plain Layout
31890 \begin_inset Caption
31892 \begin_layout Plain Layout
31893 \begin_inset CommandInset label
31895 name "fig:This-is-a"
31899 This is a figure wrap float.
31909 This float type is used if you want to wrap text around a figure or table
31910 so that it only occupies some fraction of the column width.
31911 It can be inserted using the menu
31913 Insert\SpecialChar \menuseparator
31914 Floats\SpecialChar \menuseparator
31916 \begin_inset space ~
31920 \begin_inset space ~
31928 \begin_inset space ~
31932 \begin_inset space ~
31937 if the LaTeX-package
31942 \begin_inset Index idx
31945 \begin_layout Plain Layout
31946 LaTeX-packages ! wrapfig
31950 \begin_layout Plain Layout
31968 \begin_layout Plain Layout
31969 Installing a LaTeX-package is explained it in the
31972 \begin_inset space ~
31982 The settings of the float can be modified by right-clicking on the float
31984 The mandatory settings are the float
31997 that specifies how much the float is set into the paragraph
31998 \begin_inset space \thinspace{}
32002 \begin_inset space \thinspace{}
32005 page margin, and the
32008 \begin_inset space ~
32013 that specifies how many text lines the float will approximately need.
32014 The line span is often hard to approximate; so it is better only to use
32015 it when you encounter float placement problems.
32016 You can furthermore decide if LaTeX is allowed to let the float float within
32017 the paragraph or to surrounding paragraphs.
32019 \begin_inset space ~
32023 \begin_inset CommandInset ref
32025 reference "fig:This-is-a"
32029 is an example text wrap float with a width of 40
32030 \begin_inset space \thinspace{}
32034 \begin_inset space \thinspace{}
32037 cm overhang, set to the left.
32040 \begin_layout Standard
32041 \begin_inset Note Greyedout
32044 \begin_layout Plain Layout
32050 \begin_inset space ~
32053 wrap float floats are fragile! E.
32054 \begin_inset space \thinspace{}
32058 \begin_inset space \space{}
32061 having a figure too close to the bottom of the page can mess things up in
32062 such a way that the float does not appear in the output or that it is placed
32063 over some other text.
32071 \begin_layout Standard
32072 In general, the following applies for wrap floats:
32075 \begin_layout Itemize
32076 They should not be placed in paragraphs that run over a page break.
32077 That means that wrap floats are better inserted in their exact place when
32078 the document is almost finished and you are able to estimate where page
32079 breaks will appear.
32082 \begin_layout Itemize
32083 They should either be placed in their own paragraph before the paragraph
32084 where they should wrap into or within a paragraph.
32087 \begin_layout Itemize
32088 In consecutive paragraphs they may cause troubles, so ensure that there
32089 is a text paragraph between them as separator.
32092 \begin_layout Itemize
32093 They are not allowed in section headings or tables.
32096 \begin_layout Itemize
32097 Their numbering and referencing works as described in chap.
32098 \begin_inset space \thinspace{}
32102 \begin_inset CommandInset ref
32104 reference "chap:Floats"
32111 \begin_layout Section
32112 Surrounded Fixed Objects
32113 \begin_inset Index idx
32116 \begin_layout Plain Layout
32117 Surrounded by text ! Fixed objects
32125 \begin_layout Standard
32126 The wrap floats described in sec.
32127 \begin_inset space \thinspace{}
32131 \begin_inset CommandInset ref
32133 reference "sec:Wrap-Floats"
32137 have these positions in the paragraph:
32140 \begin_layout Standard
32143 \begin_inset Tabular
32144 <lyxtabular version="3" rows="2" columns="2">
32145 <features tabularvalignment="middle">
32146 <column alignment="center" valignment="top" width="0">
32147 <column alignment="center" valignment="top" width="0">
32149 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32152 \begin_layout Plain Layout
32153 \begin_inset Graphics
32154 filename ../images/dialog-show-new-inset_graphics.png
32156 scaleBeforeRotation
32157 BoundingBox 0bp 6bp 22bp 22bp
32166 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
32169 \begin_layout Plain Layout
32177 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
32180 \begin_layout Plain Layout
32186 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
32189 \begin_layout Plain Layout
32201 \begin_inset Tabular
32202 <lyxtabular version="3" rows="2" columns="2">
32203 <features tabularvalignment="middle">
32204 <column alignment="center" valignment="top" width="0">
32205 <column alignment="center" valignment="top" width="0">
32207 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32210 \begin_layout Plain Layout
32216 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
32219 \begin_layout Plain Layout
32220 \begin_inset Graphics
32221 filename ../images/dialog-show-new-inset_graphics.png
32223 scaleBeforeRotation
32224 BoundingBox 0bp 6bp 22bp 22bp
32235 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
32238 \begin_layout Plain Layout
32244 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
32247 \begin_layout Plain Layout
32261 \begin_layout Standard
32262 To get an object exactly at the position where it is inserted, for example
32263 to get one of these positions:
32264 \begin_inset VSpace defskip
32270 \begin_layout Standard
32273 \begin_inset Tabular
32274 <lyxtabular version="3" rows="2" columns="2">
32275 <features tabularvalignment="middle">
32276 <column alignment="center" valignment="top" width="0">
32277 <column alignment="center" valignment="top" width="0">
32279 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32282 \begin_layout Plain Layout
32288 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
32291 \begin_layout Plain Layout
32299 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
32302 \begin_layout Plain Layout
32303 \begin_inset Graphics
32304 filename ../images/dialog-show-new-inset_graphics.png
32306 scaleBeforeRotation
32307 BoundingBox 0bp 6bp 22bp 22bp
32316 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
32319 \begin_layout Plain Layout
32331 \begin_inset Tabular
32332 <lyxtabular version="3" rows="2" columns="2">
32333 <features tabularvalignment="middle">
32334 <column alignment="center" valignment="top" width="0">
32335 <column alignment="center" valignment="top" width="0">
32337 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32340 \begin_layout Plain Layout
32346 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
32349 \begin_layout Plain Layout
32357 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
32360 \begin_layout Plain Layout
32366 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
32369 \begin_layout Plain Layout
32370 \begin_inset Graphics
32371 filename ../images/dialog-show-new-inset_graphics.png
32373 scaleBeforeRotation
32374 BoundingBox 0bp 6bp 22bp 22bp
32389 \begin_inset Tabular
32390 <lyxtabular version="3" rows="2" columns="3">
32391 <features tabularvalignment="middle">
32392 <column alignment="center" valignment="top" width="0">
32393 <column alignment="center" valignment="top" width="0">
32394 <column alignment="center" valignment="top" width="0">
32396 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32399 \begin_layout Plain Layout
32405 <cell alignment="center" valignment="top" topline="true" usebox="none">
32408 \begin_layout Plain Layout
32409 \begin_inset Graphics
32410 filename ../images/dialog-show-new-inset_graphics.png
32412 scaleBeforeRotation
32413 BoundingBox 0bp 6bp 22bp 22bp
32422 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
32425 \begin_layout Plain Layout
32433 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
32436 \begin_layout Plain Layout
32442 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
32445 \begin_layout Plain Layout
32451 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
32454 \begin_layout Plain Layout
32466 \begin_inset Tabular
32467 <lyxtabular version="3" rows="2" columns="3">
32468 <features tabularvalignment="middle">
32469 <column alignment="center" valignment="top" width="0">
32470 <column alignment="center" valignment="top" width="0">
32471 <column alignment="center" valignment="top" width="0">
32473 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32476 \begin_layout Plain Layout
32482 <cell alignment="center" valignment="top" topline="true" usebox="none">
32485 \begin_layout Plain Layout
32491 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
32494 \begin_layout Plain Layout
32502 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
32505 \begin_layout Plain Layout
32511 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
32514 \begin_layout Plain Layout
32515 \begin_inset Graphics
32516 filename ../images/dialog-show-new-inset_graphics.png
32518 scaleBeforeRotation
32519 BoundingBox 0bp 6bp 22bp 22bp
32528 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
32531 \begin_layout Plain Layout
32545 \begin_layout Standard
32548 \begin_inset Tabular
32549 <lyxtabular version="3" rows="3" columns="2">
32550 <features tabularvalignment="middle">
32551 <column alignment="center" valignment="top" width="0">
32552 <column alignment="center" valignment="top" width="0">
32554 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32557 \begin_layout Plain Layout
32563 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
32566 \begin_layout Plain Layout
32574 <cell alignment="center" valignment="top" leftline="true" usebox="none">
32577 \begin_layout Plain Layout
32578 \begin_inset Graphics
32579 filename ../images/dialog-show-new-inset_graphics.png
32581 scaleBeforeRotation
32582 BoundingBox 0bp 6bp 22bp 22bp
32591 <cell alignment="center" valignment="top" rightline="true" usebox="none">
32594 \begin_layout Plain Layout
32602 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
32605 \begin_layout Plain Layout
32611 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
32614 \begin_layout Plain Layout
32626 \begin_inset Tabular
32627 <lyxtabular version="3" rows="3" columns="3">
32628 <features tabularvalignment="middle">
32629 <column alignment="center" valignment="top" width="0">
32630 <column alignment="center" valignment="top" width="0">
32631 <column alignment="center" valignment="top" width="0">
32633 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32636 \begin_layout Plain Layout
32642 <cell alignment="center" valignment="top" topline="true" usebox="none">
32645 \begin_layout Plain Layout
32651 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
32654 \begin_layout Plain Layout
32662 <cell alignment="center" valignment="top" leftline="true" usebox="none">
32665 \begin_layout Plain Layout
32671 <cell alignment="center" valignment="top" usebox="none">
32674 \begin_layout Plain Layout
32675 \begin_inset Graphics
32676 filename ../images/dialog-show-new-inset_graphics.png
32678 scaleBeforeRotation
32679 BoundingBox 0bp 6bp 22bp 22bp
32688 <cell alignment="center" valignment="top" rightline="true" usebox="none">
32691 \begin_layout Plain Layout
32699 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
32702 \begin_layout Plain Layout
32708 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
32711 \begin_layout Plain Layout
32717 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
32720 \begin_layout Plain Layout
32732 \begin_inset Tabular
32733 <lyxtabular version="3" rows="3" columns="2">
32734 <features tabularvalignment="middle">
32735 <column alignment="center" valignment="top" width="0">
32736 <column alignment="center" valignment="top" width="0">
32738 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32741 \begin_layout Plain Layout
32747 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
32750 \begin_layout Plain Layout
32758 <cell alignment="center" valignment="top" leftline="true" usebox="none">
32761 \begin_layout Plain Layout
32767 <cell alignment="center" valignment="top" rightline="true" usebox="none">
32770 \begin_layout Plain Layout
32771 \begin_inset Graphics
32772 filename ../images/dialog-show-new-inset_graphics.png
32774 scaleBeforeRotation
32775 BoundingBox 0bp 6bp 22bp 22bp
32786 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
32789 \begin_layout Plain Layout
32795 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
32798 \begin_layout Plain Layout
32812 \begin_layout Standard
32814 you can use the LaTeX-package
32819 \begin_inset Index idx
32822 \begin_layout Plain Layout
32823 LaTeX-packages ! picinpar
32829 Here is an example:
32832 \begin_layout Standard
32836 \begin_layout Plain Layout
32846 \begin_inset Note Note
32849 \begin_layout Plain Layout
32850 The following section will only be displayed when the LaTeX-package
32862 \begin_layout Standard
32866 \begin_layout Plain Layout
32870 begin{window}[2,c,{
32876 \begin_inset Graphics
32877 filename clipart/mobius.eps
32880 scaleBeforeRotation
32881 rotateOrigin center
32889 \begin_layout Plain Layout
32894 \begin_layout Plain Layout
32903 It was in the spring of the year 1894 that all London was interested, and
32904 the fashionable world dismayed, by the murder of the Honourable Ronald
32905 Adair under most unusual and inexplicable circumstances.
32906 The public has already learned those particulars of the crime which
32912 \begin_layout Plain Layout
32923 came out in the police investigation, but a good deal was suppressed upon
32924 that occasion, since the case for the prosecution was so overwhelmingly
32925 strong that it was not necessary to bring forward all the facts.
32926 Only now, at the end of nearly ten years, am I allowed to supply those
32927 missing links which make up the whole of that remarkable chain.
32933 \begin_layout Plain Layout
32945 \begin_layout Standard
32949 \begin_layout Plain Layout
32958 Footnote of the paragraph with the fixed object.
32962 \begin_layout Plain Layout
32972 \begin_layout Standard
32973 Surrounded fixed objects are used to let text float around them, at which
32974 the object's position in the paragraph can be determined by the number
32976 In contrary to floats is it not possible to have a numbered caption.
32979 \begin_layout Standard
32980 A fixed object is inserted by adding the command
32983 \begin_layout Standard
32988 begin{window}[2,c,{
32991 \begin_layout Standard
32992 as TeX Code at the beginning of the paragraph.
32993 The first parameter in the bracket, here '2', defines the number of lines
32994 above the object, the second, here 'c', the position of the object.
32995 The positions 'l', 'c' and 'r' (for left, center, right) are possible.
32996 Behind the command you insert the object.
32997 In this example an image with a width of 40
32998 \begin_inset space \thinspace{}
33001 % of the text column width was inserted.
33002 The object can also be a table, a box or an equation.
33003 Behind the object the command
33006 \begin_layout Standard
33009 },description text]
33010 \begin_inset Newline newline
33016 \begin_layout Standard
33019 \begin_inset Quotes eld
33027 \begin_inset Quotes erd
33030 is in the second line.
33031 The description text is optional.
33032 The text surrounding the object must be in the same paragraph as the object,
33033 so it must begin directly after the
33038 At the end of the paragraph insert the command:
33041 \begin_layout Standard
33049 \begin_layout Standard
33050 Within a paragraph with a fixed object, you cannot insert footnotes in the
33052 You have to use instead the command
33058 inside the paragraph and outside the command
33064 as described in sec.
33065 \begin_inset space \thinspace{}
33069 \begin_inset CommandInset ref
33071 reference "sec:Footnotes"
33078 \begin_layout Standard
33082 \begin_layout Plain Layout
33092 \begin_inset Note Note
33095 \begin_layout Plain Layout
33096 The following will be displayed when the LaTeX-package
33108 \begin_layout Standard
33109 You need to install the LaTeX-package
33113 to see the following part of this section in the output.
33116 \begin_layout Standard
33120 \begin_layout Plain Layout
33132 \begin_layout Section
33134 \begin_inset Index idx
33137 \begin_layout Plain Layout
33144 \begin_inset Index idx
33147 \begin_layout Plain Layout
33148 Surrounded by text ! Initials
33156 \begin_layout Standard
33157 To use initials, you must have the LaTeX-package
33162 \begin_inset Index idx
33165 \begin_layout Plain Layout
33166 LaTeX-packages ! lettrine
33171 installed and use the module
33175 in your document (menu
33177 Document\SpecialChar \menuseparator
33178 Settings\SpecialChar \menuseparator
33182 To insert an initial, use the style
33187 This style has a mandatory and an optional argument.
33188 The mandatory argument is inserted via the menu
33190 Insert\SpecialChar \menuseparator
33192 \begin_inset space ~
33197 and contains the letter that is the initial.
33198 To use the also the optional argument, insert another argument in front
33199 of the mandatory argument.
33200 This one contains parameters to modify the initial.
33201 For more information about the possible parameters see the documentation
33207 \begin_inset CommandInset citation
33214 The style itself contains the text that is surrounding the initial.
33215 The usual style is hereby that the word whose first letter is the initial,
33221 To tell LaTeX where this word is finished, add a closing brace '
33225 ' as TeX Code behind it.
33226 At the end of the style there must be an opening brace '
33233 \begin_layout Standard
33234 Here are some examples:
33237 \begin_layout Enumerate
33238 No optional argument, the initial is the letter 'I' in the math font
33239 \begin_inset Formula $\mathfrak{Fraktur}$
33246 \begin_layout Initial
33247 \begin_inset Argument
33250 \begin_layout Plain Layout
33251 \begin_inset Formula $\mathfrak{I}$
33263 \begin_layout Plain Layout
33270 was in the spring of the year 1894 that all London was interested, and
33271 the fashionable world dismayed, by the murder of the Honourable Ronald
33272 Adair under most unusual and inexplicable circumstances.
33273 The public has already learned those particulars of the crime which came
33274 out in the police investigation, but a good deal was suppressed upon that
33275 occasion, since the case for the prosecution was so overwhelmingly strong
33276 that it was not necessary to bring forward all the facts.
33280 \begin_layout Plain Layout
33288 \begin_inset Newpage newpage
33295 \begin_layout Enumerate
33296 Only one line is surrounding the initial, which is formed by two letters
33297 in standard font and no text is printed in small caps:
33301 \begin_layout Initial
33302 \begin_inset Argument
33305 \begin_layout Plain Layout
33312 \begin_inset Argument
33315 \begin_layout Plain Layout
33325 \begin_layout Plain Layout
33332 was in the spring of the year 1894 that all London was interested, and
33333 the fashionable world dismayed, by the murder of the Honourable Ronald
33334 Adair under most unusual and inexplicable circumstances.
33335 The public has already learned those particulars of the crime which came
33336 out in the police investigation, but a good deal was suppressed upon that
33337 occasion, since the case for the prosecution was so overwhelmingly strong
33338 that it was not necessary to bring forward all the facts.
33342 \begin_layout Plain Layout
33353 \begin_layout Enumerate
33354 Magenta, hanging initial over 3
33355 \begin_inset space ~
33358 lines in the math font
33359 \begin_inset Formula $\mathcal{CALLIGRAPHIC}$
33363 \begin_inset Quotes eld
33366 t was in the spring
33367 \begin_inset Quotes erd
33374 ; to color the initial, you must insert this command before the initial:
33375 \begin_inset Newline newline
33389 \begin_inset Newline newline
33397 \begin_inset Quotes eld
33401 \begin_inset Quotes erd
33405 \begin_inset Quotes eld
33409 \begin_inset Quotes erd
33413 \begin_inset Quotes eld
33417 \begin_inset Quotes erd
33421 \begin_inset Quotes eld
33425 \begin_inset Quotes erd
33429 \begin_inset Quotes eld
33433 \begin_inset Quotes erd
33437 \begin_inset Quotes eld
33441 \begin_inset Quotes erd
33445 \begin_inset Quotes eld
33449 \begin_inset Quotes erd
33453 \begin_inset Quotes eld
33457 \begin_inset Quotes erd
33460 , and add this command to the document preamble:
33461 \begin_inset Newline newline
33468 @ifundefined{textcolor}
33469 \begin_inset Newline newline
33473 \begin_inset space ~
33478 usepackage{color}}{}
33482 \begin_layout Standard
33486 \begin_layout Plain Layout
33500 \begin_inset Note Note
33503 \begin_layout Plain Layout
33504 makes the initial magenta
33512 \begin_layout Initial
33513 \begin_inset Argument
33516 \begin_layout Plain Layout
33517 lines=3, lhang=0.33, loversize=0.25
33523 \begin_inset Argument
33526 \begin_layout Plain Layout
33527 \begin_inset Formula $\mathcal{I}$
33535 t was in the spring
33539 \begin_layout Plain Layout
33546 of the year 1894 that all London was interested, and the fashionable world
33547 dismayed, by the murder of the Honourable Ronald Adair under most unusual
33548 and inexplicable circumstances.
33549 The public has already learned those particulars of the crime which came
33550 out in the police investigation, but a good deal was suppressed upon that
33551 occasion, since the case for the prosecution was so overwhelmingly strong
33552 that it was not necessary to bring forward all the facts.
33556 \begin_layout Plain Layout
33567 \begin_layout Chapter
33568 External Document Parts
33569 \begin_inset Index idx
33572 \begin_layout Plain Layout
33573 External Document Parts
33581 \begin_layout Standard
33584 Insert\SpecialChar \menuseparator
33587 you can insert external material to your document.
33591 \begin_layout Description
33593 \begin_inset space ~
33596 Document Another LyX document; its content is directly inserted to your
33600 \begin_layout Description
33602 \begin_inset space ~
33605 Text A text document; each line is inserted in your document as a separate
33609 \begin_layout Description
33611 \begin_inset space ~
33615 \begin_inset space ~
33619 \begin_inset space ~
33622 Lines A text document; text lines are inserted in your document continuously
33623 but an empty text line creates a new paragraph.
33626 \begin_layout Description
33628 \begin_inset space ~
33631 Material Files in various formats.
33634 \begin_layout Description
33636 \begin_inset space ~
33639 Document LyX or LaTeX-documents.
33642 \begin_layout Section
33644 \begin_inset Index idx
33647 \begin_layout Plain Layout
33648 External Document Parts ! External Material
33656 \begin_layout Standard
33657 The external material feature allows you to insert files in to your document
33658 without converting them to a format that can be read by the document output
33660 LyX takes care of the necessary conversions.
33661 This is similar to images that can be inserted in various image formats
33663 When you have enabled Instant Preview in LyX's preferences under
33666 \begin_inset space ~
33670 \begin_inset space ~
33673 feel\SpecialChar \menuseparator
33676 , the external material types Dia and Xfig are directly shown in LyX.
33679 \begin_layout Standard
33680 External material can be inserted via the
33684 dialog that is accessible with the menu
33686 Insert\SpecialChar \menuseparator
33687 File\SpecialChar \menuseparator
33689 \begin_inset space ~
33695 Currently the following file types (
33702 \begin_layout Description
33703 ChessDiagram This template supports chess position diagrams made with the
33707 \begin_inset CommandInset href
33710 target "http://en.wikipedia.org/wiki/XBoard"
33719 \begin_layout Description
33720 Date This inserts the date in the form
33725 This is a date inserted as external material:
33726 \begin_inset External
33733 \begin_inset space ~
33737 \begin_inset Note Note
33740 \begin_layout Plain Layout
33741 Remove the protected space when bug 4398 is fixed!
33747 \begin_inset Newline newline
33750 The date is not shown within LyX, only in the output.
33751 There are two other methods of inserting a date: Via menu
33753 Insert\SpecialChar \menuseparator
33756 and with the LaTeX command
33763 The different methods are compared in Table
33764 \begin_inset space ~
33768 \begin_inset CommandInset ref
33770 reference "tab:Comparison-of-the"
33777 \begin_layout Description
33778 Dia This template supports diagrams created with the program
33781 \begin_inset CommandInset href
33784 target "http://en.wikipedia.org/wiki/Dia_(software)"
33793 \begin_layout Description
33794 LilyPond This template is used for music notation typeset with the program
33795 \begin_inset Newline linebreak
33801 \begin_inset CommandInset href
33804 target "http://en.wikipedia.org/wiki/LilyPond"
33813 \begin_layout Description
33814 PDFPages With this template you can insert PDF documents to your document.
33815 To insert certain or all pages of a PDF, use the
33825 LaTeX and LyX options
33827 tab according to the template description in the dialog.
33832 option is given, only the first page of the PDF will be inserted.
33835 \begin_layout Description
33836 RasterImage This can be used for bitmap images.
33837 Nearly all popular image formats are supported.
33838 The image can be treated in the
33842 dialog like the images that are usually included via the
33846 dialog as described in section
33847 \begin_inset space ~
33851 \begin_inset CommandInset ref
33853 reference "sec:Graphics-Dialog"
33858 The difference is that only raster images are allowed; that means that
33859 PDF and EPS-images are not supported.
33862 \begin_layout Description
33863 XFig This template supports images created with the program
33866 \begin_inset CommandInset href
33869 target "http://en.wikipedia.org/wiki/Xfig"
33878 \begin_layout Standard
33879 \begin_inset Float table
33885 \begin_layout Plain Layout
33886 \begin_inset Caption
33888 \begin_layout Plain Layout
33889 \begin_inset CommandInset label
33891 name "tab:Comparison-of-the"
33895 Comparison of the date input methods.
33903 \begin_layout Plain Layout
33905 \begin_inset Tabular
33906 <lyxtabular version="3" rows="4" columns="4">
33907 <features tabularvalignment="middle">
33908 <column alignment="center" valignment="top" width="0">
33909 <column alignment="center" valignment="top" width="0">
33910 <column alignment="center" valignment="top" width="0">
33911 <column alignment="center" valignment="top" width="0">
33913 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33916 \begin_layout Plain Layout
33922 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33925 \begin_layout Plain Layout
33928 External Material\SpecialChar \menuseparator
33934 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33937 \begin_layout Plain Layout
33940 Insert\SpecialChar \menuseparator
33946 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33949 \begin_layout Plain Layout
33961 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33964 \begin_layout Plain Layout
33970 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33973 \begin_layout Plain Layout
33979 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33982 \begin_layout Plain Layout
33988 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33991 \begin_layout Plain Layout
33992 as TeX-Code inset box
33999 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34002 \begin_layout Plain Layout
34008 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34011 \begin_layout Plain Layout
34017 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34020 \begin_layout Plain Layout
34026 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34029 \begin_layout Plain Layout
34037 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
34040 \begin_layout Plain Layout
34046 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
34049 \begin_layout Plain Layout
34055 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
34058 \begin_layout Plain Layout
34064 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
34067 \begin_layout Plain Layout
34086 \begin_layout Standard
34087 When you use the option
34099 dialog, only the path to the inserted file is shown in the output.
34100 \begin_inset Newline newline
34103 External material is displayed in LyX either as a box like this:
34104 \begin_inset Graphics
34105 filename clipart/ExternalMaterialQt4.png
34107 scaleBeforeRotation
34111 or as image, depending on the option
34117 LaTeX and LyX options
34122 \begin_layout Standard
34129 manual explains how you can define your own templates.
34132 \begin_layout Section
34134 \begin_inset CommandInset label
34136 name "sec:Child-Documents"
34141 \begin_inset Index idx
34144 \begin_layout Plain Layout
34145 External Document Parts ! Child Documents
34151 \begin_inset Index idx
34154 \begin_layout Plain Layout
34163 \begin_layout Standard
34164 Child documents are used if you have a long document consisting of several
34165 larger parts or sections.
34166 For maintenance it is often useful and sometimes even required to split
34167 the document into several files that can be revised separately.
34168 The different documents are then the so called
34169 \begin_inset Quotes eld
34173 \begin_inset Quotes erd
34176 , and a master document connects them to print the full document or parts
34178 A child document inherits elements of its master, for example the LaTeX
34179 preamble, the bibliography, and labels for cross-references.
34182 \begin_layout Standard
34183 To be able to work on child documents without the need to open their master,
34184 specify in the child document the master in the menu
34186 Document\SpecialChar \menuseparator
34187 Settings\SpecialChar \menuseparator
34189 \begin_inset space ~
34195 This master document will then be used in the background by LyX when you
34196 edit the child document.
34199 \begin_layout Standard
34200 Included documents are displayed in LyX as a box like this:
34201 \begin_inset Graphics
34202 filename clipart/ChildDocumentQt4.png
34204 scaleBeforeRotation
34208 To include child documents in a master document use the menu
34210 Insert\SpecialChar \menuseparator
34211 File\SpecialChar \menuseparator
34213 \begin_inset space ~
34219 A dialog pops up where you can choose between four include methods:
34222 \begin_layout Description
34223 Include You can include LyX- and LaTeX-documents.
34232 dialog, the included documents will be opened in LyX in a new file tab
34233 so that you can modify them.
34234 \begin_inset Newline newline
34240 \begin_layout Standard
34241 Here is a child document inserted using
34246 \begin_inset CommandInset include
34247 LatexCommand include
34248 filename "DummyDocument1.lyx"
34255 \begin_layout Standard
34256 The section numbering includes the sections of the included files in the
34257 order they are inserted in the master document.
34258 The included example document has for example a subsection that is numbered
34259 as a subsection of this section.
34260 Labels of included documents can be referenced: Subsection
34261 \begin_inset space ~
34265 \begin_inset CommandInset ref
34267 reference "sub:External-Subsection-1"
34274 \begin_layout Standard
34275 The preamble of the child document is ignored; only the preamble of the
34276 master document is used.
34277 Branches in child documents will be ignored by the master document when
34278 the master document does not have a branch with the same name.
34279 Included documents are inserted starting on a new page and ending with
34283 \begin_layout Standard
34284 \begin_inset Note Greyedout
34287 \begin_layout Plain Layout
34292 If you have included a LyX- or LaTeX-file, you are warned when you export/view
34293 the document in case the child document uses another document class than
34294 the master document as this will lead to unexpected outputs.
34302 \begin_layout Description
34303 Input This method is very similar to the Include method.
34304 The differences are:
34308 \begin_layout Itemize
34309 Input files don't start with a new page and don't end with a page break.
34312 \begin_layout Itemize
34313 Input files can be previewed in LyX when
34316 \begin_inset space ~
34321 is enabled in LyX's preferences under
34324 \begin_inset space ~
34328 \begin_inset space ~
34331 feel\SpecialChar \menuseparator
34337 \begin_layout Itemize
34338 You cannot exclude Input files via the menu
34340 Document\SpecialChar \menuseparator
34341 Settings\SpecialChar \menuseparator
34348 \begin_layout Standard
34349 Here is a child document inserted using
34354 \begin_inset CommandInset include
34356 filename "DummyDocument2.lyx"
34363 \begin_layout Description
34364 Verbatim With this method any text file can be included.
34365 The file is shown in the output with its source code; no command used in
34366 the text is invoked.
34367 You can use the option
34369 Mark spaces in output
34371 that displays the character
34372 \begin_inset Quotes eld
34379 \begin_layout Plain Layout
34389 \begin_inset Quotes erd
34392 for every space character in the source code.
34393 The difference from the method via the menu
34395 Insert\SpecialChar \menuseparator
34396 File\SpecialChar \menuseparator
34398 \begin_inset space ~
34403 is that the document content is not shown in LyX.
34406 \begin_layout Standard
34407 Here is a child document inserted as Verbatim:
34408 \begin_inset CommandInset include
34409 LatexCommand verbatiminput
34410 filename "DummyTextDocument.txt"
34415 \begin_inset VSpace bigskip
34418 Here is a child document inserted as Verbatim using the
34420 Mark spaces in output
34423 \begin_inset CommandInset include
34424 LatexCommand verbatiminput*
34425 filename "DummyTextDocument.txt"
34432 \begin_layout Standard
34433 \begin_inset VSpace bigskip
34439 \begin_layout Standard
34440 \begin_inset Note Greyedout
34443 \begin_layout Plain Layout
34448 As you can see in the examples above, the text of the documents included
34453 is not broken at the end of the document lines.
34461 \begin_layout Description
34462 Listings This type is described in chapter
34463 \begin_inset space ~
34467 \begin_inset CommandInset ref
34469 reference "cha:Program-Code-Listings"
34476 \begin_layout Standard
34477 \begin_inset Note Greyedout
34480 \begin_layout Plain Layout
34485 Including the same document twice in a document using different methods
34486 could cause LaTeX-problems.
34494 \begin_layout Standard
34495 If you want to view/export only selected children of your master document,
34496 either because you want to save compiling time or because you want to distribut
34497 e single chapters of the book you are just writing, you can exclude children
34499 This is done via the menu
34501 Document\SpecialChar \menuseparator
34502 Settings\SpecialChar \menuseparator
34506 You can exclude\SpecialChar \slash{}
34507 include children by double-clicking on the
34511 column of the respective child document in the list (note that this only
34512 works for documents embedded via
34513 \begin_inset Quotes eld
34517 \begin_inset Quotes erd
34521 \begin_inset Quotes eld
34525 \begin_inset Quotes erd
34531 Maintain counters and references
34533 is enabled, LyX will assure that all page numbers, references etc.
34534 \begin_inset space ~
34537 are correct as if the whole document was processed.
34538 This is useful if you want the selected sub-documents to look exactly as
34539 in the context of the whole document.
34540 However, LyX needs to process the whole document in the background for
34542 So if you want to save compile time and if counters and references do not
34543 need to be correct, disable this checkbox.
34546 \begin_layout Standard
34547 Alternatively, you can put each included file into a branch.
34551 \begin_layout Plain Layout
34552 Branches are described in section
34565 By enabling\SpecialChar \slash{}
34566 disabling branches you can decide which included files will
34567 appear in the output.
34568 This has the advantage that it also works with Input'ed sub-documents.
34569 However, counters and references will not be maintained with this approach.
34572 \begin_layout Chapter
34573 Program Code Listings
34574 \begin_inset CommandInset label
34576 name "cha:Program-Code-Listings"
34581 \begin_inset Index idx
34584 \begin_layout Plain Layout
34591 \begin_inset Index idx
34594 \begin_layout Plain Layout
34601 \begin_inset Index idx
34604 \begin_layout Plain Layout
34613 \begin_layout Standard
34614 To include and typeset program code you can use the
34618 inset that can be inserted via the menu
34620 Insert\SpecialChar \menuseparator
34629 \begin_inset Index idx
34632 \begin_layout Plain Layout
34633 LaTeX-packages ! listings
34638 provides a powerful and flexible way to insert program source code into
34642 \begin_layout Standard
34643 Right-clicking on a listings inset opens the context menu containing where
34644 you can set the listings format.
34647 \begin_layout Standard
34648 By default, a listing starts a new paragraph in the output.
34649 The placement option
34652 \begin_inset space ~
34657 prints the listing inline like this:
34658 \begin_inset listings
34659 lstparams "language={C++}"
34663 \begin_layout Plain Layout
34671 \begin_inset Newline newline
34678 creates a listings float where you can specify the placement options
34679 \begin_inset Quotes eld
34687 \begin_inset Quotes erd
34691 \begin_inset Quotes eld
34699 \begin_inset Quotes erd
34703 \begin_inset Quotes eld
34711 \begin_inset Quotes erd
34715 \begin_inset Quotes eld
34723 \begin_inset Quotes erd
34726 corresponding to the float placement options described in section
34727 \begin_inset space ~
34731 \begin_inset CommandInset ref
34733 reference "sec:Float-Placement"
34738 The placement options can be mixed and are inserted without any separation,
34740 \begin_inset space \thinspace{}
34744 \begin_inset space \space{}
34748 \begin_inset Quotes eld
34756 \begin_inset Quotes erd
34761 \begin_inset Quotes eld
34765 \begin_inset Quotes erd
34768 has sometimes no effect, but you don't need to use the
34772 option in this case as also non-float listings can have captions and be
34776 \begin_layout Standard
34777 You can add captions to listings with the menu
34779 Insert\SpecialChar \menuseparator
34783 Listings can be referenced like floats: Listing
34784 \begin_inset space ~
34788 \begin_inset CommandInset ref
34790 reference "lst:Example-Listing"
34797 \begin_layout Standard
34798 \begin_inset listings
34799 lstparams "language=Python"
34803 \begin_layout Plain Layout
34805 \begin_inset Caption
34807 \begin_layout Plain Layout
34808 \begin_inset CommandInset label
34810 name "lst:Example-Listing"
34814 Example Listing float
34819 # Example listing float
34822 \begin_layout Plain Layout
34827 \begin_layout Plain Layout
34829 'this is a python function'
34832 \begin_layout Plain Layout
34842 \begin_layout Standard
34843 When you have set a programming language in the listings dialog, the keywords
34844 of this language will be recognized and specially typeset in the output.
34845 In the example listings the Python keyword
34846 \begin_inset Quotes eld
34850 \begin_inset Quotes erd
34853 is recognized and printed bold in the output.
34856 \begin_layout Standard
34857 \begin_inset Note Greyedout
34860 \begin_layout Plain Layout
34865 If you don't get bold keywords when using typewriter fonts, your
34869 font probably doesn't provide a bold shape.
34870 In this case select a different one in the menu
34872 Document\SpecialChar \menuseparator
34873 Settings\SpecialChar \menuseparator
34885 provide bold shapes.)
34893 \begin_layout Standard
34897 \begin_inset space ~
34902 of the listings dialog you can specify the line numbering style.
34903 You can insert a number to specify which lines are numbered in the field
34910 \begin_inset space \thinspace{}
34914 \begin_inset space \space{}
34918 \begin_inset Quotes eld
34922 \begin_inset Quotes erd
34925 , only every 3rd line will be numbered.
34928 \begin_layout Standard
34929 You can furthermore specify a range of lines; only these will then appear
34933 Extended character table
34935 should be used when you use national characters like the German umlauts
34937 \begin_inset Newline newline
34940 Here is an example listing with left line numbering, step
34941 \begin_inset Quotes eld
34945 \begin_inset Quotes erd
34949 \begin_inset Quotes eld
34953 \begin_inset Quotes erd
34957 \begin_inset Quotes eld
34960 Extended character table
34961 \begin_inset Quotes erd
34965 \begin_inset Quotes eld
34969 \begin_inset space ~
34973 \begin_inset space ~
34977 \begin_inset Quotes erd
34981 \begin_inset space \thinspace{}
34985 \begin_inset space \thinspace{}
34991 \begin_layout Standard
34992 \begin_inset listings
34993 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
34997 \begin_layout Plain Layout
35002 \begin_layout Plain Layout
35004 'this is a python function'
35007 \begin_layout Plain Layout
35012 \begin_layout Plain Layout
35017 \begin_layout Plain Layout
35019 'This is a German word: Tschüß'
35022 \begin_layout Plain Layout
35027 \begin_layout Plain Layout
35032 \begin_layout Plain Layout
35034 'this is a python function'
35037 \begin_layout Plain Layout
35047 \begin_layout Standard
35048 When you have tabulators in your listing, you can specify the number of
35049 characters that are spanned by a tabulator in the field
35052 \begin_inset space ~
35060 \begin_layout Standard
35061 \begin_inset Note Greyedout
35064 \begin_layout Plain Layout
35069 Due to a bug in the
35073 package the line numbering is shifted by a line by every previous listing.
35074 That's the reason why the lines 2 and 5 are numbered in the above listing
35075 and not the lines 3 and 6.
35083 \begin_layout Standard
35084 \begin_inset VSpace bigskip
35090 \begin_layout Standard
35091 It is also possible to print lines from a file as listing.
35092 To do this, use the menu
35094 Insert\SpecialChar \menuseparator
35095 File\SpecialChar \menuseparator
35098 and choose the type
35106 \begin_layout Plain Layout
35107 The other child document types are described in section
35108 \begin_inset space ~
35112 \begin_inset CommandInset ref
35114 reference "sec:Child-Documents"
35123 In the child document dialog you can specify the listing parameters in
35125 To show a list of all available parameters, type in a question mark
35126 \begin_inset Quotes eld
35130 \begin_inset Quotes erd
35136 \begin_layout Standard
35137 To reference child document listings, write a label text into the corresponding
35138 field of the child document dialog.
35139 The label can then be referenced using the menu
35141 Insert\SpecialChar \menuseparator
35147 \begin_layout Standard
35149 \begin_inset space ~
35153 \begin_inset CommandInset ref
35155 reference "lst:file-listing"
35159 is an example for a listing of a file; there the lines 10
35160 \begin_inset space \thinspace{}
35164 \begin_inset space \thinspace{}
35167 15 of this LyX file are listed.
35170 \begin_layout Standard
35171 \begin_inset CommandInset include
35172 LatexCommand lstinputlisting
35173 filename "EmbeddedObjects.lyx"
35174 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
35181 \begin_layout Standard
35182 \begin_inset VSpace bigskip
35188 \begin_layout Standard
35189 Inserting a formula into a listing can be done the following way:
35192 \begin_layout Enumerate
35193 Open the listings dialog and add
35194 \begin_inset Newline newline
35202 \begin_inset Newline newline
35205 to the field of the
35212 \begin_layout Enumerate
35213 Create a formula outside the listing
35216 \begin_layout Enumerate
35217 Copy the content of the formula (not the formula inset) to the clipboard
35227 \begin_layout Enumerate
35228 In the listing write
35229 \begin_inset Quotes eld
35237 \begin_inset Quotes erd
35240 and copy from the clipboard between the dollar-signs (shortcut
35249 \begin_layout Standard
35250 \begin_inset listings
35251 lstparams "language=Python,mathescape=true"
35255 \begin_layout Plain Layout
35257 \begin_inset Caption
35259 \begin_layout Plain Layout
35260 Example Listing float containing a formula
35265 # Example listing float
35268 \begin_layout Plain Layout
35273 \begin_layout Plain Layout
35286 \begin_layout Plain Layout
35296 \begin_layout Standard
35297 \begin_inset VSpace bigskip
35303 \begin_layout Standard
35304 Global listings settings can be set in the
35306 Document\SpecialChar \menuseparator
35307 Settings\SpecialChar \menuseparator
35311 To get there a list of available options, type in a question mark
35312 \begin_inset Quotes eld
35316 \begin_inset Quotes erd
35322 \begin_layout Standard
35323 For more information about the
35327 package, we refer to its documentation
35328 \begin_inset CommandInset citation
35337 \begin_layout Standard
35338 \begin_inset Newpage newpage
35344 \begin_layout Chapter
35346 Units available in LyX
35347 \begin_inset Index idx
35350 \begin_layout Plain Layout
35357 \begin_inset CommandInset label
35359 name "cha:Units-available-in"
35366 \begin_layout Standard
35367 To understand the units described in this documentation, Table
35368 \begin_inset space ~
35372 \begin_inset CommandInset ref
35374 reference "tab:Units"
35378 explains all units available in LyX.
35381 \begin_layout Standard
35382 \begin_inset Float table
35388 \begin_layout Plain Layout
35389 \begin_inset Caption
35391 \begin_layout Plain Layout
35392 \begin_inset CommandInset label
35406 \begin_layout Plain Layout
35407 \begin_inset VSpace medskip
35413 \begin_layout Plain Layout
35415 \begin_inset Tabular
35416 <lyxtabular version="3" rows="20" columns="2">
35417 <features tabularvalignment="middle">
35418 <column alignment="center" valignment="top" width="0">
35419 <column alignment="center" valignment="top" width="0">
35421 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35424 \begin_layout Plain Layout
35430 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
35433 \begin_layout Plain Layout
35441 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35444 \begin_layout Plain Layout
35450 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35453 \begin_layout Plain Layout
35461 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35464 \begin_layout Plain Layout
35470 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35473 \begin_layout Plain Layout
35481 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35484 \begin_layout Plain Layout
35490 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35493 \begin_layout Plain Layout
35501 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35504 \begin_layout Plain Layout
35510 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35513 \begin_layout Plain Layout
35515 \begin_inset space \thinspace{}
35519 \begin_inset space \thinspace{}
35529 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35532 \begin_layout Plain Layout
35538 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35541 \begin_layout Plain Layout
35543 \begin_inset space \thinspace{}
35547 \begin_inset space \thinspace{}
35557 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35560 \begin_layout Plain Layout
35566 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35569 \begin_layout Plain Layout
35570 scaled point (65536
35571 \begin_inset space \thinspace{}
35575 \begin_inset space \thinspace{}
35585 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35588 \begin_layout Plain Layout
35594 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35597 \begin_layout Plain Layout
35599 \begin_inset space \thinspace{}
35603 \begin_inset space \thinspace{}
35613 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35616 \begin_layout Plain Layout
35622 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35625 \begin_layout Plain Layout
35627 \begin_inset space \thinspace{}
35631 \begin_inset Formula $\approx$
35635 \begin_inset space \thinspace{}
35645 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35648 \begin_layout Plain Layout
35654 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35657 \begin_layout Plain Layout
35659 \begin_inset space \thinspace{}
35663 \begin_inset space \thinspace{}
35673 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35676 \begin_layout Plain Layout
35682 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35685 \begin_layout Plain Layout
35686 % of original image width
35693 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35696 \begin_layout Plain Layout
35702 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35705 \begin_layout Plain Layout
35713 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35716 \begin_layout Plain Layout
35722 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35725 \begin_layout Plain Layout
35733 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35736 \begin_layout Plain Layout
35742 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35745 \begin_layout Plain Layout
35753 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35756 \begin_layout Plain Layout
35762 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35765 \begin_layout Plain Layout
35773 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35776 \begin_layout Plain Layout
35782 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35785 \begin_layout Plain Layout
35793 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35796 \begin_layout Plain Layout
35802 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35805 \begin_layout Plain Layout
35813 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35816 \begin_layout Plain Layout
35822 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35825 \begin_layout Plain Layout
35837 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35840 \begin_layout Plain Layout
35846 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35849 \begin_layout Plain Layout
35861 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35864 \begin_layout Plain Layout
35870 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
35873 \begin_layout Plain Layout
35875 \begin_inset space \thinspace{}
35879 \begin_inset space \thinspace{}
35900 \begin_layout Chapter
35901 Output File Formats with Graphics
35902 \begin_inset CommandInset label
35904 name "cha:Output-File-Formats"
35911 \begin_layout Section
35913 \begin_inset Index idx
35916 \begin_layout Plain Layout
35923 \begin_inset Index idx
35926 \begin_layout Plain Layout
35931 \begin_layout Plain Layout
35942 \begin_layout Plain Layout
35957 \begin_layout Standard
35958 This file type has the extension
35959 \begin_inset Quotes eld
35967 \begin_inset Quotes erd
35972 \begin_inset Quotes eld
35976 \begin_inset Quotes erd
35979 (DVI), because it is completely portable; you can move them from one machine
35980 to another without needing to do any sort of conversion.
35981 At the time when this file-format was developed, this was no matter of
35983 DVIs are used for quick previews and as pre-stage for other output formats,
35987 \begin_layout Standard
35988 \begin_inset Note Greyedout
35991 \begin_layout Plain Layout
35996 DVI-files do not contain images; they will only be a linked.
36001 So don't forget this, if you move your
36005 file to another computer.
36006 This property can also slow down your computer when you view the DVI, because
36007 the DVI-viewer has to convert the image in the background to make it visible
36008 when you scroll in the DVI.
36009 So it is recommended that you use PDF for files with many images.
36012 \begin_layout Standard
36013 You can export your document to DVI by using the menu
36015 File\SpecialChar \menuseparator
36016 Export\SpecialChar \menuseparator
36020 You can view your document as DVI via the
36024 menu or by using the toolbar button
36025 \begin_inset Graphics
36026 filename ../images/buffer-view_dvi.png
36028 scaleBeforeRotation
36035 \begin_layout Section
36037 \begin_inset CommandInset label
36039 name "sec:PostScript"
36044 \begin_inset Index idx
36047 \begin_layout Plain Layout
36048 File Formats ! PostScript
36054 \begin_inset Index idx
36057 \begin_layout Plain Layout
36062 \begin_layout Plain Layout
36073 \begin_layout Plain Layout
36088 \begin_layout Standard
36089 This file type has the extension
36090 \begin_inset Quotes eld
36098 \begin_inset Quotes erd
36102 PostScript was developed by the company
36106 as a printer language.
36107 The file therefore contains commands that the printer uses to print the
36109 PostScript can be seen as a
36110 \begin_inset Quotes eld
36113 programming language
36114 \begin_inset Quotes erd
36117 ; you can calculate with it and draw diagrams and images
36121 \begin_layout Plain Layout
36122 If you are interested to learn more about this, have a look at the LaTeX-package
36128 \begin_inset CommandInset citation
36140 Due to this ability, the files are often bigger than PDFs.
36143 \begin_layout Standard
36144 PostScript can only contain images in the format
36145 \begin_inset Quotes eld
36148 Encapsulated PostScript
36149 \begin_inset Quotes erd
36152 (EPS, file extension
36153 \begin_inset Quotes eld
36161 \begin_inset Quotes erd
36165 As LyX allows you to use any known image format in your document, it has
36166 to convert images in the background to EPS.
36168 \begin_inset space ~
36172 \begin_inset space ~
36175 images in your document, LyX has to do 50
36176 \begin_inset space ~
36179 conversions whenever you view or export your document.
36180 This will slow down your work flow with LyX drastically.
36181 So if you plan to use PostScript, you can insert your images directly as
36182 EPS to avoid this problem.
36185 \begin_layout Standard
36186 You can export your document to PostScript using the menu
36188 File\SpecialChar \menuseparator
36189 Export\SpecialChar \menuseparator
36193 You can view your document as PostScript via the
36197 menu or by using the toolbar button
36198 \begin_inset Graphics
36199 filename ../images/buffer-view_ps.png
36201 scaleBeforeRotation
36208 \begin_layout Section
36210 \begin_inset Index idx
36213 \begin_layout Plain Layout
36220 \begin_inset Index idx
36223 \begin_layout Plain Layout
36232 \begin_layout Standard
36233 This file type has the extension
36234 \begin_inset Quotes eld
36242 \begin_inset Quotes erd
36247 \begin_inset Quotes eld
36250 Portable Document Format
36251 \begin_inset Quotes erd
36254 (PDF) was developed by
36258 as a derivative of PostScript.
36259 It is more compressed and it uses fewer commands than PostScript.
36261 \begin_inset Quotes eld
36265 \begin_inset Quotes erd
36268 implies, it can be processed at any computer system and the printed output
36269 looks exactly the same.
36272 \begin_layout Standard
36273 PDF can contain images in its own PDF format, in the format
36274 \begin_inset Quotes eld
36277 Joint Photographic Experts Group
36278 \begin_inset Quotes erd
36281 (JPG, file extension
36282 \begin_inset Quotes eld
36290 \begin_inset Quotes erd
36294 \begin_inset Quotes eld
36302 \begin_inset Quotes erd
36305 ), and in the format
36306 \begin_inset Quotes eld
36309 Portable Network Graphics
36310 \begin_inset Quotes erd
36313 (PNG, file extension
36314 \begin_inset Quotes eld
36322 \begin_inset Quotes erd
36326 Nevertheless you can use any other image format, because LyX converts them
36327 in the background to one of these formats.
36328 But as described in the section about PostScript, the image conversion
36329 will slow down your work flow.
36330 So it is recommended that you use images in one of the three mentioned
36334 \begin_layout Standard
36335 You can export your document to PDF via the menu
36337 File\SpecialChar \menuseparator
36340 in three different ways:
36343 \begin_layout Description
36345 \begin_inset space ~
36348 (ps2pdf) This uses the program
36352 that creates a PDF from a PostScript-version of your file.
36353 The PostScript-version is produced by the program
36357 which uses a DVI-version as intermediate step.
36358 So this export variant consists of three conversions.
36361 \begin_layout Description
36363 \begin_inset space ~
36366 (dvipdfm) This uses the program
36370 that converts your file in the background to DVI and in a second step to
36374 \begin_layout Description
36376 \begin_inset space ~
36379 (pdflatex) This uses the program
36383 that converts your file directly to PDF.
36386 \begin_layout Standard
36387 It is recommended that you use
36390 \begin_inset space ~
36399 supports all features of actual PDF-versions, is quick and works stable.
36404 is not under development and therefore a bit outdated.
36407 \begin_layout Standard
36408 You can view your document as PDF via the
36412 menu or by using the toolbar button
36413 \begin_inset Graphics
36414 filename ../images/buffer-view_pdf2.png
36416 scaleBeforeRotation
36427 \begin_inset space ~
36435 \begin_layout Chapter
36436 Explanation of Equation
36437 \begin_inset space ~
36441 \begin_inset CommandInset ref
36448 \begin_inset CommandInset label
36450 name "cha:Explanation-of-Equation"
36457 \begin_layout Standard
36458 We can calculate the total width of
36463 \begin_inset Formula $W_{\mathrm{tot\, n}}$
36469 \begin_layout Standard
36470 \begin_inset Formula
36472 W_{\mathrm{tot}\, n}=n\cdot(W_{g\, n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}
36478 \begin_inset Formula $W_{g\, n}$
36481 is the given width of all cells,
36487 is the LaTeX-length between the cell text and the cell border (its default
36489 \begin_inset space \thinspace{}
36499 is the thickness of the cell border line, the default is 0.4
36500 \begin_inset space \thinspace{}
36506 \begin_layout Standard
36508 \begin_inset space ~
36512 \begin_inset CommandInset ref
36514 reference "eq:Wtot_n"
36518 , the total width of a multicolumn
36519 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
36525 \begin_layout Standard
36526 \begin_inset Formula
36528 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}
36536 \begin_layout Standard
36537 By setting equation
36538 \begin_inset space ~
36542 \begin_inset CommandInset ref
36544 reference "eq:Wtot_n"
36549 \begin_inset CommandInset ref
36551 reference "eq:Wtot_mult"
36555 equal we can calculate the needed given width
36556 \begin_inset Formula $W_{g\, n}$
36563 columns are spanned, so that each column has a total width of
36564 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
36570 \begin_layout Standard
36571 \begin_inset Formula
36573 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n
36581 \begin_layout Bibliography
36582 \labelwidthstring Bibliography
36583 \begin_inset CommandInset bibitem
36584 LatexCommand bibitem
36585 key "latexcompanion"
36589 Frank Mittelbach and Michel Goossens:
36591 The LaTeX Companion Second Edition.
36594 Addison-Wesley, 2004
36597 \begin_layout Bibliography
36598 \labelwidthstring Bibliography
36599 \begin_inset CommandInset bibitem
36600 LatexCommand bibitem
36605 Helmut Kopka and Patrick W.
36608 A Guide to LaTeX Fourth Edition.
36611 Addison-Wesley, 2003
36614 \begin_layout Bibliography
36615 \labelwidthstring Bibliography
36616 \begin_inset CommandInset bibitem
36617 LatexCommand bibitem
36624 LaTeX: A Document Preparation System.
36627 Addison-Wesley, second edition, 1994
36630 \begin_layout Bibliography
36631 \labelwidthstring Bibliography
36632 \begin_inset CommandInset bibitem
36633 LatexCommand bibitem
36638 Documentation of the LaTeX-package
36641 \begin_inset CommandInset href
36644 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
36651 \begin_inset Index idx
36654 \begin_layout Plain Layout
36655 LaTeX-packages ! booktabs
36663 \begin_layout Bibliography
36664 \labelwidthstring Bibliography
36665 \begin_inset CommandInset bibitem
36666 LatexCommand bibitem
36671 Documentation of the LaTeX-package
36674 \begin_inset CommandInset href
36677 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf"
36684 \begin_inset Index idx
36687 \begin_layout Plain Layout
36688 LaTeX-packages ! caption
36696 \begin_layout Bibliography
36697 \labelwidthstring Bibliography
36698 \begin_inset CommandInset bibitem
36699 LatexCommand bibitem
36704 Documentation of the LaTeX-package
36707 \begin_inset CommandInset href
36710 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
36717 \begin_inset Index idx
36720 \begin_layout Plain Layout
36721 LaTeX-packages ! endfloat
36729 \begin_layout Bibliography
36730 \labelwidthstring Bibliography
36731 \begin_inset CommandInset bibitem
36732 LatexCommand bibitem
36737 Documentation of the LaTeX-package
36740 \begin_inset CommandInset href
36743 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/wrapfig/wrapfig.sty"
36750 \begin_inset Index idx
36753 \begin_layout Plain Layout
36754 LaTeX-packages ! wrapfig
36758 \begin_layout Plain Layout
36775 \begin_layout Bibliography
36776 \labelwidthstring Bibliography
36777 \begin_inset CommandInset bibitem
36778 LatexCommand bibitem
36783 Documentation of the LaTeX-package
36786 \begin_inset CommandInset href
36789 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
36796 \begin_inset Index idx
36799 \begin_layout Plain Layout
36800 LaTeX-packages ! footmisc
36808 \begin_layout Bibliography
36809 \labelwidthstring Bibliography
36810 \begin_inset CommandInset bibitem
36811 LatexCommand bibitem
36816 Documentation of the LaTeX-package
36819 \begin_inset CommandInset href
36822 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
36829 \begin_inset Index idx
36832 \begin_layout Plain Layout
36833 LaTeX-packages ! hyperref
36841 \begin_layout Bibliography
36842 \labelwidthstring Bibliography
36843 \begin_inset CommandInset bibitem
36844 LatexCommand bibitem
36849 Documentation of the LaTeX-package
36852 \begin_inset CommandInset href
36855 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
36862 \begin_inset Index idx
36865 \begin_layout Plain Layout
36866 LaTeX-packages ! hyperref
36874 \begin_layout Bibliography
36875 \labelwidthstring Bibliography
36876 \begin_inset CommandInset bibitem
36877 LatexCommand bibitem
36882 Documentation of the LaTeX-package
36885 \begin_inset CommandInset href
36888 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf"
36895 \begin_inset Index idx
36898 \begin_layout Plain Layout
36899 LaTeX-packages ! KOMA-Script
36907 \begin_layout Bibliography
36908 \labelwidthstring Bibliography
36909 \begin_inset CommandInset bibitem
36910 LatexCommand bibitem
36915 Documentation of the LaTeX-package
36918 \begin_inset CommandInset href
36921 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
36928 \begin_inset Index idx
36931 \begin_layout Plain Layout
36932 LaTeX-packages ! listings
36940 \begin_layout Bibliography
36941 \labelwidthstring Bibliography
36942 \begin_inset CommandInset bibitem
36943 LatexCommand bibitem
36948 Documentation of the LaTeX-package
36951 \begin_inset CommandInset href
36954 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
36961 \begin_inset Index idx
36964 \begin_layout Plain Layout
36965 LaTeX-packages ! marginnote
36973 \begin_layout Bibliography
36974 \labelwidthstring Bibliography
36975 \begin_inset CommandInset bibitem
36976 LatexCommand bibitem
36981 Documentation of the LaTeX-package
36984 \begin_inset CommandInset href
36987 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/lettrine.pdf"
36994 \begin_inset CommandInset href
36997 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/demo.pdf"
37002 \begin_inset Index idx
37005 \begin_layout Plain Layout
37006 LaTeX-packages ! lettrine
37014 \begin_layout Bibliography
37015 \labelwidthstring Bibliography
37016 \begin_inset CommandInset bibitem
37017 LatexCommand bibitem
37022 Web page of the LaTeX-package
37025 \begin_inset CommandInset href
37028 target "http://tug.org/PSTricks/"
37035 \begin_inset Index idx
37038 \begin_layout Plain Layout
37039 LaTeX-packages ! PSTricks
37047 \begin_layout Bibliography
37048 \labelwidthstring Bibliography
37049 \begin_inset CommandInset bibitem
37050 LatexCommand bibitem
37055 Documentation of the LaTeX-package
37058 \begin_inset CommandInset href
37061 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
37068 \begin_inset Index idx
37071 \begin_layout Plain Layout
37072 LaTeX-packages ! sidecap
37080 \begin_layout Bibliography
37081 \labelwidthstring Bibliography
37082 \begin_inset CommandInset bibitem
37083 LatexCommand bibitem
37088 Documentation of the LaTeX-package
37091 \begin_inset CommandInset href
37094 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
37101 \begin_inset Index idx
37104 \begin_layout Plain Layout
37105 LaTeX-packages ! prettyref
37113 \begin_layout Bibliography
37114 \labelwidthstring Bibliography
37115 \begin_inset CommandInset bibitem
37116 LatexCommand bibitem
37121 Documentation of the LaTeX-package
37124 \begin_inset CommandInset href
37127 target "http://www.ctan.org/tex-archive/macros/latex/contrib/refstyle/doc/latex/refstyle/refstyle.pdf"
37134 \begin_inset Index idx
37137 \begin_layout Plain Layout
37138 LaTeX-packages ! refstyle
37146 \begin_layout Bibliography
37147 \labelwidthstring Bibliography
37148 \begin_inset CommandInset bibitem
37149 LatexCommand bibitem
37155 \begin_inset CommandInset href
37158 target "http://wiki.lyx.org/LyX/NewInLyX20"
37162 about new features in
37169 \begin_layout Standard
37170 \begin_inset CommandInset index_print
37171 LatexCommand printindex