1 #LyX 2.0.0svn 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 % provides special table cell alignments
62 % increase the bottom float placement fraction
63 \renewcommand{\bottomfraction}{0.5}
65 % avoids that floats are placed before their
66 % corresponding section starts
67 \let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
69 % speed up the longtable calculation
70 \setcounter{LTchunksize}{100}
72 % used for scaled and rotated boxes
73 \@ifundefined{rotatebox}{\usepackage{graphicx}}{}
75 % used for colored tables
76 \@ifundefined{textcolor}
77 {\usepackage{color}}{}
78 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
79 \definecolor{lightgrey}{gray}{0.8}
81 % check for package colortbl
82 % used for colored table cells
84 \IfFileExists{colortbl.sty}
85 {\usepackage{colortbl}
86 \setboolean{colortbl}{true}}
87 {\setboolean{colortbl}{false}}
91 %\renewcommand{\multirowsetup}{\centering}
93 % used for book-style tables
96 % used to have extra space in table cells
97 \@ifundefined{extrarowheight}
98 {\usepackage{array}}{}
99 \setlength{\extrarowheight}{2pt}
101 % used for customized tables
104 {>{\centering\hspace{0pt}}m{#1}}
107 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
110 {>{\columncolor{#1}\hspace{0pt}}c}
112 \newcolumntype{V}{!{\vrule width 1.5pt}}
114 \newcolumntype{W}{!{\color{green}\vline}}
117 % insert additional vertical space of
118 % 1.5 mm between footnotes
120 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
122 % number algorithm floats within chapters
123 \numberwithin{algorithm}{chapter}
126 % ------------------------------------
127 % used to check for needed LaTeX packages
130 % check for package arydshln
131 % used for tables with dashed lines
132 \newboolean{arydshln}
133 \IfFileExists{arydshln.sty}
134 {\usepackage{arydshln}
135 \setboolean{arydshln}{true}}
136 {\setboolean{arydshln}{false}}
138 % check for package marginnote
139 % used for margin notes
140 \newboolean{marginnote}
141 \IfFileExists{marginnote.sty}
142 {\usepackage{marginnote}
143 \let\marginpar\marginnote
144 \setboolean{marginnote}{true}}
145 {\setboolean{marginnote}{false}}
147 % check for package sidecap
148 % used for captions on the side
150 \IfFileExists{sidecap.sty}
151 {\usepackage{sidecap}
152 \setboolean{sidecap}{true}}
153 {\setboolean{sidecap}{false}}
155 % redefine the \LyX macro for PDF bookmarks
156 \def\LyX{\texorpdfstring{%
157 L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
160 \options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
161 \use_default_options false
162 \maintain_unincluded_children false
168 \font_typewriter default
169 \font_default_family default
177 \default_output_format default
179 \bibtex_command default
180 \index_command default
184 \pdf_title "LyX's Figure, Table, Floats, Notes, and Boxes manual"
185 \pdf_author "LyX Team, Uwe Stöhr"
186 \pdf_subject "LyX-documentation about figures, tables, floats, notes, and boxes"
187 \pdf_keywords "LyX, Tables, Figures, Floats, Boxes, Notes"
189 \pdf_bookmarksnumbered true
190 \pdf_bookmarksopen true
191 \pdf_bookmarksopenlevel 1
192 \pdf_breaklinks false
196 \pdf_pdfusetitle false
197 \pdf_quoted_options " linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
207 \paperorientation portrait
210 \notefontcolor #0000ff
217 \paragraph_separation skip
219 \quotes_language english
222 \paperpagestyle default
226 \tracking_changes false
227 \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
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"
1203 Two distorted images.
1204 Both images are in the image settings group named
1205 \begin_inset Quotes eld
1209 \begin_inset Quotes erd
1225 \begin_layout Standard
1226 \begin_inset Newpage newpage
1232 \begin_layout Section
1234 \begin_inset CommandInset label
1236 name "sec:Image-Formats"
1241 \begin_inset Index idx
1244 \begin_layout Plain Layout
1251 \begin_inset Index idx
1254 \begin_layout Plain Layout
1255 Figures ! Image Formats
1263 \begin_layout Standard
1264 You can insert images in any known file format.
1265 But as explained in appendix
1266 \begin_inset space ~
1270 \begin_inset CommandInset ref
1272 reference "cha:Output-File-Formats"
1276 , each output document format allows only a few image formats.
1277 LyX uses therefore the program
1281 in the background to convert the images to the right format.
1282 To increase your work flow by avoiding these conversions in the background,
1283 you can use only the image formats that can directly be embedded in the
1285 The output file formats are explained in appendix
1286 \begin_inset space ~
1290 \begin_inset CommandInset ref
1292 reference "cha:Output-File-Formats"
1299 \begin_layout Standard
1300 Similar to fonts there are two types of image formats:
1303 \begin_layout Description
1305 \begin_inset space ~
1308 images consist of pixel values, often in a compressed form.
1309 They are therefore not fully scalable and look pixelated in large zooms.
1310 Well-known bitmap image formats are
1311 \begin_inset Quotes eld
1314 Graphics Interchange Format
1315 \begin_inset Quotes erd
1318 (GIF, file extension
1319 \begin_inset Quotes eld
1327 \begin_inset Quotes erd
1331 \begin_inset Index idx
1334 \begin_layout Plain Layout
1339 \begin_layout Plain Layout
1350 \begin_layout Plain Layout
1363 \begin_inset Quotes eld
1366 Portable Network Graphics
1367 \begin_inset Quotes erd
1370 (PNG, file extension
1371 \begin_inset Quotes eld
1379 \begin_inset Quotes erd
1383 \begin_inset Index idx
1386 \begin_layout Plain Layout
1391 \begin_layout Plain Layout
1402 \begin_layout Plain Layout
1415 \begin_inset Quotes eld
1418 Joint Photographic Experts Group
1419 \begin_inset Quotes erd
1422 (JPG, file extension
1423 \begin_inset Quotes eld
1431 \begin_inset Quotes erd
1435 \begin_inset Quotes eld
1443 \begin_inset Quotes erd
1447 \begin_inset Index idx
1450 \begin_layout Plain Layout
1455 \begin_layout Plain Layout
1466 \begin_layout Plain Layout
1481 \begin_layout Description
1483 \begin_inset space ~
1486 images consist of vectors and can therefore be scaled to any size without
1488 The scaling ability is necessary if you want to create presentations, because
1489 presentations are always scaled by the video projector.
1490 Scaling is also useful for online documents to let the user zoom into diagrams.
1491 \begin_inset Newline newline
1494 Well-known scalable image formats are
1495 \begin_inset Quotes eld
1498 Scalable Vector Graphics
1499 \begin_inset Quotes erd
1502 (SVG, file extension
1503 \begin_inset Quotes eld
1511 \begin_inset Quotes erd
1515 \begin_inset Index idx
1518 \begin_layout Plain Layout
1523 \begin_layout Plain Layout
1534 \begin_layout Plain Layout
1547 \begin_inset Quotes eld
1550 Encapsulated PostScript
1551 \begin_inset Quotes erd
1554 (EPS, file extension
1555 \begin_inset Quotes eld
1563 \begin_inset Quotes erd
1567 \begin_inset Index idx
1570 \begin_layout Plain Layout
1575 \begin_layout Plain Layout
1586 \begin_layout Plain Layout
1599 \begin_inset Quotes eld
1602 Portable Document Format
1603 \begin_inset Quotes erd
1606 (PDF, file extension
1607 \begin_inset Quotes eld
1615 \begin_inset Quotes erd
1619 \begin_inset Index idx
1622 \begin_layout Plain Layout
1629 \begin_inset Quotes eld
1633 \begin_inset Quotes erd
1636 (WMF, file extension
1637 \begin_inset Quotes eld
1645 \begin_inset Quotes erd
1649 \begin_inset Index idx
1652 \begin_layout Plain Layout
1657 \begin_layout Plain Layout
1668 \begin_layout Plain Layout
1682 \begin_inset Quotes eld
1686 \begin_inset Quotes erd
1689 , because you can convert any bitmap image to a PDF or EPS-image and the
1690 result will still be a bitmap image.
1691 In such cases only a header with the image properties is added to the original
1696 \begin_layout Plain Layout
1697 In the case of PDF, the original image is additionally compressed.
1703 The PDF-files generated by
1707 are for example bitmap images.
1710 \begin_layout Standard
1711 Normally it is not possible to convert a bitmap image into a scalable one,
1713 Only the image formats PDF and EPS can directly be embedded to PDF and
1714 PostScript output files, respectively.
1715 SVG and WMF-images are recalculated to bitmaps when the output file is
1716 generated because there is currently no adequate WMF/SVG
1717 \begin_inset Formula $\to$
1720 PDF/EPS converter available.
1723 \begin_layout Chapter
1725 \begin_inset Index idx
1728 \begin_layout Plain Layout
1737 \begin_layout Section
1739 \begin_inset Index idx
1742 \begin_layout Plain Layout
1743 Table ! Introduction
1751 \begin_layout Standard
1752 You can insert a table using either the toolbar button
1753 \begin_inset Graphics
1754 filename ../images/tabular-insert.png
1762 Insert\SpecialChar \menuseparator
1766 The toolbar button offers you a graphical selection: move the mouse to
1767 set the column/row number of the table that should be created and then
1768 press a mouse button.
1769 When you use the menu to create a table, a dialog will appear, asking you
1770 for the number of rows and columns.
1771 \begin_inset Newline newline
1774 The default table has lines around any cell and the first row appears separated
1775 from the rest of the table.
1776 This separation occurs due to a double line: The cells of the first row
1777 have a line below them and the cells of the second row have a line above
1779 Here is an example table:
1782 \begin_layout Standard
1784 \begin_inset Tabular
1785 <lyxtabular version="3" rows="4" columns="4">
1786 <features tabularvalignment="middle">
1787 <column alignment="center" valignment="top" width="0">
1788 <column alignment="center" valignment="top" width="0">
1789 <column alignment="center" valignment="top" width="0">
1790 <column alignment="center" valignment="top" width="0">
1792 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1795 \begin_layout Plain Layout
1801 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1804 \begin_layout Plain Layout
1819 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1822 \begin_layout Plain Layout
1828 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1831 \begin_layout Plain Layout
1839 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1842 \begin_layout Plain Layout
1857 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1860 \begin_layout Plain Layout
1866 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1869 \begin_layout Plain Layout
1875 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1878 \begin_layout Plain Layout
1886 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1889 \begin_layout Plain Layout
1904 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1907 \begin_layout Plain Layout
1913 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1916 \begin_layout Plain Layout
1922 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1925 \begin_layout Plain Layout
1933 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1936 \begin_layout Plain Layout
1951 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1954 \begin_layout Plain Layout
1960 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1963 \begin_layout Plain Layout
1969 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1972 \begin_layout Plain Layout
1986 \begin_layout Section
1988 \begin_inset Index idx
1991 \begin_layout Plain Layout
2000 \begin_layout Standard
2001 You can alter a table by clicking on it with the right mouse button, which
2002 brings up the table dialog.
2003 Here you can adjust the settings of that cell and row/column respectively
2004 where the cursor is currently placed.
2005 Most of the dialog options also work on selections.
2006 This means if you select more cells, columns or rows, the action is done
2007 for the whole selection.
2008 Note that there is a difference between selecting the
2012 of the cell, and the cell itself.
2013 You can alter tables with the following tabs of the table dialog:
2016 \begin_layout Description
2020 \begin_inset space ~
2025 Here you can set the horizontal alignment and the width of the current
2027 When you have set a width you can also adjust the vertical alignment of
2029 A given width will allow the cell to have line breaks and multiple paragraphs
2030 of text, see section
2031 \begin_inset space ~
2035 \begin_inset CommandInset ref
2037 reference "sub:Multiple-Lines-in"
2042 If you set no width, the column is as wide as the content of the widest
2044 \begin_inset Newline newline
2047 Furthermore, you can mark one or multiple cells of one row as a multicolumn
2049 \begin_inset space ~
2053 \begin_inset CommandInset ref
2055 reference "sub:Multicolumns"
2060 \begin_inset Newline newline
2063 The rotate check boxes rotate the current cell, a selection, or the whole
2064 table counter-clockwise by 90°.
2065 The rotation is not shown within LyX, only in the output.
2066 \begin_inset Newline newline
2070 \begin_inset Note Greyedout
2073 \begin_layout Plain Layout
2078 Not all DVI-viewers are able to display rotations.
2084 \begin_inset Newline newline
2087 It is also possible to enter a LaTeX-argument which is needed for special
2088 table formattings, see section
2089 \begin_inset space ~
2093 \begin_inset CommandInset ref
2095 reference "sub:Multicolumn-Calculations"
2100 \begin_inset CommandInset ref
2102 reference "sec:Colored-Tables"
2109 \begin_layout Description
2114 In this tab you can add and delete border lines for the current row/column.
2115 \begin_inset Newline newline
2118 Using the style option
2122 will convert the table to a formal table as described in section
2123 \begin_inset space ~
2127 \begin_inset CommandInset ref
2129 reference "sec:Formal-Tables"
2134 \begin_inset Newline newline
2137 You can also add here space to table rows as described in section
2138 \begin_inset space ~
2142 \begin_inset CommandInset ref
2144 reference "sub:Row-Spacing"
2151 \begin_layout Description
2156 This tab is to make a table a so called
2157 \begin_inset Quotes eld
2165 \begin_inset Quotes erd
2168 that can run over several pages.
2170 \begin_inset space ~
2174 \begin_inset CommandInset ref
2176 reference "sec:Longtables"
2181 \begin_inset CommandInset ref
2183 reference "sec:Special-Longtable-Issues"
2187 describe the longtable features in detail.
2190 \begin_layout Standard
2191 When the table dialog is open, you can move the cursor with the arrow keys
2192 from cell to cell and the property of the current cell will immediately
2193 be displayed in the dialog.
2196 \begin_layout Section
2198 \begin_inset Index idx
2201 \begin_layout Plain Layout
2210 \begin_layout Standard
2211 The table toolbar is an alternative to the table dialog to be able to alter
2213 It should normally appear at the bottom of LyX's main window when the cursor
2215 You can alternatively switch it on to appear always, by right-clicking
2216 in LyX's main menu bar.
2219 \begin_layout Standard
2220 The toolbar has the following icons:
2223 \begin_layout Labeling
2224 \labelwidthstring 00.00.0000
2225 \begin_inset Graphics
2226 filename ../images/tabular-feature_append-row.png
2231 adds a row below the current cell or selection
2234 \begin_layout Labeling
2235 \labelwidthstring 00.00.0000
2236 \begin_inset Graphics
2237 filename ../images/tabular-feature_append-column.png
2242 adds a column right beside the current cell or selection
2245 \begin_layout Labeling
2246 \labelwidthstring 00.00.0000
2247 \begin_inset Graphics
2248 filename ../images/tabular-feature_delete-row.png
2253 deletes the current row or selection
2256 \begin_layout Labeling
2257 \labelwidthstring 00.00.0000
2258 \begin_inset Graphics
2259 filename ../images/tabular-feature_delete-column.png
2264 deletes the current column or selection
2267 \begin_layout Labeling
2268 \labelwidthstring 00.00.0000
2269 \begin_inset Graphics
2270 filename ../images/tabular-feature_toggle-line-top.png
2275 adds a line at the top of the current cell / row or of a selection
2278 \begin_layout Labeling
2279 \labelwidthstring 00.00.0000
2280 \begin_inset Graphics
2281 filename ../images/tabular-feature_toggle-line-bottom.png
2286 adds a line at the bottom of the current cell / row or of a selection
2289 \begin_layout Labeling
2290 \labelwidthstring 00.00.0000
2291 \begin_inset Graphics
2292 filename ../images/tabular-feature_toggle-line-left.png
2297 adds a line at the left side of the current cell / row or of a selection
2300 \begin_layout Labeling
2301 \labelwidthstring 00.00.0000
2302 \begin_inset Graphics
2303 filename ../images/tabular-feature_toggle-line-right.png
2308 adds a line at the right side of the current cell / row or of a selection
2311 \begin_layout Labeling
2312 \labelwidthstring 00.00.0000
2313 \begin_inset Graphics
2314 filename ../images/tabular-feature_set-all-lines.png
2319 adds lines around the current or selected cells - if the current cell no
2320 multicolumn cell this also affects the current row and column
2323 \begin_layout Labeling
2324 \labelwidthstring 00.00.0000
2325 \begin_inset Graphics
2326 filename ../images/tabular-feature_unset-all-lines.png
2331 deletes all lines of the current or selected cells - if the current cell
2332 no multicolumn cell this also affects the current row and column
2335 \begin_layout Labeling
2336 \labelwidthstring 00.00.0000
2337 \begin_inset Graphics
2338 filename ../images/tabular-feature_m-align-left.png
2343 left-aligns the content of the current cell / column
2346 \begin_layout Labeling
2347 \labelwidthstring 00.00.0000
2348 \begin_inset Graphics
2349 filename ../images/tabular-feature_m-align-center.png
2354 centers the content of the current cell / column horizontally
2357 \begin_layout Labeling
2358 \labelwidthstring 00.00.0000
2359 \begin_inset Graphics
2360 filename ../images/tabular-feature_m-align-right.png
2365 right-aligns the content of the current cell / column
2368 \begin_layout Labeling
2369 \labelwidthstring 00.00.0000
2370 \begin_inset Graphics
2371 filename ../images/tabular-feature_m-valign-top.png
2376 aligns the content of the current cell vertically to the top
2379 \begin_layout Labeling
2380 \labelwidthstring 00.00.0000
2381 \begin_inset Graphics
2382 filename ../images/tabular-feature_m-valign-middle.png
2387 centers the content of the current cell vertically
2390 \begin_layout Labeling
2391 \labelwidthstring 00.00.0000
2392 \begin_inset Graphics
2393 filename ../images/tabular-feature_m-valign-bottom.png
2398 aligns the content of the current cell vertically to the bottom
2401 \begin_layout Labeling
2402 \labelwidthstring 00.00.0000
2403 \begin_inset Graphics
2404 filename ../images/tabular-feature_set-rotate-cell.png
2409 rotates the current cell or selection counter-clockwise by 90°
2412 \begin_layout Labeling
2413 \labelwidthstring 00.00.0000
2414 \begin_inset Graphics
2415 filename ../images/tabular-feature_set-rotate-tabular.png
2420 rotates the whole table counter-clockwise by 90°
2423 \begin_layout Labeling
2424 \labelwidthstring 00.00.0000
2425 \begin_inset Graphics
2426 filename ../images/tabular-feature_multicolumn.png
2431 sets the current cell or selection as a multicolumn
2434 \begin_layout Standard
2435 \begin_inset Note Greyedout
2438 \begin_layout Plain Layout
2443 For the output the vertical alignment of the first cell in a row is used
2444 for all following cells in the row.
2452 \begin_layout Section
2454 \begin_inset Index idx
2457 \begin_layout Plain Layout
2466 \begin_layout Standard
2467 Additionally to the table dialog and toolbar, the menu
2469 Edit\SpecialChar \menuseparator
2472 allows you to add and delete border lines for the current row/column and
2473 to set the current selection as multicolumn.
2474 The menu is only available when the cursor is inside a table.
2477 \begin_layout Section
2479 \begin_inset CommandInset label
2481 name "sec:Table-Floats"
2486 \begin_inset Index idx
2489 \begin_layout Plain Layout
2496 \begin_inset Index idx
2499 \begin_layout Plain Layout
2508 \begin_layout Standard
2509 For general explanations about floats, have a look at section
2510 \begin_inset space ~
2514 \begin_inset CommandInset ref
2516 reference "sec:FloatIntroduction"
2523 \begin_layout Standard
2524 \begin_inset Float table
2530 \begin_layout Plain Layout
2531 \begin_inset Caption
2533 \begin_layout Plain Layout
2534 \begin_inset CommandInset label
2536 name "tab:a table float"
2548 \begin_layout Plain Layout
2550 \begin_inset Tabular
2551 <lyxtabular version="3" rows="3" columns="3">
2552 <features tabularvalignment="middle">
2553 <column alignment="center" valignment="top" width="0pt">
2554 <column alignment="center" valignment="top" width="0pt">
2555 <column alignment="center" valignment="top" width="0pt">
2557 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2560 \begin_layout Plain Layout
2575 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2578 \begin_layout Plain Layout
2593 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2596 \begin_layout Plain Layout
2613 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2616 \begin_layout Plain Layout
2631 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2634 \begin_layout Plain Layout
2649 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2652 \begin_layout Plain Layout
2669 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2672 \begin_layout Plain Layout
2682 \begin_inset Formula $\int x^{2}dx$
2690 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2693 \begin_layout Plain Layout
2703 \begin_inset Formula $\left[\begin{array}{cc}
2714 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2717 \begin_layout Plain Layout
2727 \begin_inset Formula $1+1=2$
2748 \begin_layout Standard
2749 Table floats can be inserted using the menu
2751 Insert\SpecialChar \menuseparator
2752 Float\SpecialChar \menuseparator
2755 or the toolbar button
2756 \begin_inset Graphics
2757 filename ../images/float-insert_table.png
2766 \begin_layout Standard
2767 The float appears as a collapsible box with a caption that has the label
2769 \begin_inset Quotes eld
2773 \begin_inset space ~
2777 \begin_inset Quotes erd
2780 (# is the actual table number).
2781 You can insert tables in the float above or below the caption.
2784 \begin_layout Standard
2786 \begin_inset space ~
2790 \begin_inset CommandInset ref
2792 reference "tab:a table float"
2796 is an example table within a table float.
2799 \begin_layout Standard
2800 Having the caption above the table is the common rule that is unfortunately
2801 not supported in LaTeX's standard classes.
2802 This means that, if you are using the document classes
2818 , there will be no space between the caption and the table.
2819 To insert the needed space, add the following option to the load command
2820 of the LaTeX-package
2825 \begin_inset Index idx
2828 \begin_layout Plain Layout
2829 LaTeX-packages ! caption
2834 in your document preamble
2838 \begin_layout Plain Layout
2839 For more information have a look at section
2840 \begin_inset space ~
2844 \begin_inset CommandInset ref
2846 reference "sec:Caption-Placement"
2858 \begin_layout Standard
2864 \begin_layout Standard
2869 , which is described in section
2870 \begin_inset space ~
2874 \begin_inset CommandInset ref
2876 reference "sec:Caption-Formatting"
2880 , is used to adjust the caption format.
2883 \begin_layout Standard
2884 \begin_inset Index idx
2887 \begin_layout Plain Layout
2888 References ! to Tables
2893 Tables can be cross-referenced in the text by referencing their label.
2894 To do this insert a label in the caption using the menu
2896 Insert\SpecialChar \menuseparator
2899 or the toolbar button
2900 \begin_inset Graphics
2901 filename ../images/label-insert.png
2908 You can now refer to the label using the menu
2910 Insert\SpecialChar \menuseparator
2912 \begin_inset space ~
2917 or the toolbar button
2918 \begin_inset Graphics
2919 filename ../images/dialog-show-new-inset_ref.png
2926 \begin_inset Newline newline
2929 Referencing is explained in detail in section
2930 \begin_inset space ~
2934 \begin_inset CommandInset ref
2936 reference "sec:Referencing-Floats"
2943 \begin_layout Section
2945 \begin_inset CommandInset label
2947 name "sec:Longtables"
2952 \begin_inset Index idx
2955 \begin_layout Plain Layout
2962 \begin_inset Index idx
2965 \begin_layout Plain Layout
2974 \begin_layout Standard
2975 If the table is too long to fit on one page, you can use the option
2978 \begin_inset space ~
2982 \begin_inset space ~
2991 of the table dialog to split the table automatically over more pages.
2992 Doing this enables the following options:
2995 \begin_layout Description
2996 Header: The current row is defined to be a header row that appears on all
2997 pages of the longtable; except for the first page, if
3000 \begin_inset space ~
3006 This is therefore called the main header.
3009 \begin_layout Description
3011 \begin_inset space ~
3014 header: The current row is defined to be a header row that appears on the
3015 first page of the longtable.
3018 \begin_layout Description
3019 Footer: The current row is defined to be a footer row that appears on all
3020 pages of the longtable; except for the last page, if
3023 \begin_inset space ~
3031 \begin_layout Description
3033 \begin_inset space ~
3036 footer: The current row is defined to be a footer row that appears on the
3037 last page of the longtable.
3040 \begin_layout Description
3041 Caption: The current row contains the table caption.
3042 The row is reset as single column and a caption is inserted.
3043 More about longtable captions is explained in sec.
3044 \begin_inset space \thinspace{}
3048 \begin_inset CommandInset ref
3050 reference "sub:Longtable-Captions"
3057 \begin_layout Standard
3058 You can also specify a row where the table is split.
3059 See the following longtable to see how it works:
3062 \begin_layout Standard
3064 \begin_inset Tabular
3065 <lyxtabular version="3" rows="69" columns="3">
3066 <features islongtable="true" longtabularalignment="center">
3067 <column alignment="left" valignment="top" width="0cm">
3068 <column alignment="left" valignment="top" width="0pt">
3069 <column alignment="center" valignment="top" width="0pt">
3070 <row endfirsthead="true">
3071 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3074 \begin_layout Plain Layout
3077 Example Phone List (ignore the names)
3082 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3085 \begin_layout Plain Layout
3091 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3094 \begin_layout Plain Layout
3101 <row endfirsthead="true">
3102 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3105 \begin_layout Plain Layout
3113 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3116 \begin_layout Plain Layout
3122 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3125 \begin_layout Plain Layout
3134 <row endhead="true">
3135 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3138 \begin_layout Plain Layout
3146 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3149 \begin_layout Plain Layout
3155 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3158 \begin_layout Plain Layout
3165 <row endhead="true">
3166 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3169 \begin_layout Plain Layout
3177 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3180 \begin_layout Plain Layout
3186 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3189 \begin_layout Plain Layout
3198 <row endfoot="true">
3199 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
3202 \begin_layout Plain Layout
3203 continued on next page
3208 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3211 \begin_layout Plain Layout
3217 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3220 \begin_layout Plain Layout
3228 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3231 \begin_layout Plain Layout
3239 <cell alignment="center" valignment="top" usebox="none">
3242 \begin_layout Plain Layout
3248 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3251 \begin_layout Plain Layout
3259 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3262 \begin_layout Plain Layout
3270 <cell alignment="center" valignment="top" usebox="none">
3273 \begin_layout Plain Layout
3279 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3282 \begin_layout Plain Layout
3290 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3293 \begin_layout Plain Layout
3301 <cell alignment="center" valignment="top" usebox="none">
3304 \begin_layout Plain Layout
3310 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3313 \begin_layout Plain Layout
3321 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3324 \begin_layout Plain Layout
3332 <cell alignment="center" valignment="top" usebox="none">
3335 \begin_layout Plain Layout
3341 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3344 \begin_layout Plain Layout
3352 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3355 \begin_layout Plain Layout
3363 <cell alignment="center" valignment="top" usebox="none">
3366 \begin_layout Plain Layout
3372 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3375 \begin_layout Plain Layout
3383 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3386 \begin_layout Plain Layout
3394 <cell alignment="center" valignment="top" usebox="none">
3397 \begin_layout Plain Layout
3403 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3406 \begin_layout Plain Layout
3414 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3417 \begin_layout Plain Layout
3425 <cell alignment="center" valignment="top" usebox="none">
3428 \begin_layout Plain Layout
3434 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3437 \begin_layout Plain Layout
3445 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3448 \begin_layout Plain Layout
3456 <cell alignment="center" valignment="top" usebox="none">
3459 \begin_layout Plain Layout
3465 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3468 \begin_layout Plain Layout
3476 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3479 \begin_layout Plain Layout
3487 <cell alignment="center" valignment="top" usebox="none">
3490 \begin_layout Plain Layout
3496 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3499 \begin_layout Plain Layout
3507 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3510 \begin_layout Plain Layout
3518 <cell alignment="center" valignment="top" usebox="none">
3521 \begin_layout Plain Layout
3527 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3530 \begin_layout Plain Layout
3538 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3541 \begin_layout Plain Layout
3549 <cell alignment="center" valignment="top" usebox="none">
3552 \begin_layout Plain Layout
3558 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3561 \begin_layout Plain Layout
3569 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3572 \begin_layout Plain Layout
3580 <cell alignment="center" valignment="top" usebox="none">
3583 \begin_layout Plain Layout
3589 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3592 \begin_layout Plain Layout
3600 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3603 \begin_layout Plain Layout
3611 <cell alignment="center" valignment="top" usebox="none">
3614 \begin_layout Plain Layout
3620 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3623 \begin_layout Plain Layout
3631 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3634 \begin_layout Plain Layout
3642 <cell alignment="center" valignment="top" usebox="none">
3645 \begin_layout Plain Layout
3651 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3654 \begin_layout Plain Layout
3662 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3665 \begin_layout Plain Layout
3673 <cell alignment="center" valignment="top" usebox="none">
3676 \begin_layout Plain Layout
3682 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3685 \begin_layout Plain Layout
3693 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3696 \begin_layout Plain Layout
3704 <cell alignment="center" valignment="top" usebox="none">
3707 \begin_layout Plain Layout
3713 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3716 \begin_layout Plain Layout
3724 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3727 \begin_layout Plain Layout
3735 <cell alignment="center" valignment="top" usebox="none">
3738 \begin_layout Plain Layout
3744 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3747 \begin_layout Plain Layout
3755 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3758 \begin_layout Plain Layout
3766 <cell alignment="center" valignment="top" usebox="none">
3769 \begin_layout Plain Layout
3775 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3778 \begin_layout Plain Layout
3786 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3789 \begin_layout Plain Layout
3797 <cell alignment="center" valignment="top" usebox="none">
3800 \begin_layout Plain Layout
3806 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3809 \begin_layout Plain Layout
3817 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3820 \begin_layout Plain Layout
3828 <cell alignment="center" valignment="top" usebox="none">
3831 \begin_layout Plain Layout
3837 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3840 \begin_layout Plain Layout
3848 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3851 \begin_layout Plain Layout
3859 <cell alignment="center" valignment="top" usebox="none">
3862 \begin_layout Plain Layout
3868 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3871 \begin_layout Plain Layout
3879 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3882 \begin_layout Plain Layout
3890 <cell alignment="center" valignment="top" usebox="none">
3893 \begin_layout Plain Layout
3899 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3902 \begin_layout Plain Layout
3910 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3913 \begin_layout Plain Layout
3921 <cell alignment="center" valignment="top" usebox="none">
3924 \begin_layout Plain Layout
3930 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3933 \begin_layout Plain Layout
3941 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3944 \begin_layout Plain Layout
3952 <cell alignment="center" valignment="top" usebox="none">
3955 \begin_layout Plain Layout
3961 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3964 \begin_layout Plain Layout
3972 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3975 \begin_layout Plain Layout
3983 <cell alignment="center" valignment="top" usebox="none">
3986 \begin_layout Plain Layout
3992 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3995 \begin_layout Plain Layout
4003 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4006 \begin_layout Plain Layout
4014 <cell alignment="center" valignment="top" usebox="none">
4017 \begin_layout Plain Layout
4023 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4026 \begin_layout Plain Layout
4034 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4037 \begin_layout Plain Layout
4045 <cell alignment="center" valignment="top" usebox="none">
4048 \begin_layout Plain Layout
4054 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4057 \begin_layout Plain Layout
4065 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4068 \begin_layout Plain Layout
4076 <cell alignment="center" valignment="top" usebox="none">
4079 \begin_layout Plain Layout
4085 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4088 \begin_layout Plain Layout
4096 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4099 \begin_layout Plain Layout
4107 <cell alignment="center" valignment="top" usebox="none">
4110 \begin_layout Plain Layout
4116 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4119 \begin_layout Plain Layout
4127 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4130 \begin_layout Plain Layout
4138 <cell alignment="center" valignment="top" usebox="none">
4141 \begin_layout Plain Layout
4147 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4150 \begin_layout Plain Layout
4158 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4161 \begin_layout Plain Layout
4169 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4172 \begin_layout Plain Layout
4178 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4181 \begin_layout Plain Layout
4189 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4192 \begin_layout Plain Layout
4198 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4201 \begin_layout Plain Layout
4207 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4210 \begin_layout Plain Layout
4218 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4221 \begin_layout Plain Layout
4229 <cell alignment="center" valignment="top" usebox="none">
4232 \begin_layout Plain Layout
4238 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4241 \begin_layout Plain Layout
4249 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4252 \begin_layout Plain Layout
4260 <cell alignment="center" valignment="top" usebox="none">
4263 \begin_layout Plain Layout
4269 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4272 \begin_layout Plain Layout
4280 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4283 \begin_layout Plain Layout
4291 <cell alignment="center" valignment="top" usebox="none">
4294 \begin_layout Plain Layout
4300 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4303 \begin_layout Plain Layout
4311 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4314 \begin_layout Plain Layout
4322 <cell alignment="center" valignment="top" usebox="none">
4325 \begin_layout Plain Layout
4331 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4334 \begin_layout Plain Layout
4342 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4345 \begin_layout Plain Layout
4353 <cell alignment="center" valignment="top" usebox="none">
4356 \begin_layout Plain Layout
4362 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4365 \begin_layout Plain Layout
4373 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4376 \begin_layout Plain Layout
4384 <cell alignment="center" valignment="top" usebox="none">
4387 \begin_layout Plain Layout
4393 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4396 \begin_layout Plain Layout
4404 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4407 \begin_layout Plain Layout
4415 <cell alignment="center" valignment="top" usebox="none">
4418 \begin_layout Plain Layout
4424 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4427 \begin_layout Plain Layout
4435 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4438 \begin_layout Plain Layout
4446 <cell alignment="center" valignment="top" usebox="none">
4449 \begin_layout Plain Layout
4455 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4458 \begin_layout Plain Layout
4466 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4469 \begin_layout Plain Layout
4477 <cell alignment="center" valignment="top" usebox="none">
4480 \begin_layout Plain Layout
4486 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4489 \begin_layout Plain Layout
4497 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4500 \begin_layout Plain Layout
4508 <cell alignment="center" valignment="top" usebox="none">
4511 \begin_layout Plain Layout
4517 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4520 \begin_layout Plain Layout
4528 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4531 \begin_layout Plain Layout
4539 <cell alignment="center" valignment="top" usebox="none">
4542 \begin_layout Plain Layout
4548 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4551 \begin_layout Plain Layout
4559 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4562 \begin_layout Plain Layout
4570 <cell alignment="center" valignment="top" usebox="none">
4573 \begin_layout Plain Layout
4579 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4582 \begin_layout Plain Layout
4590 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4593 \begin_layout Plain Layout
4601 <cell alignment="center" valignment="top" usebox="none">
4604 \begin_layout Plain Layout
4610 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4613 \begin_layout Plain Layout
4621 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4624 \begin_layout Plain Layout
4632 <cell alignment="center" valignment="top" usebox="none">
4635 \begin_layout Plain Layout
4641 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4644 \begin_layout Plain Layout
4652 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4655 \begin_layout Plain Layout
4663 <cell alignment="center" valignment="top" usebox="none">
4666 \begin_layout Plain Layout
4672 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4675 \begin_layout Plain Layout
4683 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4686 \begin_layout Plain Layout
4694 <cell alignment="center" valignment="top" usebox="none">
4697 \begin_layout Plain Layout
4703 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4706 \begin_layout Plain Layout
4714 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4717 \begin_layout Plain Layout
4725 <cell alignment="center" valignment="top" usebox="none">
4728 \begin_layout Plain Layout
4734 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4737 \begin_layout Plain Layout
4745 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4748 \begin_layout Plain Layout
4756 <cell alignment="center" valignment="top" usebox="none">
4759 \begin_layout Plain Layout
4765 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4768 \begin_layout Plain Layout
4776 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4779 \begin_layout Plain Layout
4787 <cell alignment="center" valignment="top" usebox="none">
4790 \begin_layout Plain Layout
4796 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4799 \begin_layout Plain Layout
4807 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4810 \begin_layout Plain Layout
4818 <cell alignment="center" valignment="top" usebox="none">
4821 \begin_layout Plain Layout
4827 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4830 \begin_layout Plain Layout
4838 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4841 \begin_layout Plain Layout
4849 <cell alignment="center" valignment="top" usebox="none">
4852 \begin_layout Plain Layout
4858 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4861 \begin_layout Plain Layout
4869 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4872 \begin_layout Plain Layout
4880 <cell alignment="center" valignment="top" usebox="none">
4883 \begin_layout Plain Layout
4889 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4892 \begin_layout Plain Layout
4900 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4903 \begin_layout Plain Layout
4911 <cell alignment="center" valignment="top" usebox="none">
4914 \begin_layout Plain Layout
4920 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4923 \begin_layout Plain Layout
4931 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4934 \begin_layout Plain Layout
4942 <cell alignment="center" valignment="top" usebox="none">
4945 \begin_layout Plain Layout
4951 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4954 \begin_layout Plain Layout
4962 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4965 \begin_layout Plain Layout
4973 <cell alignment="center" valignment="top" usebox="none">
4976 \begin_layout Plain Layout
4982 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4985 \begin_layout Plain Layout
4993 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4996 \begin_layout Plain Layout
5004 <cell alignment="center" valignment="top" usebox="none">
5007 \begin_layout Plain Layout
5013 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5016 \begin_layout Plain Layout
5024 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5027 \begin_layout Plain Layout
5035 <cell alignment="center" valignment="top" usebox="none">
5038 \begin_layout Plain Layout
5044 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5047 \begin_layout Plain Layout
5055 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5058 \begin_layout Plain Layout
5066 <cell alignment="center" valignment="top" usebox="none">
5069 \begin_layout Plain Layout
5075 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5078 \begin_layout Plain Layout
5086 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5089 \begin_layout Plain Layout
5097 <cell alignment="center" valignment="top" usebox="none">
5100 \begin_layout Plain Layout
5106 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5109 \begin_layout Plain Layout
5117 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5120 \begin_layout Plain Layout
5128 <cell alignment="center" valignment="top" usebox="none">
5131 \begin_layout Plain Layout
5137 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5140 \begin_layout Plain Layout
5148 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5151 \begin_layout Plain Layout
5159 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5162 \begin_layout Plain Layout
5168 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5171 \begin_layout Plain Layout
5178 <row endlastfoot="true">
5179 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5182 \begin_layout Plain Layout
5188 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5191 \begin_layout Plain Layout
5197 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5200 \begin_layout Plain Layout
5215 \begin_layout Plain Layout
5219 addtocounter{table}{-1}
5225 \begin_inset Note Note
5228 \begin_layout Plain Layout
5229 See the first greyed-out note in section
5230 \begin_inset space ~
5234 \begin_inset CommandInset ref
5236 reference "sub:Longtable-Captions"
5240 for an explanation of this command.
5248 \begin_layout Subsection
5249 Footnotes in Longtables
5250 \begin_inset CommandInset label
5252 name "sub:Footnotes-in-Longtables"
5257 \begin_inset Index idx
5260 \begin_layout Plain Layout
5261 Longtables ! Footnotes
5269 \begin_layout Standard
5270 Footnotes can be inserted to every longtable cell.
5271 They appear at the bottom of the page where the table cell with the footnote
5274 \begin_inset space ~
5278 \begin_inset CommandInset ref
5280 reference "tab:DiffCaptions"
5284 has for example a footnote.
5287 \begin_layout Subsection
5289 \begin_inset Index idx
5292 \begin_layout Plain Layout
5293 Longtables ! Alignment
5301 \begin_layout Standard
5302 Longtables are by default centered.
5303 Unlike the alignment of the table columns and rows, the table alignment
5304 can currently not be changed in the table dialog.
5305 To change the alignment of longtables you have to change the value of the
5318 by inserting this line as TeX-Code before the corresponding longtable:
5321 \begin_layout Standard
5331 \begin_layout Standard
5332 where the value can have any of the units listed in Table
5333 \begin_inset space ~
5337 \begin_inset CommandInset ref
5339 reference "tab:Units"
5350 controls the horizontal distance from the left page border to the longtable,
5357 the distance from the right side.
5358 The default value for both lengths is
5364 , which is in this case the same as an horizontal fill in LyX.
5367 \begin_layout Standard
5368 The following longtable was left-aligned by setting
5375 \begin_inset space \thinspace{}
5382 \begin_layout Plain Layout
5396 \begin_layout Standard
5397 \begin_inset Tabular
5398 <lyxtabular version="3" rows="5" columns="5">
5399 <features islongtable="true" longtabularalignment="center">
5400 <column alignment="center" valignment="top" width="0">
5401 <column alignment="center" valignment="top" width="0">
5402 <column alignment="center" valignment="top" width="0">
5403 <column alignment="center" valignment="top" width="0">
5404 <column alignment="center" valignment="top" width="0">
5406 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5409 \begin_layout Plain Layout
5415 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5418 \begin_layout Plain Layout
5424 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5427 \begin_layout Plain Layout
5433 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5436 \begin_layout Plain Layout
5442 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5445 \begin_layout Plain Layout
5453 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5456 \begin_layout Plain Layout
5462 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5465 \begin_layout Plain Layout
5471 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5474 \begin_layout Plain Layout
5480 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5483 \begin_layout Plain Layout
5489 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5492 \begin_layout Plain Layout
5500 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5503 \begin_layout Plain Layout
5509 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5512 \begin_layout Plain Layout
5518 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5521 \begin_layout Plain Layout
5527 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5530 \begin_layout Plain Layout
5536 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5539 \begin_layout Plain Layout
5547 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5550 \begin_layout Plain Layout
5556 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5559 \begin_layout Plain Layout
5565 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5568 \begin_layout Plain Layout
5574 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5577 \begin_layout Plain Layout
5583 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5586 \begin_layout Plain Layout
5594 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5597 \begin_layout Plain Layout
5603 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5606 \begin_layout Plain Layout
5612 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5615 \begin_layout Plain Layout
5621 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5624 \begin_layout Plain Layout
5630 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5633 \begin_layout Plain Layout
5648 \begin_layout Plain Layout
5665 \begin_layout Plain Layout
5669 addtocounter{table}{-1}
5675 \begin_inset Note Note
5678 \begin_layout Plain Layout
5679 See the first greyed-out note in section
5680 \begin_inset space ~
5684 \begin_inset CommandInset ref
5686 reference "sub:Longtable-Captions"
5690 for an explanation of this command.
5698 \begin_layout Subsection
5700 \begin_inset Index idx
5703 \begin_layout Plain Layout
5704 Longtables ! Captions
5710 \begin_inset CommandInset label
5712 name "sub:Longtable-Captions"
5719 \begin_layout Standard
5720 A longtable cannot be put into a table float because floats can only be
5722 But the caption environment of floats can also be used for longtables when
5723 you use the longtable option
5727 as described in sec.
5728 \begin_inset space \thinspace{}
5732 \begin_inset CommandInset ref
5734 reference "sec:Longtables"
5739 Only one table row can contain the caption.
5742 \begin_layout Standard
5743 Here is a short longtable to see how it works:
5746 \begin_layout Standard
5747 \begin_inset Tabular
5748 <lyxtabular version="3" rows="6" columns="5">
5749 <features islongtable="true" longtabularalignment="center">
5750 <column alignment="center" valignment="top" width="0">
5751 <column alignment="center" valignment="top" width="0">
5752 <column alignment="center" valignment="top" width="0">
5753 <column alignment="center" valignment="top" width="0">
5754 <column alignment="center" valignment="top" width="0">
5755 <row caption="true">
5756 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
5759 \begin_layout Plain Layout
5760 \begin_inset Caption
5762 \begin_layout Plain Layout
5763 Longtable with caption
5764 \begin_inset Argument
5767 \begin_layout Plain Layout
5783 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5786 \begin_layout Plain Layout
5792 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5795 \begin_layout Plain Layout
5801 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5804 \begin_layout Plain Layout
5810 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5813 \begin_layout Plain Layout
5821 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5824 \begin_layout Plain Layout
5830 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5833 \begin_layout Plain Layout
5839 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5842 \begin_layout Plain Layout
5848 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5851 \begin_layout Plain Layout
5857 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5860 \begin_layout Plain Layout
5868 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5871 \begin_layout Plain Layout
5877 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5880 \begin_layout Plain Layout
5886 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5889 \begin_layout Plain Layout
5895 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5898 \begin_layout Plain Layout
5904 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5907 \begin_layout Plain Layout
5915 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5918 \begin_layout Plain Layout
5924 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5927 \begin_layout Plain Layout
5933 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5936 \begin_layout Plain Layout
5942 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5945 \begin_layout Plain Layout
5951 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5954 \begin_layout Plain Layout
5962 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5965 \begin_layout Plain Layout
5971 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5974 \begin_layout Plain Layout
5980 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5983 \begin_layout Plain Layout
5989 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5992 \begin_layout Plain Layout
5998 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6001 \begin_layout Plain Layout
6009 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6012 \begin_layout Plain Layout
6018 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6021 \begin_layout Plain Layout
6027 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6030 \begin_layout Plain Layout
6036 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6039 \begin_layout Plain Layout
6045 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6048 \begin_layout Plain Layout
6062 \begin_layout Standard
6063 \begin_inset VSpace medskip
6067 \begin_inset Note Greyedout
6070 \begin_layout Plain Layout
6074 \begin_inset space ~
6079 The table number is increased for for every longtable, even if you did
6080 not set a caption for it.
6081 For this reason you could have the case that e.
6082 \begin_inset space \thinspace{}
6086 \begin_inset space \space{}
6090 \begin_inset space ~
6094 \begin_inset space ~
6097 2.1 in the list of tables if there are two longtables without captions.
6098 To avoid this you can add the following command in TeX-Code after every
6099 longtable without a caption:
6102 \begin_layout Plain Layout
6107 addtocounter{table}{-1}
6110 \begin_layout Plain Layout
6111 This is not needed when none of your longtables have a caption and you add
6112 the following code to the document preamble:
6115 \begin_layout Plain Layout
6125 \begin_inset Newline newline
6136 addtocounter{table}{-1}}
6144 \begin_layout Standard
6145 \begin_inset Note Greyedout
6148 \begin_layout Plain Layout
6152 \begin_inset space ~
6162 \begin_inset Index idx
6165 \begin_layout Plain Layout
6166 LaTeX-packages ! hyperref
6179 dialog to link cross-references, the link to a longtable caption will always
6180 point to the beginning of the document.
6188 \begin_layout Subsubsection
6189 References to Longtables
6190 \begin_inset Index idx
6193 \begin_layout Plain Layout
6194 Longtables ! References
6202 \begin_layout Standard
6203 \begin_inset Tabular
6204 <lyxtabular version="3" rows="6" columns="5">
6205 <features islongtable="true" longtabularalignment="center">
6206 <column alignment="center" valignment="top" width="0">
6207 <column alignment="center" valignment="top" width="0">
6208 <column alignment="center" valignment="top" width="0">
6209 <column alignment="center" valignment="top" width="0">
6210 <column alignment="center" valignment="top" width="0">
6211 <row caption="true">
6212 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6215 \begin_layout Plain Layout
6216 \begin_inset Caption
6218 \begin_layout Plain Layout
6219 Referenced longtable
6220 \begin_inset CommandInset label
6222 name "tab:RefExample"
6236 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6239 \begin_layout Plain Layout
6245 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6248 \begin_layout Plain Layout
6254 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6257 \begin_layout Plain Layout
6263 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6266 \begin_layout Plain Layout
6274 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6277 \begin_layout Plain Layout
6283 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6286 \begin_layout Plain Layout
6292 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6295 \begin_layout Plain Layout
6301 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6304 \begin_layout Plain Layout
6310 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6313 \begin_layout Plain Layout
6321 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6324 \begin_layout Plain Layout
6330 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6333 \begin_layout Plain Layout
6339 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6342 \begin_layout Plain Layout
6348 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6351 \begin_layout Plain Layout
6357 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6360 \begin_layout Plain Layout
6368 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6371 \begin_layout Plain Layout
6377 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6380 \begin_layout Plain Layout
6386 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6389 \begin_layout Plain Layout
6395 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6398 \begin_layout Plain Layout
6404 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6407 \begin_layout Plain Layout
6415 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6418 \begin_layout Plain Layout
6424 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6427 \begin_layout Plain Layout
6433 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6436 \begin_layout Plain Layout
6442 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6445 \begin_layout Plain Layout
6451 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6454 \begin_layout Plain Layout
6462 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6465 \begin_layout Plain Layout
6471 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6474 \begin_layout Plain Layout
6480 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6483 \begin_layout Plain Layout
6489 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6492 \begin_layout Plain Layout
6498 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6501 \begin_layout Plain Layout
6515 \begin_layout Standard
6516 To reference a longtable, insert a label into the caption.
6519 \begin_layout Standard
6520 This is a reference to Table
6521 \begin_inset space ~
6525 \begin_inset CommandInset ref
6527 reference "tab:RefExample"
6534 \begin_layout Standard
6535 The caption layout can be set together with all other captions of your document
6536 using the LaTeX-package
6541 \begin_inset Index idx
6544 \begin_layout Plain Layout
6545 LaTeX-packages ! caption
6551 \begin_inset space ~
6555 \begin_inset CommandInset ref
6557 reference "sec:Caption-Formatting"
6564 \begin_layout Subsubsection
6566 \begin_inset Index idx
6569 \begin_layout Plain Layout
6570 Longtables ! Caption Width
6578 \begin_layout Standard
6579 The maximal width of of caption lines is defined by the length
6586 Its default value is 4
6587 \begin_inset space \thinspace{}
6591 To change it add the following command to your document preamble or as
6592 TeX-Code into your document before the longtable that should be affected
6595 \begin_layout Standard
6605 \begin_layout Standard
6606 where the width could have one of the units listed in appendix
6607 \begin_inset space ~
6611 \begin_inset CommandInset ref
6613 reference "cha:Units-available-in"
6620 \begin_layout Standard
6621 The following tables show the difference:
6624 \begin_layout Standard
6625 \begin_inset Tabular
6626 <lyxtabular version="3" rows="6" columns="5">
6627 <features islongtable="true" longtabularalignment="center">
6628 <column alignment="center" valignment="top" width="0">
6629 <column alignment="center" valignment="top" width="0">
6630 <column alignment="center" valignment="top" width="0">
6631 <column alignment="center" valignment="top" width="0">
6632 <column alignment="center" valignment="top" width="0">
6633 <row caption="true">
6634 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6637 \begin_layout Plain Layout
6638 \begin_inset Caption
6640 \begin_layout Plain Layout
6641 long full title with default width long full title with default width long
6642 full title with default width
6643 \begin_inset Argument
6646 \begin_layout Plain Layout
6647 caption with default width
6662 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6665 \begin_layout Plain Layout
6671 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6674 \begin_layout Plain Layout
6680 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6683 \begin_layout Plain Layout
6689 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6692 \begin_layout Plain Layout
6700 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6703 \begin_layout Plain Layout
6709 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6712 \begin_layout Plain Layout
6718 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6721 \begin_layout Plain Layout
6727 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6730 \begin_layout Plain Layout
6736 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6739 \begin_layout Plain Layout
6747 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6750 \begin_layout Plain Layout
6756 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6759 \begin_layout Plain Layout
6765 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6768 \begin_layout Plain Layout
6774 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6777 \begin_layout Plain Layout
6783 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6786 \begin_layout Plain Layout
6794 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6797 \begin_layout Plain Layout
6803 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6806 \begin_layout Plain Layout
6812 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6815 \begin_layout Plain Layout
6821 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6824 \begin_layout Plain Layout
6830 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6833 \begin_layout Plain Layout
6841 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6844 \begin_layout Plain Layout
6850 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6853 \begin_layout Plain Layout
6859 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6862 \begin_layout Plain Layout
6868 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6871 \begin_layout Plain Layout
6877 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6880 \begin_layout Plain Layout
6888 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6891 \begin_layout Plain Layout
6897 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6900 \begin_layout Plain Layout
6906 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6909 \begin_layout Plain Layout
6915 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6918 \begin_layout Plain Layout
6924 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6927 \begin_layout Plain Layout
6941 \begin_layout Standard
6945 \begin_layout Plain Layout
6957 \begin_inset Tabular
6958 <lyxtabular version="3" rows="6" columns="5">
6959 <features islongtable="true" longtabularalignment="center">
6960 <column alignment="center" valignment="top" width="0">
6961 <column alignment="center" valignment="top" width="0">
6962 <column alignment="center" valignment="top" width="0">
6963 <column alignment="center" valignment="top" width="0">
6964 <column alignment="center" valignment="top" width="0">
6965 <row caption="true">
6966 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6969 \begin_layout Plain Layout
6970 \begin_inset Caption
6972 \begin_layout Plain Layout
6973 long full title with width set to 5
6974 \begin_inset space \thinspace{}
6977 cm long full title with width set to 5
6978 \begin_inset space \thinspace{}
6981 cm long full title with width set to 5
6982 \begin_inset space \thinspace{}
6986 \begin_inset Argument
6989 \begin_layout Plain Layout
6991 \begin_inset space \thinspace{}
6995 \begin_inset space \thinspace{}
6999 \begin_inset space \thinspace{}
7017 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7020 \begin_layout Plain Layout
7026 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7029 \begin_layout Plain Layout
7035 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7038 \begin_layout Plain Layout
7044 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7047 \begin_layout Plain Layout
7055 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7058 \begin_layout Plain Layout
7064 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7067 \begin_layout Plain Layout
7073 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7076 \begin_layout Plain Layout
7082 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7085 \begin_layout Plain Layout
7091 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7094 \begin_layout Plain Layout
7102 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7105 \begin_layout Plain Layout
7111 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7114 \begin_layout Plain Layout
7120 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7123 \begin_layout Plain Layout
7129 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7132 \begin_layout Plain Layout
7138 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7141 \begin_layout Plain Layout
7149 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7152 \begin_layout Plain Layout
7158 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7161 \begin_layout Plain Layout
7167 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7170 \begin_layout Plain Layout
7176 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7179 \begin_layout Plain Layout
7185 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7188 \begin_layout Plain Layout
7196 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7199 \begin_layout Plain Layout
7205 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7208 \begin_layout Plain Layout
7214 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7217 \begin_layout Plain Layout
7223 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7226 \begin_layout Plain Layout
7232 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7235 \begin_layout Plain Layout
7243 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7246 \begin_layout Plain Layout
7252 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7255 \begin_layout Plain Layout
7261 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7264 \begin_layout Plain Layout
7270 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7273 \begin_layout Plain Layout
7279 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7282 \begin_layout Plain Layout
7296 \begin_layout Standard
7300 \begin_layout Plain Layout
7314 \begin_layout Standard
7315 \begin_inset Note Greyedout
7318 \begin_layout Plain Layout
7323 When the LaTeX-package
7328 \begin_inset Index idx
7331 \begin_layout Plain Layout
7332 LaTeX-packages ! caption
7337 is used, as in this document, the full page width is used for the caption
7338 when you use the default value of 4
7339 \begin_inset space \thinspace{}
7349 To get in this case exactly a 4
7350 \begin_inset space \thinspace{}
7353 in wide caption, you can either use a value slightly different from 4.0
7354 \begin_inset space \thinspace{}
7358 \begin_inset space \thinspace{}
7362 \begin_inset space \space{}
7366 \begin_inset space \thinspace{}
7369 in, or the LaTeX-command
7373 captionsetup{width=value}
7375 that is provided by the
7387 \begin_layout Subsubsection
7388 Different Captions for Table Pages
7389 \begin_inset Index idx
7392 \begin_layout Plain Layout
7393 Longtables ! Different Captions for Pages
7401 \begin_layout Standard
7402 When the table captions for the following pages should differ from the one
7403 of the first table page, insert a caption with the TeX code command
7406 \begin_layout Standard
7411 caption*{caption text}
7418 \begin_layout Standard
7419 in a dummy caption row that is marked as a header.
7421 \begin_inset space ~
7425 \begin_inset CommandInset ref
7427 reference "tab:DiffCaptions"
7431 is an example of a longtable with different heading where the second caption
7432 doesn't include the table number.
7435 \begin_layout Standard
7437 \begin_inset Tabular
7438 <lyxtabular version="3" rows="59" columns="3">
7439 <features islongtable="true" lastFootEmpty="true" longtabularalignment="center">
7440 <column alignment="left" valignment="top" width="0cm">
7441 <column alignment="left" valignment="top" width="0pt">
7442 <column alignment="center" valignment="top" width="0pt">
7443 <row caption="true">
7444 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7447 \begin_layout Plain Layout
7448 \begin_inset Caption
7450 \begin_layout Plain Layout
7452 \begin_inset CommandInset label
7454 name "tab:DiffCaptions"
7459 \begin_inset Argument
7462 \begin_layout Plain Layout
7478 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7481 \begin_layout Plain Layout
7487 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7490 \begin_layout Plain Layout
7497 <row endfirsthead="true">
7498 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7501 \begin_layout Plain Layout
7504 Example Phone List (ignore the names)
7509 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7512 \begin_layout Plain Layout
7518 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7521 \begin_layout Plain Layout
7528 <row endfirsthead="true">
7529 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7532 \begin_layout Plain Layout
7540 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7543 \begin_layout Plain Layout
7549 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7552 \begin_layout Plain Layout
7561 <row endhead="true">
7562 <cell alignment="left" valignment="top" leftline="true" usebox="none">
7565 \begin_layout Plain Layout
7569 \begin_layout Plain Layout
7573 caption*{Continued Example Phone List}
7587 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7590 \begin_layout Plain Layout
7596 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7599 \begin_layout Plain Layout
7606 <row endhead="true">
7607 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7610 \begin_layout Plain Layout
7618 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7621 \begin_layout Plain Layout
7627 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7630 \begin_layout Plain Layout
7637 <row endhead="true">
7638 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7641 \begin_layout Plain Layout
7649 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7652 \begin_layout Plain Layout
7658 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7661 \begin_layout Plain Layout
7670 <row endfoot="true">
7671 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
7674 \begin_layout Plain Layout
7675 continued on next page
7680 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7683 \begin_layout Plain Layout
7689 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7692 \begin_layout Plain Layout
7700 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7703 \begin_layout Plain Layout
7711 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7714 \begin_layout Plain Layout
7720 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
7723 \begin_layout Plain Layout
7731 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7734 \begin_layout Plain Layout
7742 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7745 \begin_layout Plain Layout
7751 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7754 \begin_layout Plain Layout
7762 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7765 \begin_layout Plain Layout
7773 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7776 \begin_layout Plain Layout
7782 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7785 \begin_layout Plain Layout
7793 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7796 \begin_layout Plain Layout
7804 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7807 \begin_layout Plain Layout
7813 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7816 \begin_layout Plain Layout
7824 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7827 \begin_layout Plain Layout
7835 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7838 \begin_layout Plain Layout
7844 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7847 \begin_layout Plain Layout
7855 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7858 \begin_layout Plain Layout
7866 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7869 \begin_layout Plain Layout
7875 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7878 \begin_layout Plain Layout
7886 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7889 \begin_layout Plain Layout
7897 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7900 \begin_layout Plain Layout
7906 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7909 \begin_layout Plain Layout
7917 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7920 \begin_layout Plain Layout
7928 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7931 \begin_layout Plain Layout
7937 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7940 \begin_layout Plain Layout
7948 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7951 \begin_layout Plain Layout
7959 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7962 \begin_layout Plain Layout
7968 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7971 \begin_layout Plain Layout
7979 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7982 \begin_layout Plain Layout
7990 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7993 \begin_layout Plain Layout
7999 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8002 \begin_layout Plain Layout
8010 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8013 \begin_layout Plain Layout
8021 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8024 \begin_layout Plain Layout
8030 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8033 \begin_layout Plain Layout
8041 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8044 \begin_layout Plain Layout
8052 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8055 \begin_layout Plain Layout
8061 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8064 \begin_layout Plain Layout
8072 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8075 \begin_layout Plain Layout
8083 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8086 \begin_layout Plain Layout
8092 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8095 \begin_layout Plain Layout
8103 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8106 \begin_layout Plain Layout
8114 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8117 \begin_layout Plain Layout
8123 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8126 \begin_layout Plain Layout
8134 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8137 \begin_layout Plain Layout
8146 \begin_layout Plain Layout
8157 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8160 \begin_layout Plain Layout
8166 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8169 \begin_layout Plain Layout
8177 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8180 \begin_layout Plain Layout
8188 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8191 \begin_layout Plain Layout
8197 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8200 \begin_layout Plain Layout
8208 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8211 \begin_layout Plain Layout
8219 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8222 \begin_layout Plain Layout
8228 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8231 \begin_layout Plain Layout
8239 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8242 \begin_layout Plain Layout
8250 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8253 \begin_layout Plain Layout
8259 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8262 \begin_layout Plain Layout
8270 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8273 \begin_layout Plain Layout
8281 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8284 \begin_layout Plain Layout
8290 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8293 \begin_layout Plain Layout
8301 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8304 \begin_layout Plain Layout
8312 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8315 \begin_layout Plain Layout
8321 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8324 \begin_layout Plain Layout
8332 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8335 \begin_layout Plain Layout
8343 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8346 \begin_layout Plain Layout
8352 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8355 \begin_layout Plain Layout
8363 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8366 \begin_layout Plain Layout
8374 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8377 \begin_layout Plain Layout
8383 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8386 \begin_layout Plain Layout
8394 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8397 \begin_layout Plain Layout
8405 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8408 \begin_layout Plain Layout
8414 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8417 \begin_layout Plain Layout
8425 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8428 \begin_layout Plain Layout
8436 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8439 \begin_layout Plain Layout
8445 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8448 \begin_layout Plain Layout
8456 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8459 \begin_layout Plain Layout
8467 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8470 \begin_layout Plain Layout
8476 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8479 \begin_layout Plain Layout
8487 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8490 \begin_layout Plain Layout
8498 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8501 \begin_layout Plain Layout
8507 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8510 \begin_layout Plain Layout
8518 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8521 \begin_layout Plain Layout
8529 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8532 \begin_layout Plain Layout
8538 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8541 \begin_layout Plain Layout
8549 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8552 \begin_layout Plain Layout
8560 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8563 \begin_layout Plain Layout
8569 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8572 \begin_layout Plain Layout
8580 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8583 \begin_layout Plain Layout
8591 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8594 \begin_layout Plain Layout
8600 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8603 \begin_layout Plain Layout
8611 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8614 \begin_layout Plain Layout
8622 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8625 \begin_layout Plain Layout
8631 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8634 \begin_layout Plain Layout
8642 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8645 \begin_layout Plain Layout
8653 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8656 \begin_layout Plain Layout
8662 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8665 \begin_layout Plain Layout
8673 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8676 \begin_layout Plain Layout
8682 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8685 \begin_layout Plain Layout
8691 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8694 \begin_layout Plain Layout
8702 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8705 \begin_layout Plain Layout
8713 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8716 \begin_layout Plain Layout
8722 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8725 \begin_layout Plain Layout
8733 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8736 \begin_layout Plain Layout
8744 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8747 \begin_layout Plain Layout
8753 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8756 \begin_layout Plain Layout
8764 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8767 \begin_layout Plain Layout
8775 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8778 \begin_layout Plain Layout
8784 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8787 \begin_layout Plain Layout
8795 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8798 \begin_layout Plain Layout
8806 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8809 \begin_layout Plain Layout
8815 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8818 \begin_layout Plain Layout
8826 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8829 \begin_layout Plain Layout
8837 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8840 \begin_layout Plain Layout
8846 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8849 \begin_layout Plain Layout
8857 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8860 \begin_layout Plain Layout
8868 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8871 \begin_layout Plain Layout
8877 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8880 \begin_layout Plain Layout
8888 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8891 \begin_layout Plain Layout
8899 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8902 \begin_layout Plain Layout
8908 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8911 \begin_layout Plain Layout
8919 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8922 \begin_layout Plain Layout
8930 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8933 \begin_layout Plain Layout
8939 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8942 \begin_layout Plain Layout
8950 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8953 \begin_layout Plain Layout
8961 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8964 \begin_layout Plain Layout
8970 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8973 \begin_layout Plain Layout
8981 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8984 \begin_layout Plain Layout
8992 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8995 \begin_layout Plain Layout
9001 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9004 \begin_layout Plain Layout
9012 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9015 \begin_layout Plain Layout
9023 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9026 \begin_layout Plain Layout
9032 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9035 \begin_layout Plain Layout
9043 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9046 \begin_layout Plain Layout
9054 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9057 \begin_layout Plain Layout
9063 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9066 \begin_layout Plain Layout
9074 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9077 \begin_layout Plain Layout
9085 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9088 \begin_layout Plain Layout
9094 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9097 \begin_layout Plain Layout
9105 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9108 \begin_layout Plain Layout
9116 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9119 \begin_layout Plain Layout
9125 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9128 \begin_layout Plain Layout
9136 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9139 \begin_layout Plain Layout
9147 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9150 \begin_layout Plain Layout
9156 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9159 \begin_layout Plain Layout
9167 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9170 \begin_layout Plain Layout
9178 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9181 \begin_layout Plain Layout
9187 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9190 \begin_layout Plain Layout
9198 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9201 \begin_layout Plain Layout
9209 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9212 \begin_layout Plain Layout
9218 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9221 \begin_layout Plain Layout
9229 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9232 \begin_layout Plain Layout
9240 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9243 \begin_layout Plain Layout
9249 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9252 \begin_layout Plain Layout
9260 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9263 \begin_layout Plain Layout
9271 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9274 \begin_layout Plain Layout
9280 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9283 \begin_layout Plain Layout
9291 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9294 \begin_layout Plain Layout
9302 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9305 \begin_layout Plain Layout
9311 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9314 \begin_layout Plain Layout
9328 \begin_layout Section
9329 Special Longtable Issues
9330 \begin_inset CommandInset label
9332 name "sec:Special-Longtable-Issues"
9339 \begin_layout Subsection
9340 Longtable Calculation
9341 \begin_inset Index idx
9344 \begin_layout Plain Layout
9345 Longtables ! Calculation
9353 \begin_layout Standard
9354 LaTeX calculates the height of table pages and their page breaks using so
9356 Chunks are parts of tables that held at the same time in LaTeX's memory.
9357 The default value was historically set to only 20 table rows.
9358 If you are using longtables with many pages this may slow down the creation
9360 You can safely increase the chunk size to values of 100-1000 by adding
9361 this command line to your document preamble:
9364 \begin_layout Standard
9369 setcounter{LTchunksize}{100}
9372 \begin_layout Subsection
9373 Floats and Longtables
9374 \begin_inset Index idx
9377 \begin_layout Plain Layout
9386 \begin_layout Standard
9387 There might be problems when a float appears on the same page where a longtable
9389 To avoid such a situation, insert a
9390 \begin_inset Quotes eld
9394 \begin_inset Quotes erd
9399 Insert\SpecialChar \menuseparator
9400 Formatting\SpecialChar \menuseparator
9402 \begin_inset space ~
9407 ) before your longtable.
9410 \begin_layout Subsection
9412 \begin_inset Index idx
9415 \begin_layout Plain Layout
9416 Longtables ! Forced Page Breaks
9424 \begin_layout Standard
9425 By default tables are only broken between rows.
9426 If you have a cell with multiples lines and want to have a page break within
9427 the cell, insert the new line command
9428 \begin_inset Quotes eld
9440 \begin_inset Quotes erd
9443 as TeX-Code at the point of the cell where it can be broken.
9452 command you have to insert in TeX-Code as many
9453 \begin_inset Quotes eld
9461 \begin_inset Quotes erd
9464 characters as the number of the following table columns.
9469 is the character to separate table cells.
9470 Write in TeX-Code after each
9474 the content of the corresponding following cell and delete the content
9476 \begin_inset Newline newline
9487 command, insert as many
9491 characters as the number of table columns before the current column.
9493 \begin_inset space ~
9497 \begin_inset CommandInset ref
9499 reference "tab:ForcedPagebreak"
9503 the cell that should be broken is in the second column followed by another
9505 Therefore the following command was inserted in the cell as TeX-Code after
9507 \begin_inset Quotes eld
9515 \begin_inset Quotes erd
9521 \begin_layout Standard
9531 \begin_inset Newline newline
9537 \begin_layout Standard
9539 \begin_inset Quotes eld
9543 \begin_inset Quotes erd
9546 in the third column of the row was deleted.
9553 is only needed when a page break should definitely occur at this position,
9554 otherwise it would be a conditional break.
9555 If your footer row of the longtable has for a certain reason no upper line
9556 but you would have a horizontal line where the cell is broken, use this
9560 \begin_layout Standard
9568 \begin_inset Newline newline
9576 \begin_layout Standard
9577 When the cell to be broken is in the last column, the command
9580 \begin_layout Standard
9590 \begin_layout Standard
9591 must be inserted as TeX-Code at the beginning of the cell.
9592 This ensures that the part of the cell that will be displayed on the new
9593 page appears with the full width.
9596 \begin_layout Standard
9598 \begin_inset Tabular
9599 <lyxtabular version="3" rows="38" columns="3">
9600 <features islongtable="true" lastFootEmpty="true" longtabularalignment="center">
9601 <column alignment="left" valignment="top" width="0cm">
9602 <column alignment="left" valignment="top" width="3cm">
9603 <column alignment="center" valignment="top" width="0pt">
9604 <row caption="true">
9605 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9608 \begin_layout Plain Layout
9609 \begin_inset Caption
9611 \begin_layout Plain Layout
9612 Table with forced page break in table cell
9613 \begin_inset CommandInset label
9615 name "tab:ForcedPagebreak"
9620 \begin_inset Argument
9623 \begin_layout Plain Layout
9624 Table with forced page break in table cell
9639 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9642 \begin_layout Plain Layout
9648 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9651 \begin_layout Plain Layout
9658 <row endfirsthead="true">
9659 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9662 \begin_layout Plain Layout
9665 Example Phone List (ignore the names)
9670 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9673 \begin_layout Plain Layout
9679 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9682 \begin_layout Plain Layout
9689 <row endfirsthead="true">
9690 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9693 \begin_layout Plain Layout
9701 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9704 \begin_layout Plain Layout
9710 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9713 \begin_layout Plain Layout
9722 <row endhead="true">
9723 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9726 \begin_layout Plain Layout
9730 \begin_layout Plain Layout
9734 caption*{Continued Example Phone List}
9748 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9751 \begin_layout Plain Layout
9757 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9760 \begin_layout Plain Layout
9767 <row endhead="true">
9768 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9771 \begin_layout Plain Layout
9779 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9782 \begin_layout Plain Layout
9788 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9791 \begin_layout Plain Layout
9798 <row endhead="true">
9799 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9802 \begin_layout Plain Layout
9810 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9813 \begin_layout Plain Layout
9819 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9822 \begin_layout Plain Layout
9831 <row endfoot="true">
9832 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
9835 \begin_layout Plain Layout
9836 continued on next page
9841 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9844 \begin_layout Plain Layout
9850 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9853 \begin_layout Plain Layout
9861 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9864 \begin_layout Plain Layout
9872 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9875 \begin_layout Plain Layout
9881 <cell alignment="right" valignment="top" rightline="true" usebox="none">
9884 \begin_layout Plain Layout
9892 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9895 \begin_layout Plain Layout
9903 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9906 \begin_layout Plain Layout
9912 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9915 \begin_layout Plain Layout
9923 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9926 \begin_layout Plain Layout
9934 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9937 \begin_layout Plain Layout
9943 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9946 \begin_layout Plain Layout
9954 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9957 \begin_layout Plain Layout
9965 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9968 \begin_layout Plain Layout
9974 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9977 \begin_layout Plain Layout
9985 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9988 \begin_layout Plain Layout
9996 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9999 \begin_layout Plain Layout
10005 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10008 \begin_layout Plain Layout
10016 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10019 \begin_layout Plain Layout
10027 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10030 \begin_layout Plain Layout
10036 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10039 \begin_layout Plain Layout
10047 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10050 \begin_layout Plain Layout
10058 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10061 \begin_layout Plain Layout
10067 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10070 \begin_layout Plain Layout
10078 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10081 \begin_layout Plain Layout
10089 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10092 \begin_layout Plain Layout
10098 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10101 \begin_layout Plain Layout
10109 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10112 \begin_layout Plain Layout
10120 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10123 \begin_layout Plain Layout
10129 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10132 \begin_layout Plain Layout
10140 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10143 \begin_layout Plain Layout
10151 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10154 \begin_layout Plain Layout
10160 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10163 \begin_layout Plain Layout
10171 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10174 \begin_layout Plain Layout
10182 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10185 \begin_layout Plain Layout
10191 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10194 \begin_layout Plain Layout
10202 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10205 \begin_layout Plain Layout
10213 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10216 \begin_layout Plain Layout
10222 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10225 \begin_layout Plain Layout
10233 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10236 \begin_layout Plain Layout
10244 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10247 \begin_layout Plain Layout
10253 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10256 \begin_layout Plain Layout
10264 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10267 \begin_layout Plain Layout
10275 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10278 \begin_layout Plain Layout
10284 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10287 \begin_layout Plain Layout
10295 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10298 \begin_layout Plain Layout
10306 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10309 \begin_layout Plain Layout
10315 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10318 \begin_layout Plain Layout
10326 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10329 \begin_layout Plain Layout
10337 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10340 \begin_layout Plain Layout
10346 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10349 \begin_layout Plain Layout
10357 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10360 \begin_layout Plain Layout
10368 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10371 \begin_layout Plain Layout
10377 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10380 \begin_layout Plain Layout
10388 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10391 \begin_layout Plain Layout
10399 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10402 \begin_layout Plain Layout
10408 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10411 \begin_layout Plain Layout
10419 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10422 \begin_layout Plain Layout
10430 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10433 \begin_layout Plain Layout
10439 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10442 \begin_layout Plain Layout
10450 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10453 \begin_layout Plain Layout
10461 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10464 \begin_layout Plain Layout
10470 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10473 \begin_layout Plain Layout
10481 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10484 \begin_layout Plain Layout
10492 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10495 \begin_layout Plain Layout
10501 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10504 \begin_layout Plain Layout
10512 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10515 \begin_layout Plain Layout
10523 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10526 \begin_layout Plain Layout
10532 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10535 \begin_layout Plain Layout
10543 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10546 \begin_layout Plain Layout
10554 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10557 \begin_layout Plain Layout
10559 Fürst von Montecompatri, 11.
10560 Fürst von Sulmona und Vivaro, 10.
10561 Fürst von Rossano, 5.
10562 Herzog von Canemorte, 11.
10563 Herzog von Palombara, 5.
10564 Herzog von Castelchiodato,
10568 \begin_layout Plain Layout
10579 \begin_layout Plain Layout
10587 Herzog von Poggionativo, 11.
10588 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10589 Graf von Valinfreda, 11.
10590 Baron von Cropalati, 11.
10591 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10596 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10599 \begin_layout Plain Layout
10607 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10610 \begin_layout Plain Layout
10618 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10621 \begin_layout Plain Layout
10627 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10630 \begin_layout Plain Layout
10638 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10641 \begin_layout Plain Layout
10649 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10652 \begin_layout Plain Layout
10658 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10661 \begin_layout Plain Layout
10669 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10672 \begin_layout Plain Layout
10680 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10683 \begin_layout Plain Layout
10689 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10692 \begin_layout Plain Layout
10700 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10703 \begin_layout Plain Layout
10711 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10714 \begin_layout Plain Layout
10720 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10723 \begin_layout Plain Layout
10731 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10734 \begin_layout Plain Layout
10742 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10745 \begin_layout Plain Layout
10751 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10754 \begin_layout Plain Layout
10762 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10765 \begin_layout Plain Layout
10773 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10776 \begin_layout Plain Layout
10782 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10785 \begin_layout Plain Layout
10793 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10796 \begin_layout Plain Layout
10804 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10807 \begin_layout Plain Layout
10813 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10816 \begin_layout Plain Layout
10824 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10827 \begin_layout Plain Layout
10835 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
10838 \begin_layout Plain Layout
10844 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
10847 \begin_layout Plain Layout
10861 \begin_layout Section
10862 Multiple Lines Columns and Rows
10865 \begin_layout Subsection
10866 Multiple Lines in Table Cells
10867 \begin_inset CommandInset label
10869 name "sub:Multiple-Lines-in"
10874 \begin_inset Index idx
10877 \begin_layout Plain Layout
10878 Multiple Lines in Table Cells
10884 \begin_inset Index idx
10887 \begin_layout Plain Layout
10896 \begin_layout Standard
10898 \begin_inset Float table
10904 \begin_layout Plain Layout
10905 \begin_inset Caption
10907 \begin_layout Plain Layout
10908 \begin_inset CommandInset label
10910 name "tab:Table-with-multiple"
10914 Table with multiple lines in cells
10922 \begin_layout Plain Layout
10924 \begin_inset Tabular
10925 <lyxtabular version="3" rows="3" columns="3">
10926 <features tabularvalignment="middle">
10927 <column alignment="center" valignment="middle" width="2.5cm">
10928 <column alignment="center" valignment="middle" width="0">
10929 <column alignment="center" valignment="middle" width="0">
10931 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10934 \begin_layout Plain Layout
10936 \begin_inset Newline linebreak
10944 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10947 \begin_layout Plain Layout
10953 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10956 \begin_layout Plain Layout
10964 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10967 \begin_layout Plain Layout
10973 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10976 \begin_layout Plain Layout
10982 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10985 \begin_layout Plain Layout
10993 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10996 \begin_layout Plain Layout
11002 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11005 \begin_layout Plain Layout
11011 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11014 \begin_layout Plain Layout
11033 \begin_layout Standard
11034 Setting a fixed width for a column enables you to enter text as a paragraph
11035 with multiple lines and hyphenation.
11038 \begin_layout Standard
11040 \begin_inset space ~
11044 \begin_inset CommandInset ref
11046 reference "tab:Table-with-multiple"
11050 , create a 3×3 table, mark the first cell and right-click on it.
11051 In the appearing table dialog we set a cell width of 2.5
11052 \begin_inset space \thinspace{}
11055 cm and choose centered for the vertical and horizontal alignment.
11056 The vertical alignment is used for all cells of the row.
11057 As our text is smaller than 2.5
11058 \begin_inset space \thinspace{}
11061 cm, only one line will appear.
11062 To get two lines, a justified line break (shortcut
11065 arg "newline-insert linebreak"
11069 If the text is wider than the set cell width, it will automatically be
11070 broken to several lines.
11073 \begin_layout Standard
11074 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11075 by LaTeX if it is the first entry.
11076 Therefore you need to insert something to prevent the word not being the
11078 So add a horizontal space of 0
11079 \begin_inset space \thinspace{}
11082 pt before the word.
11083 As the space is zero, it doesn't change the output.
11085 \begin_inset space ~
11089 \begin_inset CommandInset ref
11091 reference "tab:Table-with-and"
11098 \begin_layout Standard
11099 \begin_inset Float table
11105 \begin_layout Plain Layout
11106 \begin_inset Caption
11108 \begin_layout Plain Layout
11109 \begin_inset CommandInset label
11111 name "tab:Table-with-and"
11115 Table with and without hyphenation
11123 \begin_layout Plain Layout
11124 \begin_inset space \hfill{}
11128 \begin_inset Tabular
11129 <lyxtabular version="3" rows="3" columns="3">
11130 <features tabularvalignment="middle">
11131 <column alignment="center" valignment="middle" width="2.5cm">
11132 <column alignment="center" valignment="middle" width="0">
11133 <column alignment="center" valignment="middle" width="0">
11135 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11138 \begin_layout Plain Layout
11139 verylongtablecellword
11144 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11147 \begin_layout Plain Layout
11153 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11156 \begin_layout Plain Layout
11164 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11167 \begin_layout Plain Layout
11173 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11176 \begin_layout Plain Layout
11182 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11185 \begin_layout Plain Layout
11193 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11196 \begin_layout Plain Layout
11202 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11205 \begin_layout Plain Layout
11211 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11214 \begin_layout Plain Layout
11226 \begin_inset space \hfill{}
11230 \begin_inset Tabular
11231 <lyxtabular version="3" rows="3" columns="3">
11232 <features tabularvalignment="middle">
11233 <column alignment="center" valignment="middle" width="2.5cm">
11234 <column alignment="center" valignment="middle" width="0">
11235 <column alignment="center" valignment="middle" width="0">
11237 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11240 \begin_layout Plain Layout
11241 \begin_inset space \hspace{}
11245 verylongtablecellword
11250 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11253 \begin_layout Plain Layout
11259 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11262 \begin_layout Plain Layout
11270 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11273 \begin_layout Plain Layout
11279 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11282 \begin_layout Plain Layout
11288 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11291 \begin_layout Plain Layout
11299 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11302 \begin_layout Plain Layout
11308 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11311 \begin_layout Plain Layout
11317 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11320 \begin_layout Plain Layout
11332 \begin_inset space \hfill{}
11343 \begin_layout Subsection
11345 \begin_inset CommandInset label
11347 name "sub:Multicolumns"
11352 \begin_inset Index idx
11355 \begin_layout Plain Layout
11362 \begin_inset Index idx
11365 \begin_layout Plain Layout
11366 Table ! Multicolumns
11374 \begin_layout Subsubsection
11378 \begin_layout Standard
11379 To merge cells over multiple columns, select as many cells within a row
11380 as you want to merge and use either the table-toolbar button
11381 \begin_inset Graphics
11382 filename ../images/tabular-feature_multicolumn.png
11384 scaleBeforeRotation
11390 Edit\SpecialChar \menuseparator
11391 Table\SpecialChar \menuseparator
11394 , or right click on the marked cells and choose
11398 in the appearing context menu.
11401 \begin_layout Standard
11402 Multicolumns have there own cell settings.
11403 That means changing cell borders, cell alignment, and the width only affects
11405 Here is an example table with a multicolumn cell in the first row and one
11406 in the last row without the upper border:
11409 \begin_layout Standard
11411 \begin_inset Tabular
11412 <lyxtabular version="3" rows="3" columns="4">
11413 <features firstHeadTopDL="true" firstHeadBottomDL="true" tabularvalignment="middle">
11414 <column alignment="center" valignment="top" width="0pt">
11415 <column alignment="center" valignment="middle" width="0">
11416 <column alignment="center" valignment="top" width="0in">
11417 <column alignment="center" valignment="top" width="0pt">
11419 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11422 \begin_layout Plain Layout
11428 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11431 \begin_layout Plain Layout
11437 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11440 \begin_layout Plain Layout
11446 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11449 \begin_layout Plain Layout
11457 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11460 \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" usebox="none">
11487 \begin_layout Plain Layout
11493 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11496 \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 multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11516 \begin_layout Plain Layout
11522 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11525 \begin_layout Plain Layout
11531 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11534 \begin_layout Plain Layout
11548 \begin_layout Subsubsection
11549 Multicolumn Calculations
11550 \begin_inset CommandInset label
11552 name "sub:Multicolumn-Calculations"
11557 \begin_inset Index idx
11560 \begin_layout Plain Layout
11561 Multicolumns ! Calculations
11569 \begin_layout Standard
11570 LyX supports multicolumns directly, but we have to take account of the cell
11571 width of the columns spanned by the multicolumn cell.
11574 \begin_layout Standard
11575 \begin_inset Float table
11581 \begin_layout Plain Layout
11582 \begin_inset Caption
11584 \begin_layout Plain Layout
11585 \begin_inset CommandInset label
11587 name "tab:Table-with-centered"
11591 Table with centered multicolumn text above two columns that have exactly
11592 half the width of the multicolumn cell
11593 \begin_inset Argument
11596 \begin_layout Plain Layout
11597 Perfect multicolumn table
11610 \begin_layout Plain Layout
11612 \begin_inset Tabular
11613 <lyxtabular version="3" rows="3" columns="3">
11614 <features tabularvalignment="middle">
11615 <column alignment="center" valignment="middle" width="0" special=">{\centering}m{1.25cm-6.2pt}">
11616 <column alignment="center" valignment="middle" width="0">
11617 <column alignment="center" valignment="top" width="0">
11619 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11622 \begin_layout Plain Layout
11623 multiple lines multicolumn
11628 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11631 \begin_layout Plain Layout
11637 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11640 \begin_layout Plain Layout
11648 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11651 \begin_layout Plain Layout
11657 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11660 \begin_layout Plain Layout
11666 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11669 \begin_layout Plain Layout
11677 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11680 \begin_layout Plain Layout
11686 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11689 \begin_layout Plain Layout
11695 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11698 \begin_layout Plain Layout
11717 \begin_layout Standard
11718 To create for example Table
11719 \begin_inset space ~
11723 \begin_inset CommandInset ref
11725 reference "tab:Table-with-centered"
11729 , mark the first two cells in the first row of a 3×3 table and right-click
11731 Now choose for this cell
11740 \begin_inset space \thinspace{}
11743 cm in the table dialog.
11744 The merged columns should have exactly half the width of the multicolumn
11745 cell, so that you would set a width of 1.25
11746 \begin_inset space \thinspace{}
11749 cm for the first column.
11750 The second column has then automatically a width of 1.25
11751 \begin_inset space \thinspace{}
11754 cm (multicolumn width - width of first column).
11755 This was done for Table
11756 \begin_inset space ~
11760 \begin_inset CommandInset ref
11762 reference "tab:Table-without-half"
11769 \begin_layout Standard
11770 \begin_inset Float table
11775 \begin_layout Plain Layout
11776 \begin_inset Caption
11778 \begin_layout Plain Layout
11779 \begin_inset CommandInset label
11781 name "tab:Table-without-half"
11785 Table where the spanned table columns are not exactly half the width of
11786 the multicolumn cell
11787 \begin_inset Argument
11790 \begin_layout Plain Layout
11791 Imperfect multicolumn table
11804 \begin_layout Plain Layout
11806 \begin_inset Tabular
11807 <lyxtabular version="3" rows="3" columns="3">
11808 <features tabularvalignment="middle">
11809 <column alignment="center" valignment="top" width="1.25cm">
11810 <column alignment="center" valignment="top" width="0">
11811 <column alignment="center" valignment="top" width="0">
11813 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
11816 \begin_layout Plain Layout
11817 multiple lines multicolumn
11822 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11825 \begin_layout Plain Layout
11831 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11834 \begin_layout Plain Layout
11842 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11845 \begin_layout Plain Layout
11851 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11854 \begin_layout Plain Layout
11860 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11863 \begin_layout Plain Layout
11871 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11874 \begin_layout Plain Layout
11880 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11883 \begin_layout Plain Layout
11889 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11892 \begin_layout Plain Layout
11911 \begin_layout Standard
11912 You can see that the first column is not half the width of the multicolumn
11913 cell, it is a bit bigger.
11914 The reason is that the specified width of a cell
11915 \begin_inset Formula $W_{g}$
11918 is not its total width
11919 \begin_inset Formula $W_{\mathrm{tot}}$
11922 because a cell is always a bit larger than specified.
11924 \begin_inset space ~
11928 \begin_inset CommandInset ref
11930 reference "cha:Explanation-of-Equation"
11934 explains this in detail.
11937 \begin_layout Standard
11939 \begin_inset Formula $W_{g\, n}$
11942 which the user needs to set when
11946 columns are spanned can be calculated, so that each column has a total
11948 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
11952 \begin_inset Formula \begin{equation}
11953 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}\end{equation}
11960 \begin_layout Standard
11961 In our case we have
11962 \begin_inset Formula $n=2$
11966 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
11969 cm and the default values for the lengths, so that equation
11970 \begin_inset CommandInset ref
11977 \begin_inset Formula \begin{equation}
11978 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}\end{equation}
11985 \begin_layout Standard
11986 To enable calculations in LaTeX, the LaTeX-package
11990 must be loaded with the document preamble line
11991 \begin_inset Index idx
11994 \begin_layout Plain Layout
11995 LaTeX-packages ! calc
12003 \begin_layout Standard
12011 \begin_layout Standard
12012 LyX does not allow you to calculate lengths in the
12016 field of the table dialog.
12017 Therefore you have to format the column by inserting a LaTeX-argument in
12019 Here is an overview about the arguments:
12022 \begin_layout Itemize
12027 creates cell with a fixed width, its text is vertically top-aligned
12030 \begin_layout Itemize
12035 creates cell with a fixed width, its text is vertically centered
12038 \begin_layout Itemize
12043 creates cell with a fixed width, its text is vertically bottom-aligned
12046 \begin_layout Standard
12047 By entering a LaTeX-argument, all cell settings set in the table dialog
12051 \begin_layout Standard
12052 \begin_inset Note Greyedout
12055 \begin_layout Plain Layout
12060 Due to a bug, LyX shows the overwritten settings anyway.
12068 \begin_layout Standard
12069 As the text should be horizontally centered, the command
12076 You can now enter the following LaTeX-argument for the first spanned column:
12079 \begin_layout Standard
12084 centering}m{1.25cm-6.2pt}
12087 \begin_layout Standard
12092 means, that the commands inside the braces are applied before the cell
12096 \begin_layout Standard
12097 Although we have chosen centered alignment for the text of the multicolumn
12098 cell, it is still left aligned.
12099 This is because LyX only applies the alignment to single columns.
12100 So for the multicolumn cell we have to use the LaTeX-argument
12103 \begin_layout Standard
12111 \begin_layout Subsection
12113 \begin_inset Index idx
12116 \begin_layout Plain Layout
12123 \begin_inset Index idx
12126 \begin_layout Plain Layout
12135 \begin_layout Standard
12136 Unlike multicolumns multirows are not yet supported by LyX; so a bit of
12137 TeX-Code needs to be used.
12138 To use multirows load the LaTeX-package
12143 \begin_inset Index idx
12146 \begin_layout Plain Layout
12147 LaTeX-packages ! multirow
12152 in your document preamble with the command
12155 \begin_layout Standard
12160 usepackage{multirow}
12163 \begin_layout Standard
12164 Multirows are created with the command
12167 \begin_layout Standard
12172 multirow{number of rows}{cell width}{cell entry}
12175 \begin_layout Standard
12176 To create the following table:
12179 \begin_layout Standard
12184 \begin_layout Plain Layout
12198 \begin_inset Tabular
12199 <lyxtabular version="3" rows="3" columns="3">
12200 <features tabularvalignment="middle">
12201 <column alignment="center" valignment="top" width="0">
12202 <column alignment="center" valignment="top" width="0">
12203 <column alignment="center" valignment="top" width="0">
12205 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12208 \begin_layout Plain Layout
12214 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12217 \begin_layout Plain Layout
12223 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12226 \begin_layout Plain Layout
12234 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12237 \begin_layout Plain Layout
12241 \begin_layout Plain Layout
12245 multirow{2}{2.5cm}{
12254 \begin_layout Plain Layout
12266 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12269 \begin_layout Plain Layout
12275 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12278 \begin_layout Plain Layout
12286 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
12289 \begin_layout Plain Layout
12295 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12298 \begin_layout Plain Layout
12304 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12307 \begin_layout Plain Layout
12322 \begin_layout Plain Layout
12338 \begin_layout Standard
12339 create a 3×3 table.
12340 Unset the upper border of the last cell in the first column.
12341 The multirow is now created in the second row of the first column by inserting
12345 \begin_layout Standard
12350 multirow{2}{2.5cm}{
12353 \begin_layout Standard
12355 According to the command parameters the multirow spans now two rows and
12357 \begin_inset space \thinspace{}
12361 The content of the multirow cell follows outside the TeX-Code box and the
12362 command is finished with a right brace
12366 in another TeX-Code-box after the text.
12369 \begin_layout Standard
12376 left-aligns its content by default.
12377 To override the default, renew the command
12386 \begin_layout Standard
12398 \begin_layout Standard
12399 in TeX-Code in the document preamble.
12400 Then all entries of multirow cells in the document are centered.
12401 If centering is only needed for several tables, you can renew the command
12402 in a TeX-Code box just before the table instead of the preamble.
12403 If the text should be right-aligned, replace
12416 To return to left-alignment
12425 \begin_layout Section
12427 \begin_inset CommandInset label
12429 name "sec:Formal-Tables"
12434 \begin_inset Index idx
12437 \begin_layout Plain Layout
12446 \begin_layout Standard
12447 Tables are often typeset in books similar to Table
12448 \begin_inset space ~
12452 \begin_inset CommandInset ref
12454 reference "tab:Example-booktabs-table"
12459 This kind of tables is called
12460 \begin_inset Quotes eld
12468 \begin_inset Quotes erd
12472 To make a table a formal table use the option
12480 tab of the table dialog.
12483 \begin_layout Standard
12484 \begin_inset Float table
12490 \begin_layout Plain Layout
12491 \begin_inset Caption
12493 \begin_layout Plain Layout
12494 \begin_inset CommandInset label
12496 name "tab:Example-booktabs-table"
12500 Example booktabs-table
12508 \begin_layout Plain Layout
12510 \begin_inset Tabular
12511 <lyxtabular version="3" rows="8" columns="4">
12512 <features booktabs="true" tabularvalignment="middle">
12513 <column alignment="center" valignment="top" width="0">
12514 <column alignment="center" valignment="top" width="0">
12515 <column alignment="center" valignment="top" width="0">
12516 <column alignment="center" valignment="top" width="0">
12518 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12521 \begin_layout Plain Layout
12527 <cell alignment="center" valignment="top" topline="true" usebox="none">
12530 \begin_layout Plain Layout
12532 \begin_inset space \thinspace{}
12540 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
12543 \begin_layout Plain Layout
12545 \begin_inset space \thinspace{}
12553 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12556 \begin_layout Plain Layout
12564 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12567 \begin_layout Plain Layout
12571 \begin_layout Plain Layout
12584 \begin_layout Plain Layout
12593 Detector thickness in µm
12598 <cell alignment="center" valignment="top" usebox="none">
12601 \begin_layout Plain Layout
12607 <cell alignment="center" valignment="top" usebox="none">
12610 \begin_layout Plain Layout
12616 <cell alignment="center" valignment="top" usebox="none">
12619 \begin_layout Plain Layout
12627 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12630 \begin_layout Plain Layout
12636 <cell alignment="center" valignment="top" topline="true" usebox="none">
12639 \begin_layout Plain Layout
12645 <cell alignment="center" valignment="top" topline="true" usebox="none">
12648 \begin_layout Plain Layout
12654 <cell alignment="center" valignment="top" topline="true" usebox="none">
12657 \begin_layout Plain Layout
12664 <row topspace="default">
12665 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12668 \begin_layout Plain Layout
12669 Spatial resolution in µm
12674 <cell alignment="center" valignment="top" usebox="none">
12677 \begin_layout Plain Layout
12683 <cell alignment="center" valignment="top" usebox="none">
12686 \begin_layout Plain Layout
12692 <cell alignment="center" valignment="top" usebox="none">
12695 \begin_layout Plain Layout
12702 <row topspace="default">
12703 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12706 \begin_layout Plain Layout
12708 \begin_inset Formula $f_{\mathrm{max}}$
12716 <cell alignment="center" valignment="top" usebox="none">
12719 \begin_layout Plain Layout
12725 <cell alignment="center" valignment="top" usebox="none">
12728 \begin_layout Plain Layout
12734 <cell alignment="center" valignment="top" usebox="none">
12737 \begin_layout Plain Layout
12744 <row topspace="default">
12745 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12748 \begin_layout Plain Layout
12752 \begin_layout Plain Layout
12756 cmidrule(l{10pt}){1-1}
12761 LSF-spatial resolution
12766 <cell alignment="center" valignment="top" usebox="none">
12769 \begin_layout Plain Layout
12775 <cell alignment="center" valignment="top" usebox="none">
12778 \begin_layout Plain Layout
12784 <cell alignment="center" valignment="top" usebox="none">
12787 \begin_layout Plain Layout
12795 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12798 \begin_layout Plain Layout
12804 <cell alignment="center" valignment="top" usebox="none">
12807 \begin_layout Plain Layout
12813 <cell alignment="center" valignment="top" usebox="none">
12816 \begin_layout Plain Layout
12822 <cell alignment="center" valignment="top" usebox="none">
12825 \begin_layout Plain Layout
12833 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
12836 \begin_layout Plain Layout
12842 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12845 \begin_layout Plain Layout
12851 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12854 \begin_layout Plain Layout
12860 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12863 \begin_layout Plain Layout
12882 \begin_layout Standard
12883 Spaces to table rows can be added using the
12887 tab of the table dialog as described in section
12888 \begin_inset space ~
12892 \begin_inset CommandInset ref
12894 reference "sub:Row-Spacing"
12901 \begin_layout Standard
12902 Unlike normal tables, formal tables have no vertical table lines.
12903 The horizontal table lines can be set as for normal tables but they appear
12904 with different widths in the output:
12905 \begin_inset Newline newline
12908 The first and the last table line have a default width of 0.08
12909 \begin_inset space \thinspace{}
12912 em while the other lines have a default width of 0.05
12913 \begin_inset space \thinspace{}
12919 \begin_layout Standard
12920 The default widths can be changed with the following preamble lines
12923 \begin_layout Standard
12933 \begin_inset Newline newline
12945 \begin_layout Standard
12946 This example is for the first line, the so called
12951 If you want to change the width for the last line, replace
12960 To change the width for the other lines replace
12969 You can use all units listed in appendix
12970 \begin_inset space ~
12974 \begin_inset CommandInset ref
12976 reference "cha:Units-available-in"
12983 \begin_layout Standard
12984 Lines that do not span all table columns can be created by setting a table
12985 line for multicolumn cells.
12986 LyX will then internally use the command
12992 to create this line.
12996 \begin_layout Standard
13001 cmidrule[width](trim){startcol-endcol}
13004 \begin_layout Standard
13011 are currently not supported by LyX so you have to use TeX-Code to be able
13019 s can manually be created by inserting the command as TeX-Code as the first
13020 cell entry of the first cell of a row.
13021 The line is then drawn in the output above the current row.
13024 \begin_layout Standard
13025 The default for the width is 0.03
13026 \begin_inset space \thinspace{}
13030 Startcol is the number of the column where the line starts and endcol the
13031 column number where the line ends.
13032 The endcol always needs to be specified, also when the line should span
13034 The optional parameter trim could be either
13042 where the trimwidth is also optional.
13043 Using for example the parameter
13047 means that the line is trimmed from its left end by 2
13048 \begin_inset space \thinspace{}
13052 If you don't specify the trimwidth the lines are trimmed by the default
13054 \begin_inset space \thinspace{}
13060 \begin_layout Standard
13061 \begin_inset VSpace bigskip
13065 \begin_inset space ~
13069 \begin_inset CommandInset ref
13071 reference "tab:Example-booktabs-table"
13075 was created using the commands
13078 \begin_layout Standard
13088 \begin_layout Standard
13089 at the beginning of the second row and
13092 \begin_layout Standard
13097 cmidrule(l{10pt}){1-1}
13100 \begin_layout Standard
13104 \begin_layout Standard
13105 \begin_inset VSpace bigskip
13111 \begin_layout Standard
13112 You might want to have overlapping
13119 \begin_inset space ~
13123 \begin_inset CommandInset ref
13125 reference "tab:Special-booktabs-table"
13130 This can be achieved with the TeX-Code command
13133 \begin_layout Standard
13141 \begin_layout Standard
13142 The command that was used for the second row of Table
13143 \begin_inset space ~
13147 \begin_inset CommandInset ref
13149 reference "tab:Special-booktabs-table"
13156 \begin_layout Standard
13170 \begin_layout Standard
13171 The command for the sixth row is
13174 \begin_layout Standard
13186 \begin_layout Standard
13187 \begin_inset VSpace bigskip
13193 \begin_layout Standard
13194 If you are anyway not satisfied with the border line spacing, you can use
13195 the following command to produce lines that span over all table columns
13200 \begin_layout Standard
13205 specialrule{width}{space above}{space below}
13208 \begin_layout Standard
13209 For more information about these features, refer to the manual of the LaTeX-pack
13215 \begin_inset CommandInset citation
13222 \begin_inset Index idx
13225 \begin_layout Plain Layout
13226 LaTeX-packages ! booktabs
13234 \begin_layout Standard
13235 \begin_inset Float table
13241 \begin_layout Plain Layout
13242 \begin_inset Caption
13244 \begin_layout Plain Layout
13245 \begin_inset CommandInset label
13247 name "tab:Special-booktabs-table"
13251 Special booktabs-table
13259 \begin_layout Plain Layout
13261 \begin_inset Tabular
13262 <lyxtabular version="3" rows="8" columns="4">
13263 <features booktabs="true" tabularvalignment="middle">
13264 <column alignment="center" valignment="top" width="0">
13265 <column alignment="center" valignment="top" width="0">
13266 <column alignment="center" valignment="top" width="0">
13267 <column alignment="center" valignment="top" width="0">
13269 <cell alignment="center" valignment="top" topline="true" usebox="none">
13272 \begin_layout Plain Layout
13278 <cell alignment="center" valignment="top" topline="true" usebox="none">
13281 \begin_layout Plain Layout
13283 \begin_inset space \thinspace{}
13291 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
13294 \begin_layout Plain Layout
13296 \begin_inset space \thinspace{}
13304 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13307 \begin_layout Plain Layout
13315 <cell alignment="center" valignment="top" usebox="none">
13318 \begin_layout Plain Layout
13322 \begin_layout Plain Layout
13335 \begin_layout Plain Layout
13348 \begin_layout Plain Layout
13361 \begin_layout Plain Layout
13370 Detector thickness in µm
13375 <cell alignment="center" valignment="top" usebox="none">
13378 \begin_layout Plain Layout
13384 <cell alignment="center" valignment="top" usebox="none">
13387 \begin_layout Plain Layout
13393 <cell alignment="center" valignment="top" usebox="none">
13396 \begin_layout Plain Layout
13404 <cell alignment="center" valignment="top" topline="true" usebox="none">
13407 \begin_layout Plain Layout
13413 <cell alignment="center" valignment="top" topline="true" usebox="none">
13416 \begin_layout Plain Layout
13422 <cell alignment="center" valignment="top" topline="true" usebox="none">
13425 \begin_layout Plain Layout
13431 <cell alignment="center" valignment="top" topline="true" usebox="none">
13434 \begin_layout Plain Layout
13441 <row topspace="default">
13442 <cell alignment="center" valignment="top" usebox="none">
13445 \begin_layout Plain Layout
13446 Spatial resolution in µm
13451 <cell alignment="center" valignment="top" usebox="none">
13454 \begin_layout Plain Layout
13460 <cell alignment="center" valignment="top" usebox="none">
13463 \begin_layout Plain Layout
13469 <cell alignment="center" valignment="top" usebox="none">
13472 \begin_layout Plain Layout
13479 <row topspace="default">
13480 <cell alignment="center" valignment="top" usebox="none">
13483 \begin_layout Plain Layout
13485 \begin_inset Formula $f_{\mathrm{max}}$
13493 <cell alignment="center" valignment="top" usebox="none">
13496 \begin_layout Plain Layout
13502 <cell alignment="center" valignment="top" usebox="none">
13505 \begin_layout Plain Layout
13511 <cell alignment="center" valignment="top" usebox="none">
13514 \begin_layout Plain Layout
13522 <cell alignment="center" valignment="top" topline="true" usebox="none">
13525 \begin_layout Plain Layout
13529 \begin_layout Plain Layout
13542 \begin_layout Plain Layout
13551 LSF-spatial resolution
13556 <cell alignment="center" valignment="top" topline="true" usebox="none">
13559 \begin_layout Plain Layout
13565 <cell alignment="center" valignment="top" topline="true" usebox="none">
13568 \begin_layout Plain Layout
13574 <cell alignment="center" valignment="top" topline="true" usebox="none">
13577 \begin_layout Plain Layout
13585 <cell alignment="center" valignment="top" usebox="none">
13588 \begin_layout Plain Layout
13594 <cell alignment="center" valignment="top" usebox="none">
13597 \begin_layout Plain Layout
13603 <cell alignment="center" valignment="top" usebox="none">
13606 \begin_layout Plain Layout
13612 <cell alignment="center" valignment="top" usebox="none">
13615 \begin_layout Plain Layout
13623 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13626 \begin_layout Plain Layout
13632 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13635 \begin_layout Plain Layout
13641 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13644 \begin_layout Plain Layout
13650 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13653 \begin_layout Plain Layout
13672 \begin_layout Section
13673 Vertical Table Alignment
13674 \begin_inset Index idx
13677 \begin_layout Plain Layout
13686 \begin_layout Standard
13687 To align tables vertically in a text line the table must be inside a box.
13688 The box can then be vertically aligned as described in section
13689 \begin_inset space ~
13693 \begin_inset CommandInset ref
13695 reference "sec:Box-Dialog"
13702 \begin_layout Standard
13703 In the following example the tables are inside a minipage
13707 \begin_layout Plain Layout
13708 Minipages are described in section
13709 \begin_inset space ~
13713 \begin_inset CommandInset ref
13715 reference "sec:Minipages"
13724 box that has a width of 15
13725 \begin_inset space \thinspace{}
13731 \begin_layout Itemize
13733 \begin_inset Box Frameless
13743 height_special "totalheight"
13746 \begin_layout Plain Layout
13747 \begin_inset Tabular
13748 <lyxtabular version="3" rows="3" columns="3">
13749 <features tabularvalignment="middle">
13750 <column alignment="center" valignment="top" width="0">
13751 <column alignment="center" valignment="top" width="0">
13752 <column alignment="center" valignment="top" width="0">
13754 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13757 \begin_layout Plain Layout
13763 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13766 \begin_layout Plain Layout
13772 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13775 \begin_layout Plain Layout
13783 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13786 \begin_layout Plain Layout
13792 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13795 \begin_layout Plain Layout
13801 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13804 \begin_layout Plain Layout
13812 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13815 \begin_layout Plain Layout
13821 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13824 \begin_layout Plain Layout
13830 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13833 \begin_layout Plain Layout
13853 \begin_layout Plain Layout
13865 \begin_inset Box Frameless
13875 height_special "totalheight"
13878 \begin_layout Plain Layout
13879 \begin_inset Tabular
13880 <lyxtabular version="3" rows="3" columns="3">
13881 <features tabularvalignment="middle">
13882 <column alignment="center" valignment="top" width="0">
13883 <column alignment="center" valignment="top" width="0">
13884 <column alignment="center" valignment="top" width="0">
13886 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13889 \begin_layout Plain Layout
13895 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13898 \begin_layout Plain Layout
13904 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13907 \begin_layout Plain Layout
13915 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13918 \begin_layout Plain Layout
13924 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13927 \begin_layout Plain Layout
13933 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13936 \begin_layout Plain Layout
13944 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13947 \begin_layout Plain Layout
13953 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13956 \begin_layout Plain Layout
13962 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13965 \begin_layout Plain Layout
13985 \begin_layout Plain Layout
13995 \begin_layout Itemize
13997 \begin_inset Box Frameless
14007 height_special "totalheight"
14010 \begin_layout Plain Layout
14011 \begin_inset Tabular
14012 <lyxtabular version="3" rows="3" columns="3">
14013 <features tabularvalignment="middle">
14014 <column alignment="center" valignment="top" width="0">
14015 <column alignment="center" valignment="top" width="0">
14016 <column alignment="center" valignment="top" width="0">
14018 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14021 \begin_layout Plain Layout
14027 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14030 \begin_layout Plain Layout
14036 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14039 \begin_layout Plain Layout
14047 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14050 \begin_layout Plain Layout
14056 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14059 \begin_layout Plain Layout
14065 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14068 \begin_layout Plain Layout
14076 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14079 \begin_layout Plain Layout
14085 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14088 \begin_layout Plain Layout
14094 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14097 \begin_layout Plain Layout
14116 \begin_layout Itemize
14118 \begin_inset Box Frameless
14128 height_special "totalheight"
14131 \begin_layout Plain Layout
14132 \begin_inset Tabular
14133 <lyxtabular version="3" rows="3" columns="3">
14134 <features tabularvalignment="middle">
14135 <column alignment="center" valignment="top" width="0">
14136 <column alignment="center" valignment="top" width="0">
14137 <column alignment="center" valignment="top" width="0">
14139 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14142 \begin_layout Plain Layout
14148 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14151 \begin_layout Plain Layout
14157 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14160 \begin_layout Plain Layout
14168 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14171 \begin_layout Plain Layout
14177 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14180 \begin_layout Plain Layout
14186 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14189 \begin_layout Plain Layout
14197 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14200 \begin_layout Plain Layout
14206 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14209 \begin_layout Plain Layout
14215 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14218 \begin_layout Plain Layout
14238 \begin_layout Plain Layout
14250 \begin_inset Box Frameless
14260 height_special "totalheight"
14263 \begin_layout Plain Layout
14264 \begin_inset Tabular
14265 <lyxtabular version="3" rows="3" columns="3">
14266 <features tabularvalignment="middle">
14267 <column alignment="center" valignment="top" width="0">
14268 <column alignment="center" valignment="top" width="0">
14269 <column alignment="center" valignment="top" width="0">
14271 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14274 \begin_layout Plain Layout
14280 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14283 \begin_layout Plain Layout
14289 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14292 \begin_layout Plain Layout
14300 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14303 \begin_layout Plain Layout
14309 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14312 \begin_layout Plain Layout
14318 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14321 \begin_layout Plain Layout
14329 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14332 \begin_layout Plain Layout
14338 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14341 \begin_layout Plain Layout
14347 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14350 \begin_layout Plain Layout
14370 \begin_layout Plain Layout
14380 \begin_layout Standard
14381 As you will see, the content of the first and last table row is not correctly
14383 To get this alignment, the minipage box must be set into a raisebox
14387 \begin_layout Plain Layout
14388 Raiseboxes are described in section
14389 \begin_inset space ~
14393 \begin_inset CommandInset ref
14395 reference "sub:Vertical-Alignment"
14405 In the example above the second table in the first item is aligned using
14406 the TeX-Code-command
14409 \begin_layout Standard
14419 \begin_layout Standard
14421 After the box the closing brace
14425 is inserted as TeX-Code.
14426 For the second table in the last item the command
14429 \begin_layout Standard
14439 \begin_layout Standard
14443 \begin_layout Standard
14444 \begin_inset Note Greyedout
14447 \begin_layout Plain Layout
14452 The alignment of the table row content to the surrounding text line is
14454 The required value for the
14460 command for this alignment depends on the document font, the font size,
14461 and the table line thickness.
14469 \begin_layout Section
14471 \begin_inset CommandInset label
14473 name "sec:Colored-Tables"
14478 \begin_inset Index idx
14481 \begin_layout Plain Layout
14490 \begin_layout Subsection
14492 \begin_inset Index idx
14495 \begin_layout Plain Layout
14496 Table Color ! for Cells
14502 \begin_inset Index idx
14505 \begin_layout Plain Layout
14506 Color ! for Table Cells
14514 \begin_layout Standard
14515 \begin_inset Float table
14521 \begin_layout Plain Layout
14522 \begin_inset Caption
14524 \begin_layout Plain Layout
14525 \begin_inset CommandInset label
14527 name "tab:Table-colored-without"
14531 Table colored without using the package
14536 \begin_inset Argument
14539 \begin_layout Plain Layout
14540 Table without colortbl
14553 \begin_layout Plain Layout
14555 \begin_inset Tabular
14556 <lyxtabular version="3" rows="3" columns="3">
14557 <features tabularvalignment="middle">
14558 <column alignment="center" valignment="top" width="0">
14559 <column alignment="center" valignment="top" width="0">
14560 <column alignment="center" valignment="top" width="0">
14562 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14565 \begin_layout Plain Layout
14573 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14576 \begin_layout Plain Layout
14584 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14587 \begin_layout Plain Layout
14597 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14600 \begin_layout Plain Layout
14608 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14611 \begin_layout Plain Layout
14619 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14622 \begin_layout Plain Layout
14632 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14635 \begin_layout Plain Layout
14643 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14646 \begin_layout Plain Layout
14654 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14657 \begin_layout Plain Layout
14678 \begin_layout Standard
14679 If you only need colored text, mark the cells and choose a color in the
14682 Edit\SpecialChar \menuseparator
14684 \begin_inset space ~
14690 This was used to create Table
14691 \begin_inset space ~
14695 \begin_inset CommandInset ref
14697 reference "tab:Table-colored-without"
14702 In any other case you have to use the LaTeX-package
14707 \begin_inset Index idx
14710 \begin_layout Plain Layout
14711 LaTeX-packages ! colortbl
14719 \begin_layout Standard
14723 \begin_layout Plain Layout
14733 \begin_inset Note Note
14736 \begin_layout Plain Layout
14737 The following section part will only be displayed when the LaTeX-package
14750 \begin_layout Standard
14751 To create colored tables,
14755 must be loaded in the preamble with the line
14758 \begin_layout Standard
14763 usepackage{colortbl}
14766 \begin_layout Standard
14767 The color of a column is adjusted with the command
14770 \begin_layout Standard
14775 columncolor{name of color}
14778 \begin_layout Standard
14784 More about the command
14788 is contained in section
14789 \begin_inset space ~
14793 \begin_inset CommandInset ref
14795 reference "sub:Multicolumn-Calculations"
14802 \begin_layout Standard
14803 The following color names are predefined:
14806 \begin_layout Standard
14840 \begin_layout Standard
14841 \begin_inset VSpace medskip
14847 \begin_layout Standard
14848 You can also define your own color with the command
14851 \begin_layout Standard
14856 definecolor{color name}{color model}{color values}
14859 \begin_layout Standard
14860 The color model can be
14863 \begin_layout Labeling
14864 \labelwidthstring 00.00.0000
14865 cmyk: cyan, magenta, yellow, black
14868 \begin_layout Labeling
14869 \labelwidthstring 00.00.0000
14870 rgb: red, green blue
14873 \begin_layout Labeling
14874 \labelwidthstring 00.00.0000
14878 \begin_layout Standard
14879 and the color values are comma separated numbers between 0 and 1 describing
14880 the factor for the corresponding color of the color model.
14883 \begin_layout Standard
14885 \begin_inset space \thinspace{}
14889 \begin_inset space \space{}
14896 " in the preamble with
14899 \begin_layout Standard
14904 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
14907 \begin_layout Standard
14915 \begin_layout Standard
14920 definecolor{lightgray}{gray}{0.8}
14923 \begin_layout Standard
14924 \begin_inset VSpace medskip
14930 \begin_layout Standard
14931 Lines are colored with the command
14934 \begin_layout Standard
14939 rowcolor{name of color}
14942 \begin_layout Standard
14943 and cells are colored with the command
14946 \begin_layout Standard
14951 cellcolor{name of color}
14954 \begin_layout Standard
14955 Both commands are inserted at the beginning of a cell as TeX-Code.
14958 \begin_layout Standard
14959 To color characters in the table, mark the cells and use the LyX menu
14961 Edit\SpecialChar \menuseparator
14963 \begin_inset space ~
14969 If a cell contains TeX-Code mark only the characters, otherwise the colored
14970 TeX-Code will cause LaTeX-errors.
14973 \begin_layout Standard
14974 \begin_inset Note Greyedout
14977 \begin_layout Plain Layout
14982 Not all DVI-viewers are able to display self-defined colors.
14990 \begin_layout Standard
14991 \begin_inset VSpace bigskip
14997 \begin_layout Standard
14999 \begin_inset space ~
15003 \begin_inset CommandInset ref
15005 reference "tab:Table-colored-using"
15009 do the following: The color of the first column should be
15017 \begin_layout Standard
15022 columncolor{darkgreen}
15027 \begin_layout Standard
15028 as LaTeX-argument for this column.
15029 The first row should be blue, therefore the TeX-Code command
15032 \begin_layout Standard
15040 \begin_layout Standard
15041 is inserted to the first cell of this row.
15042 Note that this overwrites the column color for the first cell.
15043 The last cell of the last row is colored magenta by inserting the TeX-Code
15047 \begin_layout Standard
15055 \begin_layout Standard
15056 The characters could now be colored using the menu
15058 Edit\SpecialChar \menuseparator
15060 \begin_inset space ~
15068 \begin_layout Standard
15069 \begin_inset Float table
15075 \begin_layout Plain Layout
15076 \begin_inset Caption
15078 \begin_layout Plain Layout
15079 \begin_inset CommandInset label
15081 name "tab:Table-colored-using"
15085 Table colored using the package
15090 \begin_inset Argument
15093 \begin_layout Plain Layout
15094 Table with colortbl
15107 \begin_layout Plain Layout
15109 \begin_inset Tabular
15110 <lyxtabular version="3" rows="3" columns="3">
15111 <features tabularvalignment="middle">
15112 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
15113 <column alignment="center" valignment="top" width="0">
15114 <column alignment="center" valignment="top" width="0">
15116 <cell alignment="center" valignment="top" usebox="none">
15119 \begin_layout Plain Layout
15123 \begin_layout Plain Layout
15139 <cell alignment="center" valignment="top" usebox="none">
15142 \begin_layout Plain Layout
15150 <cell alignment="center" valignment="top" usebox="none">
15153 \begin_layout Plain Layout
15163 <cell alignment="center" valignment="top" usebox="none">
15166 \begin_layout Plain Layout
15174 <cell alignment="center" valignment="top" usebox="none">
15177 \begin_layout Plain Layout
15185 <cell alignment="center" valignment="top" usebox="none">
15188 \begin_layout Plain Layout
15198 <cell alignment="center" valignment="top" usebox="none">
15201 \begin_layout Plain Layout
15209 <cell alignment="center" valignment="top" usebox="none">
15212 \begin_layout Plain Layout
15220 <cell alignment="center" valignment="top" usebox="none">
15223 \begin_layout Plain Layout
15227 \begin_layout Plain Layout
15256 \begin_layout Standard
15260 \begin_layout Plain Layout
15270 \begin_inset Note Note
15273 \begin_layout Plain Layout
15274 The following will be displayed when the LaTeX-package
15286 \begin_layout Standard
15287 You need to install the package
15291 to see the content of this section in the output.
15294 \begin_layout Standard
15298 \begin_layout Plain Layout
15310 \begin_layout Subsection
15312 \begin_inset Index idx
15315 \begin_layout Plain Layout
15316 Table Color ! for Lines
15322 \begin_inset Index idx
15325 \begin_layout Plain Layout
15326 Color ! for Table Lines
15334 \begin_layout Standard
15335 As described in section
15336 \begin_inset space ~
15340 \begin_inset CommandInset ref
15342 reference "sub:Line-Thickness"
15346 , the line thickness for all lines in a table can be adjusted with the length
15355 \begin_inset space \thinspace{}
15358 pt for all tables of this section.
15362 \begin_layout Plain Layout
15368 arrayrulewidth}{1.5pt}
15376 \begin_layout Standard
15377 To color vertical lines for example with green, create the following column
15378 format in the document preamble, according to the description in section
15379 \begin_inset space ~
15383 \begin_inset CommandInset ref
15385 reference "sub:Customized-Format"
15392 \begin_layout Standard
15397 newcolumntype{W}{!{
15404 \begin_layout Standard
15406 \begin_inset space ~
15410 \begin_inset CommandInset ref
15412 reference "tab:Table-with-vertical-colored"
15420 was used for the last column and
15424 for the other columns.
15427 \begin_layout Standard
15428 If you want to have several colors, define more column formats.
15431 \begin_layout Standard
15432 \begin_inset Float table
15438 \begin_layout Plain Layout
15439 \begin_inset Caption
15441 \begin_layout Plain Layout
15442 \begin_inset CommandInset label
15444 name "tab:Table-with-vertical-colored"
15448 Table with colored vertical lines
15456 \begin_layout Plain Layout
15458 \begin_inset Tabular
15459 <lyxtabular version="3" rows="3" columns="3">
15460 <features tabularvalignment="middle">
15461 <column alignment="center" valignment="top" width="0" special="Wc">
15462 <column alignment="center" valignment="top" width="0" special="Wc">
15463 <column alignment="center" valignment="top" width="0" special="WcW">
15465 <cell alignment="center" valignment="top" topline="true" usebox="none">
15468 \begin_layout Plain Layout
15474 <cell alignment="center" valignment="top" topline="true" usebox="none">
15477 \begin_layout Plain Layout
15483 <cell alignment="center" valignment="top" topline="true" usebox="none">
15486 \begin_layout Plain Layout
15494 <cell alignment="center" valignment="top" topline="true" usebox="none">
15497 \begin_layout Plain Layout
15503 <cell alignment="center" valignment="top" topline="true" usebox="none">
15506 \begin_layout Plain Layout
15512 <cell alignment="center" valignment="top" topline="true" usebox="none">
15515 \begin_layout Plain Layout
15523 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15526 \begin_layout Plain Layout
15532 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15535 \begin_layout Plain Layout
15541 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15544 \begin_layout Plain Layout
15563 \begin_layout Standard
15564 \begin_inset VSpace bigskip
15567 To color horizontal lines for example with red, as in Table
15568 \begin_inset space ~
15572 \begin_inset CommandInset ref
15574 reference "tab:Table-with-horizontal-colored"
15578 , insert these commands in TeX-Code before the table or table float:
15581 \begin_layout Standard
15591 \begin_inset Newline newline
15599 \begin_inset Newline newline
15603 \begin_inset Phantom HPhantom
15606 \begin_layout Plain Layout
15609 \begin_inset space ~
15619 arrayrulecolor{red}
15623 arrayrulecolor{black}}
15626 \begin_layout Standard
15630 \begin_layout Plain Layout
15641 \begin_layout Plain Layout
15650 \begin_layout Plain Layout
15654 arrayrulecolor{red}
15658 arrayrulecolor{black}}
15664 \begin_inset Float table
15670 \begin_layout Plain Layout
15671 \begin_inset Caption
15673 \begin_layout Plain Layout
15674 \begin_inset CommandInset label
15676 name "tab:Table-with-horizontal-colored"
15680 Table with colored horizontal lines
15688 \begin_layout Plain Layout
15690 \begin_inset Tabular
15691 <lyxtabular version="3" rows="3" columns="3">
15692 <features tabularvalignment="middle">
15693 <column alignment="center" valignment="top" width="0">
15694 <column alignment="center" valignment="top" width="0">
15695 <column alignment="center" valignment="top" width="0">
15697 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15700 \begin_layout Plain Layout
15706 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15709 \begin_layout Plain Layout
15715 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15718 \begin_layout Plain Layout
15726 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15729 \begin_layout Plain Layout
15735 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15738 \begin_layout Plain Layout
15744 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15747 \begin_layout Plain Layout
15755 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15758 \begin_layout Plain Layout
15764 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15767 \begin_layout Plain Layout
15773 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
15776 \begin_layout Plain Layout
15795 \begin_layout Standard
15796 To return to the default line color black, insert this command in TeX-Code
15797 after the table or table float:
15800 \begin_layout Standard
15812 \begin_layout Standard
15814 \begin_inset space ~
15818 \begin_inset CommandInset ref
15820 reference "tab:Table-with-colored"
15824 is an example with colored vertical and horizontal lines.
15827 \begin_layout Standard
15828 \begin_inset Float table
15834 \begin_layout Plain Layout
15835 \begin_inset Caption
15837 \begin_layout Plain Layout
15838 \begin_inset CommandInset label
15840 name "tab:Table-with-colored"
15844 Table with colored lines
15852 \begin_layout Plain Layout
15854 \begin_inset Tabular
15855 <lyxtabular version="3" rows="3" columns="3">
15856 <features tabularvalignment="middle">
15857 <column alignment="center" valignment="top" width="0" special="Wc">
15858 <column alignment="center" valignment="top" width="0" special="Wc">
15859 <column alignment="center" valignment="top" width="0" special="WcW">
15861 <cell alignment="center" valignment="top" topline="true" usebox="none">
15864 \begin_layout Plain Layout
15870 <cell alignment="center" valignment="top" topline="true" usebox="none">
15873 \begin_layout Plain Layout
15879 <cell alignment="center" valignment="top" topline="true" usebox="none">
15882 \begin_layout Plain Layout
15890 <cell alignment="center" valignment="top" topline="true" usebox="none">
15893 \begin_layout Plain Layout
15899 <cell alignment="center" valignment="top" topline="true" usebox="none">
15902 \begin_layout Plain Layout
15908 <cell alignment="center" valignment="top" topline="true" usebox="none">
15911 \begin_layout Plain Layout
15918 <row topspace="default">
15919 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15922 \begin_layout Plain Layout
15928 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15931 \begin_layout Plain Layout
15937 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15940 \begin_layout Plain Layout
15959 \begin_layout Standard
15963 \begin_layout Plain Layout
15979 \begin_layout Standard
15983 \begin_layout Plain Layout
15989 arrayrulewidth}{0.4pt}
15997 \begin_layout Section
15998 Table Customization
15999 \begin_inset Index idx
16002 \begin_layout Plain Layout
16003 Table Customization
16009 \begin_inset Index idx
16012 \begin_layout Plain Layout
16013 Table ! Customization
16021 \begin_layout Subsection
16023 \begin_inset CommandInset label
16025 name "sub:Row-Spacing"
16030 \begin_inset Index idx
16033 \begin_layout Plain Layout
16034 Table Customization ! Row Spacing
16042 \begin_layout Standard
16043 You can add vertical space to table rows in the
16047 tab of the table dialog.
16048 You find there three possibilities:
16051 \begin_layout Description
16053 \begin_inset space ~
16057 \begin_inset space ~
16060 row will add space above the characters of the table row.
16061 If the table is a formal table
16065 \begin_layout Plain Layout
16066 Formal tables are explained in section
16067 \begin_inset space ~
16071 \begin_inset CommandInset ref
16073 reference "sec:Formal-Tables"
16082 LyX will insert as default 0.5
16083 \begin_inset space \thinspace{}
16087 For normal tables the inserted space will unfortunately destroy the vertical
16088 table lines as in the following table:
16089 \begin_inset VSpace medskip
16093 \begin_inset Newline newline
16097 \begin_inset space \hspace*{}
16102 \begin_inset space \hfill{}
16106 \begin_inset Tabular
16107 <lyxtabular version="3" rows="3" columns="1">
16108 <features tabularvalignment="middle">
16109 <column alignment="center" valignment="top" width="0">
16111 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16114 \begin_layout Plain Layout
16121 <row topspace="3mm">
16122 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16125 \begin_layout Plain Layout
16127 \begin_inset space \thinspace{}
16130 mm space top of row
16137 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16140 \begin_layout Plain Layout
16152 \begin_inset space \hfill{}
16156 \begin_inset space \hspace*{}
16161 \begin_inset VSpace medskip
16165 \begin_inset Newline newline
16168 So inserting space in the top of row for normal tables is only useful when
16169 you don't have vertical lines.
16172 \begin_layout Description
16174 \begin_inset space ~
16178 \begin_inset space ~
16181 row will add space below the characters of the table row.
16182 If the table is a formal table LyX will insert as default 0.5
16183 \begin_inset space \thinspace{}
16186 em space, for normal tables the default size is 2
16187 \begin_inset space \thinspace{}
16193 \begin_layout Description
16195 \begin_inset space ~
16198 rows adds space between the current and the following row.
16199 If the table is a formal table LyX will insert as default 0.5
16200 \begin_inset space \thinspace{}
16204 For normal tables the inserted space will unfortunately destroy the vertical
16205 table lines as in the following table:
16206 \begin_inset VSpace medskip
16210 \begin_inset Newline newline
16214 \begin_inset space \hspace*{}
16219 \begin_inset space \hfill{}
16223 \begin_inset Tabular
16224 <lyxtabular version="3" rows="3" columns="1">
16225 <features tabularvalignment="middle">
16226 <column alignment="center" valignment="top" width="0">
16228 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16231 \begin_layout Plain Layout
16238 <row interlinespace="3mm">
16239 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16242 \begin_layout Plain Layout
16243 \begin_inset Formula $\downarrow$
16247 \begin_inset space \thinspace{}
16250 mm space between row
16251 \begin_inset Formula $\downarrow$
16261 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16264 \begin_layout Plain Layout
16265 \begin_inset Formula $\uparrow$
16269 \begin_inset space \thinspace{}
16272 mm space between row
16273 \begin_inset Formula $\uparrow$
16287 \begin_inset space \hfill{}
16291 \begin_inset space \hspace*{}
16296 \begin_inset VSpace medskip
16300 \begin_inset Newline newline
16303 So inserting space between rows for normal tables is only useful when you
16304 don't have vertical lines.
16307 \begin_layout Standard
16308 \begin_inset VSpace bigskip
16311 When you want to add extra height to all cells of all tables, you can do
16312 this with the following preamble lines:
16315 \begin_layout Standard
16320 @ifundefined{extrarowheight}
16321 \begin_inset Newline newline
16325 \begin_inset Phantom HPhantom
16328 \begin_layout Plain Layout
16331 \begin_inset space ~
16341 usepackage{array}}{}
16342 \begin_inset Newline newline
16349 extrarowheight}{height}
16352 \begin_layout Standard
16353 But this has the disadvantage that the cell texts are no longer exactly
16354 vertically centered.
16359 will be loaded automatically by LyX when you use self defined table formats.
16360 To avoid that it being loaded twice the command
16366 is used in the above command.)
16369 \begin_layout Standard
16370 If you are using font sizes larger than the normal size, the table borders
16371 are often too close to the letters.
16372 This can be corrected by inserting the command
16378 in TeX code at the beginning of a table row.
16380 \begin_inset space ~
16384 \begin_inset CommandInset ref
16386 reference "tab:Vertical-alignment-of"
16390 illustrates the effect.
16393 \begin_layout Standard
16395 \begin_inset Float table
16401 \begin_layout Plain Layout
16402 \begin_inset Caption
16404 \begin_layout Plain Layout
16405 \begin_inset CommandInset label
16407 name "tab:Vertical-alignment-of"
16411 Vertical alignment of text with large font sizes.
16419 \begin_layout Plain Layout
16420 \begin_inset space \hfill{}
16424 \begin_inset Float table
16429 \begin_layout Plain Layout
16430 \begin_inset Caption
16432 \begin_layout Plain Layout
16441 \begin_layout Plain Layout
16444 \begin_inset Tabular
16445 <lyxtabular version="3" rows="6" columns="1">
16446 <features tabularvalignment="middle">
16447 <column alignment="left" valignment="top" width="0">
16449 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16452 \begin_layout Plain Layout
16460 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16463 \begin_layout Plain Layout
16473 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16476 \begin_layout Plain Layout
16486 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16489 \begin_layout Plain Layout
16499 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16502 \begin_layout Plain Layout
16512 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16515 \begin_layout Plain Layout
16534 \begin_inset space \hfill{}
16538 \begin_inset Float table
16543 \begin_layout Plain Layout
16544 \begin_inset Caption
16546 \begin_layout Plain Layout
16547 Table using the command
16561 \begin_layout Plain Layout
16564 \begin_inset Tabular
16565 <lyxtabular version="3" rows="6" columns="1">
16566 <features tabularvalignment="middle">
16567 <column alignment="left" valignment="top" width="0">
16569 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16572 \begin_layout Plain Layout
16580 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16583 \begin_layout Plain Layout
16589 \begin_layout Plain Layout
16605 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16608 \begin_layout Plain Layout
16614 \begin_layout Plain Layout
16630 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16633 \begin_layout Plain Layout
16639 \begin_layout Plain Layout
16655 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16658 \begin_layout Plain Layout
16664 \begin_layout Plain Layout
16680 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16683 \begin_layout Plain Layout
16689 \begin_layout Plain Layout
16716 \begin_inset space \hfill{}
16727 \begin_layout Subsection
16728 Special Cell Alignment
16729 \begin_inset Index idx
16732 \begin_layout Plain Layout
16733 Table Customization ! Special Cell Alignment
16741 \begin_layout Standard
16742 Sometimes it looks better when the cell entries of a column are aligned
16743 with a special character, e.
16744 \begin_inset space \thinspace{}
16748 \begin_inset space \space{}
16751 with the decimal separator as in Table
16752 \begin_inset space ~
16756 \begin_inset CommandInset ref
16758 reference "tab:Table-cells-of"
16765 \begin_layout Standard
16766 \begin_inset Float table
16772 \begin_layout Plain Layout
16773 \begin_inset Caption
16775 \begin_layout Plain Layout
16776 \begin_inset CommandInset label
16778 name "tab:Table-cells-of"
16782 Table cells of a column aligned with the decimal separator.
16790 \begin_layout Plain Layout
16792 \begin_inset Tabular
16793 <lyxtabular version="3" rows="4" columns="2">
16794 <features tabularvalignment="middle">
16795 <column alignment="right" valignment="top" width="0">
16796 <column alignment="left" valignment="top" width="0" special="@{}l">
16798 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16801 \begin_layout Plain Layout
16807 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16810 \begin_layout Plain Layout
16818 <cell alignment="center" valignment="top" usebox="none">
16821 \begin_layout Plain Layout
16827 <cell alignment="center" valignment="top" usebox="none">
16830 \begin_layout Plain Layout
16838 <cell alignment="center" valignment="top" usebox="none">
16841 \begin_layout Plain Layout
16847 <cell alignment="center" valignment="top" usebox="none">
16850 \begin_layout Plain Layout
16858 <cell alignment="center" valignment="top" usebox="none">
16861 \begin_layout Plain Layout
16867 <cell alignment="center" valignment="top" usebox="none">
16870 \begin_layout Plain Layout
16889 \begin_layout Standard
16890 This table was created with a 4×2 table.
16891 The heading is a centered multicolumn.
16892 The first column is right-aligned and contains the digits before the decimal
16893 point and the decimal point.
16894 The second column is left aligned and contains the digits after the decimal
16896 To omit the space that is normally between two table columns, the following
16897 LaTeX-argument was used for the second column:
16900 \begin_layout Standard
16906 \begin_layout Standard
16908 \begin_inset space ~
16912 \begin_inset CommandInset ref
16914 reference "tab:Several-table-cell"
16918 shows some example alignments.
16919 For the alignment with the relation sign, you must add the second smallest
16920 math-space at the beginning of the last column to get the correct space
16921 surrounding the relation sign.
16924 \begin_layout Standard
16925 \begin_inset Float table
16931 \begin_layout Plain Layout
16932 \begin_inset Caption
16934 \begin_layout Plain Layout
16935 \begin_inset CommandInset label
16937 name "tab:Several-table-cell"
16941 Several table cell alignments.
16949 \begin_layout Plain Layout
16951 \begin_inset Tabular
16952 <lyxtabular version="3" rows="4" columns="6">
16953 <features tabularvalignment="middle">
16954 <column alignment="right" valignment="top" width="0">
16955 <column alignment="left" valignment="top" width="0" special="@{}l">
16956 <column alignment="right" valignment="top" width="0">
16957 <column alignment="left" valignment="top" width="0" special="@{}l">
16958 <column alignment="right" valignment="top" width="0">
16959 <column alignment="left" valignment="top" width="0" special="@{}l">
16961 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16964 \begin_layout Plain Layout
16970 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16973 \begin_layout Plain Layout
16979 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16982 \begin_layout Plain Layout
16988 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16991 \begin_layout Plain Layout
16997 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
17000 \begin_layout Plain Layout
17006 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17009 \begin_layout Plain Layout
17017 <cell alignment="center" valignment="top" usebox="none">
17020 \begin_layout Plain Layout
17026 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17029 \begin_layout Plain Layout
17031 \begin_inset space \thinspace{}
17039 <cell alignment="center" valignment="top" usebox="none">
17042 \begin_layout Plain Layout
17043 \begin_inset Formula $10\cdot$
17051 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17054 \begin_layout Plain Layout
17055 \begin_inset Formula $10^{\mbox{-}17}$
17063 <cell alignment="center" valignment="top" usebox="none">
17066 \begin_layout Plain Layout
17067 \begin_inset Formula $\Gamma(t)\propto$
17075 <cell alignment="center" valignment="top" usebox="none">
17078 \begin_layout Plain Layout
17079 \begin_inset Formula $\:\Upsilon(t)$
17089 <cell alignment="center" valignment="top" usebox="none">
17092 \begin_layout Plain Layout
17098 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17101 \begin_layout Plain Layout
17103 \begin_inset space \thinspace{}
17111 <cell alignment="center" valignment="top" usebox="none">
17114 \begin_layout Plain Layout
17115 \begin_inset Formula $5.78\cdot$
17123 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17126 \begin_layout Plain Layout
17127 \begin_inset Formula $10^{7}$
17135 <cell alignment="center" valignment="top" usebox="none">
17138 \begin_layout Plain Layout
17139 \begin_inset Formula $A\ne$
17147 <cell alignment="center" valignment="top" usebox="none">
17150 \begin_layout Plain Layout
17151 \begin_inset Formula $\: B_{\mathrm{red}}$
17161 <cell alignment="center" valignment="top" usebox="none">
17164 \begin_layout Plain Layout
17170 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17173 \begin_layout Plain Layout
17175 \begin_inset space \thinspace{}
17183 <cell alignment="center" valignment="top" usebox="none">
17186 \begin_layout Plain Layout
17188 \begin_inset Formula $33.5\cdot$
17196 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17199 \begin_layout Plain Layout
17200 \begin_inset Formula $10^{4}$
17208 <cell alignment="center" valignment="top" usebox="none">
17211 \begin_layout Plain Layout
17212 \begin_inset Formula $\sin(\alpha)\ge$
17220 <cell alignment="center" valignment="top" usebox="none">
17223 \begin_layout Plain Layout
17224 \begin_inset Formula $\:\sin(\beta)$
17245 \begin_layout Standard
17246 \begin_inset VSpace bigskip
17249 There is also the LaTeX-package
17254 \begin_inset Index idx
17257 \begin_layout Plain Layout
17258 LaTeX-packages ! dcolumn
17263 that provides table cell alignments.
17264 But this unfortunately treats the cell entries as math and does not allow
17265 formulas in table cells: The first column of Table
17266 \begin_inset space ~
17270 \begin_inset CommandInset ref
17272 reference "tab:Several-table-cell"
17280 like the first column in Table
17281 \begin_inset space ~
17285 \begin_inset CommandInset ref
17287 reference "tab:Alignments-when"
17291 and only with some tricks as you would want.
17292 The alignment of the second and third column of Table
17293 \begin_inset space ~
17297 \begin_inset CommandInset ref
17299 reference "tab:Several-table-cell"
17303 is not possible with
17310 \begin_layout Standard
17311 \begin_inset Newpage newpage
17317 \begin_layout Standard
17318 \begin_inset Float table
17324 \begin_layout Plain Layout
17325 \begin_inset Caption
17327 \begin_layout Plain Layout
17328 \begin_inset CommandInset label
17330 name "tab:Alignments-when"
17334 Alignments when LaTeX-package dcolumn is used.
17335 For all column alignments tricks have to be used to get the output.
17343 \begin_layout Plain Layout
17345 \begin_inset Tabular
17346 <lyxtabular version="3" rows="4" columns="3">
17347 <features tabularvalignment="middle">
17348 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{-1}">
17349 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{4.9}">
17350 <column alignment="center" valignment="top" width="0" special="D{+}{\,}{9.7}">
17352 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17355 \begin_layout Plain Layout
17361 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17364 \begin_layout Plain Layout
17370 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
17373 \begin_layout Plain Layout
17381 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17384 \begin_layout Plain Layout
17386 \begin_inset space \thinspace{}
17394 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17397 \begin_layout Plain Layout
17399 \begin_inset space \thinspace{}
17403 \begin_inset Formula $\mbox{bottles}$
17411 <cell alignment="center" valignment="top" usebox="none">
17414 \begin_layout Plain Layout
17419 \begin_layout Plain Layout
17429 \begin_inset Formula $\mbox{bottles}$
17439 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17442 \begin_layout Plain Layout
17444 \begin_inset space \thinspace{}
17452 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17455 \begin_layout Plain Layout
17457 \begin_inset space \thinspace{}
17461 \begin_inset Formula $\mbox{Pixels}$
17469 <cell alignment="center" valignment="top" usebox="none">
17472 \begin_layout Plain Layout
17477 \begin_layout Plain Layout
17487 \begin_inset Formula $\mbox{Pixels}$
17497 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17500 \begin_layout Plain Layout
17502 \begin_inset space \thinspace{}
17510 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17513 \begin_layout Plain Layout
17515 \begin_inset space \thinspace{}
17519 \begin_inset Formula $\mbox{cm}$
17527 <cell alignment="center" valignment="top" usebox="none">
17530 \begin_layout Plain Layout
17535 \begin_layout Plain Layout
17545 \begin_inset Formula $\mbox{cm}$
17566 \begin_layout Subsection
17567 Customized Cell/Column Format
17568 \begin_inset CommandInset label
17570 name "sub:Customized-Format"
17575 \begin_inset Index idx
17578 \begin_layout Plain Layout
17579 Table Customization ! Cell/Column Format
17587 \begin_layout Standard
17588 Calculating the required width for spanned columns as in section
17589 \begin_inset space ~
17593 \begin_inset CommandInset ref
17595 reference "sub:Multicolumn-Calculations"
17599 is very annoying if you have several tables with multicolumn cells.
17600 To make life easier, you can define a cell/column format in the preamble,
17601 so that it can be used in all tables of the document.
17602 The format is defined with the command
17605 \begin_layout Standard
17610 newcolumntype{name of format}[number of arguments]{commands}
17613 \begin_layout Standard
17614 The format name may only consist of one letter.
17639 are predefined and cannot be used.
17640 But all letters are allowed as capitals.
17643 \begin_layout Standard
17644 \begin_inset VSpace medskip
17650 \begin_layout Standard
17651 For vertically and horizontally centered multicolumn cells with a fixed
17652 width you can define the cell format
17655 \begin_layout Standard
17660 newcolumntype{M}[1]{>{
17667 \begin_layout Standard
17674 avoids the problem of hyphenating the first word, as described in section
17675 \begin_inset space ~
17679 \begin_inset CommandInset ref
17681 reference "sub:Multiple-Lines-in"
17686 Now you can simply enter
17689 \begin_layout Standard
17695 \begin_layout Standard
17696 as LaTeX-argument in the table dialog to create a multicolumn.
17699 \begin_layout Standard
17700 \begin_inset VSpace bigskip
17706 \begin_layout Standard
17707 For cells spanned by a multicolumn cell, you can define the format
17710 \begin_layout Standard
17715 newcolumntype{S}[2]{>{
17720 \begin_inset Newline newline
17724 \begin_inset Phantom HPhantom
17727 \begin_layout Plain Layout
17741 arrayrulewidth)*(1-#2))/#2}}
17744 \begin_layout Standard
17745 This format uses equation
17746 \begin_inset CommandInset ref
17752 to calculate the required width so that each spanned cell has the same
17756 \begin_layout Standard
17760 \begin_layout Standard
17763 S{width of multicolumn cell}{number of spanned columns}
17766 \begin_layout Standard
17767 as LaTeX-argument of the column.
17770 \begin_layout Standard
17771 \begin_inset VSpace bigskip
17777 \begin_layout Standard
17778 For colored columns, you can define
17781 \begin_layout Standard
17786 newcolumntype{K}[1]{>{
17793 \begin_layout Standard
17795 \begin_inset Quotes eld
17799 \begin_inset Quotes erd
17802 at the end creates a column with a flexible width whose text is horizontally
17807 \begin_layout Standard
17813 \begin_layout Standard
17817 \begin_layout Standard
17818 \begin_inset VSpace bigskip
17824 \begin_layout Standard
17826 \begin_inset space ~
17830 \begin_inset CommandInset ref
17832 reference "tab:Table-using-user-defined"
17836 use the LaTeX-arguments
17839 \begin_layout Standard
17845 \begin_layout Standard
17846 for the first column and the multicolumn,
17849 \begin_layout Standard
17855 \begin_layout Standard
17856 for the last column, and
17859 \begin_layout Standard
17865 \begin_layout Standard
17866 for the cells in the second column.
17869 \begin_layout Standard
17870 \begin_inset Float table
17876 \begin_layout Plain Layout
17877 \begin_inset Caption
17879 \begin_layout Plain Layout
17880 \begin_inset CommandInset label
17882 name "tab:Table-using-user-defined"
17886 Table using user-defined table formats
17894 \begin_layout Plain Layout
17896 \begin_inset Tabular
17897 <lyxtabular version="3" rows="3" columns="4">
17898 <features tabularvalignment="middle">
17899 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
17900 <column alignment="center" valignment="middle" width="0" special="S{2.5cm}{2}">
17901 <column alignment="center" valignment="middle" width="0">
17902 <column alignment="center" valignment="middle" width="0" special="K{red}">
17904 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17907 \begin_layout Plain Layout
17908 verylongtablecellword
17913 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
17916 \begin_layout Plain Layout
17917 multiple lines multicolumn
17922 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17925 \begin_layout Plain Layout
17931 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17934 \begin_layout Plain Layout
17942 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17945 \begin_layout Plain Layout
17951 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17954 \begin_layout Plain Layout
17960 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17963 \begin_layout Plain Layout
17969 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17972 \begin_layout Plain Layout
17980 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17983 \begin_layout Plain Layout
17989 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17992 \begin_layout Plain Layout
17998 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18001 \begin_layout Plain Layout
18007 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18010 \begin_layout Plain Layout
18029 \begin_layout Subsection
18031 \begin_inset CommandInset label
18033 name "sub:Line-Thickness"
18038 \begin_inset Index idx
18041 \begin_layout Plain Layout
18042 Table Customization ! Line Thickness
18050 \begin_layout Standard
18051 The line thickness for all lines in a table can be adjusted with the length
18059 To set for example a line thickness of 1.5
18060 \begin_inset space \thinspace{}
18064 \begin_inset space ~
18068 \begin_inset CommandInset ref
18070 reference "tab:Table-with-1.5"
18074 , insert the command
18077 \begin_layout Standard
18084 arrayrulewidth}{1.5pt}
18087 \begin_layout Standard
18088 in TeX-Code before the table or table float.
18089 The changed thickness is valid for all subsequent tables.
18090 To use the default value again, set
18097 \begin_inset space \thinspace{}
18100 pt in TeX-Code after the table or table float.
18103 \begin_layout Standard
18107 \begin_layout Plain Layout
18113 arrayrulewidth}{1.5pt}
18119 \begin_inset Float table
18124 \begin_layout Plain Layout
18125 \begin_inset Caption
18127 \begin_layout Plain Layout
18128 \begin_inset CommandInset label
18130 name "tab:Table-with-1.5"
18135 \begin_inset space \thinspace{}
18146 \begin_layout Plain Layout
18148 \begin_inset Tabular
18149 <lyxtabular version="3" rows="3" columns="3">
18150 <features tabularvalignment="middle">
18151 <column alignment="center" valignment="top" width="0">
18152 <column alignment="center" valignment="top" width="0">
18153 <column alignment="center" valignment="top" width="0">
18155 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18158 \begin_layout Plain Layout
18164 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18167 \begin_layout Plain Layout
18173 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18176 \begin_layout Plain Layout
18184 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18187 \begin_layout Plain Layout
18193 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18196 \begin_layout Plain Layout
18202 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18205 \begin_layout Plain Layout
18213 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18216 \begin_layout Plain Layout
18222 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18225 \begin_layout Plain Layout
18231 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18234 \begin_layout Plain Layout
18254 \begin_layout Plain Layout
18260 arrayrulewidth}{0.4pt}
18268 \begin_layout Standard
18269 \begin_inset VSpace bigskip
18272 To set the line thickness to 1.5
18273 \begin_inset space \thinspace{}
18276 pt only for horizontal lines, as in Table
18277 \begin_inset space ~
18281 \begin_inset CommandInset ref
18283 reference "tab:Table-with-horizontal"
18287 , insert these commands in TeX-Code before the table or table float:
18290 \begin_layout Standard
18300 \begin_inset Newline newline
18308 \begin_inset Newline newline
18317 arrayrulewidth 1.5pt}
18318 \begin_inset Newline newline
18329 arrayrulewidth 0.4pt}}
18332 \begin_layout Standard
18333 To return to the default line thickness, insert this command in TeX-Code
18334 after the table or table float:
18337 \begin_layout Standard
18349 \begin_layout Standard
18353 \begin_layout Plain Layout
18364 \begin_layout Plain Layout
18373 \begin_layout Plain Layout
18381 arrayrulewidth 1.5pt}
18384 \begin_layout Plain Layout
18394 arrayrulewidth 0.4pt}}
18400 \begin_inset Float table
18405 \begin_layout Plain Layout
18406 \begin_inset Caption
18408 \begin_layout Plain Layout
18409 \begin_inset CommandInset label
18411 name "tab:Table-with-horizontal"
18416 \begin_inset space \thinspace{}
18419 pt thick horizontal lines
18427 \begin_layout Plain Layout
18429 \begin_inset Tabular
18430 <lyxtabular version="3" rows="3" columns="3">
18431 <features tabularvalignment="middle">
18432 <column alignment="center" valignment="top" width="0">
18433 <column alignment="center" valignment="top" width="0">
18434 <column alignment="center" valignment="top" width="0">
18436 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18439 \begin_layout Plain Layout
18445 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18448 \begin_layout Plain Layout
18454 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18457 \begin_layout Plain Layout
18465 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18468 \begin_layout Plain Layout
18474 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18477 \begin_layout Plain Layout
18483 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18486 \begin_layout Plain Layout
18494 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18497 \begin_layout Plain Layout
18503 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18506 \begin_layout Plain Layout
18512 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18515 \begin_layout Plain Layout
18535 \begin_layout Plain Layout
18551 \begin_layout Standard
18552 \begin_inset VSpace bigskip
18555 To set the line thickness to 1.5
18556 \begin_inset space \thinspace{}
18559 pt only for vertical lines, create the following column format in the document
18560 preamble, according to the description in section
18561 \begin_inset space ~
18565 \begin_inset CommandInset ref
18567 reference "sub:Customized-Format"
18574 \begin_layout Standard
18579 newcolumntype{V}{!{
18581 vrule width 1.5pt}}
18584 \begin_layout Standard
18586 \begin_inset space ~
18590 \begin_inset CommandInset ref
18592 reference "tab:Table-with-vertical"
18599 \begin_layout Standard
18605 \begin_layout Standard
18606 was used for the last column and
18609 \begin_layout Standard
18615 \begin_layout Standard
18616 for the other columns.
18619 \begin_layout Standard
18620 \begin_inset Float table
18625 \begin_layout Plain Layout
18626 \begin_inset Caption
18628 \begin_layout Plain Layout
18629 \begin_inset CommandInset label
18631 name "tab:Table-with-vertical"
18636 \begin_inset space \thinspace{}
18639 pt thick vertical lines
18647 \begin_layout Plain Layout
18649 \begin_inset Tabular
18650 <lyxtabular version="3" rows="3" columns="3">
18651 <features tabularvalignment="middle">
18652 <column alignment="center" valignment="top" width="0" special="Vc">
18653 <column alignment="center" valignment="top" width="0" special="Vc">
18654 <column alignment="center" valignment="top" width="0" special="VcV">
18656 <cell alignment="center" valignment="top" topline="true" usebox="none">
18659 \begin_layout Plain Layout
18665 <cell alignment="center" valignment="top" topline="true" usebox="none">
18668 \begin_layout Plain Layout
18674 <cell alignment="center" valignment="top" topline="true" usebox="none">
18677 \begin_layout Plain Layout
18685 <cell alignment="center" valignment="top" topline="true" usebox="none">
18688 \begin_layout Plain Layout
18694 <cell alignment="center" valignment="top" topline="true" usebox="none">
18697 \begin_layout Plain Layout
18703 <cell alignment="center" valignment="top" topline="true" usebox="none">
18706 \begin_layout Plain Layout
18714 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18717 \begin_layout Plain Layout
18723 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18726 \begin_layout Plain Layout
18732 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18735 \begin_layout Plain Layout
18754 \begin_layout Subsection
18756 \begin_inset Index idx
18759 \begin_layout Plain Layout
18760 Table Customization ! Dashed Lines
18768 \begin_layout Standard
18772 \begin_layout Plain Layout
18782 \begin_inset Note Note
18785 \begin_layout Plain Layout
18786 The following section will only be displayed when the LaTeX-package
18798 \begin_layout Standard
18799 \begin_inset Float table
18805 \begin_layout Plain Layout
18806 \begin_inset Caption
18808 \begin_layout Plain Layout
18809 \begin_inset CommandInset label
18811 name "tab:Table-with-dashed"
18815 Table with dashed lines
18823 \begin_layout Plain Layout
18825 \begin_inset Tabular
18826 <lyxtabular version="3" rows="5" columns="5">
18827 <features tabularvalignment="middle">
18828 <column alignment="center" valignment="top" width="0">
18829 <column alignment="center" valignment="top" width="0">
18830 <column alignment="center" valignment="top" width="0" special=":c">
18831 <column alignment="center" valignment="top" width="0">
18832 <column alignment="center" valignment="top" width="0">
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" usebox="none">
18846 \begin_layout Plain Layout
18852 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18855 \begin_layout Plain Layout
18861 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18864 \begin_layout Plain Layout
18870 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18873 \begin_layout Plain Layout
18881 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18884 \begin_layout Plain Layout
18890 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18893 \begin_layout Plain Layout
18899 <cell alignment="center" valignment="top" topline="true" usebox="none">
18902 \begin_layout Plain Layout
18908 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18911 \begin_layout Plain Layout
18917 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18920 \begin_layout Plain Layout
18928 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18931 \begin_layout Plain Layout
18935 \begin_layout Plain Layout
18949 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18952 \begin_layout Plain Layout
18958 <cell alignment="center" valignment="top" usebox="none">
18961 \begin_layout Plain Layout
18967 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18970 \begin_layout Plain Layout
18976 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
18979 \begin_layout Plain Layout
18987 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18990 \begin_layout Plain Layout
18994 \begin_layout Plain Layout
19008 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19011 \begin_layout Plain Layout
19017 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
19020 \begin_layout Plain Layout
19026 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none" special="c:">
19029 \begin_layout Plain Layout
19035 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19038 \begin_layout Plain Layout
19046 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19049 \begin_layout Plain Layout
19055 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19058 \begin_layout Plain Layout
19064 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19067 \begin_layout Plain Layout
19073 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19076 \begin_layout Plain Layout
19082 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19085 \begin_layout Plain Layout
19104 \begin_layout Standard
19105 LyX does not natively support dashed lines, so you have to use TeX-Code.
19106 As a prerequisite the LaTeX-package
19111 \begin_inset Index idx
19114 \begin_layout Plain Layout
19115 LaTeX-packages ! arydshln
19120 must be loaded in the document preamble with the command
19123 \begin_layout Standard
19128 usepackage{arydshln}
19131 \begin_layout Standard
19132 To make a vertical line dashed, enter the colon
19133 \begin_inset Quotes eld
19137 \begin_inset Quotes erd
19140 together with the character for the horizontal alignment as LaTeX-argument
19141 in the table cell dialog.
19144 \begin_layout Standard
19145 For a horizontal dashed line add the command
19148 \begin_layout Standard
19156 \begin_layout Standard
19157 in TeX-Code as first element of the first cell in the table row.
19160 \begin_layout Standard
19161 For dashed multicolumn lines use the command
19164 \begin_layout Standard
19169 cdashline{line number
19174 \begin_layout Standard
19175 in TeX-Code as the first element of the first cell in the table row.
19176 If you have for example a multicolumn spanning columns 2 to 4 and you want
19177 to have a dashed line above, add the command
19180 \begin_layout Standard
19188 \begin_layout Standard
19189 as the first element of the first cell in the row of the multicolumn.
19192 \begin_layout Standard
19193 \begin_inset VSpace bigskip
19199 \begin_layout Standard
19201 \begin_inset space ~
19205 \begin_inset CommandInset ref
19207 reference "tab:Table-with-dashed"
19212 \begin_inset Quotes eld
19220 \begin_inset Quotes erd
19223 as LaTeX-argument of the third column.
19224 The TeX-Code command
19230 was inserted in the first cell of the third row and the TeX-Code command
19231 \begin_inset Newline newline
19240 was inserted in the first cell of the fourth row.
19243 \begin_layout Standard
19244 \begin_inset Note Greyedout
19247 \begin_layout Plain Layout
19256 is apparently not compatible with the LaTeX-package
19261 \begin_inset Index idx
19264 \begin_layout Plain Layout
19265 LaTeX-packages ! colortbl
19270 that is used for colored tables in section
19271 \begin_inset space ~
19275 \begin_inset CommandInset ref
19277 reference "sec:Colored-Tables"
19282 That means colored tables cannot have dashed lines.
19290 \begin_layout Standard
19294 \begin_layout Plain Layout
19304 \begin_inset Note Note
19307 \begin_layout Plain Layout
19308 The following will be displayed when the LaTeX-package
19320 \begin_layout Standard
19321 You need to install the package
19325 to see the content of this section in the output.
19328 \begin_layout Standard
19332 \begin_layout Plain Layout
19344 \begin_layout Chapter
19346 \begin_inset Index idx
19349 \begin_layout Plain Layout
19358 \begin_layout Section
19360 \begin_inset CommandInset label
19362 name "sec:FloatIntroduction"
19367 \begin_inset Index idx
19370 \begin_layout Plain Layout
19371 Floats ! Introduction
19379 \begin_layout Standard
19380 A float is a block of text associated with some sort of label, which doesn't
19381 have a fixed location.
19383 \begin_inset Quotes eld
19387 \begin_inset Quotes erd
19390 forward or backward a page or two, to wherever it fits best.
19398 \begin_inset space ~
19403 are also floats, because they can float to the next page when there are
19404 too many notes on the page.
19407 \begin_layout Standard
19408 Floats allow a high quality layout.
19409 Images and tables can be spread evenly to the pages to avoid white space
19410 and pages without text.
19411 As the floating often destroys the context between the text and the image/table
19412 , every float can be referenced in the text.
19413 Floats are therefore numbered.
19414 Referencing is described in section
19415 \begin_inset space ~
19419 \begin_inset CommandInset ref
19421 reference "sec:Referencing-Floats"
19428 \begin_layout Standard
19429 To insert a float, use the menu
19431 Insert\SpecialChar \menuseparator
19439 inset, a box with a label.
19440 The label will automatically be translated to the document language in
19442 After the label you can insert the caption text.
19443 The image or table is inserted above or below the caption in a separate
19444 paragraph within the float.
19445 More about the caption placement is contained in section
19446 \begin_inset space ~
19450 \begin_inset CommandInset ref
19452 reference "sec:Caption-Placement"
19457 To keep your LyX-document readable, you can open and close the float box
19458 by left-clicking on the box label.
19459 A closed float box looks like this:
19460 \begin_inset Graphics
19461 filename clipart/floatQt4.png
19463 scaleBeforeRotation
19467 – a gray button with a red label.
19470 \begin_layout Standard
19471 It is recommended that you insert floats as a separate standard paragraph
19472 to avoid possible LaTeX-errors that can occur when the surrounding text
19473 is specially formatted.
19476 \begin_layout Standard
19477 Existing figures or tables can be put into a float by highlighting them
19478 and then pressing the corresponding toolbar button for a new float.
19481 \begin_layout Section
19485 \begin_layout Standard
19486 Besides figure and table floats that are described in sections
19487 \begin_inset space ~
19491 \begin_inset CommandInset ref
19493 reference "sec:Figure-Floats"
19498 \begin_inset CommandInset ref
19500 reference "sec:Table-Floats"
19504 respectively, LyX offers the float types
19515 \begin_layout Subsection
19517 \begin_inset Index idx
19520 \begin_layout Plain Layout
19521 Floats ! Algorithms
19529 \begin_layout Standard
19530 \begin_inset Float algorithm
19536 \begin_layout Plain Layout
19537 \begin_inset Caption
19539 \begin_layout Plain Layout
19540 \begin_inset CommandInset label
19542 name "alg:Example-Algorithm-float"
19546 Example Algorithm float
19554 \begin_layout LyX-Code
19556 \begin_inset Newline newline
19559 Sum:= Sum + A(I); /*comment*/
19560 \begin_inset Newline newline
19564 \begin_inset VSpace -4mm
19575 \begin_layout Standard
19576 This float type is inserted with the menu
19578 Insert\SpecialChar \menuseparator
19579 Floats\SpecialChar \menuseparator
19583 It is used for program codes and descriptions of algorithms and can be
19584 seen as an alternative to program code listings that are explained in chapter
19585 \begin_inset space ~
19589 \begin_inset CommandInset ref
19591 reference "cha:Program-Code-Listings"
19596 A possible environment for algorithms is the
19600 , described in LyX's
19606 \begin_inset space ~
19610 \begin_inset CommandInset ref
19612 reference "alg:Example-Algorithm-float"
19616 is an example of an algorithm float where -4
19617 \begin_inset space \thinspace{}
19620 mm vertical space was added at the end of the float to have the bottom rule
19621 exactly below the last text line.
19624 \begin_layout Standard
19625 The float label is not automatically translated into the document language.
19626 If your document is not in English, you have to do this manually by adding
19627 the following line to the document preamble
19632 \begin_layout Standard
19637 floatname{algorithm}{your
19638 \begin_inset space ~
19644 \begin_layout Standard
19648 \begin_inset space ~
19654 \begin_inset Quotes eld
19662 \begin_inset Quotes erd
19668 \begin_layout Standard
19669 To insert the list of algorithms you can use the menu
19671 Insert\SpecialChar \menuseparator
19673 \begin_inset space \thinspace{}
19677 \begin_inset space \thinspace{}
19680 TOC\SpecialChar \menuseparator
19683 when your document has the same language as LyX's menu names.
19684 In other cases use this command in TeX-Code instead:
19687 \begin_layout Standard
19692 listof{algorithm}{your
19693 \begin_inset space ~
19699 \begin_layout Standard
19703 \begin_inset space ~
19709 \begin_inset Quotes eld
19717 \begin_inset Quotes erd
19723 \begin_layout Standard
19724 Algorithm floats are not by default numbered in the scheme
19725 \begin_inset Quotes eld
19729 \begin_inset Quotes erd
19732 as is the case for table and figure floats in many document-classes.
19733 To number algorithm floats in the same scheme, add this command to your
19737 \begin_layout Standard
19742 numberwithin{algorithm}{chapter}
19745 \begin_layout Standard
19746 To be able to use the command
19755 \begin_inset space ~
19760 in the document settings the option
19763 \begin_inset space ~
19767 \begin_inset space ~
19771 \begin_inset space ~
19779 \begin_layout Subsection
19781 \begin_inset Index idx
19784 \begin_layout Plain Layout
19785 Floats ! Wrap Floats
19793 \begin_layout Standard
19794 \begin_inset Wrap figure
19801 \begin_layout Plain Layout
19802 \begin_inset Graphics
19803 filename clipart/mobius.eps
19805 scaleBeforeRotation
19806 rotateOrigin center
19813 \begin_layout Plain Layout
19814 \begin_inset Caption
19816 \begin_layout Plain Layout
19817 \begin_inset CommandInset label
19819 name "fig:This-is-a"
19823 This is a figure wrap float.
19833 This float type is used if you want to wrap text around a figure or table
19834 so that it only occupies some fraction of the column width.
19835 It can be inserted using the menu
19837 Insert\SpecialChar \menuseparator
19838 Floats\SpecialChar \menuseparator
19840 \begin_inset space ~
19844 \begin_inset space ~
19852 \begin_inset space ~
19856 \begin_inset space ~
19861 if the LaTeX-package
19866 \begin_inset Index idx
19869 \begin_layout Plain Layout
19870 LaTeX-packages ! wrapfig
19874 \begin_layout Plain Layout
19892 \begin_layout Plain Layout
19893 Installing a LaTeX-package is explained it in the
19896 \begin_inset space ~
19906 The settings of the float can be modified by right-clicking on the float
19908 The mandatory settings are the float
19921 that specifies how much the float is set into the paragraph
19922 \begin_inset space \thinspace{}
19926 \begin_inset space \thinspace{}
19929 page margin, and the
19932 \begin_inset space ~
19937 that specifies how many text lines the float will approximately need.
19938 The line span is often hard to approximate; so it is better only to use
19939 it when you encounter float placement problems.
19940 You can furthermore decide if LaTeX is allowed to let the float float within
19941 the paragraph or to surrounding paragraphs.
19943 \begin_inset space ~
19947 \begin_inset CommandInset ref
19949 reference "fig:This-is-a"
19953 is an example text wrap float with a width of 40
19954 \begin_inset space \thinspace{}
19958 \begin_inset space \thinspace{}
19961 cm overhang, set to the left.
19965 \begin_layout Plain Layout
19966 Available units are explained in appendix
19967 \begin_inset space ~
19971 \begin_inset CommandInset ref
19973 reference "cha:Units-available-in"
19985 \begin_layout Standard
19986 \begin_inset Note Greyedout
19989 \begin_layout Plain Layout
19995 \begin_inset space ~
19998 wrap float floats are fragile! E.
19999 \begin_inset space \thinspace{}
20003 \begin_inset space \space{}
20006 having a figure too close to the bottom of the page can mess things up in
20007 such a way that the float does not appear in the output or that it is placed
20008 over some other text.
20016 \begin_layout Standard
20020 \begin_layout Itemize
20021 Wrap floats should not be placed in paragraphs that run over a page break.
20022 That means that wrap floats are better inserted in their exact place when
20023 the document is almost finished and you are able to estimate where page
20024 breaks will appear.
20027 \begin_layout Itemize
20028 Wrap floats should either be placed in their own paragraph before the paragraph
20029 where they should wrap into or within a paragraph.
20032 \begin_layout Itemize
20033 Wrap floats in consecutive paragraphs may cause troubles, so ensure that
20034 there is a text paragraph between them as separator.
20037 \begin_layout Itemize
20038 Wrap floats are not allowed in section headings or tables.
20041 \begin_layout Section
20043 \begin_inset Index idx
20046 \begin_layout Plain Layout
20055 \begin_layout Standard
20056 Floats are usually numbered either independently from the sections the floats
20057 are in, or in the scheme
20058 \begin_inset Quotes eld
20062 \begin_inset Quotes erd
20066 \begin_inset Quotes eld
20070 \begin_inset Quotes erd
20074 This depends on the document class used.
20077 \begin_layout Standard
20078 To change section-independent numbering, you can use this command in the
20082 \begin_layout Standard
20094 \begin_layout Standard
20101 is the command that prints the table number, for figure floats, the command
20115 in the command above prints the table number as small roman number.
20118 \begin_layout Standard
20119 To change the numbering scheme for example to
20120 \begin_inset Quotes eld
20124 \begin_inset Quotes erd
20127 , use this command in the preamble:
20130 \begin_layout Standard
20135 numberwithin{table}{subsection}
20138 \begin_layout Standard
20139 To be able to use the command
20148 \begin_inset space ~
20153 in the document settings the option
20156 \begin_inset space ~
20160 \begin_inset space ~
20164 \begin_inset space ~
20172 \begin_layout Standard
20173 Please also have a look at section
20174 \begin_inset space ~
20178 \begin_inset CommandInset ref
20180 reference "sub:Footnote-Numbering"
20184 for the details and important notes about the numbering commands.
20187 \begin_layout Section
20189 \begin_inset CommandInset label
20191 name "sec:Referencing-Floats"
20196 \begin_inset Index idx
20199 \begin_layout Plain Layout
20200 Floats ! References
20206 \begin_inset Index idx
20209 \begin_layout Plain Layout
20210 References ! to Floats
20218 \begin_layout Standard
20219 To reference a float, insert a label into its caption using the menu
20221 Insert\SpecialChar \menuseparator
20224 or the toolbar button
20225 \begin_inset Graphics
20226 filename ../images/label-insert.png
20228 scaleBeforeRotation
20233 A grey label box like this one:
20234 \begin_inset Graphics
20235 filename clipart/labelQt4.png
20237 scaleBeforeRotation
20241 will be inserted and the label window pops up asking for the label text.
20242 LyX offers as text the first words of the caption with a prefix.
20243 The prefix depends on the float type, e.
20244 \begin_inset space \thinspace{}
20248 \begin_inset space \space{}
20251 for figure floats the prefix will be "
20258 \begin_layout Standard
20259 The label is used as anchor and name for the reference.
20260 You can refer to the label using the menu
20262 Insert\SpecialChar \menuseparator
20265 or the toolbar button
20266 \begin_inset Graphics
20267 filename ../images/dialog-show-new-inset_ref.png
20269 scaleBeforeRotation
20274 A grey cross-reference box like this one:
20275 \begin_inset Graphics
20276 filename clipart/referenceQt4.png
20278 scaleBeforeRotation
20282 will be inserted and the cross-reference window appear showing all labels
20284 If you have multiple LyX-documents opened, choose the one you are working
20285 on from the drop-list at the top of the dialog.
20286 You can now sort the labels alphabetically and then choose one.
20287 At the position of the cross-reference box the float number will appear
20291 \begin_layout Standard
20292 It is recommended that you use a protected space between the cross-reference
20293 name and its number to avoid line breaks between them.
20294 If a cross-reference refers to a non-existing label, you will see two question
20295 marks in the output instead of the reference.
20298 \begin_layout Standard
20299 You can change labels at any time by clicking on the label box.
20300 References to the changed label will automatically change its link to the
20301 new label text, so that you don't need to take care about this.
20304 \begin_layout Standard
20308 \begin_inset space ~
20312 \begin_inset space ~
20317 in the cross-reference window sets the cursor before the referred label.
20318 The button text changes then to Go
20319 \begin_inset space ~
20322 Back and you can use it to set the cursor back to the cross-reference.
20323 Right-clicking on a cross-reference box also sets the cursor before the
20324 referenced label but without the possibility of going back.
20327 \begin_layout Subsection
20328 Cross-Reference Formats
20329 \begin_inset CommandInset label
20331 name "sub:Cross-Reference-Formats"
20336 \begin_inset Index idx
20339 \begin_layout Plain Layout
20340 References ! Formats
20348 \begin_layout Standard
20349 There are six varieties of cross-references:
20352 \begin_layout Description
20353 <reference>: prints the float number, this is the default:
20354 \begin_inset CommandInset ref
20356 reference "fig:Two-distorted-images"
20363 \begin_layout Description
20364 (<reference>): prints the float number within two parentheses, this is the
20365 style normally used to reference formulas, especially when the reference
20367 \begin_inset Quotes eld
20371 \begin_inset Quotes erd
20375 \begin_inset CommandInset ref
20384 \begin_layout Description
20385 <page>: prints the page number: Page
20386 \begin_inset space ~
20390 \begin_inset CommandInset ref
20391 LatexCommand pageref
20392 reference "fig:Two-distorted-images"
20399 \begin_layout Description
20401 \begin_inset space ~
20405 \begin_inset space ~
20408 <page>: prints the text "on page" and the page number:
20409 \begin_inset CommandInset ref
20410 LatexCommand vpageref
20411 reference "fig:Two-distorted-images"
20418 \begin_layout Description
20420 \begin_inset space ~
20424 \begin_inset space ~
20428 \begin_inset space ~
20431 <page>: prints the float number, the text "on page", and the page number:
20433 \begin_inset CommandInset ref
20435 reference "fig:Two-distorted-images"
20442 \begin_layout Description
20444 \begin_inset space ~
20447 reference: prints a self defined cross-reference format.
20448 \begin_inset Newline newline
20452 \begin_inset Note Greyedout
20455 \begin_layout Plain Layout
20460 This feature is only available when you have the LaTeX-package
20465 \begin_inset Index idx
20468 \begin_layout Plain Layout
20469 LaTeX-packages ! prettyref
20482 \begin_layout Standard
20487 will not print the page number if the label is on the previous, the same,
20490 \begin_inset space \thinspace{}
20494 \begin_inset space \space{}
20498 \begin_inset Quotes eld
20506 \begin_inset Quotes erd
20512 <reference> on page <page>
20514 will not print anything about the page if the label is on the same page.
20517 \begin_layout Standard
20518 The number and current page of the part of the document referred to in the
20519 output is automatically calculated by LaTeX.
20520 The varieties are adjusted in the field
20524 of the cross-reference window that appears when you click on the cross-referenc
20528 \begin_layout Standard
20529 \begin_inset Note Greyedout
20532 \begin_layout Plain Layout
20542 \begin_inset Index idx
20545 \begin_layout Plain Layout
20546 LaTeX-packages ! prettyref
20551 does not know all of LyX's possible label shortcuts
20555 \begin_layout Plain Layout
20556 \begin_inset Quotes eld
20560 \begin_inset Quotes erd
20563 is for example LyX's shortcut for labels in figure captions.
20568 and is not internationalized.
20569 To find out how to tell
20573 new shortcuts and translations, have a look at its documentation
20574 \begin_inset CommandInset citation
20588 \begin_layout Standard
20589 \begin_inset Note Greyedout
20592 \begin_layout Plain Layout
20597 Due to a bug in the LaTeX-package
20601 version 1.4w, some cross-reference formats will cause LaTeX errors for document
20602 languages that make the period character active (like French).
20603 For a workaround, see
20604 \begin_inset Newline newline
20608 \begin_inset CommandInset href
20610 target "http://wiki.lyx.org/LaTeX/LatexBugs#toc5"
20622 \begin_layout Subsection
20623 Automatic Reference Naming
20624 \begin_inset Index idx
20627 \begin_layout Plain Layout
20628 References ! Automatic Reference Naming
20636 \begin_layout Standard
20642 \begin_inset Index idx
20645 \begin_layout Plain Layout
20646 LaTeX-packages ! hyperref
20651 , that is enabled in the
20659 dialog, provides a very useful feature that cross-references automatically
20660 include the name of the referenced floats (or text parts like
20665 So you will save having to write e.
20666 \begin_inset space \thinspace{}
20670 \begin_inset space \space{}
20674 \begin_inset Quotes eld
20678 \begin_inset Quotes erd
20681 before every reference to a figure.
20682 To use this feature, enable
20686 and insert this line to the LaTeX preamble:
20689 \begin_layout Standard
20705 \begin_layout Standard
20706 When you prefer other reference names than the default ones, for example
20707 you want instead of
20708 \begin_inset Quotes eld
20712 \begin_inset Quotes erd
20716 \begin_inset Quotes eld
20720 \begin_inset space \thinspace{}
20724 \begin_inset Quotes eld
20727 , you can redefine the name by inserting this in the preamble:
20730 \begin_layout Standard
20741 sectionautorefname}
20742 \begin_inset Newline newline
20746 \begin_inset Phantom HPhantom
20749 \begin_layout Plain Layout
20752 \begin_inset space ~
20765 \begin_layout Standard
20766 When you are using another document language than English, replace
20767 \begin_inset Newline newline
20782 , where *** is the name of the language used.
20785 \begin_layout Standard
20786 To get automatic names, but not for certain reference types, for example
20787 not for equations, use this preamble code:
20790 \begin_layout Standard
20798 \begin_inset Newline newline
20808 \begin_inset Newline newline
20819 equationautorefname}
20820 \begin_inset Newline newline
20824 \begin_inset Phantom HPhantom
20827 \begin_layout Plain Layout
20830 \begin_inset space ~
20845 \begin_layout Standard
20846 More about this topic can be found in
20851 \begin_inset CommandInset citation
20860 \begin_layout Standard
20861 \begin_inset Note Greyedout
20864 \begin_layout Plain Layout
20869 Automatic reference naming cannot be used when you use cross-references
20873 \begin_inset space ~
20878 style, as described in section
20879 \begin_inset space ~
20883 \begin_inset CommandInset ref
20885 reference "sub:Cross-Reference-Formats"
20897 \begin_layout Standard
20902 manual is an example where automatic reference naming is used.
20905 \begin_layout Subsection
20907 \begin_inset CommandInset label
20909 name "sub:Reference-Position"
20914 \begin_inset Index idx
20917 \begin_layout Plain Layout
20918 References ! Reference Position
20926 \begin_layout Standard
20932 \begin_inset Index idx
20935 \begin_layout Plain Layout
20936 LaTeX-packages ! hyperref
20949 dialog to link cross-references in the output, you will see that clicking
20950 on an image float reference jumps to the image label.
20951 The caption will be the first text part on the screen, so that you cannot
20952 see the image without scrolling.
20953 This is because the reference link anchor is placed at the position of
20955 With the use of the package
20960 \begin_inset Index idx
20963 \begin_layout Plain Layout
20964 LaTeX-packages ! hypcap
20969 , which is part of the LaTeX-package
20974 \begin_inset Index idx
20977 \begin_layout Plain Layout
20978 LaTeX-packages ! oberdiek
20983 , the link anchor is placed at the beginning of a float.
20984 To use this feature for figure floats, load
20988 in the document preamble with the line
20991 \begin_layout Standard
20996 usepackage[figure]{hypcap}
20999 \begin_layout Standard
21004 for all float types but this is not recommended for stability reasons.
21005 For more information, have a look at
21010 \begin_inset CommandInset citation
21019 \begin_layout Standard
21020 \begin_inset Note Greyedout
21023 \begin_layout Plain Layout
21032 has no effect on references to subfigures.
21040 \begin_layout Section
21042 \begin_inset CommandInset label
21044 name "sec:Float-Placement"
21049 \begin_inset Index idx
21052 \begin_layout Plain Layout
21061 \begin_layout Standard
21062 Right-clicking on a float-box opens a dialog where you can alter the placement
21063 options that LaTeX uses for positioning the float.
21064 \begin_inset Newline newline
21070 \begin_inset space ~
21075 is only useful for two-column documents: If you select it, the float will
21076 span both columns on the page instead of being confined to just one.
21077 \begin_inset Newline newline
21083 \begin_inset space ~
21088 is used to rotate floats, see section
21089 \begin_inset CommandInset ref
21091 reference "sec:Rotated-Floats"
21098 \begin_layout Standard
21099 You can use one ore more of the following options in the float dialog to
21100 set the placement for a particular float when you uncheck the option
21103 \begin_inset space ~
21107 \begin_inset space ~
21115 \begin_layout Description
21117 \begin_inset space ~
21121 \begin_inset space ~
21124 possible try to place the float on the position where it has been inserted
21127 \begin_layout Description
21129 \begin_inset space ~
21133 \begin_inset space ~
21136 page try to place the float at the top of the current page
21139 \begin_layout Description
21141 \begin_inset space ~
21145 \begin_inset space ~
21148 page try to place the float at the bottom of the current page
21151 \begin_layout Description
21153 \begin_inset space ~
21157 \begin_inset space ~
21160 floats try to place the float on its own page
21163 \begin_layout Standard
21164 The order of the above option is
21169 That means, if you use the default placement, LaTeX will first try out
21173 \begin_inset space ~
21177 \begin_inset space ~
21185 \begin_inset space ~
21189 \begin_inset space ~
21194 , and then the others.
21195 If you do not use the default, LaTeX will try only the checked options
21196 but in the same order.
21198 \begin_inset space ~
21201 placements are possible the procedure is internally repeated but it is tried
21202 to put the float on the following page.
21205 \begin_layout Standard
21206 By default, each option has its own rules:
21209 \begin_layout Labeling
21210 \labelwidthstring 00.00.0000
21214 \begin_inset space ~
21218 \begin_inset space ~
21223 only floats occupying less than 70
21224 \begin_inset space \thinspace{}
21227 % of the page can be placed at the top of a page (
21236 \begin_layout Labeling
21237 \labelwidthstring 00.00.0000
21241 \begin_inset space ~
21245 \begin_inset space ~
21250 : only floats occupying less than 30
21251 \begin_inset space \thinspace{}
21254 % of the page can be placed at the bottom of a page.
21264 \begin_layout Labeling
21265 \labelwidthstring 00.00.0000
21269 \begin_inset space ~
21273 \begin_inset space ~
21278 : only if more than 50
21279 \begin_inset space \thinspace{}
21282 % of the page are occupied by floats, several floats can be set together
21293 \begin_layout Standard
21294 If you don't like these rules, you can ignore them by using the additional
21298 \begin_inset space ~
21302 \begin_inset space ~
21308 \begin_inset Newline newline
21311 You can also redefine the rules with LaTeX-commands that are given in parenthese
21312 s after the rules description above.
21313 To increase for example the often too small default of the bottom-rule
21315 \begin_inset space \thinspace{}
21318 % of the page, add this line to your document preamble:
21321 \begin_layout Standard
21328 bottomfraction}{0.5}
21331 \begin_layout Standard
21332 Sometimes you might need, under all circumstances, a float to be placed
21333 exactly at the position where it is inserted.
21334 For this case you can use the option
21337 \begin_inset space ~
21343 Use this option very rarely and only if the document is almost ready to
21344 be printed, because the float is then no longer able to
21345 \begin_inset Quotes eld
21349 \begin_inset Quotes erd
21352 when you change your document and this will often destroy the page layout.
21355 \begin_layout Standard
21356 There are no placement options for text wrap floats, because they are always
21357 surrounded by the text of a certain paragraph.
21358 \begin_inset VSpace bigskip
21364 \begin_layout Standard
21365 Sometimes you have the problem that a float is placed at the top of a page
21366 while its corresponding section starts at the middle of the page, so that
21367 the reader could think the float is part of the previous section.
21368 To avoid this the LaTeX-command
21375 It suppresses a given float placement for the page where it is inserted
21376 and can therefore be used to avoid floats being set before a section starts.
21377 To get this, add these commands to your document preamble:
21380 \begin_layout Standard
21390 \begin_inset Newline newline
21404 \begin_layout Standard
21405 You can define the same for all section headings, like chapters and subsections.
21406 This definition is not recommended to be used for small text parts like
21407 subsubsections because LaTeX may then have problems finding a suitable
21411 \begin_layout Standard
21412 \begin_inset VSpace bigskip
21415 In some cases it is required to have all figures/tables at the end of the
21417 For this purpose the LaTeX-package
21422 \begin_inset Index idx
21425 \begin_layout Plain Layout
21426 LaTeX-packages ! endfloat
21432 It puts all figure and table floats at the end of the document into their
21434 At the original float position a text hint like
21435 \begin_inset Quotes eld
21441 \begin_inset space ~
21447 \begin_inset Quotes erd
21451 The endfloat-package is loaded in the preamble with the line
21454 \begin_layout Standard
21459 usepackage[options]{endfloat}
21462 \begin_layout Standard
21463 There are various package options to format the created figure/table sections.
21464 For more information we refer to the
21469 \begin_inset CommandInset citation
21476 \begin_inset Newline newline
21480 \begin_inset Note Greyedout
21483 \begin_layout Plain Layout
21488 doesn't provide an automatic translation for the text hint, you have to
21489 do this manually, see section
21490 \begin_inset space ~
21494 \begin_inset CommandInset citation
21506 \begin_inset Newline newline
21510 \begin_inset Note Greyedout
21513 \begin_layout Plain Layout
21518 There is currently a bug in
21522 when the caption contains a German
21523 \begin_inset Quotes eld
21527 \begin_inset Quotes erd
21531 Use in this case the command
21532 \begin_inset Quotes eld
21542 \begin_inset Quotes erd
21545 in TeX-Code instead of
21546 \begin_inset Quotes eld
21550 \begin_inset Quotes erd
21561 \begin_layout Standard
21562 \begin_inset VSpace bigskip
21565 For more details about float placements, have a look at LaTeX books,
21566 \begin_inset CommandInset citation
21568 key "latexcompanion,latexguide,latexbook"
21575 \begin_layout Section
21577 \begin_inset CommandInset label
21579 name "sec:Rotated-Floats"
21584 \begin_inset Index idx
21587 \begin_layout Plain Layout
21596 \begin_layout Standard
21597 Especially for wide tables you might have floats rotated.
21598 To rotate a whole float including the caption, right-click on the float-box
21602 \begin_inset space ~
21610 \begin_layout Standard
21611 Rotated floats are always placed on a page of their own (or column of their
21612 own; in case you have a multi-column document).
21613 You can let them span several columns using the float settings option
21616 \begin_inset space ~
21622 Floats are rotated so that you can read them from the outside margin.
21623 To force a certain rotation direction for all pages, you can add either
21632 to the document class options.
21635 \begin_layout Standard
21636 Referencing rotated floats is the same as for normal floats, the caption
21637 format is also the same: Table
21638 \begin_inset space ~
21642 \begin_inset CommandInset ref
21644 reference "tab:Rotated-table"
21648 is an example of a rotated table float.
21651 \begin_layout Standard
21652 \begin_inset Note Greyedout
21655 \begin_layout Plain Layout
21660 Not all DVI-viewers are able to display rotated floats.
21668 \begin_layout Standard
21669 \begin_inset Float table
21674 \begin_layout Plain Layout
21675 \begin_inset Caption
21677 \begin_layout Plain Layout
21678 \begin_inset CommandInset label
21680 name "tab:Rotated-table"
21692 \begin_layout Plain Layout
21694 \begin_inset Tabular
21695 <lyxtabular version="3" rows="1" columns="5">
21696 <features tabularvalignment="middle">
21697 <column alignment="center" valignment="top" width="0">
21698 <column alignment="center" valignment="top" width="0">
21699 <column alignment="center" valignment="top" width="0">
21700 <column alignment="center" valignment="top" width="0">
21701 <column alignment="center" valignment="top" width="0">
21703 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21706 \begin_layout Plain Layout
21712 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21715 \begin_layout Plain Layout
21721 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21724 \begin_layout Plain Layout
21730 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21733 \begin_layout Plain Layout
21739 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21742 \begin_layout Plain Layout
21761 \begin_layout Section
21763 \begin_inset Index idx
21766 \begin_layout Plain Layout
21775 \begin_layout Standard
21776 Subfloats are for example used when a figure consists of several images.
21777 They are created by inserting a float into an existing float.
21778 The placement of the subfloats can be controlled in the same way as for
21779 paragraphs as shown in table
21780 \begin_inset space ~
21784 \begin_inset CommandInset ref
21786 reference "tab:Two-subtables-side"
21791 \begin_inset CommandInset ref
21793 reference "tab:Two-subtables-upon"
21800 \begin_layout Standard
21801 Referencing subfloats works as for normal floats: Table
21802 \begin_inset space ~
21806 \begin_inset CommandInset ref
21808 reference "tab:This-is-subtable-a"
21813 \begin_inset CommandInset ref
21815 reference "tab:This-is-subtable-b"
21819 are subtables of table
21820 \begin_inset space ~
21824 \begin_inset CommandInset ref
21826 reference "tab:Two-subtables-side"
21833 \begin_layout Standard
21834 \begin_inset Float table
21839 \begin_layout Plain Layout
21840 \begin_inset Caption
21842 \begin_layout Plain Layout
21843 \begin_inset CommandInset label
21845 name "tab:Two-subtables-side"
21849 Two subtables placed side by side.
21857 \begin_layout Plain Layout
21859 \begin_inset space \hfill{}
21863 \begin_inset Float table
21868 \begin_layout Plain Layout
21869 \begin_inset Caption
21871 \begin_layout Plain Layout
21872 \begin_inset CommandInset label
21874 name "tab:This-is-subtable-a"
21878 This is subtable a.
21886 \begin_layout Plain Layout
21888 \begin_inset Tabular
21889 <lyxtabular version="3" rows="1" columns="5">
21890 <features tabularvalignment="middle">
21891 <column alignment="center" valignment="top" width="0">
21892 <column alignment="center" valignment="top" width="0">
21893 <column alignment="center" valignment="top" width="0">
21894 <column alignment="center" valignment="top" width="0">
21895 <column alignment="center" valignment="top" width="0">
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" usebox="none">
21927 \begin_layout Plain Layout
21933 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21936 \begin_layout Plain Layout
21953 \begin_inset space \hfill{}
21957 \begin_inset Float table
21962 \begin_layout Plain Layout
21963 \begin_inset Caption
21965 \begin_layout Plain Layout
21966 \begin_inset CommandInset label
21968 name "tab:This-is-subtable-b"
21972 This is subtable b.
21980 \begin_layout Plain Layout
21982 \begin_inset Tabular
21983 <lyxtabular version="3" rows="1" columns="5">
21984 <features tabularvalignment="middle">
21985 <column alignment="center" valignment="top" width="0">
21986 <column alignment="center" valignment="top" width="0">
21987 <column alignment="center" valignment="top" width="0">
21988 <column alignment="center" valignment="top" width="0">
21989 <column alignment="center" valignment="top" width="0">
21991 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21994 \begin_layout Plain Layout
22000 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22003 \begin_layout Plain Layout
22009 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22012 \begin_layout Plain Layout
22018 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22021 \begin_layout Plain Layout
22027 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22030 \begin_layout Plain Layout
22047 \begin_inset space \hfill{}
22058 \begin_layout Standard
22059 \begin_inset Float table
22064 \begin_layout Plain Layout
22065 \begin_inset Caption
22067 \begin_layout Plain Layout
22068 \begin_inset CommandInset label
22070 name "tab:Two-subtables-upon"
22074 Two subtables placed one above the other.
22075 (a) table with 4 cells, (b) table with 5 cells.
22083 \begin_layout Plain Layout
22085 \begin_inset Float table
22090 \begin_layout Plain Layout
22091 \begin_inset Caption
22093 \begin_layout Plain Layout
22102 \begin_layout Plain Layout
22104 \begin_inset Tabular
22105 <lyxtabular version="3" rows="1" columns="4">
22106 <features tabularvalignment="middle">
22107 <column alignment="center" valignment="top" width="0">
22108 <column alignment="center" valignment="top" width="0">
22109 <column alignment="center" valignment="top" width="0">
22110 <column alignment="center" valignment="top" width="0">
22112 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22115 \begin_layout Plain Layout
22121 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22124 \begin_layout Plain Layout
22130 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22133 \begin_layout Plain Layout
22139 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22142 \begin_layout Plain Layout
22161 \begin_layout Plain Layout
22163 \begin_inset Float table
22168 \begin_layout Plain Layout
22169 \begin_inset Caption
22171 \begin_layout Plain Layout
22180 \begin_layout Plain Layout
22182 \begin_inset Tabular
22183 <lyxtabular version="3" rows="1" columns="5">
22184 <features tabularvalignment="middle">
22185 <column alignment="center" valignment="top" width="0">
22186 <column alignment="center" valignment="top" width="0">
22187 <column alignment="center" valignment="top" width="0">
22188 <column alignment="center" valignment="top" width="0">
22189 <column alignment="center" valignment="top" width="0">
22191 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22194 \begin_layout Plain Layout
22200 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22203 \begin_layout Plain Layout
22209 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22212 \begin_layout Plain Layout
22218 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22221 \begin_layout Plain Layout
22227 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22230 \begin_layout Plain Layout
22254 \begin_layout Section
22255 Floats Side by Side
22256 \begin_inset Index idx
22259 \begin_layout Plain Layout
22260 Floats ! Side by side
22268 \begin_layout Standard
22269 To place floats side by side, as in Figures
22270 \begin_inset space ~
22274 \begin_inset CommandInset ref
22276 reference "fig:Float-left"
22281 \begin_inset CommandInset ref
22283 reference "fig:Float-right"
22292 In it two minipage boxes are inserted.
22296 \begin_layout Plain Layout
22297 Minipages are explained in section
22298 \begin_inset space ~
22302 \begin_inset CommandInset ref
22304 reference "sec:Minipages"
22313 The width is set to 45
22314 \begin_inset space \thinspace{}
22318 \begin_inset space \thinspace{}
22321 column% and the box alignment to
22326 The minipage boxes contain the image and the caption in the same way as
22327 they are in a float.
22328 The only difference is that the image unit
22331 \begin_inset space ~
22335 \begin_inset space ~
22340 is now calculated according to the width of the minipage boxes.
22343 \begin_layout Standard
22344 \begin_inset Float figure
22349 \begin_layout Plain Layout
22350 \begin_inset Box Frameless
22360 height_special "totalheight"
22363 \begin_layout Plain Layout
22365 \begin_inset Graphics
22366 filename clipart/mobius.eps
22369 scaleBeforeRotation
22376 \begin_layout Plain Layout
22377 \begin_inset Caption
22379 \begin_layout Plain Layout
22380 \begin_inset CommandInset label
22382 name "fig:Float-left"
22386 Float on the left side.
22397 \begin_inset space \hfill{}
22401 \begin_inset Box Frameless
22411 height_special "totalheight"
22414 \begin_layout Plain Layout
22416 \begin_inset Graphics
22417 filename clipart/platypus.eps
22420 scaleBeforeRotation
22427 \begin_layout Plain Layout
22428 \begin_inset Caption
22430 \begin_layout Plain Layout
22431 \begin_inset CommandInset label
22433 name "fig:Float-right"
22437 Float on the right side.
22450 \begin_layout Plain Layout
22459 \begin_layout Section
22461 \begin_inset Index idx
22464 \begin_layout Plain Layout
22465 Caption ! Formatting
22471 \begin_inset Index idx
22474 \begin_layout Plain Layout
22475 Floats ! Caption Formatting
22481 \begin_inset CommandInset label
22483 name "sec:Caption-Formatting"
22490 \begin_layout Standard
22495 environment is the default paragraph environment for
22500 On the LyX screen captions appear as label, e.
22501 \begin_inset space \thinspace{}
22505 \begin_inset space \space{}
22509 \begin_inset Quotes eld
22517 \begin_inset Quotes erd
22520 followed by the caption text.
22522 \begin_inset Quotes eld
22526 \begin_inset Quotes erd
22529 is the actual reference number.
22530 By default the label and the number are in the same font as the caption
22531 text and a colon follows the number to divide the label from the text.
22532 This caption format is not suitable for all document formats.
22536 \begin_layout Standard
22537 To change the default caption format, load the LaTeX-package
22542 \begin_inset Index idx
22545 \begin_layout Plain Layout
22546 LaTeX-packages ! caption
22551 in the document preamble with this line:
22554 \begin_layout Standard
22559 usepackage[format definition]{caption}
22562 \begin_layout Standard
22563 To have for example the label and the number in sans-serif bold font and
22564 the table captions always above the table as in this document, use the
22568 \begin_layout Standard
22573 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
22576 \begin_layout Standard
22577 You can also define different caption formats for the different float types.
22578 In this case load the
22582 package without format specific options and define the different formats
22583 with the help of the command
22586 \begin_layout Standard
22591 captionsetup[float type]{format definition}
22594 \begin_layout Standard
22595 in the document preamble.
22596 For example the caption formats of Figure
22597 \begin_inset space ~
22601 \begin_inset CommandInset ref
22603 reference "fig:This-is-an-fig"
22608 \begin_inset space ~
22612 \begin_inset CommandInset ref
22614 reference "tab:This-is-an-tab"
22618 can be created using these commands in the document preamble:
22621 \begin_layout Standard
22626 usepackage[tableposition=top]{caption}
22629 \begin_inset Newline newline
22636 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
22637 \begin_inset Newline newline
22641 \begin_inset Phantom HPhantom
22644 \begin_layout Plain Layout
22649 captionsetup[figure]{
22655 \begin_inset Newline newline
22660 captionsetup[table]{labelfont={bf,sf}}
22663 \begin_layout Standard
22664 \begin_inset Note Greyedout
22667 \begin_layout Plain Layout
22676 has no effect when a
22681 \begin_inset Index idx
22684 \begin_layout Plain Layout
22685 LaTeX-packages ! KOMA-Script
22690 document class is used.
22691 In this case the document class option
22693 captions=tableheading
22703 \begin_layout Standard
22704 For more information about the package
22708 we refer to its documentation
22709 \begin_inset CommandInset citation
22718 \begin_layout Standard
22719 To change the label name from e.
22720 \begin_inset space \thinspace{}
22724 \begin_inset space \space{}
22728 \begin_inset Quotes eld
22732 \begin_inset Quotes erd
22736 \begin_inset Quotes eld
22740 \begin_inset Quotes erd
22743 use this preamble command:
22746 \begin_layout Standard
22753 fnum@figure}{Image~
22758 \begin_layout Standard
22765 inserts the figure number and
22768 \begin_inset Quotes eld
22774 \begin_inset Quotes erd
22777 creates a protected space.
22780 \begin_layout Standard
22781 \begin_inset VSpace bigskip
22789 \begin_inset Index idx
22792 \begin_layout Plain Layout
22793 LaTeX-packages ! KOMA-Script
22800 article (KOMA-Script)
22808 letter (KOMA-Script)
22812 report (KOMA-Script)
22815 \begin_inset space \thinspace{}
22818 ), you can alternatively to the
22826 's built-in command
22833 For example, to have the caption label in bold, add this command to your
22837 \begin_layout Standard
22842 setkomafont{captionlabel}{
22847 \begin_layout Standard
22848 For more information about
22859 \begin_inset CommandInset citation
22868 \begin_layout Standard
22872 \begin_layout Plain Layout
22876 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
22883 \begin_inset Note Note
22886 \begin_layout Plain Layout
22887 The caption format is changed only for this example.
22895 \begin_layout Standard
22896 \begin_inset Float figure
22902 \begin_layout Plain Layout
22904 \begin_inset Graphics
22905 filename clipart/mobius.eps
22908 scaleBeforeRotation
22915 \begin_layout Plain Layout
22916 \begin_inset Caption
22918 \begin_layout Plain Layout
22919 \begin_inset CommandInset label
22921 name "fig:This-is-an-fig"
22925 This is an example figure caption that is longer than one line to show the
22926 different caption format.
22927 Here a self-defined caption format is used.
22940 \begin_layout Standard
22944 \begin_layout Plain Layout
22948 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
22957 \begin_layout Standard
22958 \begin_inset Float table
22964 \begin_layout Plain Layout
22965 \begin_inset Caption
22967 \begin_layout Plain Layout
22968 \begin_inset CommandInset label
22970 name "tab:This-is-an-tab"
22974 This is an example table caption that is longer than one line to show the
22975 different caption format.
22976 Here the standard caption format for tables in this document is used.
22984 \begin_layout Plain Layout
22986 \begin_inset Tabular
22987 <lyxtabular version="3" rows="1" columns="5">
22988 <features tabularvalignment="middle">
22989 <column alignment="center" valignment="top" width="0">
22990 <column alignment="center" valignment="top" width="0">
22991 <column alignment="center" valignment="top" width="0">
22992 <column alignment="center" valignment="top" width="0">
22993 <column alignment="center" valignment="top" width="0">
22995 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22998 \begin_layout Plain Layout
23004 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23007 \begin_layout Plain Layout
23013 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23016 \begin_layout Plain Layout
23022 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23025 \begin_layout Plain Layout
23031 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23034 \begin_layout Plain Layout
23053 \begin_layout Section
23055 \begin_inset Index idx
23058 \begin_layout Plain Layout
23059 Caption ! Placement
23065 \begin_inset Index idx
23068 \begin_layout Plain Layout
23069 Floats ! Caption Placement
23075 \begin_inset CommandInset label
23077 name "sec:Caption-Placement"
23084 \begin_layout Standard
23085 The common caption placement rule is:
23088 \begin_layout Description
23089 Figure: Caption is set below the figure
23092 \begin_layout Description
23093 Table: Caption is set above the table
23096 \begin_layout Standard
23097 Having the caption above the table is unfortunately not supported in LaTeX's
23099 That means if you are using the document classes
23115 there will be no space between the caption and the table.
23116 To insert the necessary space, add the following option to the load command
23117 of the LaTeX-package
23121 in your document preamble
23125 \begin_layout Plain Layout
23127 \begin_inset space ~
23131 \begin_inset CommandInset ref
23133 reference "sec:Caption-Formatting"
23137 for more information of the package
23149 \begin_layout Standard
23155 \begin_layout Standard
23161 \begin_inset Index idx
23164 \begin_layout Plain Layout
23165 LaTeX-packages ! KOMA-Script
23172 article (KOMA-Script)
23180 letter (KOMA-Script)
23184 report (KOMA-Script)
23187 \begin_inset space \thinspace{}
23190 ), you can alternatively to the
23194 package set the document class option
23196 captions=tableheading
23201 \begin_layout Standard
23202 \begin_inset VSpace bigskip
23205 It is also possible to set the caption beside a figure or table.
23206 To get this the LaTeX-package
23211 \begin_inset Index idx
23214 \begin_layout Plain Layout
23215 LaTeX-packages ! sidecap
23220 has to be loaded in the document preamble with the line
23223 \begin_layout Standard
23228 usepackage[option]{sidecap}
23231 \begin_layout Standard
23232 If you set no option, the caption is placed on the side of the outer page
23233 margin – to the right on odd pages, to the left on even pages.
23234 You can change the placement to inner margin with the option
23239 To force the placement always to the right or left, use the option
23250 \begin_layout Standard
23254 \begin_layout Plain Layout
23264 \begin_inset Note Note
23267 \begin_layout Plain Layout
23268 The following section will only be displayed when the LaTeX-package
23280 \begin_layout Standard
23281 To place in LyX the caption of a float on the side, it is necessary to add
23282 these commands to the document preamble:
23285 \begin_layout Standard
23287 \begin_inset CommandInset line
23298 \begin_layout Standard
23306 \begin_inset Newline newline
23310 \begin_inset Phantom HPhantom
23313 \begin_layout Plain Layout
23316 \begin_inset space ~
23331 \begin_inset Newline newline
23335 \begin_inset Phantom HPhantom
23338 \begin_layout Plain Layout
23341 \begin_inset space ~
23356 \begin_inset Newline newline
23360 \begin_inset Phantom HPhantom
23363 \begin_layout Plain Layout
23366 \begin_inset space ~
23376 renewenvironment{table}{
23383 \begin_layout Standard
23391 \begin_inset Newline newline
23395 \begin_inset Phantom HPhantom
23398 \begin_layout Plain Layout
23401 \begin_inset space ~
23416 \begin_inset Newline newline
23420 \begin_inset Phantom HPhantom
23423 \begin_layout Plain Layout
23426 \begin_inset space ~
23443 \begin_layout Standard
23451 \begin_inset Newline newline
23455 \begin_inset Phantom HPhantom
23458 \begin_layout Plain Layout
23461 \begin_inset space ~
23476 \begin_inset Newline newline
23480 \begin_inset Phantom HPhantom
23483 \begin_layout Plain Layout
23486 \begin_inset space ~
23501 \begin_inset Newline newline
23505 \begin_inset Phantom HPhantom
23508 \begin_layout Plain Layout
23511 \begin_inset space ~
23521 renewenvironment{figure}{
23528 \begin_layout Standard
23536 \begin_inset Newline newline
23540 \begin_inset Phantom HPhantom
23543 \begin_layout Plain Layout
23546 \begin_inset space ~
23561 \begin_inset Newline newline
23565 \begin_inset Phantom HPhantom
23568 \begin_layout Plain Layout
23571 \begin_inset space ~
23588 \begin_layout Standard
23590 \begin_inset CommandInset line
23601 \begin_layout Standard
23602 The commands allow you to redefine the floats so that the caption is set
23604 For figure floats use the command
23607 \begin_layout Standard
23615 \begin_layout Standard
23616 in TeX-Code before the float.
23617 After the float insert the command
23620 \begin_layout Standard
23628 \begin_layout Standard
23629 in TeX-Code to get back to the original float definition.
23632 \begin_layout Standard
23633 For table floats use the corresponding commands
23636 \begin_layout Standard
23650 \begin_layout Standard
23652 \begin_inset space ~
23656 \begin_inset CommandInset ref
23658 reference "fig:cap-beside-fig"
23663 \begin_inset space ~
23667 \begin_inset CommandInset ref
23669 reference "tab:cap-beside-tab"
23673 are examples where the caption is set beside.
23676 \begin_layout Standard
23677 You can see in the examples that the caption text appears at the top of
23678 the floats for table floats and at the bottom for figure floats.
23679 To change this, you can use the command
23682 \begin_layout Standard
23687 sidecaptionvpos{float type}{placement}
23690 \begin_layout Standard
23691 in the document preamble or in TeX-Code before the float.
23692 The float type is either
23700 , the placement can be
23701 \begin_inset Quotes eld
23709 \begin_inset Quotes erd
23713 \begin_inset Quotes eld
23721 \begin_inset Quotes erd
23725 \begin_inset Quotes eld
23733 \begin_inset Quotes erd
23737 To have for example the caption of figure floats vertically centered, use
23741 \begin_layout Standard
23746 sidecaptionvpos{figure}{c}
23749 \begin_layout Standard
23750 This was used for Figure
23751 \begin_inset space ~
23755 \begin_inset CommandInset ref
23757 reference "fig:cap-beside-fig-2"
23764 \begin_layout Standard
23765 \begin_inset VSpace medskip
23768 For more information about the package
23772 we refer to its documentation
23773 \begin_inset CommandInset citation
23782 \begin_layout Standard
23783 \begin_inset Note Greyedout
23786 \begin_layout Plain Layout
23796 \begin_inset Index idx
23799 \begin_layout Plain Layout
23800 LaTeX-packages ! hypcap
23805 , described in section
23806 \begin_inset space ~
23810 \begin_inset CommandInset ref
23812 reference "sub:Reference-Position"
23816 , has no effect on floats with the caption set beside.
23824 \begin_layout Standard
23828 \begin_layout Plain Layout
23840 \begin_layout Standard
23841 \begin_inset Float figure
23846 \begin_layout Plain Layout
23847 \begin_inset Graphics
23848 filename clipart/escher-lsd.eps
23850 scaleBeforeRotation
23857 \begin_layout Plain Layout
23858 \begin_inset Caption
23860 \begin_layout Plain Layout
23861 \begin_inset CommandInset label
23863 name "fig:cap-beside-fig"
23867 This is a caption beside a figure.
23880 \begin_layout Standard
23884 \begin_layout Plain Layout
23896 \begin_layout Standard
23897 \begin_inset Float table
23902 \begin_layout Plain Layout
23903 \begin_inset Caption
23905 \begin_layout Plain Layout
23906 \begin_inset CommandInset label
23908 name "tab:cap-beside-tab"
23912 This is a caption beside a table.
23920 \begin_layout Plain Layout
23921 \begin_inset Tabular
23922 <lyxtabular version="3" rows="4" columns="5">
23923 <features tabularvalignment="middle">
23924 <column alignment="center" valignment="top" width="0">
23925 <column alignment="center" valignment="top" width="0">
23926 <column alignment="center" valignment="top" width="0">
23927 <column alignment="center" valignment="top" width="0">
23928 <column alignment="center" valignment="top" width="0">
23930 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23933 \begin_layout Plain Layout
23939 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23942 \begin_layout Plain Layout
23948 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23951 \begin_layout Plain Layout
23957 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23960 \begin_layout Plain Layout
23966 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23969 \begin_layout Plain Layout
23977 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23980 \begin_layout Plain Layout
23986 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23989 \begin_layout Plain Layout
23995 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23998 \begin_layout Plain Layout
24004 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24007 \begin_layout Plain Layout
24013 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24016 \begin_layout Plain Layout
24024 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24027 \begin_layout Plain Layout
24033 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24036 \begin_layout Plain Layout
24042 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24045 \begin_layout Plain Layout
24051 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24054 \begin_layout Plain Layout
24060 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24063 \begin_layout Plain Layout
24071 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24074 \begin_layout Plain Layout
24080 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24083 \begin_layout Plain Layout
24089 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24092 \begin_layout Plain Layout
24098 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24101 \begin_layout Plain Layout
24107 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24110 \begin_layout Plain Layout
24129 \begin_layout Standard
24133 \begin_layout Plain Layout
24145 \begin_layout Standard
24149 \begin_layout Plain Layout
24153 sidecaptionvpos{figure}{c}
24159 \begin_inset Float figure
24164 \begin_layout Plain Layout
24165 \begin_inset Graphics
24166 filename clipart/escher-lsd.eps
24168 scaleBeforeRotation
24175 \begin_layout Plain Layout
24176 \begin_inset Caption
24178 \begin_layout Plain Layout
24179 \begin_inset CommandInset label
24181 name "fig:cap-beside-fig-2"
24185 This is a vertically centered caption beside a figure.
24198 \begin_layout Standard
24202 \begin_layout Plain Layout
24214 \begin_layout Standard
24218 \begin_layout Plain Layout
24228 \begin_inset Note Note
24231 \begin_layout Plain Layout
24232 The following will be displayed when the LaTeX-package
24244 \begin_layout Standard
24245 You need to install the LaTeX-package
24249 to see the following part of this section in the output.
24252 \begin_layout Standard
24256 \begin_layout Plain Layout
24268 \begin_layout Section
24270 \begin_inset Index idx
24273 \begin_layout Plain Layout
24274 Floats ! Float Lists
24282 \begin_layout Standard
24283 Similar to the table of contents where the sections of the document are
24284 listed, there are listings for all float types, like the figures of the
24286 You can insert them via the
24288 Insert\SpecialChar \menuseparator
24290 \begin_inset space ~
24294 \begin_inset space ~
24302 \begin_layout Standard
24303 The list entries are the float captions or its short title, the float number,
24304 and the page number where they appear in the document.
24307 \begin_layout Standard
24308 You can find the list of figures and tables at the end of this document.
24311 \begin_layout Chapter
24315 \begin_layout Section
24317 \begin_inset Index idx
24320 \begin_layout Plain Layout
24329 \begin_layout Standard
24330 Notes are inserted with the toolbar button
24331 \begin_inset Graphics
24332 filename ../images/note-insert.png
24334 scaleBeforeRotation
24340 Insert\SpecialChar \menuseparator
24344 There are three types of notes:
24347 \begin_layout Description
24349 \begin_inset space ~
24352 Note This note type is for internal notes that won't appear in the output.
24353 Its note-box looks like this:
24354 \begin_inset Newline newline
24358 \begin_inset Newline newline
24362 \begin_inset Graphics
24363 filename clipart/LyXNoteImageQt4.png
24366 scaleBeforeRotation
24371 \begin_inset Note Note
24374 \begin_layout Plain Layout
24375 This is text in a note box that doesn't appear in the output.
24383 \begin_layout Description
24384 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
24385 ent, when you export the document to LaTeX via the menu
24387 File\SpecialChar \menuseparator
24388 Export\SpecialChar \menuseparator
24389 LaTeX (pdflatex) / (plain)
24392 Its note-box looks like this:
24393 \begin_inset Newline newline
24397 \begin_inset Newline newline
24401 \begin_inset Graphics
24402 filename clipart/CommentNoteImageQt4.png
24405 scaleBeforeRotation
24410 \begin_inset Note Comment
24413 \begin_layout Plain Layout
24414 This is text in a note box that only appears as comment in LaTeX-files.
24422 \begin_layout Description
24424 \begin_inset space ~
24427 Out This note will appear in the output as grey text.
24428 Its note-box looks like this:
24429 \begin_inset Newline newline
24433 \begin_inset Newline newline
24437 \begin_inset Graphics
24438 filename clipart/GreyedOutNoteImageQt4.png
24441 scaleBeforeRotation
24446 \begin_inset Newline newline
24453 \begin_layout Plain Layout
24457 renewenvironment{lyxgreyedout}
24460 \begin_layout Plain Layout
24464 textcolor[gray]{0.8}
24474 \begin_inset Note Greyedout
24477 \begin_layout Plain Layout
24482 \begin_layout Plain Layout
24483 This is an example footnote within a greyed out note.
24488 of a comment that appears in the output as grey text.
24497 \begin_layout Plain Layout
24501 renewenvironment{lyxgreyedout}
24504 \begin_layout Plain Layout
24518 \begin_inset Note Note
24521 \begin_layout Plain Layout
24522 The greyed out note is here redefined to show it with the original LyX definitio
24523 n because greyed out notes are redefined in the preamble of this document,
24524 as described below, to have blue text.
24530 \begin_inset Newline newline
24534 \begin_inset Newline newline
24537 As you can see in the example, the first line of greyed out notes is a bit
24538 indented and greyed out notes can have footnotes.
24541 \begin_layout Standard
24542 \begin_inset VSpace bigskip
24545 When you use the toolbar button
24546 \begin_inset Graphics
24547 filename ../images/note-insert.png
24549 scaleBeforeRotation
24556 \begin_inset space ~
24562 You can switch between the five note types by right-clicking on the note-box.
24567 If you want to turn existing text into a note, mark it and click on the
24581 To change a note to text, press the backspace key when the cursor is in
24582 the first position of a note, or press the delete key when the cursor is
24583 in the very last position of the note, respectively.
24586 \begin_layout Standard
24587 \begin_inset VSpace bigskip
24590 You can change the text color of the greyed out notes in the preamble with
24591 the following command:
24594 \begin_layout Standard
24599 renewenvironment{lyxgreyedout}
24600 \begin_inset Newline newline
24604 \begin_inset Phantom HPhantom
24607 \begin_layout Plain Layout
24610 \begin_inset space ~
24627 \begin_layout Standard
24628 The available colors and the method to define colors is explained in section
24629 \begin_inset space ~
24633 \begin_inset CommandInset ref
24635 reference "sec:Colored-Tables"
24642 \begin_layout Standard
24643 Notes that appear in blue in this document are set using greyed out notes
24647 \begin_layout Section
24649 \begin_inset CommandInset label
24651 name "sec:Footnotes"
24656 \begin_inset Index idx
24659 \begin_layout Plain Layout
24666 \begin_inset Index idx
24669 \begin_layout Plain Layout
24678 \begin_layout Standard
24679 Footnotes can be inserted using the toolbar button
24680 \begin_inset Graphics
24681 filename ../images/footnote-insert.png
24683 scaleBeforeRotation
24689 Insert\SpecialChar \menuseparator
24701 then the following footnote-box:
24702 \begin_inset Graphics
24703 filename clipart/footnoteQt4.png
24705 scaleBeforeRotation
24713 where you can enter the footnote text.
24714 If you want to turn existing text into a footnote, mark it and click on
24736 to text, press the Backspace key when the cursor is in the first position
24745 , or press the Delete key when the cursor is in the very last position of
24757 \begin_layout Standard
24758 Here is an example footnote:
24766 \begin_layout Plain Layout
24767 \begin_inset CommandInset label
24769 name "foot:This-is-an"
24773 This is an example footnote.
24786 \begin_layout Plain Layout
24790 newcounter{MyRepeatFoot}
24793 \begin_layout Plain Layout
24797 setcounter{MyRepeatFoot}{
24807 \begin_layout Standard
24808 The footnote will appear in the output as a superscript number at the text
24809 position where the footnote box is placed.
24810 The footnote text is placed at the bottom of the current page.
24811 The footnote number is calculated by LaTeX; the numbers are consecutive.
24812 It depends on your document-class, whether the footnote number is reset
24816 \begin_layout Standard
24817 Footnotes can be referenced like floats: Insert a label into the footnote
24818 and cross-reference this label in the text as described in section
24819 \begin_inset space ~
24823 \begin_inset CommandInset ref
24825 reference "sec:Referencing-Floats"
24830 \begin_inset Newline newline
24833 This is a cross-reference of Footnote
24834 \begin_inset space ~
24838 \begin_inset CommandInset ref
24840 reference "foot:This-is-an"
24847 \begin_layout Standard
24848 \begin_inset VSpace defskip
24851 Footnotes in tables are not printed by LaTeX due to technical reasons.
24852 However there exists another method to print them: Instead of the footnote
24859 is inserted as TeX-code.
24860 The text of the footnote is entered as an argument of the TeX-code command
24868 \begin_inset Newline newline
24871 This was done for the following table with the command
24874 \begin_layout Standard
24881 Printed table footnote.
24886 \begin_layout Standard
24887 \begin_inset Tabular
24888 <lyxtabular version="3" rows="2" columns="1">
24889 <features tabularvalignment="middle">
24890 <column alignment="center" valignment="top" width="0">
24892 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24895 \begin_layout Plain Layout
24896 This an example text.
24900 \begin_layout Plain Layout
24901 This footnote will not be printed!
24913 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24916 \begin_layout Plain Layout
24917 This an example text.
24921 \begin_layout Plain Layout
24944 \begin_layout Plain Layout
24953 Printed table footnote.
24957 \begin_layout Plain Layout
24967 \begin_layout Standard
24968 Footnotes in longtables are described in section
24969 \begin_inset space ~
24973 \begin_inset CommandInset ref
24975 reference "sub:Footnotes-in-Longtables"
24982 \begin_layout Standard
24983 Footnotes in minipage boxes are printed, but inside the box and with a different
24984 numbering because a minipage box is like a page inside a page.
24985 (For more about minipages, see section
24986 \begin_inset space ~
24990 \begin_inset CommandInset ref
24992 reference "sec:Minipages"
24996 .) To get a footnote in the minipage that is output at the bottom of the
24997 page like normal footnotes, also use the method of
25012 \begin_layout Standard
25013 \begin_inset Box Frameless
25023 height_special "totalheight"
25026 \begin_layout Plain Layout
25027 This an example text in a minipage.
25031 \begin_layout Plain Layout
25032 Footnote in the minipage.
25040 \begin_layout Plain Layout
25041 This an example text in a minipage.
25045 \begin_layout Plain Layout
25062 \begin_layout Standard
25066 \begin_layout Plain Layout
25075 Footnote outside the minipage.
25079 \begin_layout Plain Layout
25089 \begin_layout Standard
25090 \begin_inset VSpace defskip
25096 \begin_layout Standard
25097 To refer to the same footnote several times without printing the footnote
25098 text every time, use the command
25102 footnotemark[number]
25105 \begin_inset Newline newline
25108 As you do not know the number of the repeating footnote while you are writing
25109 the text, you have to store its number.
25110 For the following footnote mark example, these commands were inserted in
25111 TeX-code after Footnote
25112 \begin_inset space ~
25116 \begin_inset CommandInset ref
25118 reference "foot:This-is-an"
25122 to store the footnote number:
25125 \begin_layout Standard
25130 newcounter{MyRepeatFoot}
25131 \begin_inset Newline newline
25136 setcounter{MyRepeatFoot}{
25141 \begin_layout Standard
25142 The footnote mark was then created with this command:
25145 \begin_layout Standard
25155 \begin_layout Standard
25156 Here is a repeated footnote:
25164 \begin_layout Plain Layout
25178 \begin_layout Standard
25179 If you want to repeat the previous footnote, you can omit the storage of
25180 the footnote number and just use this command instead:
25183 \begin_layout Standard
25193 \begin_layout Standard
25194 Here is another repeated footnote:
25202 \begin_layout Plain Layout
25216 \begin_layout Subsection
25218 \begin_inset CommandInset label
25220 name "sub:Footnote-Numbering"
25225 \begin_inset Index idx
25228 \begin_layout Plain Layout
25229 Footnotes ! Numbering
25237 \begin_layout Standard
25238 To reset the footnote number back to 1 after each section
25240 , add this command to your document preamble:
25243 \begin_layout Standard
25248 @addtoreset{footnote}{section}
25251 \begin_layout Standard
25252 \begin_inset VSpace bigskip
25255 The following preamble command changes the footnote numbering style to small
25259 \begin_layout Standard
25271 \begin_layout Standard
25275 \begin_layout Plain Layout
25288 This is a footnote with roman numbering:
25292 \begin_layout Plain Layout
25293 This is an example footnote with roman numbering.
25301 \begin_layout Standard
25302 To change the numbering style to capital roman numerals replace in the command
25317 \begin_inset Quotes eld
25321 \begin_inset Quotes erd
25324 footnotes with capital or small Latin letters use
25338 \begin_inset Quotes eld
25342 \begin_inset Quotes erd
25345 footnotes with symbols use
25354 \begin_layout Standard
25355 \begin_inset Note Greyedout
25358 \begin_layout Plain Layout
25363 You can only number 26 footnotes with Latin letters, because this numbering
25364 is limited to single letters.
25370 \begin_inset Newline newline
25374 \begin_inset Note Greyedout
25377 \begin_layout Plain Layout
25382 You can only number 9 footnotes with symbols.
25390 \begin_layout Standard
25391 To return to the default numbering style after you have changed to another
25404 in the command above.
25408 \begin_layout Plain Layout
25424 \begin_layout Standard
25425 \begin_inset VSpace bigskip
25431 \begin_layout Standard
25432 If you want to have footnotes numbered in the scheme
25433 \begin_inset Quotes eld
25437 \begin_inset Quotes erd
25440 , add the following command to your document preamble:
25443 \begin_layout Standard
25448 numberwithin{footnote}{chapter}
25451 \begin_layout Standard
25452 To be able to use the command
25461 \begin_inset space ~
25466 in the document settings the option
25469 \begin_inset space ~
25473 \begin_inset space ~
25477 \begin_inset space ~
25485 \begin_layout Standard
25489 \begin_layout Plain Layout
25493 numberwithin{footnote}{chapter}
25498 This is another example footnote:
25504 \begin_layout Plain Layout
25505 This is a footnote numbered in the scheme
25506 \begin_inset Quotes eld
25510 \begin_inset Quotes erd
25524 \begin_layout Plain Layout
25540 \begin_layout Standard
25541 \begin_inset Note Greyedout
25544 \begin_layout Plain Layout
25555 always prints out the footnote number as arabic number; previous redefinitions
25556 to get non-arabic numbers are overwritten.
25564 \begin_layout Standard
25565 So to get for example the scheme
25566 \begin_inset Quotes eld
25572 \begin_inset Quotes erd
25575 , use this command instead of
25584 \begin_layout Standard
25598 \begin_layout Subsection
25600 \begin_inset Index idx
25603 \begin_layout Plain Layout
25604 Footnotes ! Placement
25612 \begin_layout Standard
25613 If you have several footnotes in one page, they appear without vertical
25614 space between them at the bottom of the page.
25615 To make them more readable you can e.
25616 \begin_inset space \thinspace{}
25620 \begin_inset space \space{}
25624 \begin_inset space \thinspace{}
25627 mm space with the following preamble command:
25630 \begin_layout Standard
25640 \begin_inset Newline newline
25654 \begin_layout Standard
25655 \begin_inset VSpace bigskip
25658 In a two-column document the footnotes appear at the bottom of every column,
25660 \begin_inset space ~
25664 \begin_inset CommandInset ref
25666 reference "fig:Standard-footnote-placement"
25671 If the footnotes should only appear at the bottom of the right column,
25673 \begin_inset space ~
25677 \begin_inset CommandInset ref
25679 reference "fig:Footnote-placement-in"
25683 , use the LaTeX-package
25688 \begin_inset Index idx
25691 \begin_layout Plain Layout
25692 LaTeX-packages ! ftnright
25697 with this command in the document preamble:
25700 \begin_layout Standard
25705 usepackage{ftnright}
25708 \begin_layout Standard
25709 \begin_inset Float figure
25715 \begin_layout Plain Layout
25719 \begin_layout Plain Layout
25729 \begin_inset Graphics
25730 filename clipart/without_fntright.pdf
25732 scaleBeforeRotation
25740 \begin_layout Plain Layout
25750 \begin_layout Plain Layout
25751 \begin_inset Caption
25753 \begin_layout Plain Layout
25754 \begin_inset CommandInset label
25756 name "fig:Standard-footnote-placement"
25760 Standard footnote placement in two-column documents.
25773 \begin_layout Standard
25774 \begin_inset Float figure
25780 \begin_layout Plain Layout
25784 \begin_layout Plain Layout
25794 \begin_inset Graphics
25795 filename clipart/with_fntright.pdf
25797 scaleBeforeRotation
25805 \begin_layout Plain Layout
25815 \begin_layout Plain Layout
25816 \begin_inset Caption
25818 \begin_layout Plain Layout
25819 \begin_inset CommandInset label
25821 name "fig:Footnote-placement-in"
25825 Footnote placement in two-column documents when the LaTeX-package
25842 \begin_layout Standard
25843 \begin_inset VSpace bigskip
25846 In some scientific literature it is usual to collect the footnotes and print
25847 them in a separate paragraph at the end of a section, as in Figure
25848 \begin_inset space ~
25852 \begin_inset CommandInset ref
25854 reference "fig:Endnotes"
25859 They are then called
25860 \begin_inset Quotes eld
25864 \begin_inset Quotes erd
25868 \begin_inset Index idx
25871 \begin_layout Plain Layout
25877 To use endnotes instead of footnotes in your document, load in the menu
25880 Document\SpecialChar \menuseparator
25881 Settings\SpecialChar \menuseparator
25887 \begin_inset space ~
25891 \begin_inset space ~
25897 To insert the collected footnotes, insert the command
25900 \begin_layout Standard
25908 \begin_layout Standard
25909 in TeX-Code at the end of a section or chapter.
25912 \begin_layout Standard
25913 \begin_inset Float figure
25918 \begin_layout Plain Layout
25923 \begin_layout Plain Layout
25933 \begin_inset Graphics
25934 filename clipart/endnotes.pdf
25935 scaleBeforeRotation
25943 \begin_layout Plain Layout
25953 \begin_layout Plain Layout
25954 \begin_inset Caption
25956 \begin_layout Plain Layout
25957 \begin_inset CommandInset label
25959 name "fig:Endnotes"
25963 Endnotes – footnotes are printed in a separate paragraph at the end of sections
25977 \begin_layout Standard
25978 \begin_inset VSpace medskip
25981 The paragraph heading for the endnotes isn't automatically translated into
25982 the document language, this must be done manually.
25983 The following preamble command translates the default English
25984 \begin_inset Quotes eld
25988 \begin_inset Quotes erd
25992 \begin_inset Quotes eld
25996 \begin_inset Quotes erd
26002 \begin_layout Standard
26009 notesname}{Anmerkungen}
26012 \begin_layout Standard
26013 \begin_inset VSpace medskip
26016 The numbering of endnotes can be changed like the footnote numbering as
26017 described in section
26018 \begin_inset space ~
26022 \begin_inset CommandInset ref
26024 reference "sub:Footnote-Numbering"
26028 ; just replace the command
26041 To reset the endnote number use the command
26047 as described in section
26048 \begin_inset space ~
26052 \begin_inset CommandInset ref
26054 reference "sub:Footnote-Numbering"
26058 and replace the command parameter
26069 \begin_layout Standard
26070 For endnotes there is the command
26074 endnotemark[number]
26076 similar to the command
26082 , that is described in section
26083 \begin_inset space ~
26087 \begin_inset CommandInset ref
26089 reference "sec:Footnotes"
26096 \begin_layout Standard
26097 \begin_inset VSpace bigskip
26100 Footnotes can also be placed in the page margin and the footnote text alignment
26101 can be changed, see the LaTeX-package
26106 \begin_inset Index idx
26109 \begin_layout Plain Layout
26110 LaTeX-packages ! footmisc
26116 \begin_inset CommandInset citation
26122 for more information about this.
26125 \begin_layout Standard
26126 For various further footnote formatting issues have a look at LaTeX-books,
26128 \begin_inset CommandInset citation
26130 key "latexcompanion,latexguide,latexbook"
26137 \begin_layout Section
26139 \begin_inset Index idx
26142 \begin_layout Plain Layout
26143 Notes ! Margin Notes
26151 \begin_layout Standard
26152 Margin notes look and behave in LyX like footnotes.
26153 They are inserted via the menu
26155 Insert\SpecialChar \menuseparator
26157 \begin_inset space ~
26162 or the toolbar button
26163 \begin_inset Graphics
26164 filename ../images/marginalnote-insert.png
26166 scaleBeforeRotation
26181 \begin_inset Quotes eld
26185 \begin_inset Quotes erd
26188 appears where you can enter the text of the margin note.
26191 \begin_layout Standard
26192 At the side is an example margin note.
26197 \begin_inset Marginal
26200 \begin_layout Plain Layout
26201 This is a margin note.
26209 \begin_layout Standard
26210 Margin notes appear at the right side in single-sided documents.
26211 In double-sided documents they appear in the outer margin – left on even
26212 pages, right on odd pages.
26213 The text of margin notes is aligned opposite to the outer margin – right-aligne
26214 d when the note appears in the left margin.
26215 The first line of the margin note is placed at the position of the text
26216 line where it is inserted in the document.
26219 \begin_layout Standard
26220 \begin_inset VSpace bigskip
26223 To place the margin note in the inner margin, add the command
26226 \begin_layout Standard
26234 \begin_layout Standard
26235 in TeX-Code before a margin note.
26236 The new placement is valid for all subsequent margin notes.
26241 \begin_layout Plain Layout
26251 \begin_inset Marginal
26254 \begin_layout Plain Layout
26255 This is a margin note in the inner margin.
26263 \begin_inset Newline newline
26269 \begin_inset Note Greyedout
26272 \begin_layout Plain Layout
26277 There is often not enough space in the inner margin so that the notes are
26278 not correctly displayed in the output.
26286 \begin_layout Standard
26287 To return to the default placement insert the command
26290 \begin_layout Standard
26298 \begin_layout Standard
26303 \begin_layout Plain Layout
26313 \begin_inset Note Greyedout
26316 \begin_layout Plain Layout
26321 The command is ignored when it is within a paragraph where also the command
26336 \begin_layout Standard
26337 \begin_inset VSpace bigskip
26344 \begin_inset Marginal
26347 \begin_layout Plain Layout
26348 AVeryLongMarginParWord that isn't hyphenated.
26356 Similar to the case described in section
26357 \begin_inset space ~
26361 \begin_inset CommandInset ref
26363 reference "sub:Multiple-Lines-in"
26367 , long words cannot be hyphenated when they are the first word in a margin
26369 To avoid this, insert 0
26370 \begin_inset space \thinspace{}
26373 pt horizontal space before the word
26378 \begin_inset Marginal
26381 \begin_layout Plain Layout
26382 \begin_inset space \hspace*{}
26386 AVeryLongMarginParWord that is hyphenated.
26394 \begin_layout Standard
26395 \begin_inset VSpace bigskip
26401 \begin_layout Standard
26402 \begin_inset Note Greyedout
26405 \begin_layout Plain Layout
26410 Margin notes can normally not be used inside tables, floats, and footnotes.
26418 \begin_layout Standard
26419 \begin_inset VSpace bigskip
26425 \begin_layout Standard
26429 \begin_layout Plain Layout
26439 \begin_inset Note Note
26442 \begin_layout Plain Layout
26443 The following section will only be displayed when the LaTeX-package
26455 \begin_layout Standard
26456 This restriction can be evaded by using the LaTeX-package
26461 \begin_inset Index idx
26464 \begin_layout Plain Layout
26465 LaTeX-packages ! marginnote
26471 By adding these two lines to your document preamble, the command used by
26472 LyX for margin notes is redefined to use the command provided by the
26479 \begin_layout Standard
26484 usepackage{marginnote}
26485 \begin_inset Newline newline
26497 \begin_layout Standard
26498 This is also used in this document because
26502 has another useful feature: You can set a vertical offset for the note.
26503 This is often needed when too many margin notes are too close together
26504 or for a better page layout.
26505 The offset is set in LyX as TeX-Code directly after the margin note in
26509 \begin_layout Standard
26515 \begin_layout Standard
26516 where the offset is a length with one of the units listed in Table
26517 \begin_inset space ~
26521 \begin_inset CommandInset ref
26523 reference "tab:Units"
26528 A negative value shifts the note up, a positive value shifts it down.
26532 For example the margin note beside this text line is shifted up 1.5
26533 \begin_inset space \thinspace{}
26536 cm with the TeX-Code-command
26537 \begin_inset Quotes eld
26547 \begin_inset Quotes erd
26551 \begin_inset Marginal
26554 \begin_layout Plain Layout
26555 This margin note is shifted up 1.5
26556 \begin_inset space \thinspace{}
26559 cm from its original position.
26571 \begin_layout Plain Layout
26581 \begin_layout Standard
26582 \begin_inset VSpace medskip
26589 you can also change the alignment of the text in the margin note.
26590 For example the commands
26593 \begin_layout Standard
26600 raggedleftmarginnote}{
26603 \begin_inset Newline newline
26610 raggedrightmarginnote}{
26615 \begin_layout Standard
26616 set the alignment to centered.
26621 raggedleftmarginnote
26623 denotes margin notes that appear at the left side.
26630 \begin_layout Plain Layout
26636 raggedleftmarginnote}{
26641 \begin_layout Plain Layout
26647 raggedrightmarginnote}{
26655 \begin_inset Marginal
26658 \begin_layout Plain Layout
26659 The text of this margin note is centered.
26670 \begin_layout Standard
26677 raggedleftmarginnote}{
26680 \begin_inset Newline newline
26687 raggedrightmarginnote}{
26696 \begin_layout Plain Layout
26702 raggedleftmarginnote}{
26707 \begin_layout Plain Layout
26713 raggedrightmarginnote}{
26723 \begin_layout Standard
26724 \begin_inset VSpace medskip
26727 For the other features of
26731 refer to its documentation
26732 \begin_inset CommandInset citation
26741 \begin_layout Standard
26742 \begin_inset VSpace bigskip
26745 You can adjust the layout of margin notes by changing its definition.
26746 To create for example a header for all margin notes with the underlined,
26747 sans-serif, and bold header text
26748 \begin_inset Quotes eld
26760 \begin_inset Quotes erd
26763 , add this to your document preamble:
26766 \begin_layout Standard
26776 \begin_inset Newline newline
26786 \begin_inset Newline newline
26790 \begin_inset Phantom HPhantom
26793 \begin_layout Plain Layout
26796 \begin_inset space ~
26812 underbar{Attention!}}}%
26813 \begin_inset Newline newline
26817 \begin_inset Phantom HPhantom
26820 \begin_layout Plain Layout
26823 \begin_inset space ~
26840 \begin_layout Standard
26847 \begin_layout Plain Layout
26858 \begin_layout Plain Layout
26869 \begin_layout Plain Layout
26877 underbar{Attention!}}}%
26880 \begin_layout Plain Layout
26894 \begin_inset Marginal
26897 \begin_layout Plain Layout
26898 This is a margin note with a defined heading.
26910 \begin_layout Plain Layout
26924 \begin_layout Plain Layout
26941 \begin_inset Note Note
26944 \begin_layout Plain Layout
26945 The margin note format is changed only for this example.
26953 \begin_layout Standard
26957 \begin_layout Plain Layout
26967 \begin_inset Note Note
26970 \begin_layout Plain Layout
26971 The following will be displayed when the LaTeX-package
26983 \begin_layout Standard
26984 You need to install the LaTeX-package
26988 to see the following part of this section in the output.
26991 \begin_layout Standard
26995 \begin_layout Plain Layout
27007 \begin_layout Chapter
27011 \begin_layout Section
27013 \begin_inset Index idx
27016 \begin_layout Plain Layout
27017 Boxes ! Introduction
27025 \begin_layout Standard
27026 Boxes are used to format a block of text.
27027 Boxes can be used to write documents with multiple languages, see section
27028 \begin_inset space ~
27032 \begin_inset CommandInset ref
27034 reference "sec:Minipages"
27038 , to frame texts, see section
27039 \begin_inset space ~
27043 \begin_inset CommandInset ref
27045 reference "sec:Decoration"
27049 , to prevent words from being hyphenated, see section
27050 \begin_inset space ~
27054 \begin_inset CommandInset ref
27056 reference "sec:Prevent-Hyphenation"
27060 , to align text, see section
27061 \begin_inset space ~
27065 \begin_inset CommandInset ref
27067 reference "sub:Vertical-Alignment"
27071 , or to set the background color of texts, see section
27072 \begin_inset space ~
27076 \begin_inset CommandInset ref
27078 reference "sec:Colored-Boxes"
27085 \begin_layout Standard
27086 Boxes can be inserted with the menu
27088 Insert\SpecialChar \menuseparator
27091 or the toolbar button
27092 \begin_inset Graphics
27093 filename ../images/box-insert.png
27095 scaleBeforeRotation
27100 A grey box with the label
27105 \begin_inset Graphics
27106 filename clipart/BoxInsetDefaultQt4.png
27108 scaleBeforeRotation
27113 The box type can be specified by right-clicking on the box and selecting
27119 The box dialog offers the
27122 \begin_inset space ~
27144 is the default for new boxes and is explained in section
27145 \begin_inset space ~
27149 \begin_inset CommandInset ref
27151 reference "sec:Minipages"
27159 is described in section
27160 \begin_inset space ~
27164 \begin_inset CommandInset ref
27166 reference "sec:Parboxes"
27175 \begin_inset CommandInset ref
27177 reference "sec:Prevent-Hyphenation"
27184 \begin_layout Standard
27185 Boxes are not numbered and can therefore not be referenced like floats or
27189 \begin_layout Standard
27190 \begin_inset Note Greyedout
27193 \begin_layout Plain Layout
27198 Boxes must not be the item in an
27214 \begin_layout Standard
27215 \begin_inset Note Greyedout
27218 \begin_layout Plain Layout
27223 For an unknown reason you can only set the
27226 \begin_inset space ~
27235 when you use a framed box.
27239 \begin_inset space ~
27244 type and without frames are explained in section
27245 \begin_inset space ~
27249 \begin_inset CommandInset ref
27251 reference "sec:Prevent-Hyphenation"
27263 \begin_layout Section
27265 \begin_inset CommandInset label
27267 name "sec:Box-Dialog"
27272 \begin_inset Index idx
27275 \begin_layout Plain Layout
27284 \begin_layout Subsection
27286 \begin_inset Index idx
27289 \begin_layout Plain Layout
27298 \begin_layout Standard
27299 In the box dialog you can adjust the box geometry in the fields
27308 The available units for the geometry are explained in Table
27309 \begin_inset space ~
27313 \begin_inset CommandInset ref
27315 reference "tab:Units"
27324 offers the following additional sizes:
27327 \begin_layout Description
27328 Depth This is the plain text
27329 \begin_inset Quotes eld
27333 \begin_inset Quotes erd
27337 It ignores the total depth when there are multiple text lines in the box:
27338 \begin_inset Newline newline
27342 \begin_inset Newline newline
27346 \begin_inset Newline newline
27350 \begin_inset Box Boxed
27360 height_special "depth"
27363 \begin_layout Plain Layout
27365 Box height set to 1
27366 \begin_inset space \thinspace{}
27375 \begin_inset Newline newline
27379 \begin_inset Newline newline
27385 \begin_layout Description
27386 Height This is the height of the text that is inside the box.
27388 \begin_inset space \thinspace{}
27392 \begin_inset space \space{}
27395 2 for this size will set the box height to 2
27396 \begin_inset space ~
27399 times the text height:
27400 \begin_inset Box Boxed
27410 height_special "height"
27413 \begin_layout Plain Layout
27415 Box height set to 2
27416 \begin_inset space \thinspace{}
27427 \begin_layout Description
27429 \begin_inset space ~
27432 Height This is the Height
27433 \begin_inset space \thinspace{}
27437 \begin_inset space \thinspace{}
27441 \begin_inset Box Boxed
27451 height_special "totalheight"
27454 \begin_layout Plain Layout
27456 Box height set to 1
27457 \begin_inset space \thinspace{}
27461 \begin_inset space ~
27472 \begin_layout Description
27473 Width This sets the width of the box as height:
27474 \begin_inset Box Boxed
27484 height_special "width"
27487 \begin_layout Plain Layout
27489 Box height set to 1
27490 \begin_inset space \thinspace{}
27501 \begin_layout Subsection
27503 \begin_inset Index idx
27506 \begin_layout Plain Layout
27515 \begin_layout Standard
27516 When you have chosen an
27519 \begin_inset space ~
27524 , the vertical box alignment can be:
27527 \begin_layout Description
27528 Top This is an example text line.
27530 \begin_inset Box Boxed
27540 height_special "totalheight"
27543 \begin_layout Plain Layout
27545 This box is top-aligned.
27550 This is an example text line.
27553 \begin_layout Description
27554 Middle This is an example text line.
27556 \begin_inset Box Boxed
27566 height_special "totalheight"
27569 \begin_layout Plain Layout
27571 This box is middle-aligned.
27576 This is an example text line.
27579 \begin_layout Description
27580 Bottom This is an example text line.
27582 \begin_inset Box Boxed
27592 height_special "totalheight"
27595 \begin_layout Plain Layout
27597 This box is bottom-aligned.
27602 This is an example text line.
27605 \begin_layout Standard
27606 \begin_inset Note Greyedout
27609 \begin_layout Plain Layout
27614 The vertical box alignment can be lost in the output when you have two
27615 boxes in a line and one has e.
27616 \begin_inset space \thinspace{}
27620 \begin_inset space \space{}
27623 a shadow and the other one not.
27631 \begin_layout Standard
27632 The horizontal box alignment can be set via LyX's paragraph dialog when
27633 you set the box into its own paragraph.
27636 \begin_layout Standard
27637 \begin_inset VSpace bigskip
27640 When you have chosen an
27643 \begin_inset space ~
27648 , the box content can be aligned vertically to:
27651 \begin_layout Description
27652 top This is an example text line.
27654 \begin_inset Box Boxed
27664 height_special "totalheight"
27667 \begin_layout Plain Layout
27669 This box text is top-aligned.
27674 This is an example text line.
27677 \begin_layout Description
27678 middle This is an example text line.
27680 \begin_inset Box Boxed
27690 height_special "totalheight"
27693 \begin_layout Plain Layout
27695 This box text is middle-aligned.
27700 This is an example text line.
27703 \begin_layout Description
27704 bottom This is an example text line.
27706 \begin_inset Box Boxed
27716 height_special "totalheight"
27719 \begin_layout Plain Layout
27721 This box text is bottom-aligned.
27726 This is an example text line.
27729 \begin_layout Description
27730 stretch This is an example text line.
27732 \begin_inset Box Boxed
27742 height_special "totalheight"
27745 \begin_layout Plain Layout
27750 \begin_layout Plain Layout
27755 \begin_layout Plain Layout
27762 This is an example text line.
27765 \begin_layout Standard
27766 To stretch the box content, it must consist of more than one paragraph.
27767 In the example above every text line is in an own paragraph.
27770 \begin_layout Standard
27771 \begin_inset VSpace bigskip
27774 To align the box content horizontally you can use LyX's paragraph dialog
27775 when you have chosen an
27778 \begin_inset space ~
27786 \begin_layout Standard
27788 \begin_inset Box Boxed
27798 height_special "totalheight"
27801 \begin_layout Plain Layout
27806 \begin_layout Plain Layout
27811 \begin_layout Plain Layout
27821 \begin_layout Standard
27822 If you have not set an
27825 \begin_inset space ~
27830 , you can align the box content horizontally in the box dialog.
27833 \begin_layout Standard
27835 \begin_inset Box Boxed
27845 height_special "totalheight"
27848 \begin_layout Plain Layout
27850 This box text is horizontally stretched.
27858 \begin_layout Subsection
27860 \begin_inset CommandInset label
27862 name "sec:Decoration"
27867 \begin_inset Index idx
27870 \begin_layout Plain Layout
27879 \begin_layout Standard
27880 The type of the box can be specified in the box dialog in the drop-down
27886 The following types are possible:
27889 \begin_layout Description
27891 \begin_inset space ~
27894 frame Nothing is drawn.
27897 \begin_layout Description
27899 \begin_inset space ~
27903 \begin_inset space ~
27906 frame This draws a rectangular frame around the box.
27907 The frame line thickness has the size of
27915 \begin_inset Box Boxed
27925 height_special "totalheight"
27928 \begin_layout Plain Layout
27938 \begin_layout Description
27940 \begin_inset space ~
27944 \begin_inset space ~
27947 thin This draws an oval frame around the box.
27948 The frame line thickness has the size 0.4
27949 \begin_inset space \thinspace{}
27954 \begin_inset Box ovalbox
27964 height_special "totalheight"
27967 \begin_layout Plain Layout
27977 \begin_layout Description
27979 \begin_inset space ~
27983 \begin_inset space ~
27986 thick This draws an oval frame around the box.
27987 The frame line thickness has the size 0.8
27988 \begin_inset space \thinspace{}
27993 \begin_inset Box Ovalbox
28003 height_special "totalheight"
28006 \begin_layout Plain Layout
28016 \begin_layout Description
28018 \begin_inset space ~
28021 shadow This draws a rectangular frame with a shadow around the box.
28022 The frame line thickness has the size of
28028 , the shadow has a width of 4
28029 \begin_inset space \thinspace{}
28034 \begin_inset Box Shadowbox
28044 height_special "totalheight"
28047 \begin_layout Plain Layout
28057 \begin_layout Description
28059 \begin_inset space ~
28062 background This draws a box with a red background.
28063 Unlike colored boxes
28067 \begin_layout Plain Layout
28069 \begin_inset space \thinspace{}
28073 \begin_inset CommandInset ref
28075 reference "sec:Colored-Boxes"
28084 , it always uses the whole column width and the box is set as its own paragraph.
28086 \begin_inset Box Shaded
28096 height_special "totalheight"
28099 \begin_layout Plain Layout
28100 Shaded background box
28108 \begin_layout Description
28110 \begin_inset space ~
28114 \begin_inset space ~
28117 frame This draws a double-line rectangular frame around the box.
28118 The line thickness of the inner frame is 0.75
28119 \begin_inset space \thinspace{}
28128 , the thickness of the outer frame is 1.5
28129 \begin_inset space \thinspace{}
28139 The distance between the lines is 1.5
28140 \begin_inset space \thinspace{}
28150 \begin_inset space \thinspace{}
28154 \begin_inset space \thinspace{}
28158 \begin_inset space \thinspace{}
28163 \begin_inset Box Doublebox
28173 height_special "totalheight"
28176 \begin_layout Plain Layout
28178 Double rectangular box
28186 \begin_layout Standard
28187 \begin_inset VSpace bigskip
28190 LyX's box label will reflect the different frame types.
28191 To be able to use all types, the LaTeX-package
28196 \begin_inset Index idx
28199 \begin_layout Plain Layout
28200 LaTeX-packages ! fancybox
28208 \begin_layout Standard
28209 \begin_inset VSpace bigskip
28212 When you use the decoration
28214 simple rectangular frame
28216 and no inner box, you can allow page breaks within a box.
28217 Note that then, unlike other framed boxes, the frame always uses the whole
28218 column width, the box is set as its own paragraph, and
28230 have no effect on this box type.
28231 The frame line thickness has the size of
28239 \begin_inset Box Framed
28249 height_special "totalheight"
28252 \begin_layout Plain Layout
28253 Allow page break box
28261 \begin_layout Section
28263 \begin_inset Index idx
28266 \begin_layout Plain Layout
28267 Boxes ! Customization
28275 \begin_layout Standard
28276 The default value for the size
28283 \begin_inset space \thinspace{}
28287 It can be changed with the following command in TeX-Code to e.
28288 \begin_inset space \thinspace{}
28292 \begin_inset space \space{}
28296 \begin_inset space \thinspace{}
28302 \begin_layout Standard
28312 \begin_layout Standard
28316 \begin_layout Plain Layout
28328 \begin_inset Box Boxed
28338 height_special "totalheight"
28341 \begin_layout Plain Layout
28343 Rectangular box with
28350 \begin_inset space \thinspace{}
28354 \begin_inset space \thinspace{}
28358 \begin_inset space \thinspace{}
28370 \begin_layout Plain Layout
28384 \begin_layout Standard
28385 \begin_inset VSpace bigskip
28388 The space between the frame and the box content is for all frame styles
28390 \begin_inset space \thinspace{}
28394 You can change it by setting the length
28401 For example the command
28404 \begin_layout Standard
28414 \begin_layout Standard
28415 sets the value to 10
28416 \begin_inset space \thinspace{}
28419 pt, as with the following box:
28422 \begin_layout Standard
28426 \begin_layout Plain Layout
28438 \begin_inset Box Boxed
28448 height_special "totalheight"
28451 \begin_layout Plain Layout
28453 Rectangular box with
28460 \begin_inset space \thinspace{}
28464 \begin_inset space \thinspace{}
28468 \begin_inset space \thinspace{}
28480 \begin_layout Plain Layout
28494 \begin_layout Standard
28495 \begin_inset VSpace bigskip
28498 The diameter of the round corners of the oval boxes can be set with the
28509 \begin_layout Standard
28517 \begin_layout Standard
28518 sets the diameter to 1
28519 \begin_inset space \thinspace{}
28526 \begin_layout Standard
28534 \begin_layout Standard
28535 sets the diameter to
28538 \begin_inset space \thinspace{}
28542 \begin_inset space \thinspace{}
28545 minimum(width and heigth of box)
28557 \begin_layout Standard
28561 \begin_layout Plain Layout
28571 \begin_inset Box Ovalbox
28581 height_special "totalheight"
28584 \begin_layout Plain Layout
28593 \begin_inset space \thinspace{}
28597 \begin_inset space \thinspace{}
28601 \begin_inset space \thinspace{}
28613 \begin_layout Plain Layout
28625 \begin_layout Standard
28626 \begin_inset VSpace bigskip
28629 The size of the shadow can be adjusted by changing the length
28637 \begin_inset space \thinspace{}
28640 pt for the following box by this command:
28643 \begin_layout Standard
28653 \begin_layout Standard
28657 \begin_layout Plain Layout
28669 \begin_inset Box Shadowbox
28679 height_special "totalheight"
28682 \begin_layout Plain Layout
28691 \begin_inset space \thinspace{}
28695 \begin_inset space \thinspace{}
28699 \begin_inset space \thinspace{}
28711 \begin_layout Plain Layout
28725 \begin_layout Standard
28726 \begin_inset VSpace bigskip
28732 \begin_layout Standard
28733 The default value for the size
28740 \begin_inset space \thinspace{}
28744 The default space between the note content and the frame is 9
28745 \begin_inset space \thinspace{}
28748 pt and can be changed with the value of
28755 For example the frame appearance of the following
28759 is set with the TeX-Code commands
28762 \begin_layout Standard
28770 \begin_inset Newline newline
28780 \begin_layout Standard
28784 \begin_layout Plain Layout
28793 \begin_layout Plain Layout
28805 \begin_inset Box Framed
28815 height_special "totalheight"
28818 \begin_layout Plain Layout
28832 \begin_layout Plain Layout
28841 \begin_layout Plain Layout
28855 \begin_layout Standard
28856 \begin_inset VSpace bigskip
28862 \begin_layout Standard
28867 boxes the default space between the box content and the box border is 3
28868 \begin_inset space \thinspace{}
28871 pt and can be changed with the value of
28878 The default background color red can either be changed locally with the
28883 definecolor{shadecolor}
28885 or globally with the menu
28887 Tools\SpecialChar \menuseparator
28888 Preferences\SpecialChar \menuseparator
28889 Colors\SpecialChar \menuseparator
28891 \begin_inset space ~
28903 command is explained in section
28904 \begin_inset space ~
28908 \begin_inset CommandInset ref
28910 reference "sec:Colored-Tables"
28918 \begin_layout Plain Layout
28925 requires the LaTeX-package
28929 in the preamble, see section
28930 \begin_inset space ~
28934 \begin_inset CommandInset ref
28936 reference "sec:Colored-Boxes"
28945 For example the appearance of the following shaded background box is set
28946 with the TeX-Code commands
28949 \begin_layout Standard
28959 \begin_inset Newline newline
28966 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
28969 \begin_layout Standard
28973 \begin_layout Plain Layout
28982 \begin_layout Plain Layout
28986 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
28992 \begin_inset Box Shaded
29002 height_special "totalheight"
29005 \begin_layout Plain Layout
29008 This is yellow text in a
29018 box with dark green background.
29027 \begin_layout Plain Layout
29036 \begin_layout Plain Layout
29040 definecolor{shadecolor}{rgb}{1,0,0}
29048 \begin_layout Standard
29049 \begin_inset VSpace bigskip
29052 Changed lengths and widths are valid for all boxes following the commands
29056 \begin_layout Section
29058 \begin_inset CommandInset label
29060 name "sec:Minipages"
29065 \begin_inset Index idx
29068 \begin_layout Plain Layout
29077 \begin_layout Standard
29078 Minipages are treated by LaTeX as pages within pages and can therefore for
29079 example have their own footnotes.
29082 \begin_layout Standard
29083 Minipages are useful when you write documents with different languages.
29086 \begin_layout Standard
29087 Below are two example minipages side by side.
29088 Their width is set to 45
29089 \begin_inset space \thinspace{}
29092 col% and they are separated by a horizontal fill, that was inserted via
29095 Insert\SpecialChar \menuseparator
29097 \begin_inset space ~
29100 Formatting\SpecialChar \menuseparator
29102 \begin_inset space ~
29108 \begin_inset Newpage newpage
29114 \begin_layout Standard
29115 \begin_inset Box Frameless
29125 height_special "totalheight"
29128 \begin_layout Plain Layout
29131 Dies ist ein deutscher Text.
29132 Dies ist ein deutscher Text.
29133 Dies ist ein deutscher Text.
29134 Dies ist ein deutscher Text.
29135 Dies ist ein deutscher Text.
29136 Dies ist ein deutscher Text.
29137 Dies ist ein deutscher Text.
29138 Dies ist ein deutscher Text.
29139 Dies ist ein deutscher Text.
29140 Dies ist ein deutscher Text.
29141 Dies ist ein deutscher Text.
29142 Dies ist ein deutscher Text.
29143 Dies ist ein deutscher Text
29147 \begin_layout Plain Layout
29150 Dies ist eine deutsche Fußnote.
29156 Dies ist ein deutscher Text.
29157 Dies ist ein deutscher Text.
29163 \begin_inset space \hfill{}
29167 \begin_inset Box Frameless
29177 height_special "totalheight"
29180 \begin_layout Plain Layout
29181 This is an English Text.
29182 This is an English Text.
29183 This is an English Text.
29184 This is an English Text.
29185 This is an English Text.
29186 This is an English Text.
29187 This is an English Text.
29188 This is an English Text.
29189 This is an English Text.
29190 This is an English Text.
29191 This is an English Text.
29192 This is an English Text.
29193 This is an English Text.
29194 This is an English Text.
29195 This is an English Text.
29196 This is an English Text.
29200 \begin_layout Plain Layout
29201 This is an English footnote.
29206 This is an English Text.
29215 \begin_layout Standard
29216 \begin_inset VSpace bigskip
29219 The document-wide paragraph settings are ignored within minipages.
29220 That means that there will be no space between paragraphs in minipages
29221 although you set it to e.
29222 \begin_inset space \thinspace{}
29226 \begin_inset space \space{}
29233 in the document settings.
29236 \begin_layout Standard
29237 Minipages can also be used to set a background color for text parts, see
29239 \begin_inset space ~
29243 \begin_inset CommandInset ref
29245 reference "sub:Color-for-Paragraphs"
29252 \begin_layout Standard
29253 \begin_inset Note Greyedout
29256 \begin_layout Plain Layout
29261 You cannot have floats or margin notes inside minipages but minipages can
29262 be used inside tables, floats, and other boxes.
29270 \begin_layout Section
29272 \begin_inset CommandInset label
29274 name "sec:Parboxes"
29279 \begin_inset Index idx
29282 \begin_layout Plain Layout
29291 \begin_layout Standard
29292 Parboxes are very similar to minipages with the difference that they cannot
29293 have footnotes, because minipages, unlike parboxes, are not real boxes
29294 but LaTeX-environments.
29297 \begin_layout Standard
29299 \begin_inset Box Frameless
29309 height_special "totalheight"
29312 \begin_layout Plain Layout
29313 This a text within a parbox.
29314 This a text within a parbox.
29317 \begin_layout Plain Layout
29318 This footnote won't appear:
29322 \begin_layout Plain Layout
29323 This footnote is inside a parbox and will therefore not appear.
29336 \begin_layout Section
29337 Boxes for Words and Characters
29338 \begin_inset Index idx
29341 \begin_layout Plain Layout
29342 Boxes ! for Characters
29350 \begin_layout Subsection
29351 Prevent Hyphenation
29352 \begin_inset CommandInset label
29354 name "sec:Prevent-Hyphenation"
29359 \begin_inset Index idx
29362 \begin_layout Plain Layout
29363 Boxes ! to Prevent Hyphenation
29371 \begin_layout Standard
29372 You can use the box type
29376 to prevent words or text from being hyphenated.
29377 \begin_inset Newline newline
29380 Here is an example text:
29383 \begin_layout Standard
29384 This line is an example to show how you can prevent the hyphenation of
29385 \begin_inset Quotes eld
29389 \begin_inset Quotes erd
29395 \begin_layout Standard
29396 To prevent the hyphenation of the word
29397 \begin_inset Quotes eld
29401 \begin_inset Quotes erd
29404 , put the word into a box, set the
29407 \begin_inset space ~
29417 \begin_inset space \thinspace{}
29423 \begin_layout Standard
29424 This is the result:
29427 \begin_layout Standard
29428 This line is an example to show how you can prevent the hyphenation of
29429 \begin_inset Box Frameless
29439 height_special "totalheight"
29442 \begin_layout Plain Layout
29443 \begin_inset Quotes eld
29447 \begin_inset Quotes erd
29458 \begin_layout Standard
29459 You can alternatively set the command
29460 \begin_inset Quotes eld
29470 \begin_inset Quotes grd
29473 as TeX-Code directly before the word:
29476 \begin_layout Standard
29477 This line is an example to show how you can prevent the hyphenation of
29478 \begin_inset Quotes eld
29485 \begin_layout Plain Layout
29495 \begin_inset Quotes erd
29501 \begin_layout Standard
29502 Of course the word now protrudes over the side margin.
29503 To avoid this, add via the menu
29505 Insert\SpecialChar \menuseparator
29507 \begin_inset space ~
29510 Formatting\SpecialChar \menuseparator
29512 \begin_inset space ~
29520 arg "newline-insert newline"
29523 ) a line break before the word:
29526 \begin_layout Standard
29527 This line is an example to show how you can prevent the hyphenation of
29528 \begin_inset Newline newline
29532 \begin_inset Box Frameless
29542 height_special "totalheight"
29545 \begin_layout Plain Layout
29546 \begin_inset Quotes eld
29550 \begin_inset Quotes erd
29561 \begin_layout Subsection
29563 \begin_inset CommandInset label
29565 name "sub:Vertical-Alignment"
29570 \begin_inset Index idx
29573 \begin_layout Plain Layout
29574 Boxes ! for Vertical Alignment
29580 \begin_inset Index idx
29583 \begin_layout Plain Layout
29592 \begin_layout Standard
29593 With the help of the command
29599 you can align words, characters or other boxes vertically relative to the
29607 is used with the following scheme:
29610 \begin_layout Standard
29615 raisebox{lift}[height][depth]{box content}
29618 \begin_layout Standard
29619 The lift can be a positive value to raise the box or a negative value to
29623 \begin_layout Standard
29624 To align for example the word
29625 \begin_inset Quotes eld
29629 \begin_inset Quotes erd
29632 so that the bottom of the
29633 \begin_inset Quotes eld
29637 \begin_inset Quotes erd
29641 \begin_inset Quotes eld
29645 \begin_inset Quotes erd
29648 is at the baseline, insert the command
29651 \begin_layout Standard
29661 \begin_layout Standard
29662 in TeX-Code before the word.
29663 After the word insert a closing brace
29664 \begin_inset Quotes eld
29672 \begin_inset Quotes erd
29676 \begin_inset Newline newline
29679 This is the result:
29682 \begin_layout Standard
29683 This is a text line with the word
29687 \begin_layout Plain Layout
29699 \begin_inset Quotes eld
29703 \begin_inset Quotes erd
29710 \begin_layout Plain Layout
29720 \begin_layout Standard
29721 \begin_inset VSpace bigskip
29724 When you raise or lower characters in a line, the line distance will be
29728 \begin_layout Standard
29729 This is a text line with the word
29733 \begin_layout Plain Layout
29745 \begin_inset Quotes eld
29749 \begin_inset Quotes erd
29756 \begin_layout Plain Layout
29764 \begin_inset Newline newline
29767 This is a text line with the word
29771 \begin_layout Plain Layout
29781 \begin_inset Quotes eld
29785 \begin_inset Quotes erd
29792 \begin_layout Plain Layout
29802 \begin_layout Standard
29803 If you want to prevent this for a certain reason, set the box height to
29808 \begin_layout Standard
29818 \begin_layout Standard
29819 This is a text line with the word
29823 \begin_layout Plain Layout
29835 \begin_inset Quotes eld
29839 \begin_inset Quotes erd
29846 \begin_layout Plain Layout
29854 \begin_inset Newline newline
29857 This is a text line with the word
29861 \begin_layout Plain Layout
29865 raisebox{0.5cm}[0pt]{
29871 \begin_inset Quotes eld
29875 \begin_inset Quotes erd
29882 \begin_layout Plain Layout
29892 \begin_layout Section
29894 \begin_inset CommandInset label
29896 name "sec:Colored-Boxes"
29901 \begin_inset Index idx
29904 \begin_layout Plain Layout
29913 \begin_layout Subsection
29915 \begin_inset Index idx
29918 \begin_layout Plain Layout
29927 \begin_layout Standard
29928 To color the background of text the text must be put into a so called
29929 \begin_inset Quotes eld
29933 \begin_inset Quotes erd
29937 This requires that the LaTeX-package
29942 \begin_inset Index idx
29945 \begin_layout Plain Layout
29946 LaTeX-packages ! color
29951 is loaded in the document preamble with the command
29954 \begin_layout Standard
29959 @ifundefined{textcolor}
29960 \begin_inset Newline newline
29964 \begin_inset Phantom HPhantom
29967 \begin_layout Plain Layout
29970 \begin_inset space ~
29980 usepackage{color}}{}
29983 \begin_layout Standard
29988 will be loaded automatically by LyX when you color text.
29992 \begin_layout Plain Layout
29993 To avoid it being loaded twice the command
30007 \begin_layout Standard
30008 \begin_inset VSpace medskip
30011 Colorboxes are created with the command
30018 This will be used with the following scheme:
30021 \begin_layout Standard
30026 colorbox{color}{box content}
30029 \begin_layout Standard
30030 The box content can also be a box and colorboxes can also be within other
30034 \begin_layout Standard
30035 The following colors are predefined:
30036 \begin_inset Newline newline
30075 \begin_inset Newline newline
30078 You can also define your own color as described in section
30079 \begin_inset space ~
30083 \begin_inset CommandInset ref
30085 reference "sec:Colored-Tables"
30092 \begin_layout Standard
30094 \begin_inset space \thinspace{}
30098 \begin_inset space \space{}
30101 a red background for a word, insert the command
30104 \begin_layout Standard
30112 \begin_layout Standard
30113 before the word in TeX-Code.
30114 After the word insert a closing brace
30115 \begin_inset Quotes eld
30123 \begin_inset Quotes erd
30127 \begin_inset Newline newline
30130 This is the result:
30133 \begin_layout Standard
30134 This is a line where the word
30138 \begin_layout Plain Layout
30148 \begin_inset Quotes eld
30152 \begin_inset Quotes erd
30159 \begin_layout Plain Layout
30166 has a red background.
30169 \begin_layout Standard
30170 \begin_inset VSpace bigskip
30173 If you would like the box frame in a different color, you can use the command
30180 with the following scheme:
30183 \begin_layout Standard
30188 fcolorbox{frame color}{box color}{box content}
30191 \begin_layout Standard
30205 The frame thickness and the space between the frame and the box content
30206 can be adjusted with the lengths
30218 , respectively, as described in section
30219 \begin_inset space ~
30223 \begin_inset CommandInset ref
30225 reference "sec:Decoration"
30232 \begin_layout Standard
30233 For the following example the command
30236 \begin_layout Standard
30241 fcolorbox{cyan}{magenta}{
30244 \begin_layout Standard
30248 \begin_layout Standard
30249 Here is an example where the frame line thickness was set to 1
30250 \begin_inset space \thinspace{}
30254 \begin_inset Newline newline
30261 \begin_layout Plain Layout
30276 \begin_layout Plain Layout
30280 fcolorbox{cyan}{magenta}{
30285 This is text within a colored, framed box.
30289 \begin_layout Plain Layout
30299 \begin_layout Standard
30300 \begin_inset VSpace bigskip
30303 Of course you can also have colored text inside a colorbox:
30304 \begin_inset Newline newline
30311 \begin_layout Plain Layout
30315 fcolorbox{cyan}{magenta}{
30322 This is colored text within a colored, framed box.
30328 \begin_layout Plain Layout
30339 \begin_layout Plain Layout
30353 \begin_layout Standard
30356 \begin_inset VSpace medskip
30362 \begin_layout Standard
30363 \begin_inset Note Greyedout
30366 \begin_layout Plain Layout
30371 Text in colorboxes cannot have line breaks.
30372 To color multiple text lines or paragraphs, use a box inside a colorbox
30373 as described in the following.
30381 \begin_layout Subsection
30382 Color for Paragraphs
30383 \begin_inset CommandInset label
30385 name "sub:Color-for-Paragraphs"
30390 \begin_inset Index idx
30393 \begin_layout Plain Layout
30394 Color ! for Paragraphs
30402 \begin_layout Standard
30403 To set the background color for more than one text line, put the text into
30405 Before the minipage insert the
30414 \begin_layout Standard
30422 \begin_layout Standard
30424 After the minipage insert a closing brace
30425 \begin_inset Quotes eld
30433 \begin_inset Quotes erd
30439 \begin_layout Standard
30443 \begin_layout Plain Layout
30447 colorbox{lightgrey}{
30453 \begin_inset Box Frameless
30463 height_special "totalheight"
30466 \begin_layout Plain Layout
30467 This is text with background color.
30468 This is text with background color.
30471 \begin_layout Plain Layout
30472 \begin_inset VSpace defskip
30475 The text can have footnotes
30479 \begin_layout Plain Layout
30480 Another example footnote
30485 and can include tables and figures.
30488 \begin_layout Plain Layout
30490 \begin_inset Tabular
30491 <lyxtabular version="3" rows="3" columns="3">
30492 <features tabularvalignment="middle">
30493 <column alignment="center" valignment="top" width="0">
30494 <column alignment="center" valignment="top" width="0">
30495 <column alignment="center" valignment="top" width="0">
30497 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30500 \begin_layout Plain Layout
30506 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30509 \begin_layout Plain Layout
30515 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30518 \begin_layout Plain Layout
30526 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30529 \begin_layout Plain Layout
30535 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30538 \begin_layout Plain Layout
30540 \begin_inset Quotes erd
30548 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30551 \begin_layout Plain Layout
30559 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30562 \begin_layout Plain Layout
30568 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30571 \begin_layout Plain Layout
30577 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30580 \begin_layout Plain Layout
30600 \begin_layout Plain Layout
30610 \begin_layout Section
30611 Rotated and Scaled Boxes
30614 \begin_layout Standard
30615 To use the commands described in this section, the LaTeX-package
30620 \begin_inset Index idx
30623 \begin_layout Plain Layout
30624 LaTeX-packages ! graphicx
30629 needs to be loaded in the document preamble with the command
30632 \begin_layout Standard
30637 @ifundefined{rotatebox}
30638 \begin_inset Newline newline
30642 \begin_inset Phantom HPhantom
30645 \begin_layout Plain Layout
30648 \begin_inset space ~
30658 usepackage{graphicx}}{}
30661 \begin_layout Standard
30662 \begin_inset Note Greyedout
30665 \begin_layout Plain Layout
30670 Some DVI-viewers can't display rotated or scaled material.
30678 \begin_layout Standard
30679 \begin_inset Note Greyedout
30682 \begin_layout Plain Layout
30687 Floats mustn't be inside a rotated or scaled box.
30695 \begin_layout Subsection
30697 \begin_inset Index idx
30700 \begin_layout Plain Layout
30707 \begin_inset Index idx
30710 \begin_layout Plain Layout
30717 \begin_inset Index idx
30720 \begin_layout Plain Layout
30727 \begin_inset Index idx
30730 \begin_layout Plain Layout
30731 Table Customization ! Rotating
30739 \begin_layout Standard
30740 To rotate material, you can put it into a rotated box.
30741 Such a box is created using the command
30747 in TeX-Code with the following scheme:
30750 \begin_layout Standard
30755 rotatebox[rotation origin]{rotation angle}{box content}
30758 \begin_layout Standard
30759 The rotation origin is specified in the form
30764 The following positions are possible:
30784 (top), along with meaningful combinations of the four base positions.
30789 means that the rotation origin is at the top left corner of the box.
30790 When no rotation origin is specified, the position
30795 The rotation angle is a number that can be negative that specifies the
30797 The rotation direction is counterclockwise.
30800 \begin_layout Standard
30801 In the following example the command
30805 rotatebox[origin=c]{60}{
30807 was inserted as TeX-Code before the text
30808 \begin_inset Quotes eld
30812 \begin_inset Quotes erd
30815 ; after the text the box was closed by a closing brace
30822 \begin_layout Standard
30827 \begin_layout Plain Layout
30831 rotatebox[origin=c]{60}{
30840 \begin_layout Plain Layout
30850 \begin_layout Standard
30851 The box content can also be another box or an inline formula:
30854 \begin_layout Standard
30859 \begin_layout Plain Layout
30863 rotatebox[origin=r]{-60}{
30869 \begin_inset Box Doublebox
30879 height_special "totalheight"
30882 \begin_layout Plain Layout
30892 \begin_layout Plain Layout
30903 \begin_layout Plain Layout
30907 rotatebox[origin=lb]{60}{
30913 \begin_inset Formula $\int A\,\mathrm{d}x=B$
30920 \begin_layout Plain Layout
30930 \begin_layout Standard
30931 or an image or table:
30934 \begin_layout Standard
30939 \begin_layout Plain Layout
30943 rotatebox[origin=lb]{90}{
30949 \begin_inset Graphics
30950 filename clipart/platypus.eps
30960 \begin_layout Plain Layout
30967 with a rotated image
30971 \begin_layout Plain Layout
30975 rotatebox[origin=l]{-90}{
30981 \begin_inset Tabular
30982 <lyxtabular version="3" rows="2" columns="2">
30983 <features tabularvalignment="middle">
30984 <column alignment="center" valignment="top" width="0">
30985 <column alignment="center" valignment="top" width="0">
30987 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30990 \begin_layout Plain Layout
30996 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30999 \begin_layout Plain Layout
31007 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31010 \begin_layout Plain Layout
31016 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31019 \begin_layout Plain Layout
31034 \begin_layout Plain Layout
31044 \begin_layout Subsection
31046 \begin_inset Index idx
31049 \begin_layout Plain Layout
31056 \begin_inset Index idx
31059 \begin_layout Plain Layout
31066 \begin_inset Index idx
31069 \begin_layout Plain Layout
31076 \begin_inset Index idx
31079 \begin_layout Plain Layout
31080 Table Customization ! Scaling
31088 \begin_layout Standard
31089 To scale material the commands
31101 can be used as TeX-Code.
31104 \begin_layout Standard
31111 is used with the following scheme:
31114 \begin_layout Standard
31119 scalebox{horizontal}[vertical]{box content}
31122 \begin_layout Standard
31123 Horizontal and vertical are the corresponding scaling factors.
31124 If no vertical scaling factor is given, the horizontal factor will also
31125 be used as the vertical one.
31128 \begin_layout Standard
31135 creates for example a double size
31139 \begin_layout Plain Layout
31152 \begin_layout Plain Layout
31159 , compared with the document text size.
31162 \begin_layout Standard
31167 scalebox{2}[1]{Hello}
31169 on the other hand distorts the
31173 \begin_layout Plain Layout
31186 \begin_layout Plain Layout
31196 \begin_layout Standard
31197 If the scaling factor is negative, the box content will be mirrored.
31198 Therefore the command
31202 scalebox{-1}[1]{Hello}
31204 can be used to create mirror writing:
31208 \begin_layout Plain Layout
31221 \begin_layout Plain Layout
31231 \begin_layout Standard
31236 scalebox{1}[-1]{Hello}
31242 \begin_layout Plain Layout
31255 \begin_layout Plain Layout
31265 \begin_layout Standard
31270 scalebox{-1}[1]{box content}
31272 there exists the command
31273 \begin_inset Newline newline
31280 reflectbox{box content}
31285 \begin_layout Standard
31286 \begin_inset VSpace bigskip
31295 is used to scale the box to a defined width and height.
31296 The command scheme is:
31299 \begin_layout Standard
31304 resizebox{width}{height}{box content}
31307 \begin_layout Standard
31308 If one of the two command arguments given is an exclamation mark
31312 , the size is set so that the aspect ratio of the box content is kept.
31315 \begin_layout Standard
31320 resizebox{2cm}{1cm}{Hello}
31326 \begin_layout Plain Layout
31330 resizebox{2cm}{1cm}{
31339 \begin_layout Plain Layout
31347 \begin_inset Newline newline
31354 resizebox{2cm}{!}{Hello}
31360 \begin_layout Plain Layout
31373 \begin_layout Plain Layout
31383 \begin_layout Standard
31384 \begin_inset VSpace bigskip
31388 \begin_inset Note Greyedout
31391 \begin_layout Plain Layout
31408 are set to zero, no LaTeX-errors occur when exporting the document but
31409 the exported files can not or only partly be displayed.
31417 \begin_layout Standard
31418 \begin_inset VSpace bigskip
31424 \begin_layout Standard
31425 The boxes can be combined in any order.
31427 \begin_inset space \thinspace{}
31431 \begin_inset space \space{}
31435 \begin_inset Newline newline
31442 rotatebox[origin=c]{-45}{
31446 reflectbox{Hello}}}
31447 \begin_inset Newline newline
31455 \begin_layout Standard
31460 \begin_layout Plain Layout
31464 rotatebox[origin=c]{-45}{
31477 \begin_layout Plain Layout
31487 \begin_layout Standard
31489 Images, tables, and inline formulas are allowed as box content:
31492 \begin_layout Standard
31497 \begin_layout Plain Layout
31501 rotatebox[origin=c]{-30}{
31511 \begin_inset Graphics
31512 filename clipart/platypus.eps
31522 \begin_layout Plain Layout
31533 \begin_layout Plain Layout
31537 rotatebox[origin=c]{-45}{
31547 \begin_inset Tabular
31548 <lyxtabular version="3" rows="2" columns="2">
31549 <features tabularvalignment="middle">
31550 <column alignment="center" valignment="top" width="0">
31551 <column alignment="center" valignment="top" width="0">
31553 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31556 \begin_layout Plain Layout
31562 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31565 \begin_layout Plain Layout
31573 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31576 \begin_layout Plain Layout
31582 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31585 \begin_layout Plain Layout
31600 \begin_layout Plain Layout
31611 \begin_layout Plain Layout
31615 rotatebox[origin=c]{-45}{
31625 \begin_inset Formula $\int A\,\mathrm{d}x=B$
31632 \begin_layout Plain Layout
31642 \begin_layout Standard
31643 When the global formula style
31647 is used in the document
31651 \begin_layout Plain Layout
31653 \begin_inset Quotes eld
31657 \begin_inset Quotes erd
31660 is added to the document class options.
31665 , display style formulas can also be scaled.
31668 \begin_layout Chapter
31669 External Document Parts
31670 \begin_inset Index idx
31673 \begin_layout Plain Layout
31674 External Document Parts
31682 \begin_layout Standard
31685 Insert\SpecialChar \menuseparator
31688 you can insert external material to your document.
31692 \begin_layout Description
31694 \begin_inset space ~
31697 Document Another LyX document; its content is directly inserted to your
31701 \begin_layout Description
31703 \begin_inset space ~
31706 Text A text document; each line is inserted in your document as a separate
31710 \begin_layout Description
31712 \begin_inset space ~
31716 \begin_inset space ~
31720 \begin_inset space ~
31723 Lines A text document; text lines are inserted in your document continuously
31724 but an empty text line creates a new paragraph.
31727 \begin_layout Description
31729 \begin_inset space ~
31732 Material Files in various formats.
31735 \begin_layout Description
31737 \begin_inset space ~
31740 Document LyX or LaTeX-documents.
31743 \begin_layout Section
31745 \begin_inset Index idx
31748 \begin_layout Plain Layout
31749 External Document Parts ! External Material
31757 \begin_layout Standard
31758 The external material feature allows you to insert files in to your document
31759 without converting them to a format that can be read by the document output
31761 LyX takes care of the necessary conversions.
31762 This is similar to images that can be inserted in various image formats
31764 When you have enabled Instant Preview in LyX's preferences under
31767 \begin_inset space ~
31771 \begin_inset space ~
31774 feel\SpecialChar \menuseparator
31777 , the external material types Dia and Xfig are directly shown in LyX.
31780 \begin_layout Standard
31781 External material can be inserted via the
31785 dialog that is accessible with the menu
31787 Insert\SpecialChar \menuseparator
31788 File\SpecialChar \menuseparator
31790 \begin_inset space ~
31796 Currently the following file types (
31803 \begin_layout Description
31804 ChessDiagram This template supports chess position diagrams made with the
31808 \begin_inset CommandInset href
31811 target "http://en.wikipedia.org/wiki/XBoard"
31820 \begin_layout Description
31821 Date This inserts the date in the form
31826 This is a date inserted as external material:
31827 \begin_inset External
31834 \begin_inset space ~
31838 \begin_inset Note Note
31841 \begin_layout Plain Layout
31842 Remove the protected space when bug 4398 is fixed!
31848 \begin_inset Newline newline
31851 The date is not shown within LyX, only in the output.
31852 There are two other methods of inserting a date: Via menu
31854 Insert\SpecialChar \menuseparator
31857 and with the LaTeX command
31864 The different methods are compared in Table
31865 \begin_inset space ~
31869 \begin_inset CommandInset ref
31871 reference "tab:Comparison-of-the"
31878 \begin_layout Description
31879 Dia This template supports diagrams created with the program
31882 \begin_inset CommandInset href
31885 target "http://en.wikipedia.org/wiki/Dia_(software)"
31894 \begin_layout Description
31895 LilyPond This template is used for music notation typeset with the program
31896 \begin_inset Newline linebreak
31902 \begin_inset CommandInset href
31905 target "http://en.wikipedia.org/wiki/LilyPond"
31914 \begin_layout Description
31915 PDFPages With this template you can insert PDF documents to your document.
31916 To insert certain or all pages of a PDF, use the
31926 LaTeX and LyX options
31928 tab according to the template description in the dialog.
31933 option is given, only the first page of the PDF will be inserted.
31936 \begin_layout Description
31937 RasterImage This can be used for bitmap images.
31938 Nearly all popular image formats are supported.
31939 The image can be treated in the
31943 dialog like the images that are usually included via the
31947 dialog as described in section
31948 \begin_inset space ~
31952 \begin_inset CommandInset ref
31954 reference "sec:Graphics-Dialog"
31959 The difference is that only raster images are allowed; that means that
31960 PDF and EPS-images are not supported.
31963 \begin_layout Description
31964 XFig This template supports images created with the program
31967 \begin_inset CommandInset href
31970 target "http://en.wikipedia.org/wiki/Xfig"
31979 \begin_layout Standard
31980 \begin_inset Float table
31986 \begin_layout Plain Layout
31987 \begin_inset Caption
31989 \begin_layout Plain Layout
31990 \begin_inset CommandInset label
31992 name "tab:Comparison-of-the"
31996 Comparison of the date input methods.
32004 \begin_layout Plain Layout
32006 \begin_inset Tabular
32007 <lyxtabular version="3" rows="4" columns="4">
32008 <features tabularvalignment="middle">
32009 <column alignment="center" valignment="top" width="0">
32010 <column alignment="center" valignment="top" width="0">
32011 <column alignment="center" valignment="top" width="0">
32012 <column alignment="center" valignment="top" width="0">
32014 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32017 \begin_layout Plain Layout
32023 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32026 \begin_layout Plain Layout
32029 External Material\SpecialChar \menuseparator
32035 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32038 \begin_layout Plain Layout
32041 Insert\SpecialChar \menuseparator
32047 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32050 \begin_layout Plain Layout
32062 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32065 \begin_layout Plain Layout
32071 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32074 \begin_layout Plain Layout
32080 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32083 \begin_layout Plain Layout
32089 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32092 \begin_layout Plain Layout
32093 as TeX-Code inset box
32100 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32103 \begin_layout Plain Layout
32109 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32112 \begin_layout Plain Layout
32118 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32121 \begin_layout Plain Layout
32127 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32130 \begin_layout Plain Layout
32138 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32141 \begin_layout Plain Layout
32147 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32150 \begin_layout Plain Layout
32156 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32159 \begin_layout Plain Layout
32165 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
32168 \begin_layout Plain Layout
32187 \begin_layout Standard
32188 When you use the option
32200 dialog, only the path to the inserted file is shown in the output.
32201 \begin_inset Newline newline
32204 External material is displayed in LyX either as a box like this:
32205 \begin_inset Graphics
32206 filename clipart/ExternalMaterialQt4.png
32208 scaleBeforeRotation
32212 or as image, depending on the option
32218 LaTeX and LyX options
32223 \begin_layout Standard
32230 manual explains how you can define your own templates.
32233 \begin_layout Section
32235 \begin_inset CommandInset label
32237 name "sec:Child-Documents"
32242 \begin_inset Index idx
32245 \begin_layout Plain Layout
32246 External Document Parts ! Child Documents
32252 \begin_inset Index idx
32255 \begin_layout Plain Layout
32264 \begin_layout Standard
32265 Child documents are used when you have a long document consisting of several
32266 larger parts or sections.
32267 For maintenance it is often useful and sometimes even required to split
32268 the document in several files that can be revised separately.
32269 The different documents are then the so called child documents and a master
32270 document connects them to print the full document or parts of it.
32271 A child documents inherits elements of its master, for example the LaTeX
32272 preamble, the bibliography, and labels for cross-references.
32275 \begin_layout Standard
32276 To be able to work on child documents without the need to open their master,
32277 specify in the child document the master in the menu
32279 Document\SpecialChar \menuseparator
32280 Settings\SpecialChar \menuseparator
32282 \begin_inset space ~
32288 This master document will then be used in the background by LyX when you
32289 edit the child document.
32292 \begin_layout Standard
32293 Included documents are displayed in LyX as a box like this:
32294 \begin_inset Graphics
32295 filename clipart/ChildDocumentQt4.png
32297 scaleBeforeRotation
32301 To include child documents in a master document use the menu
32303 Insert\SpecialChar \menuseparator
32304 File\SpecialChar \menuseparator
32306 \begin_inset space ~
32312 A dialog pops up where you can choose between four include methods:
32315 \begin_layout Description
32316 Include You can include LyX and LaTeX-documents.
32325 dialog, the included documents will be opened in LyX in a new file tab
32326 so that you can modify them.
32327 \begin_inset Newline newline
32333 \begin_layout Standard
32334 Here is a child document inserted using
32339 \begin_inset CommandInset include
32340 LatexCommand include
32341 filename "DummyDocument1.lyx"
32348 \begin_layout Standard
32349 The section numbering includes the sections of the included files in the
32350 order they are inserted in the master document.
32351 The included example document has for example a subsection that is numbered
32352 as a subsection of this section.
32353 Labels of included documents can be referenced: Subsection
32354 \begin_inset space ~
32358 \begin_inset CommandInset ref
32360 reference "sub:External-Subsection-1"
32367 \begin_layout Standard
32368 The preamble of the child document is ignored; only the preamble of the
32369 master document is used.
32370 Branches in child documents will be ignored by the master document when
32371 the master document does not have a branch with the same name.
32372 Included documents are inserted starting on a new page and ending with
32376 \begin_layout Standard
32377 If you are only working on a certain chapter of a large document and want
32378 to save compiling time, you can put each included file into a branch.
32382 \begin_layout Plain Layout
32383 Branches are described in section
32396 By enabling/disabling branches you can decide what included files will
32397 appear in the output.
32400 \begin_layout Standard
32401 \begin_inset Note Greyedout
32404 \begin_layout Plain Layout
32409 Due to a bug in LyX the LaTeX command
32415 can currently not be used as an alternative to decide what files should
32424 \begin_layout Standard
32425 \begin_inset Note Greyedout
32428 \begin_layout Plain Layout
32433 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
32434 w the document in case the child document uses another document class than
32435 the master document as this will lead to unexpected outputs.
32443 \begin_layout Description
32444 Input This method is very similar to the Include method.
32445 The differences are:
32449 \begin_layout Itemize
32450 Input files don't start with a new page and don't end with a page break.
32453 \begin_layout Itemize
32454 Input files can be previewed in LyX when
32457 \begin_inset space ~
32462 is enabled in LyX's preferences under
32465 \begin_inset space ~
32469 \begin_inset space ~
32472 feel\SpecialChar \menuseparator
32478 \begin_layout Itemize
32489 \begin_layout Standard
32490 Here is a child document inserted using
32495 \begin_inset CommandInset include
32497 filename "DummyDocument2.lyx"
32504 \begin_layout Description
32505 Verbatim With this method every text file can be included.
32506 The file is shown in the output with its source code; no command used in
32507 the text is invoked.
32508 You can use the option
32510 Mark spaces in output
32512 that displays the character
32513 \begin_inset Quotes eld
32520 \begin_layout Plain Layout
32530 \begin_inset Quotes erd
32533 for every space character in the source code.
32534 The difference from the method via the menu
32536 Insert\SpecialChar \menuseparator
32537 File\SpecialChar \menuseparator
32539 \begin_inset space ~
32544 is that the document content is not shown in LyX.
32547 \begin_layout Standard
32548 Here is a child document inserted as Verbatim:
32549 \begin_inset CommandInset include
32550 LatexCommand verbatiminput
32551 filename "DummyTextDocument.txt"
32556 \begin_inset VSpace bigskip
32559 Here is a child document inserted as Verbatim using the
32561 Mark spaces in output
32564 \begin_inset CommandInset include
32565 LatexCommand verbatiminput*
32566 filename "DummyTextDocument.txt"
32573 \begin_layout Standard
32574 \begin_inset VSpace bigskip
32580 \begin_layout Standard
32581 \begin_inset Note Greyedout
32584 \begin_layout Plain Layout
32589 As you can see in the examples above, the text of the documents included
32594 is not broken at the end of the document lines.
32602 \begin_layout Description
32603 Listings This type is described in chapter
32604 \begin_inset space ~
32608 \begin_inset CommandInset ref
32610 reference "cha:Program-Code-Listings"
32617 \begin_layout Standard
32618 \begin_inset Note Greyedout
32621 \begin_layout Plain Layout
32626 Including the same document twice in a document using different methods
32627 could cause LaTeX-problems.
32635 \begin_layout Chapter
32636 Program Code Listings
32637 \begin_inset CommandInset label
32639 name "cha:Program-Code-Listings"
32644 \begin_inset Index idx
32647 \begin_layout Plain Layout
32654 \begin_inset Index idx
32657 \begin_layout Plain Layout
32664 \begin_inset Index idx
32667 \begin_layout Plain Layout
32676 \begin_layout Standard
32677 To include and typeset program code you can use the
32681 inset that can be inserted via the menu
32683 Insert\SpecialChar \menuseparator
32692 \begin_inset Index idx
32695 \begin_layout Plain Layout
32696 LaTeX-packages ! listings
32701 provides a powerful and flexible way to insert program source code into
32705 \begin_layout Standard
32706 Right-clicking on a listings inset opens the context menu containing where
32707 you can set the listings format.
32710 \begin_layout Standard
32711 By default, a listing starts a new paragraph in the output.
32712 The placement option
32715 \begin_inset space ~
32720 prints the listing inline like this:
32721 \begin_inset listings
32722 lstparams "language={C++}"
32726 \begin_layout Plain Layout
32734 \begin_inset Newline newline
32741 creates a listings float where you can specify the placement options
32742 \begin_inset Quotes eld
32750 \begin_inset Quotes erd
32754 \begin_inset Quotes eld
32762 \begin_inset Quotes erd
32766 \begin_inset Quotes eld
32774 \begin_inset Quotes erd
32778 \begin_inset Quotes eld
32786 \begin_inset Quotes erd
32789 corresponding to the float placement options described in section
32790 \begin_inset space ~
32794 \begin_inset CommandInset ref
32796 reference "sec:Float-Placement"
32801 The placement options can be mixed and are inserted without any separation,
32803 \begin_inset space \thinspace{}
32807 \begin_inset space \space{}
32811 \begin_inset Quotes eld
32819 \begin_inset Quotes erd
32824 \begin_inset Quotes eld
32828 \begin_inset Quotes erd
32831 has sometimes no effect, but you don't need to use the
32835 option in this case as also non-float listings can have captions and be
32839 \begin_layout Standard
32840 You can add captions to listings with the menu
32842 Insert\SpecialChar \menuseparator
32846 Listings can be referenced like floats: Listing
32847 \begin_inset space ~
32851 \begin_inset CommandInset ref
32853 reference "lst:Example-Listing"
32860 \begin_layout Standard
32861 \begin_inset listings
32862 lstparams "language=Python"
32866 \begin_layout Plain Layout
32868 \begin_inset Caption
32870 \begin_layout Plain Layout
32871 \begin_inset CommandInset label
32873 name "lst:Example-Listing"
32877 Example Listing float
32882 # Example listing float
32885 \begin_layout Plain Layout
32890 \begin_layout Plain Layout
32892 'this is a python function'
32895 \begin_layout Plain Layout
32905 \begin_layout Standard
32906 When you have set a programming language in the listings dialog, the keywords
32907 of this language will be recognized and specially typeset in the output.
32908 In the example listings the Python keyword
32909 \begin_inset Quotes eld
32913 \begin_inset Quotes erd
32916 is recognized and printed bold in the output.
32919 \begin_layout Standard
32920 \begin_inset Note Greyedout
32923 \begin_layout Plain Layout
32928 If you don't get bold keywords when using typewriter fonts, your
32932 font probably doesn't provide a bold shape.
32933 In this case select a different one in the menu
32935 Document\SpecialChar \menuseparator
32936 Settings\SpecialChar \menuseparator
32948 provide bold shapes.)
32956 \begin_layout Standard
32960 \begin_inset space ~
32965 of the listings dialog you can specify the line numbering style.
32966 You can insert a number to specify which lines are numbered in the field
32973 \begin_inset space \thinspace{}
32977 \begin_inset space \space{}
32981 \begin_inset Quotes eld
32985 \begin_inset Quotes erd
32988 , only every 3rd line will be numbered.
32991 \begin_layout Standard
32992 You can furthermore specify a range of lines; only these will then appear
32996 Extended character table
32998 should be used when you use national characters like the German umlauts
33000 \begin_inset Newline newline
33003 Here is an example listing with left line numbering, step
33004 \begin_inset Quotes eld
33008 \begin_inset Quotes erd
33012 \begin_inset Quotes eld
33016 \begin_inset Quotes erd
33020 \begin_inset Quotes eld
33023 Extended character table
33024 \begin_inset Quotes erd
33028 \begin_inset Quotes eld
33032 \begin_inset space ~
33036 \begin_inset space ~
33040 \begin_inset Quotes erd
33044 \begin_inset space \thinspace{}
33048 \begin_inset space \thinspace{}
33054 \begin_layout Standard
33055 \begin_inset listings
33056 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
33060 \begin_layout Plain Layout
33065 \begin_layout Plain Layout
33067 'this is a python function'
33070 \begin_layout Plain Layout
33075 \begin_layout Plain Layout
33080 \begin_layout Plain Layout
33082 'This is a German word: Tschüß'
33085 \begin_layout Plain Layout
33090 \begin_layout Plain Layout
33095 \begin_layout Plain Layout
33097 'this is a python function'
33100 \begin_layout Plain Layout
33110 \begin_layout Standard
33111 When you have tabulators in your listing, you can specify the number of
33112 characters that are spanned by a tabulator in the field
33115 \begin_inset space ~
33123 \begin_layout Standard
33124 \begin_inset Note Greyedout
33127 \begin_layout Plain Layout
33132 Due to a bug in the
33136 package the line numbering is shifted by a line by every previous listing.
33137 That's the reason why the lines 2 and 5 are numbered in the above listing
33138 and not the lines 3 and 6.
33146 \begin_layout Standard
33147 \begin_inset VSpace bigskip
33153 \begin_layout Standard
33154 It is also possible to print lines from a file as listing.
33155 To do this, use the menu
33157 Insert\SpecialChar \menuseparator
33158 File\SpecialChar \menuseparator
33161 and choose the type
33169 \begin_layout Plain Layout
33170 The other child document types are described in section
33171 \begin_inset space ~
33175 \begin_inset CommandInset ref
33177 reference "sec:Child-Documents"
33186 In the child document dialog you can specify the listing parameters in
33188 To show a list of all available parameters, type in a question mark
33189 \begin_inset Quotes eld
33193 \begin_inset Quotes erd
33199 \begin_layout Standard
33200 To reference child document listings, write a label text into the corresponding
33201 field of the child document dialog.
33202 The label can then be referenced using the menu
33204 Insert\SpecialChar \menuseparator
33210 \begin_layout Standard
33212 \begin_inset space ~
33216 \begin_inset CommandInset ref
33218 reference "lst:file-listing"
33222 is an example for a listing of a file; there the lines 10
33223 \begin_inset space \thinspace{}
33227 \begin_inset space \thinspace{}
33230 15 of this LyX file are listed.
33233 \begin_layout Standard
33234 \begin_inset CommandInset include
33235 LatexCommand lstinputlisting
33236 filename "EmbeddedObjects.lyx"
33237 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
33244 \begin_layout Standard
33245 \begin_inset VSpace bigskip
33251 \begin_layout Standard
33252 Inserting a formula into a listing can be done the following way:
33255 \begin_layout Enumerate
33256 Open the listings dialog and add
33257 \begin_inset Newline newline
33265 \begin_inset Newline newline
33268 to the field of the
33275 \begin_layout Enumerate
33276 Create a formula outside the listing
33279 \begin_layout Enumerate
33280 Copy the content of the formula (not the formula inset) to the clipboard
33290 \begin_layout Enumerate
33291 In the listing write
33292 \begin_inset Quotes eld
33300 \begin_inset Quotes erd
33303 and copy from the clipboard between the dollar-signs (shortcut
33312 \begin_layout Standard
33313 \begin_inset listings
33314 lstparams "language=Python,mathescape=true"
33318 \begin_layout Plain Layout
33320 \begin_inset Caption
33322 \begin_layout Plain Layout
33323 Example Listing float containing a formula
33328 # Example listing float
33331 \begin_layout Plain Layout
33336 \begin_layout Plain Layout
33349 \begin_layout Plain Layout
33359 \begin_layout Standard
33360 \begin_inset VSpace bigskip
33366 \begin_layout Standard
33367 Global listings settings can be set in the
33369 Document\SpecialChar \menuseparator
33370 Settings\SpecialChar \menuseparator
33374 To get there a list of available options, type in a question mark
33375 \begin_inset Quotes eld
33379 \begin_inset Quotes erd
33385 \begin_inset space ~
33393 \begin_layout Standard
33394 For more information about the
33398 package, we refer to its documentation
33399 \begin_inset CommandInset citation
33408 \begin_layout Standard
33409 \begin_inset Newpage newpage
33415 \begin_layout Chapter
33417 Units available in LyX
33418 \begin_inset Index idx
33421 \begin_layout Plain Layout
33428 \begin_inset CommandInset label
33430 name "cha:Units-available-in"
33437 \begin_layout Standard
33438 To understand the units described in this documentation, Table
33439 \begin_inset space ~
33443 \begin_inset CommandInset ref
33445 reference "tab:Units"
33449 explains all units available in LyX.
33452 \begin_layout Standard
33453 \begin_inset Float table
33459 \begin_layout Plain Layout
33460 \begin_inset Caption
33462 \begin_layout Plain Layout
33463 \begin_inset CommandInset label
33477 \begin_layout Plain Layout
33478 \begin_inset VSpace medskip
33484 \begin_layout Plain Layout
33486 \begin_inset Tabular
33487 <lyxtabular version="3" rows="20" columns="2">
33488 <features tabularvalignment="middle">
33489 <column alignment="center" valignment="top" width="0">
33490 <column alignment="center" valignment="top" width="0">
33492 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
33495 \begin_layout Plain Layout
33501 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
33504 \begin_layout Plain Layout
33512 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33515 \begin_layout Plain Layout
33521 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33524 \begin_layout Plain Layout
33532 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33535 \begin_layout Plain Layout
33541 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33544 \begin_layout Plain Layout
33552 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33555 \begin_layout Plain Layout
33561 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33564 \begin_layout Plain Layout
33572 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33575 \begin_layout Plain Layout
33581 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33584 \begin_layout Plain Layout
33586 \begin_inset space \thinspace{}
33590 \begin_inset space \thinspace{}
33600 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33603 \begin_layout Plain Layout
33609 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33612 \begin_layout Plain Layout
33614 \begin_inset space \thinspace{}
33618 \begin_inset space \thinspace{}
33628 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33631 \begin_layout Plain Layout
33637 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33640 \begin_layout Plain Layout
33641 scaled point (65536
33642 \begin_inset space \thinspace{}
33646 \begin_inset space \thinspace{}
33656 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33659 \begin_layout Plain Layout
33665 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33668 \begin_layout Plain Layout
33670 \begin_inset space \thinspace{}
33674 \begin_inset space \thinspace{}
33684 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33687 \begin_layout Plain Layout
33693 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33696 \begin_layout Plain Layout
33698 \begin_inset space \thinspace{}
33702 \begin_inset Formula $\approx$
33706 \begin_inset space \thinspace{}
33716 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33719 \begin_layout Plain Layout
33725 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33728 \begin_layout Plain Layout
33730 \begin_inset space \thinspace{}
33734 \begin_inset space \thinspace{}
33744 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33747 \begin_layout Plain Layout
33753 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33756 \begin_layout Plain Layout
33757 % of original image width
33764 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33767 \begin_layout Plain Layout
33773 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33776 \begin_layout Plain Layout
33784 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33787 \begin_layout Plain Layout
33793 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33796 \begin_layout Plain Layout
33804 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33807 \begin_layout Plain Layout
33813 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33816 \begin_layout Plain Layout
33824 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33827 \begin_layout Plain Layout
33833 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33836 \begin_layout Plain Layout
33844 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33847 \begin_layout Plain Layout
33853 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33856 \begin_layout Plain Layout
33864 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33867 \begin_layout Plain Layout
33873 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33876 \begin_layout Plain Layout
33884 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33887 \begin_layout Plain Layout
33893 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33896 \begin_layout Plain Layout
33908 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33911 \begin_layout Plain Layout
33917 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33920 \begin_layout Plain Layout
33932 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
33935 \begin_layout Plain Layout
33941 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
33944 \begin_layout Plain Layout
33946 \begin_inset space \thinspace{}
33950 \begin_inset space \thinspace{}
33971 \begin_layout Chapter
33972 Output File Formats with Graphics
33973 \begin_inset CommandInset label
33975 name "cha:Output-File-Formats"
33982 \begin_layout Section
33984 \begin_inset Index idx
33987 \begin_layout Plain Layout
33994 \begin_inset Index idx
33997 \begin_layout Plain Layout
34002 \begin_layout Plain Layout
34013 \begin_layout Plain Layout
34028 \begin_layout Standard
34029 This file type has the extension
34030 \begin_inset Quotes eld
34038 \begin_inset Quotes erd
34043 \begin_inset Quotes eld
34047 \begin_inset Quotes erd
34050 (DVI), because it is completely portable; you can move them from one machine
34051 to another without needing to do any sort of conversion.
34052 At the time when this file-format was developed, this was no matter of
34054 DVIs are used for quick previews and as pre-stage for other output formats,
34058 \begin_layout Standard
34059 \begin_inset Note Greyedout
34062 \begin_layout Plain Layout
34067 DVI-files do not contain images; they will only be a linked.
34072 So don't forget this, if you move your
34076 file to another computer.
34077 This property can also slow down your computer when you view the DVI, because
34078 the DVI-viewer has to convert the image in the background to make it visible
34079 when you scroll in the DVI.
34080 So it is recommended that you use PDF for files with many images.
34083 \begin_layout Standard
34084 You can export your document to DVI by using the menu
34086 File\SpecialChar \menuseparator
34087 Export\SpecialChar \menuseparator
34091 You can view your document as DVI via the
34095 menu or by using the toolbar button
34096 \begin_inset Graphics
34097 filename ../images/buffer-view_dvi.png
34099 scaleBeforeRotation
34106 \begin_layout Section
34108 \begin_inset CommandInset label
34110 name "sec:PostScript"
34115 \begin_inset Index idx
34118 \begin_layout Plain Layout
34119 File Formats ! PostScript
34125 \begin_inset Index idx
34128 \begin_layout Plain Layout
34133 \begin_layout Plain Layout
34144 \begin_layout Plain Layout
34159 \begin_layout Standard
34160 This file type has the extension
34161 \begin_inset Quotes eld
34169 \begin_inset Quotes erd
34173 PostScript was developed by the company
34177 as a printer language.
34178 The file therefore contains commands that the printer uses to print the
34180 PostScript can be seen as a
34181 \begin_inset Quotes eld
34184 programming language
34185 \begin_inset Quotes erd
34188 ; you can calculate with it and draw diagrams and images
34192 \begin_layout Plain Layout
34193 If you are interested to learn more about this, have a look at the LaTeX-package
34199 \begin_inset CommandInset citation
34211 Due to this ability, the files are often bigger than PDFs.
34214 \begin_layout Standard
34215 PostScript can only contain images in the format
34216 \begin_inset Quotes eld
34219 Encapsulated PostScript
34220 \begin_inset Quotes erd
34223 (EPS, file extension
34224 \begin_inset Quotes eld
34232 \begin_inset Quotes erd
34236 As LyX allows you to use any known image format in your document, it has
34237 to convert images in the background to EPS.
34239 \begin_inset space ~
34243 \begin_inset space ~
34246 images in your document, LyX has to do 50
34247 \begin_inset space ~
34250 conversions whenever you view or export your document.
34251 This will slow down your work flow with LyX drastically.
34252 So if you plan to use PostScript, you can insert your images directly as
34253 EPS to avoid this problem.
34256 \begin_layout Standard
34257 You can export your document to PostScript using the menu
34259 File\SpecialChar \menuseparator
34260 Export\SpecialChar \menuseparator
34264 You can view your document as PostScript via the
34268 menu or by using the toolbar button
34269 \begin_inset Graphics
34270 filename ../images/buffer-view_ps.png
34272 scaleBeforeRotation
34279 \begin_layout Section
34281 \begin_inset Index idx
34284 \begin_layout Plain Layout
34291 \begin_inset Index idx
34294 \begin_layout Plain Layout
34303 \begin_layout Standard
34304 This file type has the extension
34305 \begin_inset Quotes eld
34313 \begin_inset Quotes erd
34318 \begin_inset Quotes eld
34321 Portable Document Format
34322 \begin_inset Quotes erd
34325 (PDF) was developed by
34329 as a derivative of PostScript.
34330 It is more compressed and it uses fewer commands than PostScript.
34332 \begin_inset Quotes eld
34336 \begin_inset Quotes erd
34339 implies, it can be processed at any computer system and the printed output
34340 looks exactly the same.
34343 \begin_layout Standard
34344 PDF can contain images in its own PDF format, in the format
34345 \begin_inset Quotes eld
34348 Joint Photographic Experts Group
34349 \begin_inset Quotes erd
34352 (JPG, file extension
34353 \begin_inset Quotes eld
34361 \begin_inset Quotes erd
34365 \begin_inset Quotes eld
34373 \begin_inset Quotes erd
34376 ), and in the format
34377 \begin_inset Quotes eld
34380 Portable Network Graphics
34381 \begin_inset Quotes erd
34384 (PNG, file extension
34385 \begin_inset Quotes eld
34393 \begin_inset Quotes erd
34397 Nevertheless you can use any other image format, because LyX converts them
34398 in the background to one of these formats.
34399 But as described in the section about PostScript, the image conversion
34400 will slow down your work flow.
34401 So it is recommended that you use images in one of the three mentioned
34405 \begin_layout Standard
34406 You can export your document to PDF via the menu
34408 File\SpecialChar \menuseparator
34411 in three different ways:
34414 \begin_layout Description
34416 \begin_inset space ~
34419 (ps2pdf) This uses the program
34423 that creates a PDF from a PostScript-version of your file.
34424 The PostScript-version is produced by the program
34428 which uses a DVI-version as intermediate step.
34429 So this export variant consists of three conversions.
34432 \begin_layout Description
34434 \begin_inset space ~
34437 (dvipdfm) This uses the program
34441 that converts your file in the background to DVI and in a second step to
34445 \begin_layout Description
34447 \begin_inset space ~
34450 (pdflatex) This uses the program
34454 that converts your file directly to PDF.
34457 \begin_layout Standard
34458 It is recommended that you use
34461 \begin_inset space ~
34470 supports all features of actual PDF-versions, is quick and works stable.
34475 is not under development and therefore a bit outdated.
34478 \begin_layout Standard
34479 You can view your document as PDF via the
34483 menu or by using the toolbar button
34484 \begin_inset Graphics
34485 filename ../images/buffer-view_pdf2.png
34487 scaleBeforeRotation
34498 \begin_inset space ~
34506 \begin_layout Chapter
34507 Explanation of Equation
34508 \begin_inset space ~
34512 \begin_inset CommandInset ref
34519 \begin_inset CommandInset label
34521 name "cha:Explanation-of-Equation"
34528 \begin_layout Standard
34529 We can calculate the total width of
34534 \begin_inset Formula $W_{\mathrm{tot\, n}}$
34540 \begin_layout Standard
34541 \begin_inset Formula \begin{equation}
34542 W_{\mathrm{tot}\, n}=n\cdot(W_{g\, n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}\end{equation}
34547 \begin_inset Formula $W_{g\, n}$
34550 is the given width of all cells,
34556 is the LaTeX-length between the cell text and the cell border (its default
34558 \begin_inset space \thinspace{}
34568 is the thickness of the cell border line, the default is 0.4
34569 \begin_inset space \thinspace{}
34575 \begin_layout Standard
34577 \begin_inset space ~
34581 \begin_inset CommandInset ref
34583 reference "eq:Wtot_n"
34587 , the total width of a multicolumn
34588 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
34594 \begin_layout Standard
34595 \begin_inset Formula \begin{equation}
34596 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
34603 \begin_layout Standard
34604 By setting equation
34605 \begin_inset space ~
34609 \begin_inset CommandInset ref
34611 reference "eq:Wtot_n"
34616 \begin_inset CommandInset ref
34618 reference "eq:Wtot_mult"
34622 equal we can calculate the needed given width
34623 \begin_inset Formula $W_{g\, n}$
34630 columns are spanned, so that each column has a total width of
34631 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
34637 \begin_layout Standard
34638 \begin_inset Formula \begin{equation}
34639 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
34646 \begin_layout Bibliography
34647 \labelwidthstring Bibliography
34648 \begin_inset CommandInset bibitem
34649 LatexCommand bibitem
34650 key "latexcompanion"
34654 Frank Mittelbach and Michel Goossens:
34656 The LaTeX Companion Second Edition.
34659 Addison-Wesley, 2004
34662 \begin_layout Bibliography
34663 \labelwidthstring Bibliography
34664 \begin_inset CommandInset bibitem
34665 LatexCommand bibitem
34670 Helmut Kopka and Patrick W.
34673 A Guide to LaTeX Fourth Edition.
34676 Addison-Wesley, 2003
34679 \begin_layout Bibliography
34680 \labelwidthstring Bibliography
34681 \begin_inset CommandInset bibitem
34682 LatexCommand bibitem
34689 LaTeX: A Document Preparation System.
34692 Addison-Wesley, second edition, 1994
34695 \begin_layout Bibliography
34696 \labelwidthstring Bibliography
34697 \begin_inset CommandInset bibitem
34698 LatexCommand bibitem
34703 Documentation of the LaTeX-package
34706 \begin_inset CommandInset href
34709 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
34716 \begin_inset Index idx
34719 \begin_layout Plain Layout
34720 LaTeX-packages ! booktabs
34728 \begin_layout Bibliography
34729 \labelwidthstring Bibliography
34730 \begin_inset CommandInset bibitem
34731 LatexCommand bibitem
34736 Documentation of the LaTeX-package
34739 \begin_inset CommandInset href
34742 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf"
34749 \begin_inset Index idx
34752 \begin_layout Plain Layout
34753 LaTeX-packages ! caption
34761 \begin_layout Bibliography
34762 \labelwidthstring Bibliography
34763 \begin_inset CommandInset bibitem
34764 LatexCommand bibitem
34769 Documentation of the LaTeX-package
34772 \begin_inset CommandInset href
34775 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
34782 \begin_inset Index idx
34785 \begin_layout Plain Layout
34786 LaTeX-packages ! endfloat
34794 \begin_layout Bibliography
34795 \labelwidthstring Bibliography
34796 \begin_inset CommandInset bibitem
34797 LatexCommand bibitem
34802 Documentation of the LaTeX-package
34805 \begin_inset CommandInset href
34808 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/wrapfig/wrapfig.sty"
34815 \begin_inset Index idx
34818 \begin_layout Plain Layout
34819 LaTeX-packages ! wrapfig
34823 \begin_layout Plain Layout
34840 \begin_layout Bibliography
34841 \labelwidthstring Bibliography
34842 \begin_inset CommandInset bibitem
34843 LatexCommand bibitem
34848 Documentation of the LaTeX-package
34851 \begin_inset CommandInset href
34854 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
34861 \begin_inset Index idx
34864 \begin_layout Plain Layout
34865 LaTeX-packages ! footmisc
34873 \begin_layout Bibliography
34874 \labelwidthstring Bibliography
34875 \begin_inset CommandInset bibitem
34876 LatexCommand bibitem
34881 Documentation of the LaTeX-package
34884 \begin_inset CommandInset href
34887 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
34894 \begin_inset Index idx
34897 \begin_layout Plain Layout
34898 LaTeX-packages ! hyperref
34906 \begin_layout Bibliography
34907 \labelwidthstring Bibliography
34908 \begin_inset CommandInset bibitem
34909 LatexCommand bibitem
34914 Documentation of the LaTeX-package
34917 \begin_inset CommandInset href
34920 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
34927 \begin_inset Index idx
34930 \begin_layout Plain Layout
34931 LaTeX-packages ! hyperref
34939 \begin_layout Bibliography
34940 \labelwidthstring Bibliography
34941 \begin_inset CommandInset bibitem
34942 LatexCommand bibitem
34947 Documentation of the LaTeX-package
34950 \begin_inset CommandInset href
34953 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf"
34960 \begin_inset Index idx
34963 \begin_layout Plain Layout
34964 LaTeX-packages ! KOMA-Script
34972 \begin_layout Bibliography
34973 \labelwidthstring Bibliography
34974 \begin_inset CommandInset bibitem
34975 LatexCommand bibitem
34980 Documentation of the LaTeX-package
34983 \begin_inset CommandInset href
34986 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
34993 \begin_inset Index idx
34996 \begin_layout Plain Layout
34997 LaTeX-packages ! listings
35005 \begin_layout Bibliography
35006 \labelwidthstring Bibliography
35007 \begin_inset CommandInset bibitem
35008 LatexCommand bibitem
35013 Documentation of the LaTeX-package
35016 \begin_inset CommandInset href
35019 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
35026 \begin_inset Index idx
35029 \begin_layout Plain Layout
35030 LaTeX-packages ! marginnote
35038 \begin_layout Bibliography
35039 \labelwidthstring Bibliography
35040 \begin_inset CommandInset bibitem
35041 LatexCommand bibitem
35046 Web page of the LaTeX-package
35049 \begin_inset CommandInset href
35052 target "http://tug.org/PSTricks/"
35059 \begin_inset Index idx
35062 \begin_layout Plain Layout
35063 LaTeX-packages ! PSTricks
35071 \begin_layout Bibliography
35072 \labelwidthstring Bibliography
35073 \begin_inset CommandInset bibitem
35074 LatexCommand bibitem
35079 Documentation of the LaTeX-package
35082 \begin_inset CommandInset href
35085 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
35092 \begin_inset Index idx
35095 \begin_layout Plain Layout
35096 LaTeX-packages ! sidecap
35104 \begin_layout Bibliography
35105 \labelwidthstring Bibliography
35106 \begin_inset CommandInset bibitem
35107 LatexCommand bibitem
35112 Documentation of the LaTeX-package
35115 \begin_inset CommandInset href
35118 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
35125 \begin_inset Index idx
35128 \begin_layout Plain Layout
35129 LaTeX-packages ! prettyref
35137 \begin_layout Bibliography
35138 \labelwidthstring Bibliography
35139 \begin_inset CommandInset bibitem
35140 LatexCommand bibitem
35146 \begin_inset CommandInset href
35149 target "http://wiki.lyx.org/LyX/NewInLyX20"
35153 about new features in
35160 \begin_layout Standard
35161 \begin_inset CommandInset index_print
35162 LatexCommand printindex