1 #LyX 1.6.0rc1 created this file. For more info see http://www.lyx.org/
11 % set fonts for nicer pdf view
12 \IfFileExists{lmodern.sty}
13 {\usepackage{lmodern}}{}
15 \fi % end if pdflatex is used
17 % that links to image floats jumps
18 % to the beginning of the float and
20 \usepackage[figure]{hypcap}
22 % the pages of the TOC is numbered roman
23 % and a PDF-bookmark for the TOC is added
24 \let\myTOC\tableofcontents
25 \renewcommand\tableofcontents{%
27 \pdfbookmark[1]{\contentsname}{}
31 % provides caption formatting
32 \usepackage[labelfont={bf,sf}, tableposition=top]{caption}[2004/07/16]
34 % provides commands to set caption
35 % beside tables/images
38 \newcommand{\TabBesBeg}{%
40 \let\MyEndtable\endtable
41 \renewenvironment{table}{\begin{SCtable}}{\end{SCtable}}}
43 \newcommand{\TabBesEnd}{%
45 \let\endtable\MyEndtable}
47 \newcommand{\FigBesBeg}{%
49 \let\MyEndfigure\endfigure
50 \renewenvironment{figure}{\begin{SCfigure}}{\end{SCfigure}}}
52 \newcommand{\FigBesEnd}{%
54 \let\endfigure\MyEndfigure}
56 % enables calculation of values,
59 % provides special table cell alignments
62 % increase the bottom float placement fraction
63 \renewcommand{\bottomfraction}{0.5}
65 % avoids that floats are placed before their
66 % corresponding section starts
67 \let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
69 % speed up the longtable calculation
70 \setcounter{LTchunksize}{100}
72 % used for scaled and rotated boxes
73 \@ifundefined{rotatebox}{\usepackage{graphicx}}{}
75 % used for colored tables
76 \@ifundefined{textcolor}
77 {\usepackage{color}}{}
78 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
79 \definecolor{lightgrey}{gray}{0.8}
81 % check for package colortbl
82 % used for colored table cells
84 \IfFileExists{colortbl.sty}
85 {\usepackage{colortbl}
86 \setboolean{colortbl}{true}}
87 {\setboolean{colortbl}{false}}
91 %\renewcommand{\multirowsetup}{\centering}
93 % used for book-style tables
96 % used to have extra space in table cells
97 \@ifundefined{extrarowheight}
98 {\usepackage{array}}{}
99 \setlength{\extrarowheight}{2pt}
101 % used for customized tables
104 {>{\centering\hspace{0pt}}m{#1}}
107 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
110 {>{\columncolor{#1}\hspace{0pt}}c}
112 \newcolumntype{V}{!{\vrule width 1.5pt}}
114 \newcolumntype{W}{!{\color{green}\vline}}
117 % insert additional vertical space of
118 % 1.5 mm between footnotes
120 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
122 % number algorithm floats within chapters
123 \numberwithin{algorithm}{chapter}
125 % redefine the greyed out note
126 \renewenvironment{lyxgreyedout}
127 {\textcolor{blue}\bgroup}{\egroup}
129 % ------------------------------------
130 % used to check for needed LaTeX packages
133 % check for package arydshln
134 % used for tables with dashed lines
135 \newboolean{arydshln}
136 \IfFileExists{arydshln.sty}
137 {\usepackage{arydshln}
138 \setboolean{arydshln}{true}}
139 {\setboolean{arydshln}{false}}
141 % check for package marginnote
142 % used for margin notes
143 \newboolean{marginnote}
144 \IfFileExists{marginnote.sty}
145 {\usepackage{marginnote}
146 \let\marginpar\marginnote
147 \setboolean{marginnote}{true}}
148 {\setboolean{marginnote}{false}}
150 % check for package sidecap
151 % used for captions on the side
153 \IfFileExists{sidecap.sty}
154 {\usepackage{sidecap}
155 \let\marginpar\marginnote
156 \setboolean{sidecap}{true}}
157 {\setboolean{sidecap}{false}}
159 % redefine the \LyX macro for PDF bookmarks
160 \def\LyX{\texorpdfstring{%
161 L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
164 \options fleqn,liststotoc,bibtotoc,idxtotoc,BCOR7.5mm,titlepage,tablecaptionabove
169 \font_typewriter default
170 \font_default_family default
180 \pdf_title "LyX's Figure, Table, Floats, Notes, and Boxes manual"
181 \pdf_author "LyX Team, Uwe Stöhr"
182 \pdf_subject "LyX-documentation about figures, tables, floats, notes, and boxes"
183 \pdf_keywords "LyX, Tables, Figures, Floats, Boxes, Notes"
185 \pdf_bookmarksnumbered true
186 \pdf_bookmarksopen true
187 \pdf_bookmarksopenlevel 1
188 \pdf_breaklinks false
192 \pdf_pagebackref false
193 \pdf_pdfusetitle false
194 \pdf_quoted_options " linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false, pdfpagelabels"
201 \paperorientation portrait
204 \paragraph_separation skip
206 \quotes_language english
209 \paperpagestyle default
213 \tracking_changes false
214 \output_changes false
222 LyX's detailed Figure, Table, Floats, Notes, Boxes and External Material
231 \begin_layout Plain Layout
233 If you have comments or error corrections, please send them to the LyX Documenta
235 \begin_inset CommandInset href
237 name "lyx-docs@lists.lyx.org"
238 target "lyx-docs@lists.lyx.org?subject=EmbeddedObjects manual"
249 \begin_inset Note Note
252 \begin_layout Plain Layout
259 \begin_inset Newline newline
263 \begin_inset Newline newline
271 \begin_layout Standard
272 \begin_inset CommandInset toc
273 LatexCommand tableofcontents
280 \begin_layout Standard
281 \begin_inset Note Note
284 \begin_layout Plain Layout
285 To export all parts of this document to PDF, PS, or DVI the LaTeX-packages
303 If they are not installed you can export the document anyway but the sections
304 where the packages are required won't appear in the output.
307 \begin_layout Plain Layout
308 The latest PDF-version of this document can be found here:
309 \begin_inset Newline newline
314 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
322 \begin_layout Chapter
324 \begin_inset CommandInset label
334 \begin_layout Plain Layout
344 \begin_layout Plain Layout
349 \begin_layout Plain Layout
360 \begin_layout Plain Layout
375 \begin_layout Section
380 \begin_layout Plain Layout
381 Figures ! Graphics Dialog
387 \begin_inset CommandInset label
389 name "sec:Graphics-Dialog"
396 \begin_layout Standard
397 To insert an image into your document, place the cursor at the text position
398 you want and click on the toolbar icon
399 \begin_inset Graphics
400 filename ../images/dialog-show-new-inset_graphics.png
408 Insert\SpecialChar \menuseparator
412 Then a dialog will appear to choose the file to load.
413 The image will appear in the output exactly at the position where it is
417 \begin_layout Standard
418 The graphics dialog can be called at any time by clicking on an image.
419 This dialog has three tabs:
422 \begin_layout Description
427 Here you can choose an image file and adjust its appearance in the output.
428 The available units for the image size are explained in appendix
433 \begin_inset CommandInset ref
435 reference "cha:Units-available-in"
440 \begin_inset Newline newline
447 \begin_layout Plain Layout
453 You can rotate images counter-clockwise by setting a rotation angle and
455 The image will also be rotated inside LyX.
456 \begin_inset Newline newline
463 \begin_layout Plain Layout
469 Images can be scaled by using a percentage value or by setting the width
470 and height explicitly.
471 If you set only the width or only the height, the other size will be determined
473 If you set both, then the image will be transformed to the given size,
474 possibly distorting it.
475 To prevent the image from distortion, use the option
477 Maintain aspect ratio
480 The image will then be scaled so that its width and height don't exceed
481 the specified dimensions.
482 \begin_inset Newline newline
485 Images can be opened in a program of your choice when pressing the
490 The program can be set for every image format in the file format settings
491 in LyX's preferences.
494 \begin_layout Description
499 Alternatively to the usage of scaling units it is possible to set image
500 coordinates to adjust the height and width of the image in the output.
501 The coordinates can also be calculated automatically by pressing the button
531 will only print the image region within the given coordinates.
532 Normally you don't need to take care about image coordinates and can ignore
536 \begin_layout Description
553 In this tab you can modify the appearance of the image within LyX and LaTeX
554 experts can specify additional LaTeX options.
555 \begin_inset Newline newline
566 makes the image appear in the output only as a frame with the size of the
568 \begin_inset Newline newline
587 option only affects zipped EPS-graphics, e.
588 \begin_inset space \thinspace{}
600 When the option is used the images will not be unzipped on export, since
601 LaTeX can handle them as they are.
602 \begin_inset Newline newline
605 Zipped EPS-graphics are useful to save disk space when you choose PostScript
606 as output format, see appendix
611 \begin_inset CommandInset ref
613 reference "sec:PostScript"
618 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
620 \begin_inset Newline newline
628 \begin_inset Newline newline
633 zgrep %%Bounding x.eps.gz > x.eps.bb
636 \begin_inset Newline newline
639 The second command creates the bounding box file
640 \begin_inset Quotes eld
644 \begin_inset Quotes erd
647 that is needed by LaTeX for zipped graphics.
648 \begin_inset Newline newline
663 allows you define or join an image settings group.
667 \begin_layout Plain Layout
668 Figures ! Settings grouping
673 Images within such a group share their settings, so adjusting one image
674 of the group automatically also adjusts all other images of the group in
676 So you can for example change the size for a bunch of images without the
677 need to manually change each of them.
678 Joining an existing group can also be done using the context menu of the
679 image by checking the name of the desired group.
682 \begin_layout Standard
683 \begin_inset VSpace bigskip
689 \begin_layout Standard
690 This is an example image in EPS format
694 \begin_layout Plain Layout
695 Image formats are explained in section
700 \begin_inset CommandInset ref
702 reference "sec:Image-Formats"
711 within a separate, horizontally centered paragraph:
714 \begin_layout Standard
716 \begin_inset Graphics
717 filename clipart/mobius.eps
727 \begin_layout Standard
728 This is the same image like the one above but in draft mode:
731 \begin_layout Standard
733 \begin_inset Graphics
734 filename clipart/mobius.eps
745 \begin_layout Standard
746 \begin_inset Newpage newpage
752 \begin_layout Section
754 \begin_inset CommandInset label
756 name "sec:Figure-Floats"
764 \begin_layout Plain Layout
774 \begin_layout Plain Layout
783 \begin_layout Standard
784 For general explanations about floats, have a look at section
789 \begin_inset CommandInset ref
791 reference "sec:FloatIntroduction"
798 \begin_layout Standard
800 \begin_inset Graphics
801 filename ../images/float-insert_figure.png
809 Insert\SpecialChar \menuseparator
810 Float\SpecialChar \menuseparator
813 inserts a float with a caption that has the label
814 \begin_inset Quotes eld
822 \begin_inset Quotes erd
825 (# is the actual number).
826 You can insert the image above the caption, like in Figure
831 \begin_inset CommandInset ref
833 reference "fig:kill-plat"
837 or below the caption, like in Figure
842 \begin_inset CommandInset ref
844 reference "fig:escher"
849 More about the caption placement is described in section
854 \begin_inset CommandInset ref
856 reference "sec:Caption-Placement"
863 \begin_layout Standard
864 \begin_inset Float figure
869 \begin_layout Plain Layout
871 \begin_inset Graphics
872 filename clipart/platypus.eps
882 \begin_layout Plain Layout
885 \begin_layout Plain Layout
886 \begin_inset CommandInset label
892 A severely distorted platypus in a float.
905 \begin_layout Standard
906 \begin_inset Float figure
911 \begin_layout Plain Layout
914 \begin_layout Plain Layout
915 \begin_inset CommandInset label
930 \begin_layout Plain Layout
932 \begin_inset Graphics
933 filename clipart/escher-lsd.eps
948 \begin_layout Standard
952 \begin_layout Plain Layout
953 References ! to Figures
963 \begin_inset CommandInset ref
965 reference "fig:kill-plat"
970 \begin_inset CommandInset ref
972 reference "fig:escher"
976 are examples of referenced figures.
977 Figures can be referenced in the text by referencing their label.
978 To do this insert a label in the caption using the menu
980 Insert\SpecialChar \menuseparator
983 or the toolbar button
984 \begin_inset Graphics
985 filename ../images/label-insert.png
992 You can now refer to the label using the menu
994 Insert\SpecialChar \menuseparator
1001 or the toolbar button
1002 \begin_inset Graphics
1003 filename ../images/dialog-show-new-inset_ref.png
1010 It is important to use references to floats, rather than using vague references
1012 \begin_inset Quotes eld
1016 \begin_inset Quotes erd
1019 , because as LaTeX will reposition the floats in the final document, it
1021 \begin_inset Quotes eld
1025 \begin_inset Quotes erd
1029 \begin_inset Newline newline
1032 Referencing is explained in detail in section
1033 \begin_inset space ~
1037 \begin_inset CommandInset ref
1039 reference "sec:Referencing-Floats"
1046 \begin_layout Standard
1047 Normally only one image is inserted to a figure float, but sometimes you
1048 might want to use two images with separate subcaptions.
1049 This can be done by inserting image floats into existing image floats.
1050 Note that only the main caption of the float is added to the List of Figures.
1052 \begin_inset space ~
1056 \begin_inset CommandInset ref
1058 reference "fig:Two-distorted-images"
1062 is an example of a figure float with two images set side by side.
1063 You can also set the images one below the other.
1065 \begin_inset space ~
1069 \begin_inset CommandInset ref
1071 reference "fig:Undefinable-structure"
1076 \begin_inset CommandInset ref
1078 reference "fig:A-Platypus"
1085 \begin_layout Standard
1086 \begin_inset Float figure
1091 \begin_layout Plain Layout
1092 \begin_inset space \hfill{}
1096 \begin_inset Float figure
1101 \begin_layout Plain Layout
1102 \begin_inset Caption
1104 \begin_layout Plain Layout
1105 \begin_inset CommandInset label
1107 name "fig:Undefinable-structure"
1111 Undefinable structure.
1119 \begin_layout Plain Layout
1120 \begin_inset Graphics
1121 filename clipart/escher-lsd.eps
1134 \begin_inset space \hfill{}
1138 \begin_inset Float figure
1143 \begin_layout Plain Layout
1144 \begin_inset Caption
1146 \begin_layout Plain Layout
1147 \begin_inset CommandInset label
1149 name "fig:A-Platypus"
1161 \begin_layout Plain Layout
1162 \begin_inset Graphics
1163 filename clipart/platypus.eps
1176 \begin_inset space \hfill{}
1182 \begin_layout Plain Layout
1183 \begin_inset Caption
1185 \begin_layout Plain Layout
1186 \begin_inset CommandInset label
1188 name "fig:Two-distorted-images"
1192 Two distorted images.
1193 Both images are in the image settings group named
1194 \begin_inset Quotes eld
1198 \begin_inset Quotes erd
1214 \begin_layout Standard
1215 \begin_inset Newpage newpage
1221 \begin_layout Section
1223 \begin_inset CommandInset label
1225 name "sec:Image-Formats"
1233 \begin_layout Plain Layout
1243 \begin_layout Plain Layout
1244 Figures ! Image Formats
1252 \begin_layout Standard
1253 You can insert images in any known file format.
1254 But as explained in appendix
1255 \begin_inset space ~
1259 \begin_inset CommandInset ref
1261 reference "cha:Output-File-Formats"
1265 , every output document format allows only a few image formats.
1266 LyX uses therefore the program
1270 in the background to convert the images to the right format.
1271 To increase your work flow by avoiding these conversions in the background,
1272 you can use only the image formats that can directly be embedded in the
1274 The output file formats are explained in appendix
1275 \begin_inset space ~
1279 \begin_inset CommandInset ref
1281 reference "cha:Output-File-Formats"
1288 \begin_layout Standard
1289 Similar to fonts there are two types of image formats:
1292 \begin_layout Description
1294 \begin_inset space ~
1297 images consist of pixel values, often in a compressed form.
1298 They are therefore not fully scalable and look pixeled in large zooms.
1299 Well-known bitmap image formats are
1300 \begin_inset Quotes eld
1303 Graphics Interchange Format
1304 \begin_inset Quotes erd
1307 (GIF, file extension
1308 \begin_inset Quotes eld
1316 \begin_inset Quotes erd
1323 \begin_layout Plain Layout
1328 \begin_layout Plain Layout
1339 \begin_layout Plain Layout
1352 \begin_inset Quotes eld
1355 Portable Network Graphics
1356 \begin_inset Quotes erd
1359 (PNG, file extension
1360 \begin_inset Quotes eld
1368 \begin_inset Quotes erd
1375 \begin_layout Plain Layout
1380 \begin_layout Plain Layout
1391 \begin_layout Plain Layout
1404 \begin_inset Quotes eld
1407 Joint Photographic Experts Group
1408 \begin_inset Quotes erd
1411 (JPG, file extension
1412 \begin_inset Quotes eld
1420 \begin_inset Quotes erd
1424 \begin_inset Quotes eld
1432 \begin_inset Quotes erd
1439 \begin_layout Plain Layout
1444 \begin_layout Plain Layout
1455 \begin_layout Plain Layout
1470 \begin_layout Description
1472 \begin_inset space ~
1475 images consist of vectors and can therefore be scaled to any size without
1477 The scaling ability is necessary if you want to create presentations, because
1478 presentations are always scaled by the video projector.
1479 Scaling is also useful for online documents to let the user zoom into diagrams.
1480 \begin_inset Newline newline
1483 Well-known scalable image formats are
1484 \begin_inset Quotes eld
1487 Scalable Vector Graphics
1488 \begin_inset Quotes erd
1491 (SVG, file extension
1492 \begin_inset Quotes eld
1500 \begin_inset Quotes erd
1507 \begin_layout Plain Layout
1512 \begin_layout Plain Layout
1523 \begin_layout Plain Layout
1536 \begin_inset Quotes eld
1539 Encapsulated PostScript
1540 \begin_inset Quotes erd
1543 (EPS, file extension
1544 \begin_inset Quotes eld
1552 \begin_inset Quotes erd
1559 \begin_layout Plain Layout
1564 \begin_layout Plain Layout
1575 \begin_layout Plain Layout
1588 \begin_inset Quotes eld
1591 Portable Document Format
1592 \begin_inset Quotes erd
1595 (PDF, file extension
1596 \begin_inset Quotes eld
1604 \begin_inset Quotes erd
1611 \begin_layout Plain Layout
1618 \begin_inset Quotes eld
1622 \begin_inset Quotes erd
1625 (WMF, file extension
1626 \begin_inset Quotes eld
1634 \begin_inset Quotes erd
1641 \begin_layout Plain Layout
1646 \begin_layout Plain Layout
1657 \begin_layout Plain Layout
1671 \begin_inset Quotes eld
1675 \begin_inset Quotes erd
1678 , because you can convert any bitmap image to a PDF or EPS-image and the
1679 result will still be a bitmap image.
1680 In this cases only a header with the image properties is added to the original
1685 \begin_layout Plain Layout
1686 In the case of PDF, the original image is additionally compressed.
1692 The PDF-files generated by
1696 are for example bitmap images.
1699 \begin_layout Standard
1700 Normally it is not possible to convert a bitmap image into a scalable one,
1702 Only the image formats PDF and EPS can directly be embedded to PDF and
1703 PostScript output files, respectively.
1704 SVG and WMF-images are recalculated to bitmaps when the output file is
1705 generated because there is currently no adequate WMF/SVG
1706 \begin_inset Formula $\to$
1709 PDF/EPS converter available.
1712 \begin_layout Chapter
1714 \begin_inset CommandInset label
1724 \begin_layout Plain Layout
1733 \begin_layout Section
1738 \begin_layout Plain Layout
1739 Table ! Introduction
1747 \begin_layout Standard
1748 You can insert a table using either the toolbar button
1749 \begin_inset Graphics
1750 filename ../images/tabular-insert.png
1758 Insert\SpecialChar \menuseparator
1762 The toolbar button offers you a graphical selection: Move the mouse to
1763 set the column/row number of the table that should be created and then
1764 press a mouse button.
1765 When you use the menu to create a table, a dialog will appear, asking you
1766 for the number of rows and columns.
1767 \begin_inset Newline newline
1770 The default table has lines around any cell and the first row appears separated
1771 from the rest of the table.
1772 This separation occurs due to a double line: The cells of the first row
1773 have a line below them and the cells of the second row have a line above
1775 Here is an example table:
1778 \begin_layout Standard
1780 \begin_inset Tabular
1781 <lyxtabular version="3" rows="4" columns="4">
1783 <column alignment="center" valignment="top" width="0">
1784 <column alignment="center" valignment="top" width="0">
1785 <column alignment="center" valignment="top" width="0">
1786 <column alignment="center" valignment="top" width="0">
1788 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1791 \begin_layout Plain Layout
1797 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1800 \begin_layout Plain Layout
1815 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1818 \begin_layout Plain Layout
1824 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1827 \begin_layout Plain Layout
1835 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1838 \begin_layout Plain Layout
1853 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1856 \begin_layout Plain Layout
1862 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1865 \begin_layout Plain Layout
1871 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1874 \begin_layout Plain Layout
1882 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1885 \begin_layout Plain Layout
1900 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1903 \begin_layout Plain Layout
1909 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1912 \begin_layout Plain Layout
1918 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1921 \begin_layout Plain Layout
1929 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1932 \begin_layout Plain Layout
1947 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1950 \begin_layout Plain Layout
1956 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1959 \begin_layout Plain Layout
1965 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1968 \begin_layout Plain Layout
1982 \begin_layout Section
1987 \begin_layout Plain Layout
1996 \begin_layout Standard
1997 You can alter a table by clicking on it with the right mouse button, which
1998 brings up the table dialog.
1999 Here you can adjust the settings of that cell and row/column respectively
2000 where the cursor is currently placed.
2001 Most of the dialog options also work on selections.
2002 This means if you select more cells, columns or rows, the action is done
2003 for the whole selection.
2004 Note that there is a difference between selecting the
2008 of the cell, and the cell itself.
2009 You can alter tables with the following tabs of the table dialog:
2012 \begin_layout Description
2016 \begin_inset space ~
2021 Here you can set the horizontal alignment and the width of the current
2023 When you have set a width you can also adjust the vertical alignment of
2025 A given width will allow the cell to have line breaks and multiple paragraphs
2026 of text, see section
2027 \begin_inset space ~
2031 \begin_inset CommandInset ref
2033 reference "sub:Multiple-Lines-in"
2038 If you set no width, the column is as wide as their widest cell content
2040 \begin_inset Newline newline
2043 Furthermore, you can mark one or multiple cells of one row as a multicolumn
2045 \begin_inset space ~
2049 \begin_inset CommandInset ref
2051 reference "sub:Multicolumns"
2056 \begin_inset Newline newline
2059 The rotate check boxes rotates the current cell, a selection, or the whole
2060 table counter-clockwise by 90°.
2061 The rotation is not shown within LyX, only in the output.
2062 \begin_inset Newline newline
2066 \begin_inset Note Greyedout
2069 \begin_layout Plain Layout
2074 Not all DVI-viewers are able to display rotations.
2080 \begin_inset Newline newline
2083 It is also possible to enter a LaTeX-argument which is needed for special
2084 table formattings, see section
2085 \begin_inset space ~
2089 \begin_inset CommandInset ref
2091 reference "sub:Multicolumn-Calculations"
2096 \begin_inset CommandInset ref
2098 reference "sec:Colored-Tables"
2105 \begin_layout Description
2110 In this tab you can add and delete border lines for the current row/column.
2111 \begin_inset Newline newline
2114 Using the style option
2118 will convert the table to a formal table as described in section
2119 \begin_inset space ~
2123 \begin_inset CommandInset ref
2125 reference "sec:Formal-Tables"
2130 \begin_inset Newline newline
2133 You can also add here space to table rows as decribed in section
2134 \begin_inset space ~
2138 \begin_inset CommandInset ref
2140 reference "sub:Row-Spacing"
2147 \begin_layout Description
2152 This tab is to make a table a so called
2153 \begin_inset Quotes eld
2161 \begin_inset Quotes erd
2164 that can run over several pages.
2166 \begin_inset space ~
2170 \begin_inset CommandInset ref
2172 reference "sec:Longtables"
2177 \begin_inset CommandInset ref
2179 reference "sec:Special-Longtable-Issues"
2183 describe the longtable features in detail.
2186 \begin_layout Standard
2187 When the table toolbar is opened, you can move the cursor with the arrow
2188 keys from cell to cell and the property of the current cell will immediately
2189 be displayed in the dialog.
2192 \begin_layout Section
2197 \begin_layout Plain Layout
2206 \begin_layout Standard
2207 The table toolbar is an alternative to the table dialog to be able to alter
2209 It should normally appear at the bottom of LyX's main window when the cursor
2211 You can alternatively switch it on to appear always, by right-clicking
2212 in LyX's main menu bar.
2215 \begin_layout Standard
2216 The toolbar has the following icons:
2219 \begin_layout Labeling
2220 \labelwidthstring 00.00.0000
2221 \begin_inset Graphics
2222 filename ../images/tabular-feature_append-row.png
2227 adds a row below the current cell or selection
2230 \begin_layout Labeling
2231 \labelwidthstring 00.00.0000
2232 \begin_inset Graphics
2233 filename ../images/tabular-feature_append-column.png
2238 adds a column right beside the current cell or selection
2241 \begin_layout Labeling
2242 \labelwidthstring 00.00.0000
2243 \begin_inset Graphics
2244 filename ../images/tabular-feature_delete-row.png
2249 deletes the current row or selection
2252 \begin_layout Labeling
2253 \labelwidthstring 00.00.0000
2254 \begin_inset Graphics
2255 filename ../images/tabular-feature_delete-column.png
2260 deletes the current column or selection
2263 \begin_layout Labeling
2264 \labelwidthstring 00.00.0000
2265 \begin_inset Graphics
2266 filename ../images/tabular-feature_toggle-line-top.png
2271 adds a line at the top of the current cell / row or of a selection
2274 \begin_layout Labeling
2275 \labelwidthstring 00.00.0000
2276 \begin_inset Graphics
2277 filename ../images/tabular-feature_toggle-line-bottom.png
2282 adds a line at the bottom of the current cell / row or of a selection
2285 \begin_layout Labeling
2286 \labelwidthstring 00.00.0000
2287 \begin_inset Graphics
2288 filename ../images/tabular-feature_toggle-line-left.png
2293 adds a line at the left side of the current cell / row or of a selection
2296 \begin_layout Labeling
2297 \labelwidthstring 00.00.0000
2298 \begin_inset Graphics
2299 filename ../images/tabular-feature_toggle-line-right.png
2304 adds a line at the right side of the current cell / row or of a selection
2307 \begin_layout Labeling
2308 \labelwidthstring 00.00.0000
2309 \begin_inset Graphics
2310 filename ../images/tabular-feature_set-all-lines.png
2315 adds lines around the current or selected cells - if the current cell no
2316 multicolumn this also affects the current row and column
2319 \begin_layout Labeling
2320 \labelwidthstring 00.00.0000
2321 \begin_inset Graphics
2322 filename ../images/tabular-feature_unset-all-lines.png
2327 deletes all lines of the current or selected cells - if the current cell
2328 no multicolumn this also affects the current row and column
2331 \begin_layout Labeling
2332 \labelwidthstring 00.00.0000
2333 \begin_inset Graphics
2334 filename ../images/tabular-feature_align-left.png
2339 left-aligns the content of the current cell / column
2342 \begin_layout Labeling
2343 \labelwidthstring 00.00.0000
2344 \begin_inset Graphics
2345 filename ../images/tabular-feature_align-center.png
2350 centers the content of the current cell / column horizontally
2353 \begin_layout Labeling
2354 \labelwidthstring 00.00.0000
2355 \begin_inset Graphics
2356 filename ../images/tabular-feature_align-right.png
2361 right-aligns the content of the current cell / column
2364 \begin_layout Labeling
2365 \labelwidthstring 00.00.0000
2366 \begin_inset Graphics
2367 filename ../images/tabular-feature_valign-top.png
2372 aligns the content of the current cell vertically to the top
2375 \begin_layout Labeling
2376 \labelwidthstring 00.00.0000
2377 \begin_inset Graphics
2378 filename ../images/tabular-feature_valign-middle.png
2383 centers the content of the current cell vertically
2386 \begin_layout Labeling
2387 \labelwidthstring 00.00.0000
2388 \begin_inset Graphics
2389 filename ../images/tabular-feature_valign-bottom.png
2394 aligns the content of the current cell vertically to the bottom
2397 \begin_layout Labeling
2398 \labelwidthstring 00.00.0000
2399 \begin_inset Graphics
2400 filename ../images/tabular-feature_set-rotate-cell.png
2405 rotates the current cell or selection counter-clockwise by 90°
2408 \begin_layout Labeling
2409 \labelwidthstring 00.00.0000
2410 \begin_inset Graphics
2411 filename ../images/tabular-feature_set-rotate-tabular.png
2416 rotates the whole table counter-clockwise by 90°
2419 \begin_layout Labeling
2420 \labelwidthstring 00.00.0000
2421 \begin_inset Graphics
2422 filename ../images/tabular-feature_multicolumn.png
2427 sets the current cell or selection as a multicolumn
2430 \begin_layout Standard
2431 \begin_inset Note Greyedout
2434 \begin_layout Plain Layout
2439 For the output the vertical alignment of the first cell in a row is used
2440 for all following cells in the row.
2448 \begin_layout Section
2453 \begin_layout Plain Layout
2462 \begin_layout Standard
2463 Additionally to the table dialog and toolbar, the menu
2465 Edit\SpecialChar \menuseparator
2468 allows you to add and delete border lines for the current row/column and
2469 to set the current selection as multicolumn.
2470 The menu is only available when the cursor is inside a table.
2473 \begin_layout Section
2475 \begin_inset CommandInset label
2477 name "sec:Table-Floats"
2485 \begin_layout Plain Layout
2495 \begin_layout Plain Layout
2504 \begin_layout Standard
2505 For general explanations about floats, have a look at section
2506 \begin_inset space ~
2510 \begin_inset CommandInset ref
2512 reference "sec:FloatIntroduction"
2519 \begin_layout Standard
2520 \begin_inset Float table
2526 \begin_layout Plain Layout
2527 \begin_inset Caption
2529 \begin_layout Plain Layout
2530 \begin_inset CommandInset label
2532 name "tab:a table float"
2544 \begin_layout Plain Layout
2546 \begin_inset Tabular
2547 <lyxtabular version="3" rows="3" columns="3">
2549 <column alignment="center" valignment="top" width="0pt">
2550 <column alignment="center" valignment="top" width="0pt">
2551 <column alignment="center" valignment="top" width="0pt">
2553 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2556 \begin_layout Plain Layout
2571 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2574 \begin_layout Plain Layout
2589 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2592 \begin_layout Plain Layout
2609 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2612 \begin_layout Plain Layout
2627 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2630 \begin_layout Plain Layout
2645 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2648 \begin_layout Plain Layout
2665 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2668 \begin_layout Plain Layout
2678 \begin_inset Formula $\int x^{2}dx$
2686 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2689 \begin_layout Plain Layout
2699 \begin_inset Formula $\left[\begin{array}{cc}
2701 c & d\end{array}\right]$
2709 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2712 \begin_layout Plain Layout
2722 \begin_inset Formula $1+1=2$
2743 \begin_layout Standard
2744 Table floats can be inserted using the menu
2746 Insert\SpecialChar \menuseparator
2747 Float\SpecialChar \menuseparator
2750 or the toolbar button
2751 \begin_inset Graphics
2752 filename ../images/float-insert_table.png
2761 \begin_layout Standard
2762 The float appears as a collapsible box with a caption that has the label
2764 \begin_inset Quotes eld
2768 \begin_inset space ~
2772 \begin_inset Quotes erd
2775 (# is the actual table number).
2776 You can insert tables to the float above or below the caption.
2779 \begin_layout Standard
2781 \begin_inset space ~
2785 \begin_inset CommandInset ref
2787 reference "tab:a table float"
2791 is an example table within a table float.
2794 \begin_layout Standard
2795 Having the caption above the table is the common rule that is unfortunately
2796 not supported in LaTeX's standard classes.
2797 That means if you are using the document classes
2813 there will be no space between the caption and the table.
2814 To insert the needed space, add the following option to the load command
2815 of the LaTeX-package
2823 \begin_layout Plain Layout
2824 LaTeX-packages ! caption
2829 in your document preamble
2833 \begin_layout Plain Layout
2834 For more information have a look at section
2835 \begin_inset space ~
2839 \begin_inset CommandInset ref
2841 reference "sec:Caption-Placement"
2853 \begin_layout Standard
2859 \begin_layout Standard
2864 , which is described in section
2865 \begin_inset space ~
2869 \begin_inset CommandInset ref
2871 reference "sec:Caption-Formatting"
2875 , is used to adjust the caption format.
2878 \begin_layout Standard
2882 \begin_layout Plain Layout
2883 References ! to Tables
2888 Tables can be cross-referenced in the text by referencing their label.
2889 To do this insert a label in the caption using the menu
2891 Insert\SpecialChar \menuseparator
2894 or the toolbar button
2895 \begin_inset Graphics
2896 filename ../images/label-insert.png
2903 You can now refer to the label using the menu
2905 Insert\SpecialChar \menuseparator
2907 \begin_inset space ~
2912 or the toolbar button
2913 \begin_inset Graphics
2914 filename ../images/dialog-show-new-inset_ref.png
2921 \begin_inset Newline newline
2924 Referencing is explained in detail in section
2925 \begin_inset space ~
2929 \begin_inset CommandInset ref
2931 reference "sec:Referencing-Floats"
2938 \begin_layout Section
2940 \begin_inset CommandInset label
2942 name "sec:Longtables"
2950 \begin_layout Plain Layout
2960 \begin_layout Plain Layout
2969 \begin_layout Standard
2970 If the table is too long to fit on one page, you can use the option
2973 \begin_inset space ~
2977 \begin_inset space ~
2986 of the table dialog to split the table automatically over more pages.
2987 Doing this enables the following options:
2990 \begin_layout Description
2995 : The current row and all rows above, that don't have any special options
2996 defined, are defined to be the header rows of all pages of the longtable;
2997 except for the first page, if
3000 \begin_inset space ~
3006 This therefore called the main header.
3009 \begin_layout Description
3013 \begin_inset space ~
3018 : The current row and all rows above, that don't have any special options
3019 defined, are defined to be the header rows of the first page of the longtable.
3022 \begin_layout Description
3027 : The current row and all rows below, that don't have any special options
3028 defined, are defined to be the footer rows of all pages of the longtable;
3029 except for the last page, if
3032 \begin_inset space ~
3040 \begin_layout Description
3044 \begin_inset space ~
3049 : The current row and all rows below, that don't have any special options
3050 defined, are defined to be the footer rows of the last page of the longtable.
3053 \begin_layout Description
3054 Caption: The first row is reset as single column.
3055 You can now insert there the table caption via the menu
3057 Insert\SpecialChar \menuseparator
3061 More about longtable captions is explained in sec.
3062 \begin_inset space \thinspace{}
3066 \begin_inset CommandInset ref
3068 reference "sub:Longtable-Captions"
3075 \begin_layout Standard
3076 You can also specify a row where the table is splitted.
3077 If you set more than one option in the same table row, you should be aware
3078 of the fact that only the first one is used in the given table row.
3079 The others will then be defined as
3084 In this context, first means first in this order:
3091 \begin_inset space ~
3094 header, Footer, Last
3095 \begin_inset space ~
3101 See the following longtable to see how it works:
3104 \begin_layout Standard
3106 \begin_inset Tabular
3107 <lyxtabular version="3" rows="69" columns="3">
3108 <features islongtable="true">
3109 <column alignment="left" valignment="top" width="0cm">
3110 <column alignment="left" valignment="top" width="0pt">
3111 <column alignment="center" valignment="top" width="0pt">
3112 <row endfirsthead="true">
3113 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3116 \begin_layout Plain Layout
3119 Example Phone List (ignore the names)
3124 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3127 \begin_layout Plain Layout
3133 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3136 \begin_layout Plain Layout
3143 <row endfirsthead="true">
3144 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3147 \begin_layout Plain Layout
3155 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3158 \begin_layout Plain Layout
3164 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3167 \begin_layout Plain Layout
3176 <row endhead="true">
3177 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3180 \begin_layout Plain Layout
3188 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3191 \begin_layout Plain Layout
3197 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3200 \begin_layout Plain Layout
3207 <row endhead="true">
3208 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3211 \begin_layout Plain Layout
3219 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3222 \begin_layout Plain Layout
3228 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3231 \begin_layout Plain Layout
3240 <row endfoot="true">
3241 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
3244 \begin_layout Plain Layout
3245 continued on next page
3250 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3253 \begin_layout Plain Layout
3259 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3262 \begin_layout Plain Layout
3270 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3273 \begin_layout Plain Layout
3281 <cell alignment="center" valignment="top" usebox="none">
3284 \begin_layout Plain Layout
3290 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3293 \begin_layout Plain Layout
3301 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3304 \begin_layout Plain Layout
3312 <cell alignment="center" valignment="top" usebox="none">
3315 \begin_layout Plain Layout
3321 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3324 \begin_layout Plain Layout
3332 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3335 \begin_layout Plain Layout
3343 <cell alignment="center" valignment="top" usebox="none">
3346 \begin_layout Plain Layout
3352 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3355 \begin_layout Plain Layout
3363 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3366 \begin_layout Plain Layout
3374 <cell alignment="center" valignment="top" usebox="none">
3377 \begin_layout Plain Layout
3383 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3386 \begin_layout Plain Layout
3394 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3397 \begin_layout Plain Layout
3405 <cell alignment="center" valignment="top" usebox="none">
3408 \begin_layout Plain Layout
3414 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3417 \begin_layout Plain Layout
3425 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3428 \begin_layout Plain Layout
3436 <cell alignment="center" valignment="top" usebox="none">
3439 \begin_layout Plain Layout
3445 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3448 \begin_layout Plain Layout
3456 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3459 \begin_layout Plain Layout
3467 <cell alignment="center" valignment="top" usebox="none">
3470 \begin_layout Plain Layout
3476 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3479 \begin_layout Plain Layout
3487 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3490 \begin_layout Plain Layout
3498 <cell alignment="center" valignment="top" usebox="none">
3501 \begin_layout Plain Layout
3507 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3510 \begin_layout Plain Layout
3518 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3521 \begin_layout Plain Layout
3529 <cell alignment="center" valignment="top" usebox="none">
3532 \begin_layout Plain Layout
3538 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3541 \begin_layout Plain Layout
3549 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3552 \begin_layout Plain Layout
3560 <cell alignment="center" valignment="top" usebox="none">
3563 \begin_layout Plain Layout
3569 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3572 \begin_layout Plain Layout
3580 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3583 \begin_layout Plain Layout
3591 <cell alignment="center" valignment="top" usebox="none">
3594 \begin_layout Plain Layout
3600 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3603 \begin_layout Plain Layout
3611 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3614 \begin_layout Plain Layout
3622 <cell alignment="center" valignment="top" usebox="none">
3625 \begin_layout Plain Layout
3631 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3634 \begin_layout Plain Layout
3642 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3645 \begin_layout Plain Layout
3653 <cell alignment="center" valignment="top" usebox="none">
3656 \begin_layout Plain Layout
3662 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3665 \begin_layout Plain Layout
3673 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3676 \begin_layout Plain Layout
3684 <cell alignment="center" valignment="top" usebox="none">
3687 \begin_layout Plain Layout
3693 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3696 \begin_layout Plain Layout
3704 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3707 \begin_layout Plain Layout
3715 <cell alignment="center" valignment="top" usebox="none">
3718 \begin_layout Plain Layout
3724 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3727 \begin_layout Plain Layout
3735 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3738 \begin_layout Plain Layout
3746 <cell alignment="center" valignment="top" usebox="none">
3749 \begin_layout Plain Layout
3755 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3758 \begin_layout Plain Layout
3766 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3769 \begin_layout Plain Layout
3777 <cell alignment="center" valignment="top" usebox="none">
3780 \begin_layout Plain Layout
3786 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3789 \begin_layout Plain Layout
3797 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3800 \begin_layout Plain Layout
3808 <cell alignment="center" valignment="top" usebox="none">
3811 \begin_layout Plain Layout
3817 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3820 \begin_layout Plain Layout
3828 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3831 \begin_layout Plain Layout
3839 <cell alignment="center" valignment="top" usebox="none">
3842 \begin_layout Plain Layout
3848 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3851 \begin_layout Plain Layout
3859 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3862 \begin_layout Plain Layout
3870 <cell alignment="center" valignment="top" usebox="none">
3873 \begin_layout Plain Layout
3879 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3882 \begin_layout Plain Layout
3890 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3893 \begin_layout Plain Layout
3901 <cell alignment="center" valignment="top" usebox="none">
3904 \begin_layout Plain Layout
3910 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3913 \begin_layout Plain Layout
3921 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3924 \begin_layout Plain Layout
3932 <cell alignment="center" valignment="top" usebox="none">
3935 \begin_layout Plain Layout
3941 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3944 \begin_layout Plain Layout
3952 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3955 \begin_layout Plain Layout
3963 <cell alignment="center" valignment="top" usebox="none">
3966 \begin_layout Plain Layout
3972 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3975 \begin_layout Plain Layout
3983 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3986 \begin_layout Plain Layout
3994 <cell alignment="center" valignment="top" usebox="none">
3997 \begin_layout Plain Layout
4003 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4006 \begin_layout Plain Layout
4014 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4017 \begin_layout Plain Layout
4025 <cell alignment="center" valignment="top" usebox="none">
4028 \begin_layout Plain Layout
4034 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4037 \begin_layout Plain Layout
4045 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4048 \begin_layout Plain Layout
4056 <cell alignment="center" valignment="top" usebox="none">
4059 \begin_layout Plain Layout
4065 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4068 \begin_layout Plain Layout
4076 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4079 \begin_layout Plain Layout
4087 <cell alignment="center" valignment="top" usebox="none">
4090 \begin_layout Plain Layout
4096 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4099 \begin_layout Plain Layout
4107 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4110 \begin_layout Plain Layout
4118 <cell alignment="center" valignment="top" usebox="none">
4121 \begin_layout Plain Layout
4127 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4130 \begin_layout Plain Layout
4138 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4141 \begin_layout Plain Layout
4149 <cell alignment="center" valignment="top" usebox="none">
4152 \begin_layout Plain Layout
4158 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4161 \begin_layout Plain Layout
4169 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4172 \begin_layout Plain Layout
4180 <cell alignment="center" valignment="top" usebox="none">
4183 \begin_layout Plain Layout
4189 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4192 \begin_layout Plain Layout
4200 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4203 \begin_layout Plain Layout
4211 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4214 \begin_layout Plain Layout
4220 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4223 \begin_layout Plain Layout
4231 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4234 \begin_layout Plain Layout
4240 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4243 \begin_layout Plain Layout
4249 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4252 \begin_layout Plain Layout
4260 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4263 \begin_layout Plain Layout
4271 <cell alignment="center" valignment="top" usebox="none">
4274 \begin_layout Plain Layout
4280 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4283 \begin_layout Plain Layout
4291 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4294 \begin_layout Plain Layout
4302 <cell alignment="center" valignment="top" usebox="none">
4305 \begin_layout Plain Layout
4311 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4314 \begin_layout Plain Layout
4322 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4325 \begin_layout Plain Layout
4333 <cell alignment="center" valignment="top" usebox="none">
4336 \begin_layout Plain Layout
4342 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4345 \begin_layout Plain Layout
4353 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4356 \begin_layout Plain Layout
4364 <cell alignment="center" valignment="top" usebox="none">
4367 \begin_layout Plain Layout
4373 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4376 \begin_layout Plain Layout
4384 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4387 \begin_layout Plain Layout
4395 <cell alignment="center" valignment="top" usebox="none">
4398 \begin_layout Plain Layout
4404 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4407 \begin_layout Plain Layout
4415 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4418 \begin_layout Plain Layout
4426 <cell alignment="center" valignment="top" usebox="none">
4429 \begin_layout Plain Layout
4435 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4438 \begin_layout Plain Layout
4446 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4449 \begin_layout Plain Layout
4457 <cell alignment="center" valignment="top" usebox="none">
4460 \begin_layout Plain Layout
4466 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4469 \begin_layout Plain Layout
4477 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4480 \begin_layout Plain Layout
4488 <cell alignment="center" valignment="top" usebox="none">
4491 \begin_layout Plain Layout
4497 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4500 \begin_layout Plain Layout
4508 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4511 \begin_layout Plain Layout
4519 <cell alignment="center" valignment="top" usebox="none">
4522 \begin_layout Plain Layout
4528 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4531 \begin_layout Plain Layout
4539 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4542 \begin_layout Plain Layout
4550 <cell alignment="center" valignment="top" usebox="none">
4553 \begin_layout Plain Layout
4559 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4562 \begin_layout Plain Layout
4570 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4573 \begin_layout Plain Layout
4581 <cell alignment="center" valignment="top" usebox="none">
4584 \begin_layout Plain Layout
4590 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4593 \begin_layout Plain Layout
4601 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4604 \begin_layout Plain Layout
4612 <cell alignment="center" valignment="top" usebox="none">
4615 \begin_layout Plain Layout
4621 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4624 \begin_layout Plain Layout
4632 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4635 \begin_layout Plain Layout
4643 <cell alignment="center" valignment="top" usebox="none">
4646 \begin_layout Plain Layout
4652 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4655 \begin_layout Plain Layout
4663 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4666 \begin_layout Plain Layout
4674 <cell alignment="center" valignment="top" usebox="none">
4677 \begin_layout Plain Layout
4683 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4686 \begin_layout Plain Layout
4694 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4697 \begin_layout Plain Layout
4705 <cell alignment="center" valignment="top" usebox="none">
4708 \begin_layout Plain Layout
4714 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4717 \begin_layout Plain Layout
4725 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4728 \begin_layout Plain Layout
4736 <cell alignment="center" valignment="top" usebox="none">
4739 \begin_layout Plain Layout
4745 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4748 \begin_layout Plain Layout
4756 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4759 \begin_layout Plain Layout
4767 <cell alignment="center" valignment="top" usebox="none">
4770 \begin_layout Plain Layout
4776 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4779 \begin_layout Plain Layout
4787 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4790 \begin_layout Plain Layout
4798 <cell alignment="center" valignment="top" usebox="none">
4801 \begin_layout Plain Layout
4807 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4810 \begin_layout Plain Layout
4818 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4821 \begin_layout Plain Layout
4829 <cell alignment="center" valignment="top" usebox="none">
4832 \begin_layout Plain Layout
4838 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4841 \begin_layout Plain Layout
4849 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4852 \begin_layout Plain Layout
4860 <cell alignment="center" valignment="top" usebox="none">
4863 \begin_layout Plain Layout
4869 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4872 \begin_layout Plain Layout
4880 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4883 \begin_layout Plain Layout
4891 <cell alignment="center" valignment="top" usebox="none">
4894 \begin_layout Plain Layout
4900 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4903 \begin_layout Plain Layout
4911 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4914 \begin_layout Plain Layout
4922 <cell alignment="center" valignment="top" usebox="none">
4925 \begin_layout Plain Layout
4931 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4934 \begin_layout Plain Layout
4942 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4945 \begin_layout Plain Layout
4953 <cell alignment="center" valignment="top" usebox="none">
4956 \begin_layout Plain Layout
4962 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4965 \begin_layout Plain Layout
4973 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4976 \begin_layout Plain Layout
4984 <cell alignment="center" valignment="top" usebox="none">
4987 \begin_layout Plain Layout
4993 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4996 \begin_layout Plain Layout
5004 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5007 \begin_layout Plain Layout
5015 <cell alignment="center" valignment="top" usebox="none">
5018 \begin_layout Plain Layout
5024 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5027 \begin_layout Plain Layout
5035 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5038 \begin_layout Plain Layout
5046 <cell alignment="center" valignment="top" usebox="none">
5049 \begin_layout Plain Layout
5055 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5058 \begin_layout Plain Layout
5066 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5069 \begin_layout Plain Layout
5077 <cell alignment="center" valignment="top" usebox="none">
5080 \begin_layout Plain Layout
5086 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5089 \begin_layout Plain Layout
5097 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5100 \begin_layout Plain Layout
5108 <cell alignment="center" valignment="top" usebox="none">
5111 \begin_layout Plain Layout
5117 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5120 \begin_layout Plain Layout
5128 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5131 \begin_layout Plain Layout
5139 <cell alignment="center" valignment="top" usebox="none">
5142 \begin_layout Plain Layout
5148 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5151 \begin_layout Plain Layout
5159 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5162 \begin_layout Plain Layout
5170 <cell alignment="center" valignment="top" usebox="none">
5173 \begin_layout Plain Layout
5179 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5182 \begin_layout Plain Layout
5190 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5193 \begin_layout Plain Layout
5201 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5204 \begin_layout Plain Layout
5210 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5213 \begin_layout Plain Layout
5220 <row endlastfoot="true">
5221 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5224 \begin_layout Plain Layout
5230 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5233 \begin_layout Plain Layout
5239 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5242 \begin_layout Plain Layout
5257 \begin_layout Plain Layout
5261 addtocounter{table}{-1}
5267 \begin_inset Note Note
5270 \begin_layout Plain Layout
5271 See greyed-out note in section
5272 \begin_inset space ~
5276 \begin_inset CommandInset ref
5278 reference "sub:Longtable-Captions"
5282 for an explanation of this command.
5290 \begin_layout Subsection
5291 Footnotes in Longtables
5292 \begin_inset CommandInset label
5294 name "sub:Footnotes-in-Longtables"
5302 \begin_layout Plain Layout
5303 Longtables ! Footnotes
5311 \begin_layout Standard
5312 Footnotes can be inserted to every longtable cell.
5313 They appear at the bottom of the page where the table cell with the footnote
5316 \begin_inset space ~
5320 \begin_inset CommandInset ref
5322 reference "tab:DiffCaptions"
5326 has for example a footnote.
5329 \begin_layout Subsection
5334 \begin_layout Plain Layout
5335 Longtables ! Alignment
5343 \begin_layout Standard
5344 Longtables are by default centered.
5345 In contrary to the alignment of the table columns and row, the table alignment
5346 can currently not be changed in the table dialog.
5347 To change the alignment of longtables you have to change the value of the
5360 by inserting this line as TeX-Code before the corresponding longtable:
5363 \begin_layout Standard
5373 \begin_layout Standard
5374 Where the value can have any of the units listed in Table
5375 \begin_inset space ~
5379 \begin_inset CommandInset ref
5381 reference "tab:Units"
5392 controls the horizontal distance from the left page border to the longtable,
5399 the distance from the right side.
5400 The default value for both lengths is
5406 , which is in this case the same as an horizontal fill in LyX.
5409 \begin_layout Standard
5410 The following longtable was left-aligned by setting
5417 \begin_inset space \thinspace{}
5424 \begin_layout Plain Layout
5438 \begin_layout Standard
5439 \begin_inset Tabular
5440 <lyxtabular version="3" rows="5" columns="5">
5441 <features islongtable="true">
5442 <column alignment="center" valignment="top" width="0">
5443 <column alignment="center" valignment="top" width="0">
5444 <column alignment="center" valignment="top" width="0">
5445 <column alignment="center" valignment="top" width="0">
5446 <column alignment="center" valignment="top" width="0">
5448 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5451 \begin_layout Plain Layout
5457 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5460 \begin_layout Plain Layout
5466 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5469 \begin_layout Plain Layout
5475 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5478 \begin_layout Plain Layout
5484 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5487 \begin_layout Plain Layout
5495 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5498 \begin_layout Plain Layout
5504 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5507 \begin_layout Plain Layout
5513 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5516 \begin_layout Plain Layout
5522 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5525 \begin_layout Plain Layout
5531 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5534 \begin_layout Plain Layout
5542 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5545 \begin_layout Plain Layout
5551 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5554 \begin_layout Plain Layout
5560 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5563 \begin_layout Plain Layout
5569 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5572 \begin_layout Plain Layout
5578 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5581 \begin_layout Plain Layout
5589 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5592 \begin_layout Plain Layout
5598 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5601 \begin_layout Plain Layout
5607 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5610 \begin_layout Plain Layout
5616 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5619 \begin_layout Plain Layout
5625 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5628 \begin_layout Plain Layout
5636 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5639 \begin_layout Plain Layout
5645 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5648 \begin_layout Plain Layout
5654 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5657 \begin_layout Plain Layout
5663 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5666 \begin_layout Plain Layout
5672 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5675 \begin_layout Plain Layout
5690 \begin_layout Plain Layout
5706 \begin_layout Subsection
5711 \begin_layout Plain Layout
5712 Longtables ! Captions
5718 \begin_inset CommandInset label
5720 name "sub:Longtable-Captions"
5727 \begin_layout Standard
5728 A longtable cannot be put into a table float because floats can only be
5729 on one page but the caption environment of floats can also be used for
5731 Therefore the caption is inserted as first row of the table, as explained
5733 \begin_inset space \thinspace{}
5737 \begin_inset CommandInset ref
5739 reference "sec:Longtables"
5744 The first table row is then only a dummy row for the caption, the actual
5745 table starts with the second row.
5748 \begin_layout Standard
5749 Here is a short longtable to see how it works:
5752 \begin_layout Standard
5753 \begin_inset Tabular
5754 <lyxtabular version="3" rows="6" columns="5">
5755 <features islongtable="true">
5756 <column alignment="center" valignment="top" width="0">
5757 <column alignment="center" valignment="top" width="0">
5758 <column alignment="center" valignment="top" width="0">
5759 <column alignment="center" valignment="top" width="0">
5760 <column alignment="center" valignment="top" width="0">
5761 <row caption="true">
5762 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
5765 \begin_layout Plain Layout
5766 \begin_inset Caption
5768 \begin_layout Plain Layout
5769 Longtable with caption
5773 \begin_layout Plain Layout
5789 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5792 \begin_layout Plain Layout
5798 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5801 \begin_layout Plain Layout
5807 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5810 \begin_layout Plain Layout
5816 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5819 \begin_layout Plain Layout
5827 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5830 \begin_layout Plain Layout
5836 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5839 \begin_layout Plain Layout
5845 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5848 \begin_layout Plain Layout
5854 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5857 \begin_layout Plain Layout
5863 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5866 \begin_layout Plain Layout
5874 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5877 \begin_layout Plain Layout
5883 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5886 \begin_layout Plain Layout
5892 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5895 \begin_layout Plain Layout
5901 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5904 \begin_layout Plain Layout
5910 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5913 \begin_layout Plain Layout
5921 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5924 \begin_layout Plain Layout
5930 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5933 \begin_layout Plain Layout
5939 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5942 \begin_layout Plain Layout
5948 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5951 \begin_layout Plain Layout
5957 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5960 \begin_layout Plain Layout
5968 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5971 \begin_layout Plain Layout
5977 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5980 \begin_layout Plain Layout
5986 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5989 \begin_layout Plain Layout
5995 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5998 \begin_layout Plain Layout
6004 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6007 \begin_layout Plain Layout
6015 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6018 \begin_layout Plain Layout
6024 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6027 \begin_layout Plain Layout
6033 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6036 \begin_layout Plain Layout
6042 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6045 \begin_layout Plain Layout
6051 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6054 \begin_layout Plain Layout
6068 \begin_layout Standard
6069 \begin_inset VSpace medskip
6073 \begin_inset Note Greyedout
6076 \begin_layout Plain Layout
6081 The table number is increased for every longtable, also if you didn't set
6083 For this reason you could have the case that e.g.
6085 \begin_inset space ~
6088 2.4 follows on Table
6089 \begin_inset space ~
6092 2.1 in the list of tables if there are two longtables without captions.
6093 To avoid this you can add the following command in TeX-Code behind every
6094 longtable without a caption:
6097 \begin_layout Plain Layout
6102 addtocounter{table}{-1}
6110 \begin_layout Standard
6111 \begin_inset Note Greyedout
6114 \begin_layout Plain Layout
6127 \begin_layout Plain Layout
6128 LaTeX-packages ! hyperref
6141 dialog to link cross-references, the link to a longtable caption will always
6142 point to the beginning of the document.
6150 \begin_layout Standard
6151 \begin_inset Newpage newpage
6157 \begin_layout Subsubsection
6158 References to Longtables
6162 \begin_layout Plain Layout
6163 Longtables ! References
6171 \begin_layout Standard
6172 \begin_inset Tabular
6173 <lyxtabular version="3" rows="6" columns="5">
6174 <features islongtable="true">
6175 <column alignment="center" valignment="top" width="0">
6176 <column alignment="center" valignment="top" width="0">
6177 <column alignment="center" valignment="top" width="0">
6178 <column alignment="center" valignment="top" width="0">
6179 <column alignment="center" valignment="top" width="0">
6180 <row caption="true">
6181 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6184 \begin_layout Plain Layout
6185 \begin_inset Caption
6187 \begin_layout Plain Layout
6188 Referenced longtable
6189 \begin_inset CommandInset label
6191 name "tab:RefExample"
6205 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6208 \begin_layout Plain Layout
6214 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6217 \begin_layout Plain Layout
6223 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6226 \begin_layout Plain Layout
6232 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6235 \begin_layout Plain Layout
6243 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6246 \begin_layout Plain Layout
6252 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6255 \begin_layout Plain Layout
6261 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6264 \begin_layout Plain Layout
6270 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6273 \begin_layout Plain Layout
6279 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6282 \begin_layout Plain Layout
6290 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6293 \begin_layout Plain Layout
6299 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6302 \begin_layout Plain Layout
6308 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6311 \begin_layout Plain Layout
6317 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6320 \begin_layout Plain Layout
6326 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6329 \begin_layout Plain Layout
6337 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6340 \begin_layout Plain Layout
6346 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6349 \begin_layout Plain Layout
6355 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6358 \begin_layout Plain Layout
6364 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6367 \begin_layout Plain Layout
6373 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6376 \begin_layout Plain Layout
6384 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6387 \begin_layout Plain Layout
6393 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6396 \begin_layout Plain Layout
6402 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6405 \begin_layout Plain Layout
6411 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6414 \begin_layout Plain Layout
6420 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6423 \begin_layout Plain Layout
6431 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6434 \begin_layout Plain Layout
6440 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6443 \begin_layout Plain Layout
6449 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6452 \begin_layout Plain Layout
6458 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6461 \begin_layout Plain Layout
6467 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6470 \begin_layout Plain Layout
6484 \begin_layout Standard
6485 To reference a longtable, insert a label into the caption.
6488 \begin_layout Standard
6489 This is a reference to Table
6490 \begin_inset space ~
6494 \begin_inset CommandInset ref
6496 reference "tab:RefExample"
6503 \begin_layout Standard
6504 The caption layout can be set together with all other captions of your document
6505 using the LaTeX-package
6513 \begin_layout Plain Layout
6514 LaTeX-packages ! caption
6520 \begin_inset space ~
6524 \begin_inset CommandInset ref
6526 reference "sec:Caption-Formatting"
6533 \begin_layout Subsubsection
6538 \begin_layout Plain Layout
6539 Longtables ! Caption Width
6547 \begin_layout Standard
6548 The maximal width of of caption lines is defined by the length
6555 Its default value is 4
6556 \begin_inset space \thinspace{}
6560 To change it add the following command to your document preamble or as
6561 TeX-Code into your document before the longtable that should be affected
6564 \begin_layout Standard
6574 \begin_layout Standard
6575 where the width could have one of the units listed in appendix
6576 \begin_inset space ~
6580 \begin_inset CommandInset ref
6582 reference "cha:Units-available-in"
6589 \begin_layout Standard
6590 The following tables show the difference:
6593 \begin_layout Standard
6594 \begin_inset Tabular
6595 <lyxtabular version="3" rows="6" columns="5">
6596 <features islongtable="true">
6597 <column alignment="center" valignment="top" width="0">
6598 <column alignment="center" valignment="top" width="0">
6599 <column alignment="center" valignment="top" width="0">
6600 <column alignment="center" valignment="top" width="0">
6601 <column alignment="center" valignment="top" width="0">
6602 <row caption="true">
6603 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6606 \begin_layout Plain Layout
6607 \begin_inset Caption
6609 \begin_layout Plain Layout
6610 long full title with default width long full title with default width long
6611 full title with default width
6615 \begin_layout Plain Layout
6616 caption with default width
6631 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6634 \begin_layout Plain Layout
6640 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6643 \begin_layout Plain Layout
6649 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6652 \begin_layout Plain Layout
6658 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6661 \begin_layout Plain Layout
6669 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6672 \begin_layout Plain Layout
6678 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6681 \begin_layout Plain Layout
6687 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6690 \begin_layout Plain Layout
6696 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6699 \begin_layout Plain Layout
6705 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6708 \begin_layout Plain Layout
6716 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6719 \begin_layout Plain Layout
6725 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6728 \begin_layout Plain Layout
6734 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6737 \begin_layout Plain Layout
6743 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6746 \begin_layout Plain Layout
6752 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6755 \begin_layout Plain Layout
6763 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6766 \begin_layout Plain Layout
6772 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6775 \begin_layout Plain Layout
6781 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6784 \begin_layout Plain Layout
6790 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6793 \begin_layout Plain Layout
6799 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6802 \begin_layout Plain Layout
6810 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6813 \begin_layout Plain Layout
6819 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6822 \begin_layout Plain Layout
6828 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6831 \begin_layout Plain Layout
6837 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6840 \begin_layout Plain Layout
6846 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6849 \begin_layout Plain Layout
6857 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6860 \begin_layout Plain Layout
6866 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6869 \begin_layout Plain Layout
6875 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6878 \begin_layout Plain Layout
6884 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6887 \begin_layout Plain Layout
6893 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6896 \begin_layout Plain Layout
6910 \begin_layout Standard
6914 \begin_layout Plain Layout
6926 \begin_inset Tabular
6927 <lyxtabular version="3" rows="6" columns="5">
6928 <features islongtable="true">
6929 <column alignment="center" valignment="top" width="0">
6930 <column alignment="center" valignment="top" width="0">
6931 <column alignment="center" valignment="top" width="0">
6932 <column alignment="center" valignment="top" width="0">
6933 <column alignment="center" valignment="top" width="0">
6934 <row caption="true">
6935 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6938 \begin_layout Plain Layout
6939 \begin_inset Caption
6941 \begin_layout Plain Layout
6942 long full title with width set to 5
6943 \begin_inset space \thinspace{}
6946 cm long full title with width set to 5
6947 \begin_inset space \thinspace{}
6950 cm long full title with width set to 5
6951 \begin_inset space \thinspace{}
6958 \begin_layout Plain Layout
6960 \begin_inset space \thinspace{}
6964 \begin_inset space \thinspace{}
6968 \begin_inset space \thinspace{}
6986 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6989 \begin_layout Plain Layout
6995 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6998 \begin_layout Plain Layout
7004 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7007 \begin_layout Plain Layout
7013 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7016 \begin_layout Plain Layout
7024 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7027 \begin_layout Plain Layout
7033 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7036 \begin_layout Plain Layout
7042 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7045 \begin_layout Plain Layout
7051 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7054 \begin_layout Plain Layout
7060 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7063 \begin_layout Plain Layout
7071 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7074 \begin_layout Plain Layout
7080 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7083 \begin_layout Plain Layout
7089 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7092 \begin_layout Plain Layout
7098 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7101 \begin_layout Plain Layout
7107 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7110 \begin_layout Plain Layout
7118 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7121 \begin_layout Plain Layout
7127 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7130 \begin_layout Plain Layout
7136 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7139 \begin_layout Plain Layout
7145 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7148 \begin_layout Plain Layout
7154 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7157 \begin_layout Plain Layout
7165 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7168 \begin_layout Plain Layout
7174 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7177 \begin_layout Plain Layout
7183 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7186 \begin_layout Plain Layout
7192 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7195 \begin_layout Plain Layout
7201 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7204 \begin_layout Plain Layout
7212 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7215 \begin_layout Plain Layout
7221 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7224 \begin_layout Plain Layout
7230 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7233 \begin_layout Plain Layout
7239 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7242 \begin_layout Plain Layout
7248 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7251 \begin_layout Plain Layout
7265 \begin_layout Standard
7269 \begin_layout Plain Layout
7283 \begin_layout Standard
7284 \begin_inset Note Greyedout
7287 \begin_layout Plain Layout
7292 When the LaTeX-package
7300 \begin_layout Plain Layout
7301 LaTeX-packages ! caption
7306 is used, as in this document, the full page width is used for the caption
7307 when you use the default value of 4
7308 \begin_inset space \thinspace{}
7318 To get in this case exactly a 4
7319 \begin_inset space \thinspace{}
7322 in wide caption, you can either use a value slightly different from 4.0
7323 \begin_inset space \thinspace{}
7328 \begin_inset space \thinspace{}
7331 in, or the LaTeX-command
7335 captionsetup{width=value}
7337 that is provided by the
7349 \begin_layout Subsubsection
7350 Different Captions for Table Pages
7354 \begin_layout Plain Layout
7355 Longtables ! Different Captions for Pages
7363 \begin_layout Standard
7364 When the other captions should differ from the one of the first table page,
7365 insert a caption with a non-empty short title in a dummy caption row marked
7367 The caption used for the other table pages is inserted as caption without
7368 a short title in a dummy caption row that is marked as main header.
7369 When this caption shouldn't include the table number, use the command
7372 \begin_layout Standard
7377 caption*{caption text}
7380 \begin_layout Standard
7381 instead of LyX's caption box.
7382 The label to reference the table is inserted into the caption of the first
7385 \begin_inset space ~
7389 \begin_inset CommandInset ref
7391 reference "tab:DiffCaptions"
7395 is an example for a longtable with different heading where the second caption
7396 doesn't include the table number.
7399 \begin_layout Standard
7401 \begin_inset Tabular
7402 <lyxtabular version="3" rows="60" columns="3">
7403 <features islongtable="true">
7404 <column alignment="left" valignment="top" width="0cm">
7405 <column alignment="left" valignment="top" width="0pt">
7406 <column alignment="center" valignment="top" width="0pt">
7407 <row endfirsthead="true" caption="true">
7408 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7411 \begin_layout Plain Layout
7412 \begin_inset Caption
7414 \begin_layout Plain Layout
7416 \begin_inset CommandInset label
7418 name "tab:DiffCaptions"
7426 \begin_layout Plain Layout
7442 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7445 \begin_layout Plain Layout
7451 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7454 \begin_layout Plain Layout
7461 <row endfirsthead="true">
7462 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7465 \begin_layout Plain Layout
7468 Example Phone List (ignore the names)
7473 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7476 \begin_layout Plain Layout
7482 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7485 \begin_layout Plain Layout
7492 <row endfirsthead="true">
7493 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7496 \begin_layout Plain Layout
7504 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7507 \begin_layout Plain Layout
7513 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7516 \begin_layout Plain Layout
7525 <row endhead="true" caption="true">
7526 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7529 \begin_layout Plain Layout
7533 \begin_layout Plain Layout
7537 caption*{Continued Example Phone List}
7551 <cell multicolumn="2" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7554 \begin_layout Plain Layout
7560 <cell multicolumn="2" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7563 \begin_layout Plain Layout
7570 <row endhead="true">
7571 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7574 \begin_layout Plain Layout
7582 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7585 \begin_layout Plain Layout
7591 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7594 \begin_layout Plain Layout
7601 <row endhead="true">
7602 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
7605 \begin_layout Plain Layout
7613 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7616 \begin_layout Plain Layout
7622 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7625 \begin_layout Plain Layout
7634 <row endfoot="true">
7635 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
7638 \begin_layout Plain Layout
7639 continued on next page
7644 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7647 \begin_layout Plain Layout
7653 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7656 \begin_layout Plain Layout
7664 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7667 \begin_layout Plain Layout
7675 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7678 \begin_layout Plain Layout
7684 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
7687 \begin_layout Plain Layout
7695 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7698 \begin_layout Plain Layout
7706 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7709 \begin_layout Plain Layout
7715 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7718 \begin_layout Plain Layout
7726 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7729 \begin_layout Plain Layout
7737 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7740 \begin_layout Plain Layout
7746 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7749 \begin_layout Plain Layout
7757 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7760 \begin_layout Plain Layout
7768 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7771 \begin_layout Plain Layout
7777 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7780 \begin_layout Plain Layout
7788 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7791 \begin_layout Plain Layout
7799 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7802 \begin_layout Plain Layout
7808 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7811 \begin_layout Plain Layout
7819 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7822 \begin_layout Plain Layout
7830 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7833 \begin_layout Plain Layout
7839 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7842 \begin_layout Plain Layout
7850 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7853 \begin_layout Plain Layout
7861 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7864 \begin_layout Plain Layout
7870 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7873 \begin_layout Plain Layout
7881 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7884 \begin_layout Plain Layout
7892 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7895 \begin_layout Plain Layout
7901 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7904 \begin_layout Plain Layout
7912 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7915 \begin_layout Plain Layout
7923 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7926 \begin_layout Plain Layout
7932 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7935 \begin_layout Plain Layout
7943 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7946 \begin_layout Plain Layout
7954 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7957 \begin_layout Plain Layout
7963 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7966 \begin_layout Plain Layout
7974 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7977 \begin_layout Plain Layout
7985 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7988 \begin_layout Plain Layout
7994 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7997 \begin_layout Plain Layout
8005 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8008 \begin_layout Plain Layout
8016 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8019 \begin_layout Plain Layout
8025 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8028 \begin_layout Plain Layout
8036 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8039 \begin_layout Plain Layout
8047 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8050 \begin_layout Plain Layout
8056 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8059 \begin_layout Plain Layout
8067 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8070 \begin_layout Plain Layout
8078 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8081 \begin_layout Plain Layout
8087 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8090 \begin_layout Plain Layout
8098 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8101 \begin_layout Plain Layout
8110 \begin_layout Plain Layout
8121 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8124 \begin_layout Plain Layout
8130 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8133 \begin_layout Plain Layout
8141 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8144 \begin_layout Plain Layout
8152 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8155 \begin_layout Plain Layout
8161 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8164 \begin_layout Plain Layout
8172 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8175 \begin_layout Plain Layout
8183 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8186 \begin_layout Plain Layout
8192 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8195 \begin_layout Plain Layout
8203 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8206 \begin_layout Plain Layout
8214 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8217 \begin_layout Plain Layout
8223 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8226 \begin_layout Plain Layout
8234 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8237 \begin_layout Plain Layout
8245 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8248 \begin_layout Plain Layout
8254 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8257 \begin_layout Plain Layout
8265 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8268 \begin_layout Plain Layout
8276 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8279 \begin_layout Plain Layout
8285 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8288 \begin_layout Plain Layout
8296 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8299 \begin_layout Plain Layout
8307 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8310 \begin_layout Plain Layout
8316 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8319 \begin_layout Plain Layout
8327 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8330 \begin_layout Plain Layout
8338 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8341 \begin_layout Plain Layout
8347 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8350 \begin_layout Plain Layout
8358 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8361 \begin_layout Plain Layout
8369 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8372 \begin_layout Plain Layout
8378 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8381 \begin_layout Plain Layout
8389 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8392 \begin_layout Plain Layout
8400 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8403 \begin_layout Plain Layout
8409 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8412 \begin_layout Plain Layout
8420 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8423 \begin_layout Plain Layout
8431 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8434 \begin_layout Plain Layout
8440 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8443 \begin_layout Plain Layout
8451 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8454 \begin_layout Plain Layout
8462 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8465 \begin_layout Plain Layout
8471 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8474 \begin_layout Plain Layout
8482 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8485 \begin_layout Plain Layout
8493 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8496 \begin_layout Plain Layout
8502 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8505 \begin_layout Plain Layout
8513 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8516 \begin_layout Plain Layout
8524 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8527 \begin_layout Plain Layout
8533 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8536 \begin_layout Plain Layout
8544 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8547 \begin_layout Plain Layout
8555 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8558 \begin_layout Plain Layout
8564 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8567 \begin_layout Plain Layout
8575 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8578 \begin_layout Plain Layout
8586 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8589 \begin_layout Plain Layout
8595 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8598 \begin_layout Plain Layout
8606 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8609 \begin_layout Plain Layout
8617 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8620 \begin_layout Plain Layout
8626 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8629 \begin_layout Plain Layout
8637 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8640 \begin_layout Plain Layout
8646 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8649 \begin_layout Plain Layout
8655 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8658 \begin_layout Plain Layout
8666 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8669 \begin_layout Plain Layout
8677 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8680 \begin_layout Plain Layout
8686 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8689 \begin_layout Plain Layout
8697 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8700 \begin_layout Plain Layout
8708 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8711 \begin_layout Plain Layout
8717 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8720 \begin_layout Plain Layout
8728 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8731 \begin_layout Plain Layout
8739 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8742 \begin_layout Plain Layout
8748 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8751 \begin_layout Plain Layout
8759 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8762 \begin_layout Plain Layout
8770 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8773 \begin_layout Plain Layout
8779 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8782 \begin_layout Plain Layout
8790 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8793 \begin_layout Plain Layout
8801 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8804 \begin_layout Plain Layout
8810 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8813 \begin_layout Plain Layout
8821 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8824 \begin_layout Plain Layout
8832 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8835 \begin_layout Plain Layout
8841 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8844 \begin_layout Plain Layout
8852 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8855 \begin_layout Plain Layout
8863 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8866 \begin_layout Plain Layout
8872 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8875 \begin_layout Plain Layout
8883 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8886 \begin_layout Plain Layout
8894 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8897 \begin_layout Plain Layout
8903 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8906 \begin_layout Plain Layout
8914 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8917 \begin_layout Plain Layout
8925 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8928 \begin_layout Plain Layout
8934 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8937 \begin_layout Plain Layout
8945 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8948 \begin_layout Plain Layout
8956 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8959 \begin_layout Plain Layout
8965 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8968 \begin_layout Plain Layout
8976 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8979 \begin_layout Plain Layout
8987 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8990 \begin_layout Plain Layout
8996 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8999 \begin_layout Plain Layout
9007 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9010 \begin_layout Plain Layout
9018 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9021 \begin_layout Plain Layout
9027 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9030 \begin_layout Plain Layout
9038 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9041 \begin_layout Plain Layout
9049 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9052 \begin_layout Plain Layout
9058 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9061 \begin_layout Plain Layout
9069 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9072 \begin_layout Plain Layout
9080 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9083 \begin_layout Plain Layout
9089 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9092 \begin_layout Plain Layout
9100 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9103 \begin_layout Plain Layout
9111 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9114 \begin_layout Plain Layout
9120 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9123 \begin_layout Plain Layout
9131 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9134 \begin_layout Plain Layout
9142 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9145 \begin_layout Plain Layout
9151 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9154 \begin_layout Plain Layout
9162 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9165 \begin_layout Plain Layout
9173 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9176 \begin_layout Plain Layout
9182 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9185 \begin_layout Plain Layout
9193 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9196 \begin_layout Plain Layout
9204 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9207 \begin_layout Plain Layout
9213 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9216 \begin_layout Plain Layout
9224 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9227 \begin_layout Plain Layout
9235 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9238 \begin_layout Plain Layout
9244 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9247 \begin_layout Plain Layout
9255 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9258 \begin_layout Plain Layout
9266 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9269 \begin_layout Plain Layout
9275 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9278 \begin_layout Plain Layout
9285 <row endlastfoot="true">
9286 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9289 \begin_layout Plain Layout
9295 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
9298 \begin_layout Plain Layout
9304 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9307 \begin_layout Plain Layout
9321 \begin_layout Section
9322 Special Longtable Issues
9323 \begin_inset CommandInset label
9325 name "sec:Special-Longtable-Issues"
9332 \begin_layout Subsection
9333 Longtable Calculation
9337 \begin_layout Plain Layout
9338 Longtables ! Calculation
9346 \begin_layout Standard
9347 LaTeX calculates the height of table pages and their page breaks using so
9349 Chunks are pieces of the tables that are at once in LaTeX's memory.
9350 The default value is historically set to only 20 table rows.
9351 If you are using longtables with many pages this may slow down the creation
9353 You can safely increase the chunk size to values of 100-1000 by adding
9354 this command line to your document preamble:
9357 \begin_layout Standard
9362 setcounter{LTchunksize}{100}
9365 \begin_layout Subsection
9366 Floats and Longtables
9370 \begin_layout Plain Layout
9379 \begin_layout Standard
9380 There might be problems when a float appears on the same page where a longtable
9382 To avoid such situation, add the command
9388 as TeX-Code before your longtable.
9391 \begin_layout Subsection
9396 \begin_layout Plain Layout
9397 Longtables ! Forced Page Breaks
9405 \begin_layout Standard
9406 By default tables are only broken between rows.
9407 If you have a cell with multiples lines and want to have a page break within
9408 the cell, insert the new line command
9409 \begin_inset Quotes eld
9421 \begin_inset Quotes erd
9424 as TeX-Code at this point of the cell where it should be broken.
9433 command you have to insert in TeX-Code so many
9434 \begin_inset Quotes eld
9442 \begin_inset Quotes erd
9445 characters like the number of the following table columns.
9450 is the character to separate table cells.
9451 Write in TeX-Code after each
9455 the content of the corresponding following cell and delete the content
9457 \begin_inset Newline newline
9468 command, insert so many
9472 characters like the number of table columns before the current column.
9474 \begin_inset space ~
9478 \begin_inset CommandInset ref
9480 reference "tab:ForcedPagebreak"
9484 the cell that should be broken is in the second column followed by another
9486 Therefore the following command was inserted in the cell as TeX-Code behind
9488 \begin_inset Quotes eld
9496 \begin_inset Quotes erd
9502 \begin_layout Standard
9510 \begin_inset Newline newline
9516 \begin_layout Standard
9518 \begin_inset Quotes eld
9522 \begin_inset Quotes erd
9525 in the third columns of the row was deleted.
9526 If your footer row of the longtable has for a certain reason no upper line
9527 but you would have a horizontal line where the cell is broken, use this
9531 \begin_layout Standard
9539 \begin_inset Newline newline
9547 \begin_layout Standard
9548 When the cell to be broken is in the last column, the command
9551 \begin_layout Standard
9561 \begin_layout Standard
9562 must be inserted as TeX-Code at the beginning of the cell.
9563 This assures that the part of the cell that will be displayed on the new
9564 page appears with the full width.
9567 \begin_layout Standard
9569 \begin_inset Tabular
9570 <lyxtabular version="3" rows="39" columns="3">
9571 <features islongtable="true">
9572 <column alignment="left" valignment="top" width="0cm">
9573 <column alignment="left" valignment="top" width="3cm">
9574 <column alignment="center" valignment="top" width="0pt">
9575 <row endfirsthead="true" caption="true">
9576 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
9579 \begin_layout Plain Layout
9580 \begin_inset Caption
9582 \begin_layout Plain Layout
9583 Table with forced page break in table cell
9584 \begin_inset CommandInset label
9586 name "tab:ForcedPagebreak"
9594 \begin_layout Plain Layout
9595 Table with forced page break in table cell
9610 <cell multicolumn="2" alignment="center" valignment="top" rightline="true" usebox="none">
9613 \begin_layout Plain Layout
9619 <cell multicolumn="2" alignment="center" valignment="top" rightline="true" usebox="none">
9622 \begin_layout Plain Layout
9629 <row endfirsthead="true">
9630 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9633 \begin_layout Plain Layout
9636 Example Phone List (ignore the names)
9641 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9644 \begin_layout Plain Layout
9650 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9653 \begin_layout Plain Layout
9660 <row endfirsthead="true">
9661 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9664 \begin_layout Plain Layout
9672 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9675 \begin_layout Plain Layout
9681 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9684 \begin_layout Plain Layout
9693 <row endhead="true" caption="true">
9694 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
9697 \begin_layout Plain Layout
9701 \begin_layout Plain Layout
9705 caption*{Continued table with forced page break in table cell}
9719 <cell multicolumn="2" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
9722 \begin_layout Plain Layout
9728 <cell multicolumn="2" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
9731 \begin_layout Plain Layout
9738 <row endhead="true">
9739 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9742 \begin_layout Plain Layout
9750 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9753 \begin_layout Plain Layout
9759 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9762 \begin_layout Plain Layout
9769 <row endhead="true">
9770 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9773 \begin_layout Plain Layout
9781 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9784 \begin_layout Plain Layout
9790 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9793 \begin_layout Plain Layout
9802 <row endfoot="true">
9803 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
9806 \begin_layout Plain Layout
9807 continued on next page
9812 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9815 \begin_layout Plain Layout
9821 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9824 \begin_layout Plain Layout
9832 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9835 \begin_layout Plain Layout
9843 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9846 \begin_layout Plain Layout
9852 <cell alignment="right" valignment="top" rightline="true" usebox="none">
9855 \begin_layout Plain Layout
9863 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9866 \begin_layout Plain Layout
9874 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9877 \begin_layout Plain Layout
9883 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9886 \begin_layout Plain Layout
9894 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9897 \begin_layout Plain Layout
9905 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9908 \begin_layout Plain Layout
9914 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9917 \begin_layout Plain Layout
9925 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9928 \begin_layout Plain Layout
9936 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9939 \begin_layout Plain Layout
9945 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9948 \begin_layout Plain Layout
9956 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9959 \begin_layout Plain Layout
9967 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9970 \begin_layout Plain Layout
9976 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9979 \begin_layout Plain Layout
9987 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9990 \begin_layout Plain Layout
9998 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10001 \begin_layout Plain Layout
10007 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10010 \begin_layout Plain Layout
10018 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10021 \begin_layout Plain Layout
10029 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10032 \begin_layout Plain Layout
10038 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10041 \begin_layout Plain Layout
10049 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10052 \begin_layout Plain Layout
10060 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10063 \begin_layout Plain Layout
10069 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10072 \begin_layout Plain Layout
10080 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10083 \begin_layout Plain Layout
10091 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10094 \begin_layout Plain Layout
10100 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10103 \begin_layout Plain Layout
10111 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10114 \begin_layout Plain Layout
10122 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10125 \begin_layout Plain Layout
10131 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10134 \begin_layout Plain Layout
10142 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10145 \begin_layout Plain Layout
10153 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10156 \begin_layout Plain Layout
10162 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10165 \begin_layout Plain Layout
10173 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10176 \begin_layout Plain Layout
10184 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10187 \begin_layout Plain Layout
10193 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10196 \begin_layout Plain Layout
10204 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10207 \begin_layout Plain Layout
10215 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10218 \begin_layout Plain Layout
10224 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10227 \begin_layout Plain Layout
10235 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10238 \begin_layout Plain Layout
10246 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10249 \begin_layout Plain Layout
10255 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10258 \begin_layout Plain Layout
10266 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10269 \begin_layout Plain Layout
10277 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10280 \begin_layout Plain Layout
10286 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10289 \begin_layout Plain Layout
10297 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10300 \begin_layout Plain Layout
10308 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10311 \begin_layout Plain Layout
10317 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10320 \begin_layout Plain Layout
10328 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10331 \begin_layout Plain Layout
10339 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10342 \begin_layout Plain Layout
10348 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10351 \begin_layout Plain Layout
10359 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10362 \begin_layout Plain Layout
10370 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10373 \begin_layout Plain Layout
10379 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10382 \begin_layout Plain Layout
10390 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10393 \begin_layout Plain Layout
10401 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10404 \begin_layout Plain Layout
10410 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10413 \begin_layout Plain Layout
10421 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10424 \begin_layout Plain Layout
10432 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10435 \begin_layout Plain Layout
10441 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10444 \begin_layout Plain Layout
10452 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10455 \begin_layout Plain Layout
10463 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10466 \begin_layout Plain Layout
10472 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10475 \begin_layout Plain Layout
10483 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10486 \begin_layout Plain Layout
10494 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10497 \begin_layout Plain Layout
10503 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10506 \begin_layout Plain Layout
10514 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10517 \begin_layout Plain Layout
10525 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10528 \begin_layout Plain Layout
10530 Fürst von Montecompatri, 11.
10531 Fürst von Sulmona und Vivaro, 10.
10532 Fürst von Rossano, 5.
10533 Herzog von Canemorte, 11.
10534 Herzog von Palombara, 5.
10535 Herzog von Castelchiodato,
10539 \begin_layout Plain Layout
10548 \begin_layout Plain Layout
10556 Herzog von Poggionativo, 11.
10557 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10558 Graf von Valinfreda, 11.
10559 Baron von Cropalati, 11.
10560 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10565 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10568 \begin_layout Plain Layout
10576 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10579 \begin_layout Plain Layout
10587 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10590 \begin_layout Plain Layout
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" bottomline="true" leftline="true" usebox="none">
10796 \begin_layout Plain Layout
10804 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
10807 \begin_layout Plain Layout
10813 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
10816 \begin_layout Plain Layout
10823 <row endlastfoot="true">
10824 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
10827 \begin_layout Plain Layout
10833 <cell multicolumn="2" alignment="center" valignment="top" rightline="true" usebox="none">
10836 \begin_layout Plain Layout
10842 <cell multicolumn="2" alignment="center" valignment="top" rightline="true" usebox="none">
10845 \begin_layout Plain Layout
10859 \begin_layout Standard
10860 \begin_inset Newpage newpage
10866 \begin_layout Section
10867 Multiple Lines Columns and Rows
10870 \begin_layout Subsection
10871 Multiple Lines in Table Cells
10872 \begin_inset CommandInset label
10874 name "sub:Multiple-Lines-in"
10882 \begin_layout Plain Layout
10883 Multiple Lines in Table Cells
10892 \begin_layout Plain Layout
10901 \begin_layout Standard
10903 \begin_inset Float table
10909 \begin_layout Plain Layout
10910 \begin_inset Caption
10912 \begin_layout Plain Layout
10913 \begin_inset CommandInset label
10915 name "tab:Table-with-multiple"
10919 Table with multiple lines in cells
10927 \begin_layout Plain Layout
10929 \begin_inset Tabular
10930 <lyxtabular version="3" rows="3" columns="3">
10932 <column alignment="center" valignment="middle" width="2.5cm">
10933 <column alignment="center" valignment="middle" width="0">
10934 <column alignment="center" valignment="middle" width="0">
10936 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10939 \begin_layout Plain Layout
10941 \begin_inset Newline linebreak
10949 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10952 \begin_layout Plain Layout
10958 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10961 \begin_layout Plain Layout
10969 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10972 \begin_layout Plain Layout
10978 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10981 \begin_layout Plain Layout
10987 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10990 \begin_layout Plain Layout
10998 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11001 \begin_layout Plain Layout
11007 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11010 \begin_layout Plain Layout
11016 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11019 \begin_layout Plain Layout
11038 \begin_layout Standard
11039 Adjusting a fixed width for a column, enables to enter text as a paragraph
11040 with multiple lines and hyphenations.
11043 \begin_layout Standard
11045 \begin_inset space ~
11049 \begin_inset CommandInset ref
11051 reference "tab:Table-with-multiple"
11055 , create a 3×3 table, mark the first cell and right-click on it.
11056 In the appearing table dialog we set a cell width of 2.5
11057 \begin_inset space \thinspace{}
11060 cm and choose centered for the vertical and horizontal alignment.
11061 The vertical alignment is used for all cells of the row.
11062 As our text is smaller than than 2.5
11063 \begin_inset space \thinspace{}
11066 cm, only one line will appear.
11067 To get two lines, a justified line break (shortcut
11072 If the text is wider than the set cell width, it will automatically be
11073 broken to several lines.
11076 \begin_layout Standard
11077 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11078 by LaTeX if it is the first entry.
11079 Therefore you need to insert something, to make the word not being the
11081 So add a horizontal space of 0
11082 \begin_inset space \thinspace{}
11085 pt before the word.
11086 As the space is zero, it doesn't change the output.
11088 \begin_inset space ~
11092 \begin_inset CommandInset ref
11094 reference "tab:Table-with-and"
11101 \begin_layout Standard
11102 \begin_inset Float table
11108 \begin_layout Plain Layout
11109 \begin_inset Caption
11111 \begin_layout Plain Layout
11112 \begin_inset CommandInset label
11114 name "tab:Table-with-and"
11118 Table with and without hyphenation
11126 \begin_layout Plain Layout
11127 \begin_inset space \hfill{}
11131 \begin_inset Tabular
11132 <lyxtabular version="3" rows="3" columns="3">
11134 <column alignment="center" valignment="middle" width="2.5cm">
11135 <column alignment="center" valignment="middle" width="0">
11136 <column alignment="center" valignment="middle" width="0">
11138 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11141 \begin_layout Plain Layout
11142 verylongtablecellword
11147 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11150 \begin_layout Plain Layout
11156 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11159 \begin_layout Plain Layout
11167 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11170 \begin_layout Plain Layout
11176 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11179 \begin_layout Plain Layout
11185 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11188 \begin_layout Plain Layout
11196 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11199 \begin_layout Plain Layout
11205 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11208 \begin_layout Plain Layout
11214 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11217 \begin_layout Plain Layout
11229 \begin_inset space \hfill{}
11233 \begin_inset Tabular
11234 <lyxtabular version="3" rows="3" columns="3">
11236 <column alignment="center" valignment="middle" width="2.5cm">
11237 <column alignment="center" valignment="middle" width="0">
11238 <column alignment="center" valignment="middle" width="0">
11240 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11243 \begin_layout Plain Layout
11244 \begin_inset space \hspace{}
11248 verylongtablecellword
11253 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11256 \begin_layout Plain Layout
11262 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11265 \begin_layout Plain Layout
11273 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11276 \begin_layout Plain Layout
11282 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11285 \begin_layout Plain Layout
11291 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11294 \begin_layout Plain Layout
11302 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11305 \begin_layout Plain Layout
11311 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11314 \begin_layout Plain Layout
11320 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11323 \begin_layout Plain Layout
11335 \begin_inset space \hfill{}
11346 \begin_layout Subsection
11348 \begin_inset CommandInset label
11350 name "sub:Multicolumns"
11358 \begin_layout Plain Layout
11368 \begin_layout Plain Layout
11369 Table ! Multicolumns
11377 \begin_layout Subsubsection
11381 \begin_layout Standard
11382 To span a cell over multiple columns, mark as much cells within a line that
11383 should be one spanned cell and use either the table-toolbar button
11384 \begin_inset Graphics
11385 filename ../images/tabular-feature_multicolumn.png
11387 scaleBeforeRotation
11393 Edit\SpecialChar \menuseparator
11394 Table\SpecialChar \menuseparator
11397 , or right click on the marked cells and choose multicolumn in the appearing
11398 table dialog under the tab
11405 \begin_layout Standard
11406 Multicolumns have there own cell settings.
11407 That means changing cell borders, cell alignment, and the width only affects
11409 Here is an example table with a multicolumn cell in the first row and one
11410 in the last row without the upper border:
11413 \begin_layout Standard
11415 \begin_inset Tabular
11416 <lyxtabular version="3" rows="3" columns="4">
11417 <features firstHeadTopDL="true" firstHeadBottomDL="true">
11418 <column alignment="center" valignment="top" width="0pt">
11419 <column alignment="center" valignment="middle" width="0">
11420 <column alignment="center" valignment="top" width="0in">
11421 <column alignment="center" valignment="top" width="0pt">
11423 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11426 \begin_layout Plain Layout
11432 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11435 \begin_layout Plain Layout
11441 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11444 \begin_layout Plain Layout
11450 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11453 \begin_layout Plain Layout
11461 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11464 \begin_layout Plain Layout
11479 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11482 \begin_layout Plain Layout
11488 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11491 \begin_layout Plain Layout
11497 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11500 \begin_layout Plain Layout
11508 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11511 \begin_layout Plain Layout
11517 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11520 \begin_layout Plain Layout
11526 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11529 \begin_layout Plain Layout
11535 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11538 \begin_layout Plain Layout
11552 \begin_layout Subsubsection
11553 Multicolumn Calculations
11554 \begin_inset CommandInset label
11556 name "sub:Multicolumn-Calculations"
11564 \begin_layout Plain Layout
11565 Multicolumns ! Calculations
11573 \begin_layout Standard
11574 LyX supports multicolumns directly, but we have to take notice of the cell
11575 width of the columns spanned by the multicolumn cell.
11578 \begin_layout Standard
11579 \begin_inset Float table
11585 \begin_layout Plain Layout
11586 \begin_inset Caption
11588 \begin_layout Plain Layout
11589 \begin_inset CommandInset label
11591 name "tab:Table-with-centered"
11595 Table with centered multicolumn text above two columns that have exactly
11596 half the width of the multicolumn cell
11597 \begin_inset OptArg
11600 \begin_layout Plain Layout
11601 Perfect multicolumn table
11614 \begin_layout Plain Layout
11616 \begin_inset Tabular
11617 <lyxtabular version="3" rows="3" columns="3">
11619 <column alignment="center" valignment="middle" width="0" special=">{\centering}m{1.25cm-6.2pt}">
11620 <column alignment="center" valignment="middle" width="0">
11621 <column alignment="center" valignment="top" width="0">
11623 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11626 \begin_layout Plain Layout
11627 multiple lines multicolumn
11632 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11635 \begin_layout Plain Layout
11641 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11644 \begin_layout Plain Layout
11652 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11655 \begin_layout Plain Layout
11661 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11664 \begin_layout Plain Layout
11670 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11673 \begin_layout Plain Layout
11681 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11684 \begin_layout Plain Layout
11690 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11693 \begin_layout Plain Layout
11699 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11702 \begin_layout Plain Layout
11721 \begin_layout Standard
11722 To create for example Table
11723 \begin_inset space ~
11727 \begin_inset CommandInset ref
11729 reference "tab:Table-with-centered"
11733 , mark the first two cells in the first row of a 3×3 table and right-click
11735 Now choose for this cell
11744 \begin_inset space \thinspace{}
11747 cm in the table dialog.
11748 The spanned columns should have exactly half the width of the multicolumn
11749 cell, so that you would adjust a width of 1.25
11750 \begin_inset space \thinspace{}
11753 cm for the first column.
11754 The second column has then automatically a width of 1.25
11755 \begin_inset space \thinspace{}
11758 cm (multicolumn width - width of first column).
11759 This was done for Table
11760 \begin_inset space ~
11764 \begin_inset CommandInset ref
11766 reference "tab:Table-without-half"
11773 \begin_layout Standard
11774 \begin_inset Float table
11779 \begin_layout Plain Layout
11780 \begin_inset Caption
11782 \begin_layout Plain Layout
11783 \begin_inset CommandInset label
11785 name "tab:Table-without-half"
11789 Table where the spanned table columns have not exactly half the width of
11790 the multicolumn cell
11791 \begin_inset OptArg
11794 \begin_layout Plain Layout
11795 Imperfect multicolumn table
11808 \begin_layout Plain Layout
11810 \begin_inset Tabular
11811 <lyxtabular version="3" rows="3" columns="3">
11813 <column alignment="center" valignment="top" width="1.25cm">
11814 <column alignment="center" valignment="top" width="0">
11815 <column alignment="center" valignment="top" width="0">
11817 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
11820 \begin_layout Plain Layout
11821 multiple lines multicolumn
11826 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11829 \begin_layout Plain Layout
11835 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11838 \begin_layout Plain Layout
11846 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11849 \begin_layout Plain Layout
11855 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11858 \begin_layout Plain Layout
11864 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11867 \begin_layout Plain Layout
11875 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11878 \begin_layout Plain Layout
11884 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11887 \begin_layout Plain Layout
11893 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11896 \begin_layout Plain Layout
11915 \begin_layout Standard
11916 You can see that the first column has not the half width of the multicolumn
11917 cell, it is a bit bigger.
11918 The reason is that the given width of a cell
11919 \begin_inset Formula $W_{g}$
11922 is not its total width
11923 \begin_inset Formula $W_{\mathrm{tot}}$
11926 because a cell is always a bit larger than its given width.
11928 \begin_inset space ~
11932 \begin_inset CommandInset ref
11934 reference "cha:Explanation-of-Equation"
11938 explains it in detail.
11941 \begin_layout Standard
11942 The needed given width
11943 \begin_inset Formula $W_{g\, n}$
11950 columns are spanned can be calculated, so that each column has a total
11952 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
11956 \begin_inset Formula \begin{equation}
11957 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}\end{equation}
11964 \begin_layout Standard
11965 In our case we have
11966 \begin_inset Formula $n=2$
11970 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
11973 cm and the default values for the lengths, so that equation
11974 \begin_inset CommandInset ref
11981 \begin_inset Formula \begin{equation}
11982 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}\end{equation}
11989 \begin_layout Standard
11990 To enable calculations in LaTeX, the LaTeX-package
11994 must be loaded with the document preamble line
11998 \begin_layout Plain Layout
11999 LaTeX-packages ! calc
12007 \begin_layout Standard
12015 \begin_layout Standard
12016 LyX does not allow to calculate lengths in the width-field of the table
12018 Therefore you have to format the column by inserting a LaTeX-argument in
12020 Here is an overview about the arguments:
12023 \begin_layout Itemize
12028 creates cell with a fixed width, its text is vertically top-aligned
12031 \begin_layout Itemize
12036 creates cell with a fixed width, its text is vertically centered
12039 \begin_layout Itemize
12044 creates cell with a fixed width, its text is vertically bottom-aligned
12047 \begin_layout Standard
12048 By entering a LaTeX-argument, all cell settings set in the table dialog
12052 \begin_layout Standard
12053 \begin_inset Note Greyedout
12056 \begin_layout Plain Layout
12061 Due to a bug, LyX shows the overwritten settings anyway.
12069 \begin_layout Standard
12070 As the text should be horizontally centered, the command
12077 You can now enter the following LaTeX-argument for the first spanned column:
12080 \begin_layout Standard
12085 centering}m{1.25cm-6.2pt}
12088 \begin_layout Standard
12093 means, that the commands inside the braces are applied before the cell
12097 \begin_layout Standard
12098 Although we have chosen centered alignment for the text of the multicolumn
12099 cell, it is still left aligned.
12100 This is because LyX only applies the alignment to single columns.
12101 So we have to use for the multicolumn the LaTeX-argument
12104 \begin_layout Standard
12112 \begin_layout Subsection
12117 \begin_layout Plain Layout
12127 \begin_layout Plain Layout
12136 \begin_layout Standard
12137 In contrary to multicolumns multirows are not yet supported by LyX so a
12138 bit of TeX-Code needs to be used.
12139 To use multirows load the LaTeX-package
12147 \begin_layout Plain Layout
12148 LaTeX-packages ! multirow
12153 in your document preamble with the command
12156 \begin_layout Standard
12161 usepackage{multirow}
12164 \begin_layout Standard
12165 Multirows are created with the command
12168 \begin_layout Standard
12173 multirow{number of rows}{cell width}{cell entry}
12176 \begin_layout Standard
12177 To create the following table:
12180 \begin_layout Standard
12185 \begin_layout Plain Layout
12199 \begin_inset Tabular
12200 <lyxtabular version="3" rows="3" columns="3">
12202 <column alignment="center" valignment="top" width="0">
12203 <column alignment="center" valignment="top" width="0">
12204 <column alignment="center" valignment="top" width="0">
12206 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12209 \begin_layout Plain Layout
12215 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12218 \begin_layout Plain Layout
12224 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12227 \begin_layout Plain Layout
12235 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12238 \begin_layout Plain Layout
12242 \begin_layout Plain Layout
12246 multirow{2}{2.5cm}{
12255 \begin_layout Plain Layout
12267 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12270 \begin_layout Plain Layout
12276 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12279 \begin_layout Plain Layout
12287 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
12290 \begin_layout Plain Layout
12296 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12299 \begin_layout Plain Layout
12305 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12308 \begin_layout Plain Layout
12323 \begin_layout Plain Layout
12339 \begin_layout Standard
12340 create a 3×3 table.
12341 To get rid of the line above the last cell in the first column, the cell
12342 is marked as multicolumn and the upper border is unset.
12343 The multirow is now created in the second row of the first column by inserting
12347 \begin_layout Standard
12352 multirow{2}{2.5cm}{
12355 \begin_layout Standard
12357 According to the command parameters the multirow spans now two rows and
12359 \begin_inset space \thinspace{}
12363 The content of the multirow cell follows outside the TeX-Code box and the
12364 command is finished with a right brace
12368 in another TeX-Code-box behind the text.
12371 \begin_layout Standard
12378 left-aligns its content by default.
12379 To override the default, renew the command
12388 \begin_layout Standard
12400 \begin_layout Standard
12401 in TeX-Code in the document preamble.
12402 Then all entries of multirow cells in the document are centered.
12403 If centering is only needed for several tables, you can renew the command
12404 in an TeX-Code box just before the table instead of the preamble.
12405 If the text should be right-aligned, replace
12418 To return to left-alignment
12427 \begin_layout Section
12429 \begin_inset CommandInset label
12431 name "sec:Formal-Tables"
12439 \begin_layout Plain Layout
12448 \begin_layout Standard
12449 Tables are often typeset in books similar to Table
12450 \begin_inset space ~
12454 \begin_inset CommandInset ref
12456 reference "tab:Example-booktabs-table"
12461 This kind of tables is called
12462 \begin_inset Quotes eld
12470 \begin_inset Quotes erd
12474 To make a table a formal table use the option
12482 tab of the table dialog.
12485 \begin_layout Standard
12486 \begin_inset Float table
12492 \begin_layout Plain Layout
12493 \begin_inset Caption
12495 \begin_layout Plain Layout
12496 \begin_inset CommandInset label
12498 name "tab:Example-booktabs-table"
12502 Example booktabs-table
12510 \begin_layout Plain Layout
12512 \begin_inset Tabular
12513 <lyxtabular version="3" rows="8" columns="4">
12514 <features booktabs="true">
12515 <column alignment="center" valignment="top" width="0">
12516 <column alignment="center" valignment="top" width="0">
12517 <column alignment="center" valignment="top" width="0">
12518 <column alignment="center" valignment="top" width="0">
12520 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12523 \begin_layout Plain Layout
12529 <cell alignment="center" valignment="top" topline="true" usebox="none">
12532 \begin_layout Plain Layout
12534 \begin_inset Formula $\,$
12542 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
12545 \begin_layout Plain Layout
12547 \begin_inset Formula $\,$
12555 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12558 \begin_layout Plain Layout
12566 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12569 \begin_layout Plain Layout
12573 \begin_layout Plain Layout
12586 \begin_layout Plain Layout
12595 Detector thickness [µm]
12600 <cell alignment="center" valignment="top" usebox="none">
12603 \begin_layout Plain Layout
12609 <cell alignment="center" valignment="top" usebox="none">
12612 \begin_layout Plain Layout
12618 <cell alignment="center" valignment="top" usebox="none">
12621 \begin_layout Plain Layout
12629 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12632 \begin_layout Plain Layout
12638 <cell alignment="center" valignment="top" topline="true" usebox="none">
12641 \begin_layout Plain Layout
12647 <cell alignment="center" valignment="top" topline="true" usebox="none">
12650 \begin_layout Plain Layout
12656 <cell alignment="center" valignment="top" topline="true" usebox="none">
12659 \begin_layout Plain Layout
12666 <row topspace="default">
12667 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12670 \begin_layout Plain Layout
12671 Spatial resolution [µm]
12676 <cell alignment="center" valignment="top" usebox="none">
12679 \begin_layout Plain Layout
12685 <cell alignment="center" valignment="top" usebox="none">
12688 \begin_layout Plain Layout
12694 <cell alignment="center" valignment="top" usebox="none">
12697 \begin_layout Plain Layout
12704 <row topspace="default">
12705 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12708 \begin_layout Plain Layout
12710 \begin_inset Formula $f_{\mathrm{max}}$
12718 <cell alignment="center" valignment="top" usebox="none">
12721 \begin_layout Plain Layout
12727 <cell alignment="center" valignment="top" usebox="none">
12730 \begin_layout Plain Layout
12736 <cell alignment="center" valignment="top" usebox="none">
12739 \begin_layout Plain Layout
12746 <row topspace="default">
12747 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12750 \begin_layout Plain Layout
12754 \begin_layout Plain Layout
12758 cmidrule(l{10pt}){1-1}
12763 LSF-spatial resolution
12768 <cell alignment="center" valignment="top" usebox="none">
12771 \begin_layout Plain Layout
12777 <cell alignment="center" valignment="top" usebox="none">
12780 \begin_layout Plain Layout
12786 <cell alignment="center" valignment="top" usebox="none">
12789 \begin_layout Plain Layout
12797 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12800 \begin_layout Plain Layout
12806 <cell alignment="center" valignment="top" usebox="none">
12809 \begin_layout Plain Layout
12815 <cell alignment="center" valignment="top" usebox="none">
12818 \begin_layout Plain Layout
12824 <cell alignment="center" valignment="top" usebox="none">
12827 \begin_layout Plain Layout
12835 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
12838 \begin_layout Plain Layout
12844 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12847 \begin_layout Plain Layout
12853 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12856 \begin_layout Plain Layout
12862 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12865 \begin_layout Plain Layout
12884 \begin_layout Standard
12885 Spaces to table rows can be added using the
12889 tab of the table dialog as described in section
12890 \begin_inset space ~
12894 \begin_inset CommandInset ref
12896 reference "sub:Row-Spacing"
12903 \begin_layout Standard
12904 In contrary to normal tables, formal tables have no vertical table lines.
12905 The horizontal table lines can be set like for normal tables but they appear
12906 with different width in the output:
12907 \begin_inset Newline newline
12910 The first and the last table line have a default width of 0.08
12911 \begin_inset space \thinspace{}
12914 em while the other lines have a default width of 0.05
12915 \begin_inset space \thinspace{}
12921 \begin_layout Standard
12922 The default widths can be changed with the following preamble lines
12925 \begin_layout Standard
12935 \begin_inset Newline newline
12947 \begin_layout Standard
12948 This example is for the first line, the so called
12953 If you want to change the width for the last line, replace
12962 To change the width for the other lines replace
12971 You can use all units listed in appendix
12972 \begin_inset space ~
12976 \begin_inset CommandInset ref
12978 reference "cha:Units-available-in"
12985 \begin_layout Standard
12986 Lines that don't span over all table columns can be created by setting a
12987 table line for multicolumn cells.
12988 LyX will then internally use the command
12994 to create this line.
12998 \begin_layout Standard
13003 cmidrule[width](trim){startcol-endcol}
13006 \begin_layout Standard
13013 are are currently not supported by LyX so you have to use TeX-Code to be
13021 s can manually be created by inserting the command as TeX-Code as first
13022 cell entry of the first cell of a row.
13023 The line is then drawn in the output above the current row.
13026 \begin_layout Standard
13027 The default for the width is 0.03
13028 \begin_inset space \thinspace{}
13032 Startcol is the number of the column where the line starts and endcol the
13033 column number where the line ends.
13034 The endcol always needs to be specified, also when the line should span
13036 The optional parameter trim could be either
13044 where the trimwidth is also optional.
13045 Using for example the parameter
13049 means that the line is trimmed from its left end by 2
13050 \begin_inset space \thinspace{}
13054 If you don't specify the trimwidth the lines are trimmed by the default
13056 \begin_inset space \thinspace{}
13062 \begin_layout Standard
13063 \begin_inset VSpace bigskip
13067 \begin_inset space ~
13071 \begin_inset CommandInset ref
13073 reference "tab:Example-booktabs-table"
13077 was created using the commands
13080 \begin_layout Standard
13090 \begin_layout Standard
13091 at the beginning of the in the second row and
13094 \begin_layout Standard
13099 cmidrule(l{10pt}){1-1}
13102 \begin_layout Standard
13106 \begin_layout Standard
13107 \begin_inset VSpace bigskip
13113 \begin_layout Standard
13114 You might want to have overlapping
13121 \begin_inset space ~
13125 \begin_inset CommandInset ref
13127 reference "tab:Special-booktabs-table"
13132 This can be achieved with the TeX-Code command
13135 \begin_layout Standard
13143 \begin_layout Standard
13144 The command that was used for the second row of Table
13145 \begin_inset space ~
13149 \begin_inset CommandInset ref
13151 reference "tab:Special-booktabs-table"
13158 \begin_layout Standard
13172 \begin_layout Standard
13173 The command for the sixth row is
13176 \begin_layout Standard
13188 \begin_layout Standard
13189 \begin_inset VSpace bigskip
13195 \begin_layout Standard
13196 If you are anyway not satisfied with the border line spacing, you can use
13197 the following command to produce lines that span over all table columns
13202 \begin_layout Standard
13207 specialrule{width}{space above}{space below}
13210 \begin_layout Standard
13211 For more informations about these specialties, we refer to the manual of
13217 \begin_inset CommandInset citation
13227 \begin_layout Plain Layout
13228 LaTeX-packages ! booktabs
13236 \begin_layout Standard
13237 \begin_inset Float table
13243 \begin_layout Plain Layout
13244 \begin_inset Caption
13246 \begin_layout Plain Layout
13247 \begin_inset CommandInset label
13249 name "tab:Special-booktabs-table"
13253 Special booktabs-table
13261 \begin_layout Plain Layout
13263 \begin_inset Tabular
13264 <lyxtabular version="3" rows="8" columns="4">
13265 <features booktabs="true">
13266 <column alignment="center" valignment="top" width="0">
13267 <column alignment="center" valignment="top" width="0">
13268 <column alignment="center" valignment="top" width="0">
13269 <column alignment="center" valignment="top" width="0">
13271 <cell alignment="center" valignment="top" topline="true" usebox="none">
13274 \begin_layout Plain Layout
13280 <cell alignment="center" valignment="top" topline="true" usebox="none">
13283 \begin_layout Plain Layout
13285 \begin_inset space \thinspace{}
13293 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
13296 \begin_layout Plain Layout
13298 \begin_inset space \thinspace{}
13306 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13309 \begin_layout Plain Layout
13317 <cell alignment="center" valignment="top" usebox="none">
13320 \begin_layout Plain Layout
13324 \begin_layout Plain Layout
13337 \begin_layout Plain Layout
13350 \begin_layout Plain Layout
13363 \begin_layout Plain Layout
13372 Detector thickness [µm]
13377 <cell alignment="center" valignment="top" usebox="none">
13380 \begin_layout Plain Layout
13386 <cell alignment="center" valignment="top" usebox="none">
13389 \begin_layout Plain Layout
13395 <cell alignment="center" valignment="top" usebox="none">
13398 \begin_layout Plain Layout
13406 <cell alignment="center" valignment="top" topline="true" usebox="none">
13409 \begin_layout Plain Layout
13415 <cell alignment="center" valignment="top" topline="true" usebox="none">
13418 \begin_layout Plain Layout
13424 <cell alignment="center" valignment="top" topline="true" usebox="none">
13427 \begin_layout Plain Layout
13433 <cell alignment="center" valignment="top" topline="true" usebox="none">
13436 \begin_layout Plain Layout
13443 <row topspace="default">
13444 <cell alignment="center" valignment="top" usebox="none">
13447 \begin_layout Plain Layout
13448 Spatial resolution [µm]
13453 <cell alignment="center" valignment="top" usebox="none">
13456 \begin_layout Plain Layout
13462 <cell alignment="center" valignment="top" usebox="none">
13465 \begin_layout Plain Layout
13471 <cell alignment="center" valignment="top" usebox="none">
13474 \begin_layout Plain Layout
13481 <row topspace="default">
13482 <cell alignment="center" valignment="top" usebox="none">
13485 \begin_layout Plain Layout
13487 \begin_inset Formula $f_{\mathrm{max}}$
13495 <cell alignment="center" valignment="top" usebox="none">
13498 \begin_layout Plain Layout
13504 <cell alignment="center" valignment="top" usebox="none">
13507 \begin_layout Plain Layout
13513 <cell alignment="center" valignment="top" usebox="none">
13516 \begin_layout Plain Layout
13524 <cell alignment="center" valignment="top" topline="true" usebox="none">
13527 \begin_layout Plain Layout
13531 \begin_layout Plain Layout
13544 \begin_layout Plain Layout
13553 LSF-spatial resolution
13558 <cell alignment="center" valignment="top" topline="true" usebox="none">
13561 \begin_layout Plain Layout
13567 <cell alignment="center" valignment="top" topline="true" usebox="none">
13570 \begin_layout Plain Layout
13576 <cell alignment="center" valignment="top" topline="true" usebox="none">
13579 \begin_layout Plain Layout
13587 <cell alignment="center" valignment="top" usebox="none">
13590 \begin_layout Plain Layout
13596 <cell alignment="center" valignment="top" usebox="none">
13599 \begin_layout Plain Layout
13605 <cell alignment="center" valignment="top" usebox="none">
13608 \begin_layout Plain Layout
13614 <cell alignment="center" valignment="top" usebox="none">
13617 \begin_layout Plain Layout
13625 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13628 \begin_layout Plain Layout
13634 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13637 \begin_layout Plain Layout
13643 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13646 \begin_layout Plain Layout
13652 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13655 \begin_layout Plain Layout
13674 \begin_layout Section
13675 Vertical Table Alignment
13679 \begin_layout Plain Layout
13688 \begin_layout Standard
13689 To align tables vertically in a text line the table must be inside a box.
13690 The box can then be vertically aligned as described in section
13691 \begin_inset space ~
13695 \begin_inset CommandInset ref
13697 reference "sec:Box-Dialog"
13704 \begin_layout Standard
13705 In the following example the tables are inside a minipage
13709 \begin_layout Plain Layout
13710 Minipages are described in section
13711 \begin_inset space ~
13715 \begin_inset CommandInset ref
13717 reference "sec:Minipages"
13726 box that has a width of 15
13727 \begin_inset space \thinspace{}
13733 \begin_layout Itemize
13735 \begin_inset Box Frameless
13744 height_special "totalheight"
13747 \begin_layout Plain Layout
13748 \begin_inset Tabular
13749 <lyxtabular version="3" rows="3" columns="3">
13751 <column alignment="center" valignment="top" width="0">
13752 <column alignment="center" valignment="top" width="0">
13753 <column alignment="center" valignment="top" width="0">
13755 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13758 \begin_layout Plain Layout
13764 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13767 \begin_layout Plain Layout
13773 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13776 \begin_layout Plain Layout
13784 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13787 \begin_layout Plain Layout
13793 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13796 \begin_layout Plain Layout
13802 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13805 \begin_layout Plain Layout
13813 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13816 \begin_layout Plain Layout
13822 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13825 \begin_layout Plain Layout
13831 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13834 \begin_layout Plain Layout
13854 \begin_layout Plain Layout
13866 \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">
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
14006 height_special "totalheight"
14009 \begin_layout Plain Layout
14010 \begin_inset Tabular
14011 <lyxtabular version="3" rows="3" columns="3">
14013 <column alignment="center" valignment="top" width="0">
14014 <column alignment="center" valignment="top" width="0">
14015 <column alignment="center" valignment="top" width="0">
14017 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14020 \begin_layout Plain Layout
14026 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14029 \begin_layout Plain Layout
14035 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14038 \begin_layout Plain Layout
14046 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14049 \begin_layout Plain Layout
14055 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14058 \begin_layout Plain Layout
14064 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14067 \begin_layout Plain Layout
14075 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14078 \begin_layout Plain Layout
14084 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14087 \begin_layout Plain Layout
14093 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14096 \begin_layout Plain Layout
14115 \begin_layout Itemize
14117 \begin_inset Box Frameless
14126 height_special "totalheight"
14129 \begin_layout Plain Layout
14130 \begin_inset Tabular
14131 <lyxtabular version="3" rows="3" columns="3">
14133 <column alignment="center" valignment="top" width="0">
14134 <column alignment="center" valignment="top" width="0">
14135 <column alignment="center" valignment="top" width="0">
14137 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14140 \begin_layout Plain Layout
14146 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14149 \begin_layout Plain Layout
14155 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14158 \begin_layout Plain Layout
14166 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14169 \begin_layout Plain Layout
14175 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14178 \begin_layout Plain Layout
14184 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14187 \begin_layout Plain Layout
14195 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14198 \begin_layout Plain Layout
14204 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14207 \begin_layout Plain Layout
14213 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14216 \begin_layout Plain Layout
14236 \begin_layout Plain Layout
14248 \begin_inset Box Frameless
14257 height_special "totalheight"
14260 \begin_layout Plain Layout
14261 \begin_inset Tabular
14262 <lyxtabular version="3" rows="3" columns="3">
14264 <column alignment="center" valignment="top" width="0">
14265 <column alignment="center" valignment="top" width="0">
14266 <column alignment="center" valignment="top" width="0">
14268 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14271 \begin_layout Plain Layout
14277 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14280 \begin_layout Plain Layout
14286 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14289 \begin_layout Plain Layout
14297 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14300 \begin_layout Plain Layout
14306 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14309 \begin_layout Plain Layout
14315 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14318 \begin_layout Plain Layout
14326 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14329 \begin_layout Plain Layout
14335 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14338 \begin_layout Plain Layout
14344 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14347 \begin_layout Plain Layout
14367 \begin_layout Plain Layout
14377 \begin_layout Standard
14378 As you can see, the content of the first and last table row is not correctly
14379 aligned with the text line where the table is in.
14380 To get this alignment, the minipage box must be set into a raisebox
14384 \begin_layout Plain Layout
14385 Raiseboxes are described in section
14386 \begin_inset space ~
14390 \begin_inset CommandInset ref
14392 reference "sub:Vertical-Alignment"
14402 In the example above the second table in the first item is aligned using
14403 the TeX-Code-command
14406 \begin_layout Standard
14416 \begin_layout Standard
14418 Behind the box the closing brace
14422 is inserted as TeX-Code.
14423 For the second table in the last item the command
14426 \begin_layout Standard
14436 \begin_layout Standard
14440 \begin_layout Standard
14441 \begin_inset Note Greyedout
14444 \begin_layout Plain Layout
14449 The alignment of the table row content to the surrounding text line is
14451 The needed factor of the
14457 command for this alignment depends on the document font, the font size,
14458 and the table line thickness.
14466 \begin_layout Section
14468 \begin_inset CommandInset label
14470 name "sec:Colored-Tables"
14478 \begin_layout Plain Layout
14487 \begin_layout Subsection
14492 \begin_layout Plain Layout
14493 Table Color ! for Cells
14502 \begin_layout Plain Layout
14503 Color ! for Table Cells
14511 \begin_layout Standard
14512 \begin_inset Float table
14518 \begin_layout Plain Layout
14519 \begin_inset Caption
14521 \begin_layout Plain Layout
14522 \begin_inset CommandInset label
14524 name "tab:Table-colored-without"
14528 Table colored without using the package
14533 \begin_inset OptArg
14536 \begin_layout Plain Layout
14537 Table without colortbl
14550 \begin_layout Plain Layout
14552 \begin_inset Tabular
14553 <lyxtabular version="3" rows="3" columns="3">
14555 <column alignment="center" valignment="top" width="0">
14556 <column alignment="center" valignment="top" width="0">
14557 <column alignment="center" valignment="top" width="0">
14559 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14562 \begin_layout Plain Layout
14570 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14573 \begin_layout Plain Layout
14581 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14584 \begin_layout Plain Layout
14594 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14597 \begin_layout Plain Layout
14605 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14608 \begin_layout Plain Layout
14616 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14619 \begin_layout Plain Layout
14629 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14632 \begin_layout Plain Layout
14640 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14643 \begin_layout Plain Layout
14651 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14654 \begin_layout Plain Layout
14675 \begin_layout Standard
14676 If you only need colored text, mark the cells and choose a color in the
14679 Edit\SpecialChar \menuseparator
14681 \begin_inset space ~
14687 This was used to create Table
14688 \begin_inset space ~
14692 \begin_inset CommandInset ref
14694 reference "tab:Table-colored-without"
14699 In any other case you have to use the LaTeX-package
14707 \begin_layout Plain Layout
14708 LaTeX-packages ! colortbl
14716 \begin_layout Standard
14720 \begin_layout Plain Layout
14730 \begin_inset Note Note
14733 \begin_layout Plain Layout
14734 The following section part will only be displayed when the LaTeX-package
14747 \begin_layout Standard
14748 To create colored tables,
14752 must be loaded in the preamble with the line
14755 \begin_layout Standard
14760 usepackage{colortbl}
14763 \begin_layout Standard
14764 The color of a column is adjusted with the command
14767 \begin_layout Standard
14772 columncolor{name of color}
14775 \begin_layout Standard
14781 More about the command
14785 is described in section
14786 \begin_inset space ~
14790 \begin_inset CommandInset ref
14792 reference "sub:Multicolumn-Calculations"
14799 \begin_layout Standard
14800 The following color names are predefined:
14803 \begin_layout Standard
14837 \begin_layout Standard
14838 \begin_inset VSpace medskip
14844 \begin_layout Standard
14845 You can also define your own color with the command
14848 \begin_layout Standard
14853 definecolor{color name}{color model}{color values}
14856 \begin_layout Standard
14857 The color model can be
14860 \begin_layout Labeling
14861 \labelwidthstring 00.00.0000
14862 cmyk: cyan, magenta, yellow, black
14865 \begin_layout Labeling
14866 \labelwidthstring 00.00.0000
14867 rgb: red, green blue
14870 \begin_layout Labeling
14871 \labelwidthstring 00.00.0000
14875 \begin_layout Standard
14876 and the color values are comma separated numbers between 0 and 1 describing
14877 the factor for the corresponding color of the color model.
14880 \begin_layout Standard
14882 \begin_inset space \thinspace{}
14886 \begin_inset space ~
14893 " in the preamble with
14896 \begin_layout Standard
14901 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
14904 \begin_layout Standard
14912 \begin_layout Standard
14917 definecolor{lightgray}{gray}{0.8}
14920 \begin_layout Standard
14921 \begin_inset VSpace medskip
14927 \begin_layout Standard
14928 Lines are colored with the command
14931 \begin_layout Standard
14936 rowcolor{name of color}
14939 \begin_layout Standard
14940 and cells are colored with the command
14943 \begin_layout Standard
14948 cellcolor{name of color}
14951 \begin_layout Standard
14952 Both commands are inserted at the beginning of a cell as TeX-Code.
14955 \begin_layout Standard
14956 To color characters in the table, mark the cells and use the LyX menu
14958 Edit\SpecialChar \menuseparator
14960 \begin_inset space ~
14966 If a cell contains TeX-Code mark only the characters, otherwise the colored
14967 TeX-Code will cause LaTeX-errors.
14970 \begin_layout Standard
14971 \begin_inset Note Greyedout
14974 \begin_layout Plain Layout
14979 Not all DVI-viewers are able to display self-defined colors.
14987 \begin_layout Standard
14988 \begin_inset VSpace bigskip
14994 \begin_layout Standard
14996 \begin_inset space ~
15000 \begin_inset CommandInset ref
15002 reference "tab:Table-colored-using"
15006 do the following: The color of the first column should be
15014 \begin_layout Standard
15019 columncolor{darkgreen}
15024 \begin_layout Standard
15025 as LaTeX-argument for this column.
15026 The first row should be blue, therefore the TeX-Code command
15029 \begin_layout Standard
15037 \begin_layout Standard
15038 is inserted to the first cell of this row.
15039 Note that this overwrites the column color for the first cell.
15040 The last cell of the last row is colored magenta by inserting the TeX-Code
15044 \begin_layout Standard
15052 \begin_layout Standard
15053 The characters could now be colored using the menu
15055 Edit\SpecialChar \menuseparator
15057 \begin_inset space ~
15065 \begin_layout Standard
15066 \begin_inset Float table
15072 \begin_layout Plain Layout
15073 \begin_inset Caption
15075 \begin_layout Plain Layout
15076 \begin_inset CommandInset label
15078 name "tab:Table-colored-using"
15082 Table colored using the package
15087 \begin_inset OptArg
15090 \begin_layout Plain Layout
15091 Table with colortbl
15104 \begin_layout Plain Layout
15106 \begin_inset Tabular
15107 <lyxtabular version="3" rows="3" columns="3">
15109 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
15110 <column alignment="center" valignment="top" width="0">
15111 <column alignment="center" valignment="top" width="0">
15113 <cell alignment="center" valignment="top" usebox="none">
15116 \begin_layout Plain Layout
15120 \begin_layout Plain Layout
15136 <cell alignment="center" valignment="top" usebox="none">
15139 \begin_layout Plain Layout
15147 <cell alignment="center" valignment="top" usebox="none">
15150 \begin_layout Plain Layout
15160 <cell alignment="center" valignment="top" usebox="none">
15163 \begin_layout Plain Layout
15171 <cell alignment="center" valignment="top" usebox="none">
15174 \begin_layout Plain Layout
15182 <cell alignment="center" valignment="top" usebox="none">
15185 \begin_layout Plain Layout
15195 <cell alignment="center" valignment="top" usebox="none">
15198 \begin_layout Plain Layout
15206 <cell alignment="center" valignment="top" usebox="none">
15209 \begin_layout Plain Layout
15217 <cell alignment="center" valignment="top" usebox="none">
15220 \begin_layout Plain Layout
15224 \begin_layout Plain Layout
15253 \begin_layout Standard
15257 \begin_layout Plain Layout
15267 \begin_inset Note Note
15270 \begin_layout Plain Layout
15271 The following will be displayed when the LaTeX-package
15283 \begin_layout Standard
15284 You need to install the package
15288 to see the content of this section in the output.
15291 \begin_layout Standard
15295 \begin_layout Plain Layout
15307 \begin_layout Subsection
15312 \begin_layout Plain Layout
15313 Table Color ! for Lines
15322 \begin_layout Plain Layout
15323 Color ! for Table Lines
15331 \begin_layout Standard
15332 As described in section
15333 \begin_inset space ~
15337 \begin_inset CommandInset ref
15339 reference "sub:Line-Thickness"
15343 , the line thickness for all lines in a table can be adjusted with the length
15352 \begin_inset space \thinspace{}
15355 pt for all tables of this section.
15359 \begin_layout Plain Layout
15365 arrayrulewidth}{1.5pt}
15373 \begin_layout Standard
15374 To color vertical lines for example with green, create the following column
15375 format in the document preamble, according to the description in section
15376 \begin_inset space ~
15380 \begin_inset CommandInset ref
15382 reference "sub:Customized-Format"
15389 \begin_layout Standard
15394 newcolumntype{W}{!{
15401 \begin_layout Standard
15403 \begin_inset space ~
15407 \begin_inset CommandInset ref
15409 reference "tab:Table-with-vertical-colored"
15417 was used for the last column and
15421 for the other columns.
15424 \begin_layout Standard
15425 If you want to have several colors, define more column formats.
15428 \begin_layout Standard
15429 \begin_inset Float table
15435 \begin_layout Plain Layout
15436 \begin_inset Caption
15438 \begin_layout Plain Layout
15439 \begin_inset CommandInset label
15441 name "tab:Table-with-vertical-colored"
15445 Table with colored vertical lines
15453 \begin_layout Plain Layout
15455 \begin_inset Tabular
15456 <lyxtabular version="3" rows="3" columns="3">
15458 <column alignment="center" valignment="top" width="0" special="Wc">
15459 <column alignment="center" valignment="top" width="0" special="Wc">
15460 <column alignment="center" valignment="top" width="0" special="WcW">
15462 <cell alignment="center" valignment="top" topline="true" usebox="none">
15465 \begin_layout Plain Layout
15471 <cell alignment="center" valignment="top" topline="true" usebox="none">
15474 \begin_layout Plain Layout
15480 <cell alignment="center" valignment="top" topline="true" usebox="none">
15483 \begin_layout Plain Layout
15491 <cell alignment="center" valignment="top" topline="true" usebox="none">
15494 \begin_layout Plain Layout
15500 <cell alignment="center" valignment="top" topline="true" usebox="none">
15503 \begin_layout Plain Layout
15509 <cell alignment="center" valignment="top" topline="true" usebox="none">
15512 \begin_layout Plain Layout
15520 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15523 \begin_layout Plain Layout
15529 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15532 \begin_layout Plain Layout
15538 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15541 \begin_layout Plain Layout
15560 \begin_layout Standard
15561 \begin_inset VSpace bigskip
15564 To color horizontal lines for example with red, like in Table
15565 \begin_inset space ~
15569 \begin_inset CommandInset ref
15571 reference "tab:Table-with-horizontal-colored"
15575 , insert these commands in TeX-Code before the table or table float:
15578 \begin_layout Standard
15588 \begin_inset Newline newline
15596 \begin_inset Newline newline
15603 \begin_layout Plain Layout
15614 arrayrulecolor{red}
15618 arrayrulecolor{black}}
15621 \begin_layout Standard
15625 \begin_layout Plain Layout
15636 \begin_layout Plain Layout
15645 \begin_layout Plain Layout
15649 arrayrulecolor{red}
15653 arrayrulecolor{black}}
15659 \begin_inset Float table
15665 \begin_layout Plain Layout
15666 \begin_inset Caption
15668 \begin_layout Plain Layout
15669 \begin_inset CommandInset label
15671 name "tab:Table-with-horizontal-colored"
15675 Table with colored horizontal lines
15683 \begin_layout Plain Layout
15685 \begin_inset Tabular
15686 <lyxtabular version="3" rows="3" columns="3">
15688 <column alignment="center" valignment="top" width="0">
15689 <column alignment="center" valignment="top" width="0">
15690 <column alignment="center" valignment="top" width="0">
15692 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15695 \begin_layout Plain Layout
15701 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15704 \begin_layout Plain Layout
15710 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15713 \begin_layout Plain Layout
15721 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15724 \begin_layout Plain Layout
15730 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15733 \begin_layout Plain Layout
15739 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15742 \begin_layout Plain Layout
15750 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15753 \begin_layout Plain Layout
15759 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15762 \begin_layout Plain Layout
15768 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
15771 \begin_layout Plain Layout
15790 \begin_layout Standard
15791 To return to the default line color black, insert this command in TeX-Code
15792 behind the table or table float:
15795 \begin_layout Standard
15807 \begin_layout Standard
15809 \begin_inset space ~
15813 \begin_inset CommandInset ref
15815 reference "tab:Table-with-colored"
15819 is an example with colored vertical and horizontal lines.
15822 \begin_layout Standard
15823 \begin_inset Float table
15829 \begin_layout Plain Layout
15830 \begin_inset Caption
15832 \begin_layout Plain Layout
15833 \begin_inset CommandInset label
15835 name "tab:Table-with-colored"
15839 Table with colored lines
15847 \begin_layout Plain Layout
15849 \begin_inset Tabular
15850 <lyxtabular version="3" rows="3" columns="3">
15852 <column alignment="center" valignment="top" width="0" special="Wc">
15853 <column alignment="center" valignment="top" width="0" special="Wc">
15854 <column alignment="center" valignment="top" width="0" special="WcW">
15856 <cell alignment="center" valignment="top" topline="true" usebox="none">
15859 \begin_layout Plain Layout
15865 <cell alignment="center" valignment="top" topline="true" usebox="none">
15868 \begin_layout Plain Layout
15874 <cell alignment="center" valignment="top" topline="true" usebox="none">
15877 \begin_layout Plain Layout
15885 <cell alignment="center" valignment="top" topline="true" usebox="none">
15888 \begin_layout Plain Layout
15894 <cell alignment="center" valignment="top" topline="true" usebox="none">
15897 \begin_layout Plain Layout
15903 <cell alignment="center" valignment="top" topline="true" usebox="none">
15906 \begin_layout Plain Layout
15913 <row topspace="default">
15914 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15917 \begin_layout Plain Layout
15923 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15926 \begin_layout Plain Layout
15932 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15935 \begin_layout Plain Layout
15954 \begin_layout Standard
15958 \begin_layout Plain Layout
15974 \begin_layout Standard
15978 \begin_layout Plain Layout
15984 arrayrulewidth}{0.4pt}
15992 \begin_layout Section
15993 Table Customization
15997 \begin_layout Plain Layout
15998 Table Customization
16007 \begin_layout Plain Layout
16008 Table ! Customization
16016 \begin_layout Subsection
16018 \begin_inset CommandInset label
16020 name "sub:Row-Spacing"
16028 \begin_layout Plain Layout
16029 Table Customization ! Row Spacing
16037 \begin_layout Standard
16038 You can add vertical space to table rows in the
16042 tab of the table dialog.
16043 You find there three possibilities:
16046 \begin_layout Description
16048 \begin_inset space ~
16052 \begin_inset space ~
16055 row will add space above the characters of the table row.
16056 If the table is a formal table
16060 \begin_layout Plain Layout
16061 Formal tables are explained in section
16062 \begin_inset space ~
16066 \begin_inset CommandInset ref
16068 reference "sec:Formal-Tables"
16077 LyX will insert as default 0.5
16078 \begin_inset space \thinspace{}
16082 For normal tables the inserted space will unfortunately destroy the vertical
16083 table lines as in the following table:
16084 \begin_inset VSpace medskip
16088 \begin_inset Newline newline
16092 \begin_inset space \hspace*{}
16097 \begin_inset space \hfill{}
16101 \begin_inset Tabular
16102 <lyxtabular version="3" rows="3" columns="1">
16104 <column alignment="center" valignment="top" width="0">
16106 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16109 \begin_layout Plain Layout
16116 <row topspace="3mm">
16117 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16120 \begin_layout Plain Layout
16122 \begin_inset space \thinspace{}
16125 mm space top of row
16132 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16135 \begin_layout Plain Layout
16147 \begin_inset space \hfill{}
16151 \begin_inset space \hspace*{}
16156 \begin_inset VSpace medskip
16160 \begin_inset Newline newline
16163 So inserting space to the top of row for normal tables is only useful when
16164 you don't have vertical lines.
16167 \begin_layout Description
16169 \begin_inset space ~
16173 \begin_inset space ~
16176 row will add space below the characters of the table row.
16177 If the table is a formal table LyX will insert as default 0.5
16178 \begin_inset space \thinspace{}
16181 em space, for normal tables the default size is 2
16182 \begin_inset space \thinspace{}
16188 \begin_layout Description
16190 \begin_inset space ~
16193 rows adds space between the current and the following row.
16194 If the table is a formal table LyX will insert as default 0.5
16195 \begin_inset space \thinspace{}
16199 For normal tables the inserted space will unfortunately destroy the vertical
16200 table lines as in the following table:
16201 \begin_inset VSpace medskip
16205 \begin_inset Newline newline
16209 \begin_inset space \hspace*{}
16214 \begin_inset space \hfill{}
16218 \begin_inset Tabular
16219 <lyxtabular version="3" rows="3" columns="1">
16221 <column alignment="center" valignment="top" width="0">
16223 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16226 \begin_layout Plain Layout
16233 <row interlinespace="3mm">
16234 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16237 \begin_layout Plain Layout
16238 \begin_inset Formula $\downarrow$
16242 \begin_inset space \thinspace{}
16245 mm space between row
16246 \begin_inset Formula $\downarrow$
16256 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16259 \begin_layout Plain Layout
16260 \begin_inset Formula $\uparrow$
16264 \begin_inset space \thinspace{}
16267 mm space between row
16268 \begin_inset Formula $\uparrow$
16282 \begin_inset space \hfill{}
16286 \begin_inset space \hspace*{}
16291 \begin_inset VSpace medskip
16295 \begin_inset Newline newline
16298 So inserting space between rows for normal tables is only useful when you
16299 don't have vertical lines.
16302 \begin_layout Standard
16303 \begin_inset VSpace bigskip
16306 When you want to add extra height to all cells of all tables, you can do
16307 this with the following preamble lines:
16310 \begin_layout Standard
16315 @ifundefined{extrarowheight}
16316 \begin_inset Newline newline
16323 \begin_layout Plain Layout
16334 usepackage{array}}{}
16335 \begin_inset Newline newline
16342 extrarowheight}{height}
16345 \begin_layout Standard
16346 But this has the disadvantage that the cell texts are no longer exactly
16347 vertically centered.
16352 will be loaded automatically by LyX when you use self defined table formats.
16353 To avoid that it is loaded twice the command
16359 is used in the above command.)
16362 \begin_layout Subsection
16363 Special Cell Alignment
16367 \begin_layout Plain Layout
16368 Table Customization ! Special Cell Alignment
16376 \begin_layout Standard
16377 Sometimes it looks better when the cell entries of a column are aligned
16378 with a special character, e.
16379 \begin_inset space \thinspace{}
16383 \begin_inset space ~
16386 with the decimal separator as in Table
16387 \begin_inset space ~
16391 \begin_inset CommandInset ref
16393 reference "tab:Table-cells-of"
16400 \begin_layout Standard
16401 \begin_inset Float table
16407 \begin_layout Plain Layout
16408 \begin_inset Caption
16410 \begin_layout Plain Layout
16411 \begin_inset CommandInset label
16413 name "tab:Table-cells-of"
16417 Table cells of a column aligned with the decimal separator.
16425 \begin_layout Plain Layout
16427 \begin_inset Tabular
16428 <lyxtabular version="3" rows="4" columns="2">
16430 <column alignment="right" valignment="top" width="0">
16431 <column alignment="left" valignment="top" width="0" special="@{}l">
16433 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16436 \begin_layout Plain Layout
16442 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16445 \begin_layout Plain Layout
16453 <cell alignment="center" valignment="top" usebox="none">
16456 \begin_layout Plain Layout
16462 <cell alignment="center" valignment="top" usebox="none">
16465 \begin_layout Plain Layout
16473 <cell alignment="center" valignment="top" usebox="none">
16476 \begin_layout Plain Layout
16482 <cell alignment="center" valignment="top" usebox="none">
16485 \begin_layout Plain Layout
16493 <cell alignment="center" valignment="top" usebox="none">
16496 \begin_layout Plain Layout
16502 <cell alignment="center" valignment="top" usebox="none">
16505 \begin_layout Plain Layout
16524 \begin_layout Standard
16525 This table was created with a 4×2 table.
16526 The heading is a centered multicolumn.
16527 The first column is right-aligned and contains the digits before the decimal
16528 point and the decimal point.
16529 The second column is left aligned and contains the digits after the decimal
16531 To omit the space that is normally between two table columns, use the following
16532 LaTeX-argument for the second column:
16535 \begin_layout Standard
16541 \begin_layout Standard
16543 \begin_inset space ~
16547 \begin_inset CommandInset ref
16549 reference "tab:Several-table-cell"
16553 shows some example alignments.
16554 For the alignment with the relation sign, you must add the second smallest
16555 math-space at the beginning of the last column to get the correct space
16556 surrounding the relation sign.
16559 \begin_layout Standard
16560 \begin_inset Float table
16565 \begin_layout Plain Layout
16566 \begin_inset Caption
16568 \begin_layout Plain Layout
16569 \begin_inset CommandInset label
16571 name "tab:Several-table-cell"
16575 Several table cell alignments.
16583 \begin_layout Plain Layout
16585 \begin_inset Tabular
16586 <lyxtabular version="3" rows="4" columns="6">
16588 <column alignment="right" valignment="top" width="0">
16589 <column alignment="left" valignment="top" width="0" special="@{}l">
16590 <column alignment="right" valignment="top" width="0">
16591 <column alignment="left" valignment="top" width="0" special="@{}l">
16592 <column alignment="right" valignment="top" width="0">
16593 <column alignment="left" valignment="top" width="0" special="@{}l">
16595 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16598 \begin_layout Plain Layout
16604 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16607 \begin_layout Plain Layout
16613 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16616 \begin_layout Plain Layout
16622 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16625 \begin_layout Plain Layout
16631 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16634 \begin_layout Plain Layout
16640 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16643 \begin_layout Plain Layout
16651 <cell alignment="center" valignment="top" usebox="none">
16654 \begin_layout Plain Layout
16660 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16663 \begin_layout Plain Layout
16665 \begin_inset space \thinspace{}
16673 <cell alignment="center" valignment="top" usebox="none">
16676 \begin_layout Plain Layout
16677 \begin_inset Formula $10\cdot$
16685 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16688 \begin_layout Plain Layout
16689 \begin_inset Formula $10^{\mbox{-}17}$
16697 <cell alignment="center" valignment="top" usebox="none">
16700 \begin_layout Plain Layout
16701 \begin_inset Formula $\Gamma(t)\propto$
16709 <cell alignment="center" valignment="top" usebox="none">
16712 \begin_layout Plain Layout
16713 \begin_inset Formula $\:\Upsilon(t)$
16723 <cell alignment="center" valignment="top" usebox="none">
16726 \begin_layout Plain Layout
16732 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16735 \begin_layout Plain Layout
16737 \begin_inset space \thinspace{}
16745 <cell alignment="center" valignment="top" usebox="none">
16748 \begin_layout Plain Layout
16749 \begin_inset Formula $5.78\cdot$
16757 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16760 \begin_layout Plain Layout
16761 \begin_inset Formula $10^{7}$
16769 <cell alignment="center" valignment="top" usebox="none">
16772 \begin_layout Plain Layout
16773 \begin_inset Formula $A\ne$
16781 <cell alignment="center" valignment="top" usebox="none">
16784 \begin_layout Plain Layout
16785 \begin_inset Formula $\: B_{\mathrm{red}}$
16795 <cell alignment="center" valignment="top" usebox="none">
16798 \begin_layout Plain Layout
16804 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16807 \begin_layout Plain Layout
16809 \begin_inset space \thinspace{}
16817 <cell alignment="center" valignment="top" usebox="none">
16820 \begin_layout Plain Layout
16822 \begin_inset Formula $33.5\cdot$
16830 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16833 \begin_layout Plain Layout
16834 \begin_inset Formula $10^{4}$
16842 <cell alignment="center" valignment="top" usebox="none">
16845 \begin_layout Plain Layout
16846 \begin_inset Formula $\sin(\alpha)\ge$
16854 <cell alignment="center" valignment="top" usebox="none">
16857 \begin_layout Plain Layout
16858 \begin_inset Formula $\:\sin(\beta)$
16879 \begin_layout Standard
16880 \begin_inset VSpace bigskip
16883 There is also the LaTeX-package
16891 \begin_layout Plain Layout
16892 LaTeX-packages ! dcolumn
16897 that provides table cell alignments.
16898 But this unfortunately treats the cell entries as math and doesn't allow
16899 formulas in table cells: The first column of Table
16900 \begin_inset space ~
16904 \begin_inset CommandInset ref
16906 reference "tab:Several-table-cell"
16914 like the first column in Table
16915 \begin_inset space ~
16919 \begin_inset CommandInset ref
16921 reference "tab:Alignments-when"
16925 and only with some tricks like the expected.
16926 The alignment of the second and third column of Table
16927 \begin_inset space ~
16931 \begin_inset CommandInset ref
16933 reference "tab:Several-table-cell"
16937 is not possible with
16944 \begin_layout Standard
16945 \begin_inset Float table
16951 \begin_layout Plain Layout
16952 \begin_inset Caption
16954 \begin_layout Plain Layout
16955 \begin_inset CommandInset label
16957 name "tab:Alignments-when"
16961 Alignments when LaTeX-package dcolumn is used.
16962 For all column alignments tricks have to be used to get the output.
16970 \begin_layout Plain Layout
16972 \begin_inset Tabular
16973 <lyxtabular version="3" rows="4" columns="3">
16975 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{-1}">
16976 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{4.9}">
16977 <column alignment="center" valignment="top" width="0" special="D{~}{\,}{9.7}">
16979 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16982 \begin_layout Plain Layout
16988 <cell multicolumn="1" alignment="center" valignment="top" bottomline="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
17008 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17011 \begin_layout Plain Layout
17013 \begin_inset space \thinspace{}
17021 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17024 \begin_layout Plain Layout
17026 \begin_inset space \thinspace{}
17030 \begin_inset Formula $\mbox{bottles}$
17038 <cell alignment="center" valignment="top" usebox="none">
17041 \begin_layout Plain Layout
17046 \begin_layout Plain Layout
17056 \begin_inset Formula $\mbox{bottles}$
17066 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17069 \begin_layout Plain Layout
17071 \begin_inset space \thinspace{}
17079 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17082 \begin_layout Plain Layout
17084 \begin_inset space \thinspace{}
17088 \begin_inset Formula $\mbox{Pixels}$
17096 <cell alignment="center" valignment="top" usebox="none">
17099 \begin_layout Plain Layout
17104 \begin_layout Plain Layout
17114 \begin_inset Formula $\mbox{Pixels}$
17124 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17127 \begin_layout Plain Layout
17129 \begin_inset space \thinspace{}
17137 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17140 \begin_layout Plain Layout
17142 \begin_inset space \thinspace{}
17146 \begin_inset Formula $\mbox{cm}$
17154 <cell alignment="center" valignment="top" usebox="none">
17157 \begin_layout Plain Layout
17162 \begin_layout Plain Layout
17172 \begin_inset Formula $\mbox{cm}$
17193 \begin_layout Subsection
17194 Customized Cell/Column Format
17195 \begin_inset CommandInset label
17197 name "sub:Customized-Format"
17205 \begin_layout Plain Layout
17206 Table Customization ! Cell/Column Format
17214 \begin_layout Standard
17215 Calculating the needed width for spanned columns like in section
17216 \begin_inset space ~
17220 \begin_inset CommandInset ref
17222 reference "sub:Multicolumn-Calculations"
17226 is very annoying if you have several tables with multicolumn cells.
17227 To make life easier, you can define a cell/column format in the preamble,
17228 so that it can be used in all tables of the document.
17229 The format is defined with the command
17232 \begin_layout Standard
17237 newcolumntype{name of format}[number of arguments]{commands}
17240 \begin_layout Standard
17241 The format name may only consist of one letter.
17266 are predefined and cannot be used.
17267 But all letters are allowed as capitals.
17270 \begin_layout Standard
17271 \begin_inset VSpace medskip
17277 \begin_layout Standard
17278 For vertically and horizontally centered multicolumn cells with a fixed
17279 width you can define the cell format
17282 \begin_layout Standard
17287 newcolumntype{M}[1]{>{
17294 \begin_layout Standard
17301 avoids the problem of hyphenating the first word, as described in section
17302 \begin_inset space ~
17306 \begin_inset CommandInset ref
17308 reference "sub:Multiple-Lines-in"
17313 Now you can simply enter
17316 \begin_layout Standard
17322 \begin_layout Standard
17323 as LaTeX-argument in the table dialog to create a multicolumn.
17326 \begin_layout Standard
17327 \begin_inset VSpace bigskip
17333 \begin_layout Standard
17334 For cells spanned by a multicolumn cell, you can define the format
17337 \begin_layout Standard
17342 newcolumntype{S}[2]{>{
17347 \begin_inset Newline newline
17354 \begin_layout Plain Layout
17369 \begin_layout Plain Layout
17380 arrayrulewidth)*(1-#2))/#2}}
17383 \begin_layout Standard
17384 This format uses equation
17385 \begin_inset CommandInset ref
17391 to calculate the needed width so that each spanned cell has the same width.
17394 \begin_layout Standard
17398 \begin_layout Standard
17401 S{width of multicolumn cell}{number of spanned columns}
17404 \begin_layout Standard
17405 as LaTeX-argument of the column.
17408 \begin_layout Standard
17409 \begin_inset VSpace bigskip
17415 \begin_layout Standard
17416 For colored columns, you can define
17419 \begin_layout Standard
17424 newcolumntype{K}[1]{>{
17431 \begin_layout Standard
17433 \begin_inset Quotes eld
17437 \begin_inset Quotes erd
17440 at the end creates a column with a flexible width whose text is horizontally
17445 \begin_layout Standard
17451 \begin_layout Standard
17455 \begin_layout Standard
17456 \begin_inset VSpace bigskip
17462 \begin_layout Standard
17464 \begin_inset space ~
17468 \begin_inset CommandInset ref
17470 reference "tab:Table-using-user-defined"
17474 use the LaTeX-arguments
17477 \begin_layout Standard
17483 \begin_layout Standard
17484 for the first column and the multicolumn,
17487 \begin_layout Standard
17493 \begin_layout Standard
17494 for the the last column, and
17497 \begin_layout Standard
17503 \begin_layout Standard
17504 for the cells in the second column.
17507 \begin_layout Standard
17508 \begin_inset Float table
17514 \begin_layout Plain Layout
17515 \begin_inset Caption
17517 \begin_layout Plain Layout
17518 \begin_inset CommandInset label
17520 name "tab:Table-using-user-defined"
17524 Table using user-defined table formats
17532 \begin_layout Plain Layout
17534 \begin_inset Tabular
17535 <lyxtabular version="3" rows="3" columns="4">
17537 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
17538 <column alignment="center" valignment="middle" width="0" special="S{2.5cm}{2}">
17539 <column alignment="center" valignment="middle" width="0">
17540 <column alignment="center" valignment="middle" width="0" special="K{red}">
17542 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17545 \begin_layout Plain Layout
17546 verylongtablecellword
17551 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
17554 \begin_layout Plain Layout
17555 multiple lines multicolumn
17560 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17563 \begin_layout Plain Layout
17569 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17572 \begin_layout Plain Layout
17580 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17583 \begin_layout Plain Layout
17589 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17592 \begin_layout Plain Layout
17598 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17601 \begin_layout Plain Layout
17607 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17610 \begin_layout Plain Layout
17618 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17621 \begin_layout Plain Layout
17627 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17630 \begin_layout Plain Layout
17636 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17639 \begin_layout Plain Layout
17645 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17648 \begin_layout Plain Layout
17667 \begin_layout Subsection
17669 \begin_inset CommandInset label
17671 name "sub:Line-Thickness"
17679 \begin_layout Plain Layout
17680 Table Customization ! Line Thickness
17688 \begin_layout Standard
17689 The line thickness for all lines in a table can be adjusted with the length
17697 To set for example a line thickness of 1.5
17698 \begin_inset space \thinspace{}
17702 \begin_inset space ~
17706 \begin_inset CommandInset ref
17708 reference "tab:Table-with-1.5"
17712 , insert the command
17715 \begin_layout Standard
17722 arrayrulewidth}{1.5pt}
17725 \begin_layout Standard
17726 in TeX-Code before the table or table float.
17727 The changed thickness is valid for all following tables.
17728 To use the default value again, set
17735 \begin_inset space \thinspace{}
17738 pt in TeX-Code behind the table or table float.
17741 \begin_layout Standard
17745 \begin_layout Plain Layout
17751 arrayrulewidth}{1.5pt}
17757 \begin_inset Float table
17762 \begin_layout Plain Layout
17763 \begin_inset Caption
17765 \begin_layout Plain Layout
17766 \begin_inset CommandInset label
17768 name "tab:Table-with-1.5"
17773 \begin_inset space \thinspace{}
17784 \begin_layout Plain Layout
17786 \begin_inset Tabular
17787 <lyxtabular version="3" rows="3" columns="3">
17789 <column alignment="center" valignment="top" width="0">
17790 <column alignment="center" valignment="top" width="0">
17791 <column alignment="center" valignment="top" width="0">
17793 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17796 \begin_layout Plain Layout
17802 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17805 \begin_layout Plain Layout
17811 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17814 \begin_layout Plain Layout
17822 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17825 \begin_layout Plain Layout
17831 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17834 \begin_layout Plain Layout
17840 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17843 \begin_layout Plain Layout
17851 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17854 \begin_layout Plain Layout
17860 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17863 \begin_layout Plain Layout
17869 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17872 \begin_layout Plain Layout
17892 \begin_layout Plain Layout
17898 arrayrulewidth}{0.4pt}
17906 \begin_layout Standard
17907 \begin_inset VSpace bigskip
17910 To set the line thickness to 1.5
17911 \begin_inset space \thinspace{}
17914 pt only for horizontal lines, like in Table
17915 \begin_inset space ~
17919 \begin_inset CommandInset ref
17921 reference "tab:Table-with-horizontal"
17925 , insert these commands in TeX-Code before the table or table float:
17928 \begin_layout Standard
17938 \begin_inset Newline newline
17946 \begin_inset Newline newline
17955 arrayrulewidth 1.5pt}
17956 \begin_inset Newline newline
17967 arrayrulewidth 0.4pt}}
17970 \begin_layout Standard
17971 To return to the default line thickness, insert this command in TeX-Code
17972 behind the table or table float:
17975 \begin_layout Standard
17987 \begin_layout Standard
17991 \begin_layout Plain Layout
18002 \begin_layout Plain Layout
18011 \begin_layout Plain Layout
18019 arrayrulewidth 1.5pt}
18022 \begin_layout Plain Layout
18032 arrayrulewidth 0.4pt}}
18038 \begin_inset Float table
18043 \begin_layout Plain Layout
18044 \begin_inset Caption
18046 \begin_layout Plain Layout
18047 \begin_inset CommandInset label
18049 name "tab:Table-with-horizontal"
18054 \begin_inset space \thinspace{}
18057 pt thick horizontal lines
18065 \begin_layout Plain Layout
18067 \begin_inset Tabular
18068 <lyxtabular version="3" rows="3" columns="3">
18070 <column alignment="center" valignment="top" width="0">
18071 <column alignment="center" valignment="top" width="0">
18072 <column alignment="center" valignment="top" width="0">
18074 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18077 \begin_layout Plain Layout
18083 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18086 \begin_layout Plain Layout
18092 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18095 \begin_layout Plain Layout
18103 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18106 \begin_layout Plain Layout
18112 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18115 \begin_layout Plain Layout
18121 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18124 \begin_layout Plain Layout
18132 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18135 \begin_layout Plain Layout
18141 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18144 \begin_layout Plain Layout
18150 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18153 \begin_layout Plain Layout
18173 \begin_layout Plain Layout
18189 \begin_layout Standard
18190 \begin_inset VSpace bigskip
18193 To set the line thickness to 1.5
18194 \begin_inset space \thinspace{}
18197 pt only for vertical lines, create the following column format in the document
18198 preamble, according to the description in section
18199 \begin_inset space ~
18203 \begin_inset CommandInset ref
18205 reference "sub:Customized-Format"
18212 \begin_layout Standard
18217 newcolumntype{V}{!{
18219 vrule width 1.5pt}}
18222 \begin_layout Standard
18224 \begin_inset space ~
18228 \begin_inset CommandInset ref
18230 reference "tab:Table-with-vertical"
18237 \begin_layout Standard
18243 \begin_layout Standard
18244 was used for the last column and
18247 \begin_layout Standard
18253 \begin_layout Standard
18254 for the other columns.
18257 \begin_layout Standard
18258 \begin_inset Float table
18263 \begin_layout Plain Layout
18264 \begin_inset Caption
18266 \begin_layout Plain Layout
18267 \begin_inset CommandInset label
18269 name "tab:Table-with-vertical"
18274 \begin_inset space \thinspace{}
18277 pt thick vertical lines
18285 \begin_layout Plain Layout
18287 \begin_inset Tabular
18288 <lyxtabular version="3" rows="3" columns="3">
18290 <column alignment="center" valignment="top" width="0" special="Vc">
18291 <column alignment="center" valignment="top" width="0" special="Vc">
18292 <column alignment="center" valignment="top" width="0" special="VcV">
18294 <cell alignment="center" valignment="top" topline="true" usebox="none">
18297 \begin_layout Plain Layout
18303 <cell alignment="center" valignment="top" topline="true" usebox="none">
18306 \begin_layout Plain Layout
18312 <cell alignment="center" valignment="top" topline="true" usebox="none">
18315 \begin_layout Plain Layout
18323 <cell alignment="center" valignment="top" topline="true" usebox="none">
18326 \begin_layout Plain Layout
18332 <cell alignment="center" valignment="top" topline="true" usebox="none">
18335 \begin_layout Plain Layout
18341 <cell alignment="center" valignment="top" topline="true" usebox="none">
18344 \begin_layout Plain Layout
18352 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18355 \begin_layout Plain Layout
18361 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18364 \begin_layout Plain Layout
18370 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18373 \begin_layout Plain Layout
18392 \begin_layout Subsection
18397 \begin_layout Plain Layout
18398 Table Customization ! Dashed Lines
18406 \begin_layout Standard
18410 \begin_layout Plain Layout
18420 \begin_inset Note Note
18423 \begin_layout Plain Layout
18424 The following section will only be displayed when the LaTeX-package
18436 \begin_layout Standard
18437 \begin_inset Float table
18443 \begin_layout Plain Layout
18444 \begin_inset Caption
18446 \begin_layout Plain Layout
18447 \begin_inset CommandInset label
18449 name "tab:Table-with-dashed"
18453 Table with dashed lines
18461 \begin_layout Plain Layout
18463 \begin_inset Tabular
18464 <lyxtabular version="3" rows="5" columns="5">
18466 <column alignment="center" valignment="top" width="0">
18467 <column alignment="center" valignment="top" width="0">
18468 <column alignment="center" valignment="top" width="0" special=":c">
18469 <column alignment="center" valignment="top" width="0">
18470 <column alignment="center" valignment="top" width="0">
18472 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18475 \begin_layout Plain Layout
18481 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18484 \begin_layout Plain Layout
18490 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18493 \begin_layout Plain Layout
18499 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18502 \begin_layout Plain Layout
18508 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18511 \begin_layout Plain Layout
18519 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18522 \begin_layout Plain Layout
18528 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18531 \begin_layout Plain Layout
18537 <cell alignment="center" valignment="top" topline="true" usebox="none">
18540 \begin_layout Plain Layout
18546 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18549 \begin_layout Plain Layout
18555 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18558 \begin_layout Plain Layout
18566 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18569 \begin_layout Plain Layout
18573 \begin_layout Plain Layout
18587 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18590 \begin_layout Plain Layout
18596 <cell alignment="center" valignment="top" usebox="none">
18599 \begin_layout Plain Layout
18605 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18608 \begin_layout Plain Layout
18614 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
18617 \begin_layout Plain Layout
18625 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18628 \begin_layout Plain Layout
18632 \begin_layout Plain Layout
18646 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18649 \begin_layout Plain Layout
18655 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
18658 \begin_layout Plain Layout
18664 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none" special="c:">
18667 \begin_layout Plain Layout
18673 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18676 \begin_layout Plain Layout
18684 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18687 \begin_layout Plain Layout
18693 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18696 \begin_layout Plain Layout
18702 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18705 \begin_layout Plain Layout
18711 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18714 \begin_layout Plain Layout
18720 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18723 \begin_layout Plain Layout
18742 \begin_layout Standard
18743 LyX doesn't natively support dashed lines, so you have to use TeX-Code.
18744 As prerequisite the LaTeX-package
18752 \begin_layout Plain Layout
18753 LaTeX-packages ! arydshln
18758 must be loaded in the document preamble with the command
18761 \begin_layout Standard
18766 usepackage{arydshln}
18769 \begin_layout Standard
18770 To make a vertical line dashed, enter the colon
18771 \begin_inset Quotes eld
18775 \begin_inset Quotes erd
18778 together with the character for the horizontal alignment as LaTeX-argument
18779 in the table cell dialog.
18782 \begin_layout Standard
18783 For a horizontal dashed line add the command
18786 \begin_layout Standard
18794 \begin_layout Standard
18795 in TeX-Code as first element of the first cell in the table row.
18798 \begin_layout Standard
18799 For dashed multicolumn lines use the command
18802 \begin_layout Standard
18807 cdashline{line number
18812 \begin_layout Standard
18813 in TeX-Code as first element of the first cell in the table row.
18814 If you have for example a multicolumn spanning over columns 2 to 4 and
18815 you want to have a dashed line above, add the command
18818 \begin_layout Standard
18826 \begin_layout Standard
18827 as first element of the first cell in the row of the multicolumn.
18830 \begin_layout Standard
18831 \begin_inset VSpace bigskip
18837 \begin_layout Standard
18839 \begin_inset space ~
18843 \begin_inset CommandInset ref
18845 reference "tab:Table-with-dashed"
18850 \begin_inset Quotes eld
18858 \begin_inset Quotes erd
18861 as LaTeX-argument of the third column.
18862 The TeX-Code command
18868 was inserted to the first cell of the third row and the the TeX-Code command
18869 \begin_inset Newline newline
18878 was inserted to the first cell of the fourth row.
18881 \begin_layout Standard
18882 \begin_inset Note Greyedout
18885 \begin_layout Plain Layout
18890 The used LaTeX-package
18894 is apparently not compatible with the LaTeX-package
18902 \begin_layout Plain Layout
18903 LaTeX-packages ! colortbl
18908 that is used for colored tables in section
18909 \begin_inset space ~
18913 \begin_inset CommandInset ref
18915 reference "sec:Colored-Tables"
18920 That means colored tables cannot have dashed lines.
18928 \begin_layout Standard
18932 \begin_layout Plain Layout
18942 \begin_inset Note Note
18945 \begin_layout Plain Layout
18946 The following will be displayed when the LaTeX-package
18958 \begin_layout Standard
18959 You need to install the package
18963 to see the content of this section in the output.
18966 \begin_layout Standard
18970 \begin_layout Plain Layout
18982 \begin_layout Chapter
18987 \begin_layout Plain Layout
18994 \begin_inset CommandInset label
19003 \begin_layout Section
19005 \begin_inset CommandInset label
19007 name "sec:FloatIntroduction"
19015 \begin_layout Plain Layout
19016 Floats ! Introduction
19024 \begin_layout Standard
19025 A float is a block of text associated with some sort of label, which doesn't
19026 have a fixed location.
19028 \begin_inset Quotes eld
19032 \begin_inset Quotes erd
19035 forward or backward a page or two, to wherever it fits best.
19043 \begin_inset space ~
19048 are also floats, because they can float to the next page when there are
19049 too many notes at the page.
19052 \begin_layout Standard
19053 Floats allow a high quality layout.
19054 Images and tables can evenly be spread to the pages to avoid white space
19055 and pages without text.
19056 As the floating often destroys the context between the text and the image/table
19057 , every float can be referenced in the text.
19058 Floats are therefore numbered.
19059 Referencing is described in section
19060 \begin_inset space ~
19064 \begin_inset CommandInset ref
19066 reference "sec:Referencing-Floats"
19073 \begin_layout Standard
19074 To insert a float, use the menu
19076 Insert\SpecialChar \menuseparator
19084 inset, a box with a label.
19085 The label will automatically be translated to the document language in
19087 Behind the label you can insert the caption text.
19088 The image or table is inserted above or below the caption in a separate
19089 paragraph within the float.
19090 More about the caption placement is described in section
19091 \begin_inset space ~
19095 \begin_inset CommandInset ref
19097 reference "sec:Caption-Placement"
19102 To keep your LyX-document readable, you can open and close the float box
19103 by left-clicking on the box label.
19104 A closed float box looks like this:
19105 \begin_inset Graphics
19106 filename clipart/floatQt4.png
19108 scaleBeforeRotation
19112 -- a gray button with a red label.
19115 \begin_layout Standard
19116 It is recommended to insert floats as a separate paragraph to avoid possible
19117 LaTeX-errors that can occur when the surrounding text is specially formatted.
19120 \begin_layout Standard
19121 Existing figures or tables can be put into a float by marking them and then
19122 pressing the corresponding toolbar button for a new float.
19125 \begin_layout Section
19129 \begin_layout Standard
19130 Besides figure and table floats that are described in section
19131 \begin_inset space ~
19135 \begin_inset CommandInset ref
19137 reference "sec:Figure-Floats"
19142 \begin_inset CommandInset ref
19144 reference "sec:Table-Floats"
19148 , respectively, LyX offers the float types
19159 \begin_layout Subsection
19164 \begin_layout Plain Layout
19165 Floats ! Algorithms
19171 \begin_inset CommandInset label
19173 name "sub:Algorithm-Floats"
19180 \begin_layout Standard
19181 \begin_inset Float algorithm
19187 \begin_layout Plain Layout
19188 \begin_inset Caption
19190 \begin_layout Plain Layout
19191 \begin_inset CommandInset label
19193 name "alg:Example-Algorithm-float"
19197 Example Algorithm float
19205 \begin_layout LyX-Code
19207 \begin_inset Newline newline
19210 Sum:= Sum + A(I); /*comment*/
19211 \begin_inset Newline newline
19215 \begin_inset VSpace -4mm
19226 \begin_layout Standard
19227 This float type is inserted with the menu
19229 Insert\SpecialChar \menuseparator
19230 Floats\SpecialChar \menuseparator
19234 It is used for program codes and descriptions of algorithms.
19235 A possible environment for algorithms is the
19239 , described in LyX's
19245 \begin_inset space ~
19249 \begin_inset CommandInset ref
19251 reference "alg:Example-Algorithm-float"
19255 is an example of an algorithm float where -4
19256 \begin_inset space \thinspace{}
19259 mm vertical space was added at the end of the float to have the bottom rule
19260 exactly below the last text line.
19263 \begin_layout Standard
19264 The float label is not automatically translated into the document language.
19265 If your document is not in English, you have to do this manually by adding
19266 the following line to the document preamble
19271 \begin_layout Standard
19276 floatname{algorithm}{your
19277 \begin_inset space ~
19283 \begin_layout Standard
19287 \begin_inset space ~
19293 \begin_inset Quotes eld
19301 \begin_inset Quotes erd
19307 \begin_layout Standard
19308 To insert the list of algorithms you can not use the menu
19310 Insert\SpecialChar \menuseparator
19312 \begin_inset space \thinspace{}
19316 \begin_inset space \thinspace{}
19319 TOC\SpecialChar \menuseparator
19322 when your document is a non-English one.
19323 In this case use this command in TeX-Code instead:
19326 \begin_layout Standard
19331 listof{algorithm}{your
19332 \begin_inset space ~
19338 \begin_layout Standard
19342 \begin_inset space ~
19348 \begin_inset Quotes eld
19356 \begin_inset Quotes erd
19362 \begin_layout Standard
19363 Algorithm floats are not by default numbered in the scheme
19364 \begin_inset Quotes eld
19368 \begin_inset Quotes erd
19371 like it is the case for table and figure floats in many document-classes.
19372 To number algorithm floats in the same scheme, add this command to your
19376 \begin_layout Standard
19381 numberwithin{algorithm}{chapter}
19384 \begin_layout Standard
19385 To be able to use the command
19394 \begin_inset space ~
19399 in the document settings the option
19402 \begin_inset space ~
19406 \begin_inset space ~
19410 \begin_inset space ~
19418 \begin_layout Subsection
19423 \begin_layout Plain Layout
19424 Floats ! Wrap Floats
19430 \begin_inset CommandInset label
19432 name "sub:wrap-floats"
19439 \begin_layout Standard
19440 \begin_inset Wrap figure
19447 \begin_layout Plain Layout
19448 \begin_inset Graphics
19449 filename clipart/mobius.eps
19451 scaleBeforeRotation
19452 rotateOrigin center
19459 \begin_layout Plain Layout
19460 \begin_inset Caption
19462 \begin_layout Plain Layout
19463 \begin_inset CommandInset label
19465 name "fig:This-is-a"
19469 This is a figure wrap float.
19479 This float type is used if you want to wrap text around a figure or table
19480 so that it only occupies some fraction of the column width.
19481 It can be inserted using the menu
19483 Insert\SpecialChar \menuseparator
19484 Floats\SpecialChar \menuseparator
19486 \begin_inset space ~
19490 \begin_inset space ~
19498 \begin_inset space ~
19502 \begin_inset space ~
19507 if the LaTeX-package
19515 \begin_layout Plain Layout
19516 LaTeX-packages ! wrapfig
19520 \begin_layout Plain Layout
19538 \begin_layout Plain Layout
19539 Installing a LaTeX-package is explained it in the
19542 \begin_inset space ~
19552 The settings of the float can be modified by right-clicking on the float
19554 The mandatory settings are the float
19567 that specifies how much the float is set into the paragraph
19568 \begin_inset space \thinspace{}
19572 \begin_inset space \thinspace{}
19575 page margin, and the
19578 \begin_inset space ~
19583 that specifies how many text lines the float will approximately need.
19584 The line span is often hard to be approximated, so better only use it when
19585 you encounter float placement problems.
19586 You can furthermore decide if LaTeX is allowed to let the float float within
19587 the paragraph or to surrounding paragraphs.
19589 \begin_inset space ~
19593 \begin_inset CommandInset ref
19595 reference "fig:This-is-a"
19599 is an example text wrap float with a width of 40
19600 \begin_inset space \thinspace{}
19604 \begin_inset space \thinspace{}
19607 cm overhang, set to the left.
19611 \begin_layout Plain Layout
19612 Available units are explained in appendix
19613 \begin_inset space ~
19617 \begin_inset CommandInset ref
19619 reference "cha:Units-available-in"
19631 \begin_layout Standard
19632 \begin_inset Note Greyedout
19635 \begin_layout Plain Layout
19641 \begin_inset space ~
19644 wrap float floats are fragile! E.
19645 \begin_inset space \thinspace{}
19649 \begin_inset space ~
19652 having a figure too close to the bottom of the page can mess things up in
19653 the way that the float doesn't appear in the output or that it is placed
19654 over some other text.
19662 \begin_layout Standard
19666 \begin_layout Itemize
19667 Wrap floats should not be placed in paragraphs that run over a page break.
19668 That means that wrap floats should better be inserted to the exact place
19669 when the document is nearly finished and you are able to estimate where
19670 page breaks will appear.
19673 \begin_layout Itemize
19674 Wrap floats should either be placed in an own paragraph before the paragraph
19675 where they should wrap into or within a paragraph.
19678 \begin_layout Itemize
19679 Wrap floats in consecutive paragraphs may cause troubles, so assure that
19680 there is a text paragraph between them as separator.
19683 \begin_layout Itemize
19684 Wrap floats are not allowed in section headings or tables.
19687 \begin_layout Section
19689 \begin_inset CommandInset label
19691 name "sec:Float-Numbering"
19699 \begin_layout Plain Layout
19708 \begin_layout Standard
19709 Floats are usually numbered either independent from the sections the floats
19710 are in, or in the scheme
19711 \begin_inset Quotes eld
19715 \begin_inset Quotes erd
19719 \begin_inset Quotes eld
19723 \begin_inset Quotes erd
19727 This depends on the used document class.
19730 \begin_layout Standard
19731 To change the section independent numbering, you can use this command in
19732 the document preamble:
19735 \begin_layout Standard
19747 \begin_layout Standard
19754 is the command that prints the table number, for figure floats, the command
19768 prints in the command above the table number as small roman number.
19771 \begin_layout Standard
19772 To change the numbering scheme for example to
19773 \begin_inset Quotes eld
19777 \begin_inset Quotes erd
19780 , use this command in the preamble:
19783 \begin_layout Standard
19788 numberwithin{table}{subsection}
19791 \begin_layout Standard
19792 To be able to use the command
19801 \begin_inset space ~
19806 in the document settings the option
19809 \begin_inset space ~
19813 \begin_inset space ~
19817 \begin_inset space ~
19825 \begin_layout Standard
19826 Please also have a look at section
19827 \begin_inset space ~
19831 \begin_inset CommandInset ref
19833 reference "sub:Footnote-Numbering"
19837 for the details and important notes about the numbering commands.
19840 \begin_layout Section
19842 \begin_inset CommandInset label
19844 name "sec:Referencing-Floats"
19852 \begin_layout Plain Layout
19853 Floats ! References
19862 \begin_layout Plain Layout
19863 References ! to Floats
19871 \begin_layout Standard
19872 To reference a float, insert a label into its caption using the menu
19874 Insert\SpecialChar \menuseparator
19877 or the toolbar button
19878 \begin_inset Graphics
19879 filename ../images/label-insert.png
19881 scaleBeforeRotation
19886 A grey label box like this one:
19887 \begin_inset Graphics
19888 filename clipart/labelQt4.png
19890 scaleBeforeRotation
19894 will be inserted and the label window pops up asking for the label text.
19895 LyX offers as text the first words of the caption with a prefix.
19896 The prefix depends on the float type, e.
19897 \begin_inset space \thinspace{}
19901 \begin_inset space ~
19904 for figure floats the prefix will be "
19911 \begin_layout Standard
19912 The label is used as anchor and name for the reference.
19913 You can refer to the label using the menu
19915 Insert\SpecialChar \menuseparator
19918 or the toolbar button
19919 \begin_inset Graphics
19920 filename ../images/dialog-show-new-inset_ref.png
19922 scaleBeforeRotation
19927 A grey cross-reference box like this one:
19928 \begin_inset Graphics
19929 filename clipart/referenceQt4.png
19931 scaleBeforeRotation
19935 will be inserted and the cross-reference window appear showing all labels
19937 If you have multiple LyX-documents opened, choose the one you are working
19938 on from the drop-list at the top of the dialog.
19939 You can now sort the labels alphabetically and then choose one.
19940 At the position of the cross-reference box the float number will appear
19944 \begin_layout Standard
19945 It is recommended to use a protected space between the cross-reference name
19946 and its number to avoid line breaks between them.
19947 If a cross-reference refers to a non-existing label, you will see two question
19948 marks in the output instead of the reference.
19951 \begin_layout Standard
19952 You can change labels at any time by clicking on the label box.
19953 References to the changed label will automatically change its link to the
19954 new label text, so that you don't need to take care about this.
19957 \begin_layout Standard
19961 \begin_inset space ~
19965 \begin_inset space ~
19970 in the cross-reference window sets the cursor before the referred label.
19971 The button text changes then to Go
19972 \begin_inset space ~
19975 Back and you can use it to set the cursor back to the cross-reference.
19976 Right-clicking on a cross-reference box also sets the cursor before the
19977 referenced label but without a possibility to go back.
19980 \begin_layout Subsection
19981 Cross-Reference Formats
19982 \begin_inset CommandInset label
19984 name "sub:Cross-Reference-Formats"
19992 \begin_layout Plain Layout
19993 References ! Formats
20001 \begin_layout Standard
20002 There are six varieties of cross-references:
20005 \begin_layout Description
20006 <reference>: prints the float number, this is the default:
20007 \begin_inset CommandInset ref
20009 reference "fig:Two-distorted-images"
20016 \begin_layout Description
20017 (<reference>): prints the float number within two parentheses, this is the
20018 style normally used to reference formulas, especially when the reference
20020 \begin_inset Quotes eld
20024 \begin_inset Quotes erd
20028 \begin_inset CommandInset ref
20037 \begin_layout Description
20038 <page>: prints the page number: Page
20039 \begin_inset space ~
20043 \begin_inset CommandInset ref
20044 LatexCommand pageref
20045 reference "fig:Two-distorted-images"
20052 \begin_layout Description
20054 \begin_inset space ~
20058 \begin_inset space ~
20061 <page>: prints the text "on page" and the page number:
20062 \begin_inset CommandInset ref
20063 LatexCommand vpageref
20064 reference "fig:Two-distorted-images"
20071 \begin_layout Description
20073 \begin_inset space ~
20077 \begin_inset space ~
20081 \begin_inset space ~
20084 <page>: prints the float number, the text "on page", and the page number:
20086 \begin_inset CommandInset ref
20088 reference "fig:Two-distorted-images"
20095 \begin_layout Description
20097 \begin_inset space ~
20100 reference: prints a self defined cross-reference format.
20102 \begin_inset Note Greyedout
20105 \begin_layout Plain Layout
20110 This feature is only available when you have the LaTeX-package
20122 \begin_layout Standard
20123 Note that the style <page> won't print the page number if the label is on
20124 the previous, the same, or the next page.
20126 \begin_inset space \thinspace{}
20130 \begin_inset space ~
20134 \begin_inset Quotes eld
20142 \begin_inset Quotes erd
20148 \begin_layout Standard
20149 The number and current page of the referred document part in the output,
20150 is automatically calculated by LaTeX.
20151 The varieties are adjusted in the field
20155 of the cross-reference window, that appear when you click on the cross-referenc
20159 \begin_layout Subsection
20160 Automatic Reference Naming
20164 \begin_layout Plain Layout
20165 References ! Automatic Reference Naming
20173 \begin_layout Standard
20182 \begin_layout Plain Layout
20183 LaTeX-packages ! hyperref
20188 , that is enabled in the
20196 dialog, provides a very useful feature that cross-references automatically
20197 include the name of the referenced floats (or text parts like
20202 So you will save to write e.
20203 \begin_inset space \thinspace{}
20207 \begin_inset space ~
20211 \begin_inset Quotes eld
20215 \begin_inset Quotes erd
20218 before every reference to a figure.
20219 To use this feature, enable
20223 and insert this line to the LaTeX preamble:
20226 \begin_layout Standard
20242 \begin_layout Standard
20243 When you prefer other reference names than the default ones, for example
20244 you want instead of
20245 \begin_inset Quotes eld
20249 \begin_inset Quotes erd
20253 \begin_inset Quotes eld
20257 \begin_inset space \thinspace{}
20261 \begin_inset Quotes eld
20264 , you can redefine the name by inserting this to the preamble:
20267 \begin_layout Standard
20278 sectionautorefname}
20279 \begin_inset Newline newline
20286 \begin_layout Plain Layout
20300 \begin_layout Standard
20301 When you are using another document language than English, replace
20302 \begin_inset Newline newline
20317 , where *** is the name of the used language.
20320 \begin_layout Standard
20321 To get automatic names, but not for certain reference types, for example
20322 not for equations, use this preamble code:
20325 \begin_layout Standard
20333 \begin_inset Newline newline
20343 \begin_inset Newline newline
20354 equationautorefname}
20355 \begin_inset Newline newline
20362 \begin_layout Plain Layout
20378 \begin_layout Standard
20379 More about this topic can be found in
20384 \begin_inset CommandInset citation
20393 \begin_layout Standard
20394 \begin_inset Note Greyedout
20397 \begin_layout Plain Layout
20402 Automatic reference naming cannot be used when you use cross-references
20406 \begin_inset space ~
20411 style, as described in section
20412 \begin_inset space ~
20416 \begin_inset CommandInset ref
20418 reference "sub:Cross-Reference-Formats"
20430 \begin_layout Standard
20435 manual is an example where automatic reference naming is used.
20438 \begin_layout Subsection
20440 \begin_inset CommandInset label
20442 name "sub:Reference-Position"
20450 \begin_layout Plain Layout
20451 References ! Reference Position
20459 \begin_layout Standard
20468 \begin_layout Plain Layout
20469 LaTeX-packages ! hyperref
20482 dialog to link cross-references in the output, you will see that clicking
20483 on an image float reference jumps to the image label.
20484 The caption will be the first text part on the screen, so that you cannot
20485 see the image without scrolling.
20486 This is because the reference link anchor is placed at the position of
20488 With the use of the package
20496 \begin_layout Plain Layout
20497 LaTeX-packages ! hypcap
20502 , which is part of the LaTeX-package
20510 \begin_layout Plain Layout
20511 LaTeX-packages ! oberdiek
20516 , the link anchor is placed at the beginning of a float.
20517 To use this feature for figure floats, load
20521 in the document preamble with the line
20524 \begin_layout Standard
20529 usepackage[figure]{hypcap}
20532 \begin_layout Standard
20537 for all float types but this is not recommended for stability reasons.
20538 For more informations, have a look at
20543 \begin_inset CommandInset citation
20552 \begin_layout Standard
20553 \begin_inset Note Greyedout
20556 \begin_layout Plain Layout
20565 has no effect for references to subfigures.
20573 \begin_layout Section
20575 \begin_inset CommandInset label
20577 name "sec:Float-Placement"
20585 \begin_layout Plain Layout
20594 \begin_layout Standard
20595 Right-clicking on a float-box opens a dialog where you can alter the placement
20596 options that LaTeX uses for positioning the float.
20597 \begin_inset Newline newline
20603 \begin_inset space ~
20608 is only useful for two-column documents: If you select it, the float will
20609 span across both columns on the page instead of being confined to just
20611 \begin_inset Newline newline
20617 \begin_inset space ~
20622 is used to rotate floats, see section
20623 \begin_inset CommandInset ref
20625 reference "sec:Rotated-Floats"
20632 \begin_layout Standard
20633 You can use one ore more of the following options in the float dialog to
20634 set the placement for a particular float when you uncheck the option
20637 \begin_inset space ~
20641 \begin_inset space ~
20649 \begin_layout Description
20651 \begin_inset space ~
20655 \begin_inset space ~
20658 possible try to place the float on the position where it is inserted
20661 \begin_layout Description
20663 \begin_inset space ~
20667 \begin_inset space ~
20670 page try to place the float on the top of the current page
20673 \begin_layout Description
20675 \begin_inset space ~
20679 \begin_inset space ~
20682 page try to place the float on the bottom of the current page
20685 \begin_layout Description
20687 \begin_inset space ~
20691 \begin_inset space ~
20694 floats try to place the float on an own page
20697 \begin_layout Standard
20698 The order of the above option is
20703 That means, if you use the default placement, LaTeX will first try out
20707 \begin_inset space ~
20711 \begin_inset space ~
20719 \begin_inset space ~
20723 \begin_inset space ~
20728 , and then the others.
20729 If you don't use the default, LaTeX will try only the checked options but
20731 If none of the 4 placements are possible the procedure is internally repeated
20732 but it is tried to put the float on the following page.
20735 \begin_layout Standard
20736 By default, each option has its own rules:
20739 \begin_layout Labeling
20740 \labelwidthstring 00.00.0000
20744 \begin_inset space ~
20748 \begin_inset space ~
20753 only floats occupying less than 70
20754 \begin_inset space \thinspace{}
20757 % of the page can be placed at the top of a page (
20766 \begin_layout Labeling
20767 \labelwidthstring 00.00.0000
20771 \begin_inset space ~
20775 \begin_inset space ~
20780 : only floats occupying less than 30
20781 \begin_inset space \thinspace{}
20784 % of the page can be placed at the bottom of a page.
20794 \begin_layout Labeling
20795 \labelwidthstring 00.00.0000
20799 \begin_inset space ~
20803 \begin_inset space ~
20808 : only if more than 50
20809 \begin_inset space \thinspace{}
20812 % of the page are occupied by floats, several floats can be set together
20823 \begin_layout Standard
20824 If you don't like these rules, you can ignore them by using the additional
20828 \begin_inset space ~
20832 \begin_inset space ~
20838 \begin_inset Newline newline
20841 You can also redefine the rules with LaTeX-commands that are given in parenthese
20842 s behind the rules description above.
20843 To increase for example the often too small default of the bottom-rule
20845 \begin_inset space \thinspace{}
20848 % of the page, add this line to your document preamble:
20851 \begin_layout Standard
20858 bottomfraction}{0.5}
20861 \begin_layout Standard
20862 Sometimes you might need, under all circumstances, a float to be placed
20863 exactly at the position where it is inserted.
20864 For this case you can use the option
20867 \begin_inset space ~
20873 Use this option very rarely and only if the document is nearly ready to
20875 Because the float is then no longer able to
20876 \begin_inset Quotes eld
20880 \begin_inset Quotes erd
20883 when you change your document and this will often destroy the page layout.
20886 \begin_layout Standard
20887 There are no placement options for text wrap floats, because they are always
20888 surrounded by the text of a certain paragraph.
20889 \begin_inset VSpace bigskip
20895 \begin_layout Standard
20896 Sometimes you have the problem that a float is placed at the top of a page
20897 while its corresponding section starts at the middle of the page, so that
20898 the reader could think the float is part of the previous section.
20899 To avoid this the LaTeX-command
20906 It suppresses a given float placement for the page where it is inserted
20907 and can therefore be used to avoid that floats could be set before a section
20909 To get this, add these commands to your document preamble:
20912 \begin_layout Standard
20922 \begin_inset Newline newline
20936 \begin_layout Standard
20937 You can define the same for all section headings, like chapters and subsections.
20938 This definition is not recommended to be used for small text parts like
20939 subsubsections because LaTeX may then have problems to find a suitable
20943 \begin_layout Standard
20944 \begin_inset VSpace bigskip
20947 In some cases it is required to have all figures/tables at the end of the
20949 For this purpose the LaTeX-package
20957 \begin_layout Plain Layout
20958 LaTeX-packages ! endfloat
20964 It puts all figure and table floats at the end of the document into own
20966 At the original float position a text hint like
20967 \begin_inset Quotes eld
20973 \begin_inset space ~
20979 \begin_inset Quotes erd
20983 The endfloat-package is loaded in the preamble with the line
20986 \begin_layout Standard
20991 usepackage[options]{endfloat}
20994 \begin_layout Standard
20995 There are various package options to format the created figure/table sections.
20996 For more information we refer to the
21001 \begin_inset CommandInset citation
21008 \begin_inset Newline newline
21012 \begin_inset Note Greyedout
21015 \begin_layout Plain Layout
21020 doesn't provide an automatic translation for the text hint, you have to
21021 do this manually, see section
21022 \begin_inset space ~
21026 \begin_inset CommandInset citation
21038 \begin_inset Newline newline
21042 \begin_inset Note Greyedout
21045 \begin_layout Plain Layout
21050 There is currently a bug in
21054 when the caption contains a German
21055 \begin_inset Quotes eld
21059 \begin_inset Quotes erd
21063 Use in this case the command
21064 \begin_inset Quotes eld
21074 \begin_inset Quotes erd
21077 in TeX-Code instead of
21078 \begin_inset Quotes eld
21082 \begin_inset Quotes erd
21093 \begin_layout Standard
21094 \begin_inset VSpace bigskip
21097 For more details about float placements, have a look at LaTeX books,
21098 \begin_inset CommandInset citation
21100 key "latexcompanion,latexguide,latexbook"
21107 \begin_layout Section
21109 \begin_inset CommandInset label
21111 name "sec:Rotated-Floats"
21119 \begin_layout Plain Layout
21128 \begin_layout Standard
21129 Especially for wide tables you might have floats rotated.
21130 To rotate a whole float including the caption, right-click on the float-box
21134 \begin_inset space ~
21142 \begin_layout Standard
21143 Rotated floats are always placed on its own page (or column, in case you
21144 have a multi-column document).
21145 You can let them span several columns using the float settings option
21148 \begin_inset space ~
21154 Floats are rotated so that you can read them from the outside margin.
21155 To force a certain rotation direction for all pages, you can add either
21164 to the document class options.
21167 \begin_layout Standard
21168 Referencing rotated floats is the same like for normal floats, the caption
21169 format is also the same: Table
21170 \begin_inset space ~
21174 \begin_inset CommandInset ref
21176 reference "tab:Rotated-table"
21180 is an example of a rotated table float.
21183 \begin_layout Standard
21184 \begin_inset Note Greyedout
21187 \begin_layout Plain Layout
21192 Not all DVI-viewers are able to display rotated floats.
21200 \begin_layout Standard
21201 \begin_inset Float table
21206 \begin_layout Plain Layout
21207 \begin_inset Caption
21209 \begin_layout Plain Layout
21210 \begin_inset CommandInset label
21212 name "tab:Rotated-table"
21224 \begin_layout Plain Layout
21226 \begin_inset Tabular
21227 <lyxtabular version="3" rows="1" columns="5">
21229 <column alignment="center" valignment="top" width="0">
21230 <column alignment="center" valignment="top" width="0">
21231 <column alignment="center" valignment="top" width="0">
21232 <column alignment="center" valignment="top" width="0">
21233 <column alignment="center" valignment="top" width="0">
21235 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21238 \begin_layout Plain Layout
21244 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21247 \begin_layout Plain Layout
21253 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21256 \begin_layout Plain Layout
21262 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21265 \begin_layout Plain Layout
21271 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21274 \begin_layout Plain Layout
21293 \begin_layout Section
21294 Floats Side by Side
21298 \begin_layout Plain Layout
21299 Floats ! Side by side
21307 \begin_layout Standard
21308 To place floats side by side, like for Figure
21309 \begin_inset space ~
21313 \begin_inset CommandInset ref
21315 reference "fig:Float-left"
21320 \begin_inset CommandInset ref
21322 reference "fig:Float-right"
21331 In it two minipage boxes are inserted.
21335 \begin_layout Plain Layout
21336 Minipages are explained in section
21337 \begin_inset space ~
21341 \begin_inset CommandInset ref
21343 reference "sec:Minipages"
21352 The width is set to 45
21353 \begin_inset space \thinspace{}
21357 \begin_inset space \thinspace{}
21360 column% and the box alignment to
21365 The minipage boxes contain the image and the caption in the same way as
21366 they are in a float.
21367 The only difference is that the image unit
21370 \begin_inset space ~
21374 \begin_inset space ~
21379 is now calculated according to the width of the minipage boxes.
21382 \begin_layout Standard
21383 \begin_inset Float figure
21388 \begin_layout Plain Layout
21389 \begin_inset Box Frameless
21398 height_special "totalheight"
21401 \begin_layout Plain Layout
21403 \begin_inset Graphics
21404 filename clipart/mobius.eps
21407 scaleBeforeRotation
21414 \begin_layout Plain Layout
21415 \begin_inset Caption
21417 \begin_layout Plain Layout
21418 \begin_inset CommandInset label
21420 name "fig:Float-left"
21424 Float on the left side.
21435 \begin_inset space \hfill{}
21439 \begin_inset Box Frameless
21448 height_special "totalheight"
21451 \begin_layout Plain Layout
21453 \begin_inset Graphics
21454 filename clipart/platypus.eps
21457 scaleBeforeRotation
21464 \begin_layout Plain Layout
21465 \begin_inset Caption
21467 \begin_layout Plain Layout
21468 \begin_inset CommandInset label
21470 name "fig:Float-right"
21474 Float on the right side.
21487 \begin_layout Plain Layout
21496 \begin_layout Section
21501 \begin_layout Plain Layout
21502 Caption ! Formatting
21511 \begin_layout Plain Layout
21512 Floats ! Caption Formatting
21518 \begin_inset CommandInset label
21520 name "sec:Caption-Formatting"
21527 \begin_layout Standard
21532 environment is the default paragraph environment for
21537 On the LyX screen captions appear as label, e.
21538 \begin_inset space \thinspace{}
21542 \begin_inset space ~
21546 \begin_inset Quotes eld
21554 \begin_inset Quotes erd
21557 followed by the caption text.
21559 \begin_inset Quotes eld
21563 \begin_inset Quotes erd
21566 is the actual reference number.
21567 By default the label and the number are in the same font as the caption
21568 text and a colon follows the number to divide the label from the text.
21569 This caption format is not suitable for all document formats.
21573 \begin_layout Standard
21574 To change the default caption format, load the LaTeX-package
21582 \begin_layout Plain Layout
21583 LaTeX-packages ! caption
21588 in the document preamble with this line:
21591 \begin_layout Standard
21596 usepackage[format definition]{caption}
21599 \begin_layout Standard
21600 To have for example the label and the number in sans-serif bold font and
21601 the table captions always above the table like in this document, use the
21605 \begin_layout Standard
21610 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
21613 \begin_layout Standard
21614 You can also define different caption formats for the different float types.
21615 In this case load the
21619 package without format specific options and define the different formats
21620 with the help of the command
21623 \begin_layout Standard
21628 captionsetup[float type]{format definition}
21631 \begin_layout Standard
21632 in the document preamble.
21633 For example the caption formats of Figure
21634 \begin_inset space ~
21638 \begin_inset CommandInset ref
21640 reference "fig:This-is-an-fig"
21645 \begin_inset space ~
21649 \begin_inset CommandInset ref
21651 reference "tab:This-is-an-tab"
21655 can be created using these commands in the document preamble:
21658 \begin_layout Standard
21663 usepackage[tableposition=top]{caption}
21666 \begin_inset Newline newline
21673 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
21674 \begin_inset Newline newline
21681 \begin_layout Plain Layout
21689 captionsetup[figure]
21697 \begin_inset Newline newline
21702 captionsetup[table]{labelfont={bf,sf}}
21705 \begin_layout Standard
21706 \begin_inset Note Greyedout
21709 \begin_layout Plain Layout
21718 has no effect when a
21726 \begin_layout Plain Layout
21727 LaTeX-packages ! koma-script
21732 document class is used.
21733 In this case the document class option
21745 \begin_layout Standard
21746 For more information about the package
21750 we refer to its documentation
21751 \begin_inset CommandInset citation
21760 \begin_layout Standard
21761 To change the label name from e.g.
21763 \begin_inset Quotes eld
21767 \begin_inset Quotes erd
21771 \begin_inset Quotes eld
21775 \begin_inset Quotes erd
21778 use this preamble command:
21781 \begin_layout Standard
21788 fnum@figure}{Image~
21793 \begin_layout Standard
21800 inserts the figure number and
21803 \begin_inset Quotes eld
21809 \begin_inset Quotes erd
21812 creates a protected space.
21815 \begin_layout Standard
21816 \begin_inset VSpace bigskip
21827 \begin_layout Plain Layout
21828 LaTeX-packages ! koma-script
21835 article (koma-script)
21843 letter (koma-script)
21847 report (koma-script)
21850 \begin_inset space \thinspace{}
21853 ), you can alternatively to the
21861 's built-in command
21868 For example, to have the caption label in bold, add this command to your
21872 \begin_layout Standard
21877 setkomafont{captionlabel}{
21882 \begin_layout Standard
21883 For more information about
21894 \begin_inset CommandInset citation
21903 \begin_layout Standard
21907 \begin_layout Plain Layout
21911 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
21918 \begin_inset Note Note
21921 \begin_layout Plain Layout
21922 The caption format is changed only for this example.
21930 \begin_layout Standard
21931 \begin_inset Float figure
21937 \begin_layout Plain Layout
21939 \begin_inset Graphics
21940 filename clipart/mobius.eps
21943 scaleBeforeRotation
21950 \begin_layout Plain Layout
21951 \begin_inset Caption
21953 \begin_layout Plain Layout
21954 \begin_inset CommandInset label
21956 name "fig:This-is-an-fig"
21960 This is an example figure caption that is longer than one line to show the
21961 different caption format.
21962 Here a self-defined caption format is used.
21975 \begin_layout Standard
21979 \begin_layout Plain Layout
21983 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
21992 \begin_layout Standard
21993 \begin_inset Float table
21999 \begin_layout Plain Layout
22000 \begin_inset Caption
22002 \begin_layout Plain Layout
22003 \begin_inset CommandInset label
22005 name "tab:This-is-an-tab"
22009 This is an example table caption that is longer than one line to show the
22010 different caption format.
22011 Here the standard caption format for tables in this document is used.
22019 \begin_layout Plain Layout
22021 \begin_inset Tabular
22022 <lyxtabular version="3" rows="1" columns="5">
22024 <column alignment="center" valignment="top" width="0">
22025 <column alignment="center" valignment="top" width="0">
22026 <column alignment="center" valignment="top" width="0">
22027 <column alignment="center" valignment="top" width="0">
22028 <column alignment="center" valignment="top" width="0">
22030 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22033 \begin_layout Plain Layout
22039 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22042 \begin_layout Plain Layout
22048 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22051 \begin_layout Plain Layout
22057 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22060 \begin_layout Plain Layout
22066 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22069 \begin_layout Plain Layout
22088 \begin_layout Section
22093 \begin_layout Plain Layout
22094 Caption ! Placement
22103 \begin_layout Plain Layout
22104 Floats ! Caption Placement
22110 \begin_inset CommandInset label
22112 name "sec:Caption-Placement"
22119 \begin_layout Standard
22120 The common caption placement rule is:
22123 \begin_layout Description
22124 Figure: Caption is set below the figure
22127 \begin_layout Description
22128 Table: Caption is set above the table
22131 \begin_layout Standard
22132 Having the caption above the table is unfortunately not supported in LaTeX's
22134 That means if you are using the document classes
22150 there will be no space between the caption and the table.
22151 To insert the needed space, add the following option to the load command
22152 of the LaTeX-package
22156 in your document preamble
22160 \begin_layout Plain Layout
22162 \begin_inset space ~
22166 \begin_inset CommandInset ref
22168 reference "sec:Caption-Formatting"
22172 for more information of the package
22184 \begin_layout Standard
22190 \begin_layout Standard
22199 \begin_layout Plain Layout
22200 LaTeX-packages ! koma-script
22207 article (koma-script)
22215 letter (koma-script)
22219 report (koma-script)
22222 \begin_inset space \thinspace{}
22225 ), you can alternatively to the
22229 package set the document class option
22236 \begin_layout Standard
22237 \begin_inset VSpace bigskip
22240 It is also possible to set the caption beside a figure or table.
22241 To get this the LaTeX-package
22249 \begin_layout Plain Layout
22250 LaTeX-packages ! sidecap
22255 has to be loaded in the document preamble with the line
22258 \begin_layout Standard
22263 usepackage[option]{sidecap}
22266 \begin_layout Standard
22267 If you set no option, the caption is placed on the side of the outer page
22268 margin -- to the right on odd pages, to the left on even pages.
22269 You can change the placement to inner margin with the option
22274 To force the placement always to the right or left, use the option
22285 \begin_layout Standard
22289 \begin_layout Plain Layout
22299 \begin_inset Note Note
22302 \begin_layout Plain Layout
22303 The following section will only be displayed when the LaTeX-package
22315 \begin_layout Standard
22316 To place in LyX the caption of a float on the side, it is necessary to add
22317 these commands to the document preamble:
22320 \begin_layout Standard
22326 \begin_layout Standard
22334 \begin_inset Newline newline
22341 \begin_layout Plain Layout
22357 \begin_inset Newline newline
22364 \begin_layout Plain Layout
22380 \begin_inset Newline newline
22387 \begin_layout Plain Layout
22398 renewenvironment{table}{
22405 \begin_layout Standard
22413 \begin_inset Newline newline
22420 \begin_layout Plain Layout
22436 \begin_inset Newline newline
22443 \begin_layout Plain Layout
22461 \begin_layout Standard
22469 \begin_inset Newline newline
22476 \begin_layout Plain Layout
22492 \begin_inset Newline newline
22499 \begin_layout Plain Layout
22515 \begin_inset Newline newline
22522 \begin_layout Plain Layout
22533 renewenvironment{figure}{
22540 \begin_layout Standard
22548 \begin_inset Newline newline
22555 \begin_layout Plain Layout
22571 \begin_inset Newline newline
22578 \begin_layout Plain Layout
22596 \begin_layout Standard
22602 \begin_layout Standard
22603 The commands allow you to redefine the floats so that the caption is set
22605 For figure floats use the command
22608 \begin_layout Standard
22616 \begin_layout Standard
22617 in TeX-Code before the float.
22618 Behind the float insert the command
22621 \begin_layout Standard
22629 \begin_layout Standard
22630 in TeX-Code to get back to the original float definition.
22633 \begin_layout Standard
22634 For table floats use the corresponding commands
22637 \begin_layout Standard
22651 \begin_layout Standard
22653 \begin_inset space ~
22657 \begin_inset CommandInset ref
22659 reference "fig:cap-beside-fig"
22664 \begin_inset space ~
22668 \begin_inset CommandInset ref
22670 reference "tab:cap-beside-tab"
22674 are examples where the caption is set beside.
22677 \begin_layout Standard
22678 You can see in the examples that the caption text appears at the top of
22679 the floats for table floats and at the bottom for figure floats.
22680 To change this, you can use the command
22683 \begin_layout Standard
22688 sidecaptionvpos{float type}{placement}
22691 \begin_layout Standard
22692 in the document preamble or in TeX-Code before the float.
22693 The float type is either
22701 , the placement can be
22702 \begin_inset Quotes eld
22710 \begin_inset Quotes erd
22714 \begin_inset Quotes eld
22722 \begin_inset Quotes erd
22726 \begin_inset Quotes eld
22734 \begin_inset Quotes erd
22738 To have for example the caption of figure floats vertically centered, use
22742 \begin_layout Standard
22747 sidecaptionvpos{figure}{c}
22750 \begin_layout Standard
22751 This was used for Figure
22752 \begin_inset space ~
22756 \begin_inset CommandInset ref
22758 reference "fig:cap-beside-fig-2"
22765 \begin_layout Standard
22766 \begin_inset VSpace medskip
22769 For more information about the package
22773 we refer to its documentation
22774 \begin_inset CommandInset citation
22783 \begin_layout Standard
22784 \begin_inset Note Greyedout
22787 \begin_layout Plain Layout
22800 \begin_layout Plain Layout
22801 LaTeX-packages ! hypcap
22806 , described in section
22807 \begin_inset space ~
22811 \begin_inset CommandInset ref
22813 reference "sub:Reference-Position"
22817 , has no effect on floats with the caption set beside.
22825 \begin_layout Standard
22829 \begin_layout Plain Layout
22841 \begin_layout Standard
22842 \begin_inset Float figure
22847 \begin_layout Plain Layout
22848 \begin_inset Graphics
22849 filename clipart/escher-lsd.eps
22851 scaleBeforeRotation
22858 \begin_layout Plain Layout
22859 \begin_inset Caption
22861 \begin_layout Plain Layout
22862 \begin_inset CommandInset label
22864 name "fig:cap-beside-fig"
22868 This is a caption beside a figure.
22881 \begin_layout Standard
22885 \begin_layout Plain Layout
22897 \begin_layout Standard
22898 \begin_inset Float table
22903 \begin_layout Plain Layout
22904 \begin_inset Caption
22906 \begin_layout Plain Layout
22907 \begin_inset CommandInset label
22909 name "tab:cap-beside-tab"
22913 This is a caption beside a table.
22921 \begin_layout Plain Layout
22922 \begin_inset Tabular
22923 <lyxtabular version="3" rows="4" columns="5">
22925 <column alignment="center" valignment="top" width="0">
22926 <column alignment="center" valignment="top" width="0">
22927 <column alignment="center" valignment="top" width="0">
22928 <column alignment="center" valignment="top" width="0">
22929 <column alignment="center" valignment="top" width="0">
22931 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22934 \begin_layout Plain Layout
22940 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22943 \begin_layout Plain Layout
22949 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22952 \begin_layout Plain Layout
22958 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22961 \begin_layout Plain Layout
22967 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22970 \begin_layout Plain Layout
22978 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22981 \begin_layout Plain Layout
22987 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22990 \begin_layout Plain Layout
22996 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22999 \begin_layout Plain Layout
23005 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23008 \begin_layout Plain Layout
23014 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23017 \begin_layout Plain Layout
23025 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23028 \begin_layout Plain Layout
23034 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23037 \begin_layout Plain Layout
23043 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23046 \begin_layout Plain Layout
23052 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23055 \begin_layout Plain Layout
23061 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23064 \begin_layout Plain Layout
23072 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23075 \begin_layout Plain Layout
23081 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23084 \begin_layout Plain Layout
23090 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23093 \begin_layout Plain Layout
23099 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23102 \begin_layout Plain Layout
23108 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23111 \begin_layout Plain Layout
23130 \begin_layout Standard
23134 \begin_layout Plain Layout
23146 \begin_layout Standard
23150 \begin_layout Plain Layout
23154 sidecaptionvpos{figure}{c}
23160 \begin_inset Float figure
23165 \begin_layout Plain Layout
23166 \begin_inset Graphics
23167 filename clipart/escher-lsd.eps
23169 scaleBeforeRotation
23176 \begin_layout Plain Layout
23177 \begin_inset Caption
23179 \begin_layout Plain Layout
23180 \begin_inset CommandInset label
23182 name "fig:cap-beside-fig-2"
23186 This is a vertically centered caption beside a figure.
23199 \begin_layout Standard
23203 \begin_layout Plain Layout
23215 \begin_layout Standard
23219 \begin_layout Plain Layout
23229 \begin_inset Note Note
23232 \begin_layout Plain Layout
23233 The following will be displayed when the LaTeX-package
23245 \begin_layout Standard
23246 You need to install the LaTeX-package
23250 to see the following part of this section in the output.
23253 \begin_layout Standard
23257 \begin_layout Plain Layout
23269 \begin_layout Section
23271 \begin_inset CommandInset label
23273 name "sec:Listings-of-Floats"
23281 \begin_layout Plain Layout
23282 Floats ! Float Lists
23290 \begin_layout Standard
23291 Similar to the the table of contents where the sections of the document
23292 are listed, there are listings for all float types, like the figures of
23294 You can insert them via the
23296 Insert\SpecialChar \menuseparator
23298 \begin_inset space ~
23302 \begin_inset space ~
23310 \begin_layout Standard
23311 The list entries are the float captions or its short title, the float number,
23312 and the page number where they appear in the document.
23315 \begin_layout Standard
23316 You can find the list of figures and tables at the end of this document.
23319 \begin_layout Chapter
23323 \begin_layout Section
23325 \begin_inset CommandInset label
23327 name "sec:LyX-Notes"
23335 \begin_layout Plain Layout
23344 \begin_layout Standard
23345 Notes are inserted with the toolbar button
23346 \begin_inset Graphics
23347 filename ../images/note-insert.png
23349 scaleBeforeRotation
23355 Insert\SpecialChar \menuseparator
23359 There are three types of notes:
23362 \begin_layout Description
23364 \begin_inset space ~
23367 Note This note type is for internal notes that won't appear in the output.
23368 Its note-box looks like this:
23369 \begin_inset Newline newline
23373 \begin_inset Newline newline
23377 \begin_inset Graphics
23378 filename clipart/LyXNoteImageQt4.png
23381 scaleBeforeRotation
23386 \begin_inset Note Note
23389 \begin_layout Plain Layout
23390 This is text in a note box that doesn't appear in the output.
23398 \begin_layout Description
23399 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
23400 ent, when you export the document to LaTeX via the menu
23402 File\SpecialChar \menuseparator
23403 Export\SpecialChar \menuseparator
23404 LaTeX (pdflatex) / (plain)
23407 Its note-box looks like this:
23408 \begin_inset Newline newline
23412 \begin_inset Newline newline
23416 \begin_inset Graphics
23417 filename clipart/CommentNoteImageQt4.png
23420 scaleBeforeRotation
23425 \begin_inset Note Comment
23428 \begin_layout Plain Layout
23429 This is text in a note box that only appears as comment in LaTeX-files.
23437 \begin_layout Description
23439 \begin_inset space ~
23442 Out This note will appear in the output as grey text.
23443 Its note-box looks like this:
23444 \begin_inset Newline newline
23448 \begin_inset Newline newline
23452 \begin_inset Graphics
23453 filename clipart/GreyedOutNoteImageQt4.png
23456 scaleBeforeRotation
23461 \begin_inset Newline newline
23468 \begin_layout Plain Layout
23472 renewenvironment{lyxgreyedout}
23475 \begin_layout Plain Layout
23479 textcolor[gray]{0.8}
23489 \begin_inset Note Greyedout
23492 \begin_layout Plain Layout
23497 \begin_layout Plain Layout
23498 This is an example footnote within a greyed out note.
23503 of a comment that appears in the output as grey text.
23512 \begin_layout Plain Layout
23516 renewenvironment{lyxgreyedout}
23519 \begin_layout Plain Layout
23533 \begin_inset Note Note
23536 \begin_layout Plain Layout
23537 The greyed out note is here redefined to show it with the original LyX definitio
23538 n because greyed out notes are redefined in the preamble of this document,
23539 as described below, to have blue text.
23545 \begin_inset Newline newline
23549 \begin_inset Newline newline
23552 As you can see in the example, the first line of greyed out notes is a bit
23553 indented and greyed out notes can have footnotes.
23556 \begin_layout Standard
23557 \begin_inset VSpace bigskip
23560 When you use the toolbar button
23561 \begin_inset Graphics
23562 filename ../images/note-insert.png
23564 scaleBeforeRotation
23571 \begin_inset space ~
23577 You can switch between the five note types by right-clicking on the note-box.
23582 If you want to turn existing text into a note, mark it and click on the
23596 To change a note to text, press the backspace key when the cursor is in
23597 the first position of a note, or press the deletey key when the cursor
23598 is in the very last position of the note, respectively.
23601 \begin_layout Standard
23602 \begin_inset VSpace bigskip
23605 You can change the text color of the greyed out notes in the preamble with
23606 the following command:
23609 \begin_layout Standard
23614 renewenvironment{lyxgreyedout}
23615 \begin_inset Newline newline
23622 \begin_layout Plain Layout
23640 \begin_layout Standard
23641 The available colors and the method to define own colors is explained in
23643 \begin_inset space ~
23647 \begin_inset CommandInset ref
23649 reference "sec:Colored-Tables"
23656 \begin_layout Standard
23657 Notes that appear in blue in this document are set using greyed out notes
23661 \begin_layout Section
23663 \begin_inset CommandInset label
23665 name "sec:Footnotes"
23673 \begin_layout Plain Layout
23683 \begin_layout Plain Layout
23692 \begin_layout Standard
23693 Footnotes can be inserted using the toolbar button
23694 \begin_inset Graphics
23695 filename ../images/footnote-insert.png
23697 scaleBeforeRotation
23703 Insert\SpecialChar \menuseparator
23715 then the following footnote-box:
23716 \begin_inset Graphics
23717 filename clipart/footnoteQt4.png
23719 scaleBeforeRotation
23727 where you can enter the footnote text.
23728 If you want to turn existing text into a footnote, mark it and click on
23750 to text, press the Backspace key when the cursor is in the first position
23759 , or press the Delete key when the cursor is in the very last position of
23771 \begin_layout Standard
23772 Here is an example footnote:
23780 \begin_layout Plain Layout
23781 \begin_inset CommandInset label
23783 name "foot:This-is-an"
23787 This is an example footnote.
23800 \begin_layout Plain Layout
23804 newcounter{MyRepeatFoot}
23807 \begin_layout Plain Layout
23811 setcounter{MyRepeatFoot}{
23821 \begin_layout Standard
23822 The footnote will appear in the output as a superscript number at the text
23823 position where the footnote box is placed.
23824 The footnote text is placed at the bottom of the current page.
23825 The footnote number is calculated by LaTeX, the numbers are consecutive.
23826 It depends on your document-class, if the footnote number is reset for
23830 \begin_layout Standard
23831 Footnotes can be referenced like floats: Insert a label into the footnote
23832 and cross-reference this label in the text as described in section
23833 \begin_inset space ~
23837 \begin_inset CommandInset ref
23839 reference "sec:Referencing-Floats"
23844 \begin_inset Newline newline
23847 This is a cross-reference of Footnote
23848 \begin_inset space ~
23852 \begin_inset CommandInset ref
23854 reference "foot:This-is-an"
23861 \begin_layout Standard
23862 \begin_inset VSpace defskip
23865 To use footnotes within tables, you have to use minipages, see section
23866 \begin_inset space ~
23870 \begin_inset CommandInset ref
23872 reference "sec:Minipages"
23877 Footnotes within longtables are described in section
23878 \begin_inset space ~
23882 \begin_inset CommandInset ref
23884 reference "sub:Footnotes-in-Longtables"
23891 \begin_layout Standard
23892 \begin_inset VSpace defskip
23895 To create only a mark for a footnote, use the command
23899 footnotemark[number]
23902 This is used when you have the same annotation several times in a text
23903 but doesn't want to print the footnote text every time.
23904 \begin_inset Newline newline
23907 As you don't know the number of the repeating footnote while you are writing
23908 the text, you have to store its number.
23909 For the following footnote mark example, these commands were inserted in
23910 TeX-Code behind Footnote
23911 \begin_inset space ~
23915 \begin_inset CommandInset ref
23917 reference "foot:This-is-an"
23921 to store the footnote number:
23924 \begin_layout Standard
23929 newcounter{MyRepeatFoot}
23930 \begin_inset Newline newline
23935 setcounter{MyRepeatFoot}{
23940 \begin_layout Standard
23941 The footnote mark was then created with this command:
23944 \begin_layout Standard
23954 \begin_layout Standard
23955 Here is an example footnote mark:
23963 \begin_layout Plain Layout
23977 \begin_layout Subsection
23979 \begin_inset CommandInset label
23981 name "sub:Footnote-Numbering"
23989 \begin_layout Plain Layout
23990 Footnotes ! Numbering
23998 \begin_layout Standard
23999 To reset the footnote number back to 1 after each section
24001 , add this command to your document preamble:
24004 \begin_layout Standard
24009 @addtoreset{footnote}{section}
24012 \begin_layout Standard
24013 \begin_inset VSpace bigskip
24016 The following preamble command changes the footnote numbering style to small
24020 \begin_layout Standard
24032 \begin_layout Standard
24036 \begin_layout Plain Layout
24049 This is a footnote with roman numbering:
24053 \begin_layout Plain Layout
24054 This is an example footnote with roman numbering.
24062 \begin_layout Standard
24063 To change the numbering style to capital roman numerals replace in the command
24078 \begin_inset Quotes eld
24082 \begin_inset Quotes erd
24085 footnotes with capital or small Latin letters use
24099 \begin_inset Quotes eld
24103 \begin_inset Quotes erd
24106 footnotes with symbols use
24115 \begin_layout Standard
24116 \begin_inset Note Greyedout
24119 \begin_layout Plain Layout
24124 You can only number 26 footnotes with Latin letters, because this numbering
24125 is limited to single letters.
24131 \begin_inset Newline newline
24135 \begin_inset Note Greyedout
24138 \begin_layout Plain Layout
24143 You can only number 9 footnotes with symbols.
24151 \begin_layout Standard
24152 To return to the default numbering style when you changed to another one,
24165 in the command above.
24169 \begin_layout Plain Layout
24185 \begin_layout Standard
24186 \begin_inset VSpace bigskip
24192 \begin_layout Standard
24193 If you want to have footnotes numbered in the scheme
24194 \begin_inset Quotes eld
24198 \begin_inset Quotes erd
24201 , add the following command to your document preamble:
24204 \begin_layout Standard
24209 numberwithin{footnote}{chapter}
24212 \begin_layout Standard
24213 To be able to use the command
24222 \begin_inset space ~
24227 in the document settings the option
24230 \begin_inset space ~
24234 \begin_inset space ~
24238 \begin_inset space ~
24246 \begin_layout Standard
24250 \begin_layout Plain Layout
24254 numberwithin{footnote}{chapter}
24259 This is another example footnote:
24265 \begin_layout Plain Layout
24266 This is a footnote numbered in the scheme
24267 \begin_inset Quotes eld
24271 \begin_inset Quotes erd
24285 \begin_layout Plain Layout
24301 \begin_layout Standard
24302 \begin_inset Note Greyedout
24305 \begin_layout Plain Layout
24316 always prints out the footnote number as arabic number; previous redefinitions
24317 to get non-arabic numbers are overwritten.
24325 \begin_layout Standard
24326 So to get for example the scheme
24327 \begin_inset Quotes eld
24333 \begin_inset Quotes erd
24336 , use this command instead of
24345 \begin_layout Standard
24359 \begin_layout Subsection
24364 \begin_layout Plain Layout
24365 Footnotes ! Placement
24373 \begin_layout Standard
24374 If you have several footnotes in one page, they appear without vertical
24375 space between them at the bottom of the page.
24376 To make them better readable you can e.
24377 \begin_inset space \thinspace{}
24381 \begin_inset space ~
24385 \begin_inset space \thinspace{}
24388 mm space with the following preamble command:
24391 \begin_layout Standard
24401 \begin_inset Newline newline
24415 \begin_layout Standard
24416 \begin_inset VSpace bigskip
24419 In a two-column document the footnotes appear at the bottom of every column,
24421 \begin_inset space ~
24425 \begin_inset CommandInset ref
24427 reference "fig:Standard-footnote-placement"
24432 If the footnotes should only appear at the bottom of the right column,
24434 \begin_inset space ~
24438 \begin_inset CommandInset ref
24440 reference "fig:Footnote-placement-in"
24444 , use the LaTeX-package
24452 \begin_layout Plain Layout
24453 LaTeX-packages ! ftnright
24458 with this command in the document preamble:
24461 \begin_layout Standard
24466 usepackage{ftnright}
24469 \begin_layout Standard
24470 \begin_inset Float figure
24476 \begin_layout Plain Layout
24480 \begin_layout Plain Layout
24490 \begin_inset Graphics
24491 filename clipart/without_fntright.pdf
24493 scaleBeforeRotation
24501 \begin_layout Plain Layout
24511 \begin_layout Plain Layout
24512 \begin_inset Caption
24514 \begin_layout Plain Layout
24515 \begin_inset CommandInset label
24517 name "fig:Standard-footnote-placement"
24521 Standard footnote placement in two-column documents.
24534 \begin_layout Standard
24535 \begin_inset Float figure
24541 \begin_layout Plain Layout
24545 \begin_layout Plain Layout
24555 \begin_inset Graphics
24556 filename clipart/with_fntright.pdf
24558 scaleBeforeRotation
24566 \begin_layout Plain Layout
24576 \begin_layout Plain Layout
24577 \begin_inset Caption
24579 \begin_layout Plain Layout
24580 \begin_inset CommandInset label
24582 name "fig:Footnote-placement-in"
24586 Footnote placement in two-column documents when the LaTeX-package
24603 \begin_layout Standard
24604 \begin_inset VSpace bigskip
24607 In some scientific literature it is usual to collect the footnotes and print
24608 them in a separate paragraph at the the end of a section, like in Figure
24609 \begin_inset space ~
24613 \begin_inset CommandInset ref
24615 reference "fig:Endnotes----footnotes"
24620 They are then so called
24621 \begin_inset Quotes eld
24625 \begin_inset Quotes erd
24632 \begin_layout Plain Layout
24638 To use endnotes instead of footnotes in your document, load the LaTeX-package
24647 \begin_layout Plain Layout
24648 LaTeX-packages ! endnotes
24653 with the document preamble lines
24656 \begin_layout Standard
24661 usepackage{endnotes}
24662 \begin_inset Newline newline
24674 \begin_layout Standard
24675 To insert the collected footnotes, insert the command
24678 \begin_layout Standard
24686 \begin_layout Standard
24687 in TeX-Code at the the end of a section or chapter.
24690 \begin_layout Standard
24691 \begin_inset Float figure
24696 \begin_layout Plain Layout
24701 \begin_layout Plain Layout
24711 \begin_inset Graphics
24712 filename clipart/endnotes.pdf
24713 scaleBeforeRotation
24721 \begin_layout Plain Layout
24731 \begin_layout Plain Layout
24732 \begin_inset Caption
24734 \begin_layout Plain Layout
24735 \begin_inset CommandInset label
24737 name "fig:Endnotes----footnotes"
24741 Endnotes -- footnotes are printed in a separate paragraph at the end of
24742 sections or chapters.
24755 \begin_layout Standard
24756 \begin_inset VSpace medskip
24759 The paragraph heading for the endnotes isn't automatically translated into
24760 the document language, this must be done manually.
24761 The following preamble command translate the default English name
24762 \begin_inset Quotes eld
24766 \begin_inset Quotes erd
24769 to the German translation
24770 \begin_inset Quotes eld
24774 \begin_inset Quotes erd
24780 \begin_layout Standard
24787 notesname}{Anmerkungen}
24790 \begin_layout Standard
24791 \begin_inset VSpace medskip
24794 The numbering of endnotes can be changed like the footnote numbering as
24795 described in section
24796 \begin_inset space ~
24800 \begin_inset CommandInset ref
24802 reference "sub:Footnote-Numbering"
24806 ; just replace the command
24819 To reset the endnote number use the command
24825 as described in section
24826 \begin_inset space ~
24830 \begin_inset CommandInset ref
24832 reference "sub:Footnote-Numbering"
24836 and replace the command parameter
24847 \begin_layout Standard
24848 To create only a mark for an endnote, use the command
24852 endnotemark[number]
24854 similar to the command
24860 , described in section
24861 \begin_inset space ~
24865 \begin_inset CommandInset ref
24867 reference "sec:Footnotes"
24874 \begin_layout Standard
24875 \begin_inset VSpace bigskip
24878 Footnotes can also be placed in the page margin and the footnote text alignment
24879 can be changed, see the LaTeX-package
24887 \begin_layout Plain Layout
24888 LaTeX-packages ! footmisc
24894 \begin_inset CommandInset citation
24900 for more information about this.
24903 \begin_layout Standard
24904 For various further footnote formatting issues have a look at LaTeX-books,
24906 \begin_inset CommandInset citation
24908 key "latexcompanion,latexguide,latexbook"
24915 \begin_layout Section
24920 \begin_layout Plain Layout
24921 Notes ! Margin Notes
24929 \begin_layout Standard
24930 Margin notes look and behave in LyX like footnotes.
24931 They are inserted via the menu
24933 Insert\SpecialChar \menuseparator
24935 \begin_inset space ~
24940 or the toolbar button
24941 \begin_inset Graphics
24942 filename ../images/marginalnote-insert.png
24944 scaleBeforeRotation
24959 \begin_inset Quotes eld
24963 \begin_inset Quotes erd
24966 appears where you can enter the text of the margin note.
24969 \begin_layout Standard
24970 At the side is an example margin note.
24975 \begin_inset Marginal
24978 \begin_layout Plain Layout
24979 This is a margin note.
24987 \begin_layout Standard
24988 Margin notes appear at the right side in single-sided documents.
24989 In double-sided documents they appear in the outer margin -- left on even
24990 pages, right on odd pages.
24991 The text of margin notes is aligned opposite to the outer margin -- right-align
24992 ed when the note appears in the left margin.
24993 The first line of the margin note is placed at the position of the text
24994 line where it is inserted in the document.
24997 \begin_layout Standard
24998 \begin_inset VSpace bigskip
25001 To place the margin note in the inner margin, add the command
25004 \begin_layout Standard
25012 \begin_layout Standard
25013 in TeX-Code before a margin note.
25014 The new placement is valid for all following margin notes.
25019 \begin_layout Plain Layout
25029 \begin_inset Marginal
25032 \begin_layout Plain Layout
25033 This is a margin note in the inner margin.
25041 \begin_inset Newline newline
25047 \begin_inset Note Greyedout
25050 \begin_layout Plain Layout
25055 There is often not enough space in the inner margin so that the notes are
25056 not correctly displayed in the output.
25064 \begin_layout Standard
25065 To return to the default placement insert the command
25068 \begin_layout Standard
25076 \begin_layout Standard
25081 \begin_layout Plain Layout
25091 \begin_inset Note Greyedout
25094 \begin_layout Plain Layout
25099 The command is ignored when it is within a paragraph where also the command
25114 \begin_layout Standard
25115 \begin_inset VSpace bigskip
25122 \begin_inset Marginal
25125 \begin_layout Plain Layout
25126 AVeryLongMarginParWord that isn't hyphenated.
25134 Similar to the case described in section
25135 \begin_inset space ~
25139 \begin_inset CommandInset ref
25141 reference "sub:Multiple-Lines-in"
25145 , long words cannot be hyphenated when they are the first word in a margin
25147 To avoid this, insert 0
25148 \begin_inset space \thinspace{}
25151 pt horizontal space before the word
25156 \begin_inset Marginal
25159 \begin_layout Plain Layout
25160 \begin_inset space \hspace*{}
25164 AVeryLongMarginParWord that is hyphenated.
25172 \begin_layout Standard
25173 \begin_inset VSpace bigskip
25179 \begin_layout Standard
25180 \begin_inset Note Greyedout
25183 \begin_layout Plain Layout
25188 Margin notes can normally not be used inside tables, floats, and footnotes.
25196 \begin_layout Standard
25197 \begin_inset VSpace bigskip
25203 \begin_layout Standard
25207 \begin_layout Plain Layout
25217 \begin_inset Note Note
25220 \begin_layout Plain Layout
25221 The following section will only be displayed when the LaTeX-package
25233 \begin_layout Standard
25234 This restriction can be evaded by using the LaTeX-package
25242 \begin_layout Plain Layout
25243 LaTeX-packages ! marginnote
25249 By adding these two lines to your document preamble, the command used by
25250 LyX for margin notes is redefined to use the command provided by the
25257 \begin_layout Standard
25262 usepackage{marginnote}
25263 \begin_inset Newline newline
25275 \begin_layout Standard
25276 This is also used in this document because
25280 has another useful feature: You can set a vertical offset for the note.
25281 This is often needed when too many margin notes are too close together
25282 or for a better page layout.
25283 The offset is set in LyX as TeX-Code directly behind the margin note in
25287 \begin_layout Standard
25293 \begin_layout Standard
25294 where the offset is a length with one of the units listed in Table
25295 \begin_inset space ~
25299 \begin_inset CommandInset ref
25301 reference "tab:Units"
25306 A negative value shifts the note up, a positive value shifts it down.
25310 For example the margin note beside this text line is shifted up 1.5
25311 \begin_inset space \thinspace{}
25314 cm with the TeX-Code-command
25315 \begin_inset Quotes eld
25325 \begin_inset Quotes erd
25329 \begin_inset Marginal
25332 \begin_layout Plain Layout
25333 This margin note is shifted up 1.5
25334 \begin_inset space \thinspace{}
25337 cm from its original position.
25349 \begin_layout Plain Layout
25359 \begin_layout Standard
25360 \begin_inset VSpace medskip
25367 you can also change the alignment of the text in the margin note.
25368 For example the commands
25371 \begin_layout Standard
25378 raggedleftmarginnote}{
25381 \begin_inset Newline newline
25388 raggedrightmarginnote}{
25393 \begin_layout Standard
25394 set the alignment to centered.
25399 raggedleftmarginnote
25401 denotes margin notes that appear at the left side.
25408 \begin_layout Plain Layout
25414 raggedleftmarginnote}{
25419 \begin_layout Plain Layout
25425 raggedrightmarginnote}{
25433 \begin_inset Marginal
25436 \begin_layout Plain Layout
25437 The text of this margin note is centered.
25448 \begin_layout Standard
25455 raggedleftmarginnote}{
25458 \begin_inset Newline newline
25465 raggedrightmarginnote}{
25474 \begin_layout Plain Layout
25480 raggedleftmarginnote}{
25485 \begin_layout Plain Layout
25491 raggedrightmarginnote}{
25501 \begin_layout Standard
25502 \begin_inset VSpace medskip
25505 For the other features of
25509 we refer to its documentation
25510 \begin_inset CommandInset citation
25519 \begin_layout Standard
25520 \begin_inset VSpace bigskip
25523 You can adjust the layout of margin notes by changing its definition.
25524 To create for example a header for all margin notes with the underlined,
25525 sans-serif, and bold header text
25526 \begin_inset Quotes eld
25538 \begin_inset Quotes erd
25541 , add this to your document preamble:
25544 \begin_layout Standard
25554 \begin_inset Newline newline
25564 \begin_inset Newline newline
25571 \begin_layout Plain Layout
25588 underbar{Attention!}}}%
25589 \begin_inset Newline newline
25596 \begin_layout Plain Layout
25614 \begin_layout Standard
25621 \begin_layout Plain Layout
25632 \begin_layout Plain Layout
25643 \begin_layout Plain Layout
25651 underbar{Attention!}}}%
25654 \begin_layout Plain Layout
25668 \begin_inset Marginal
25671 \begin_layout Plain Layout
25672 This is a margin note with a defined heading.
25684 \begin_layout Plain Layout
25698 \begin_layout Plain Layout
25715 \begin_inset Note Note
25718 \begin_layout Plain Layout
25719 The margin note format is changed only for this example.
25727 \begin_layout Standard
25731 \begin_layout Plain Layout
25741 \begin_inset Note Note
25744 \begin_layout Plain Layout
25745 The following will be displayed when the LaTeX-package
25757 \begin_layout Standard
25758 You need to install the LaTeX-package
25762 to see the following part of this section in the output.
25765 \begin_layout Standard
25769 \begin_layout Plain Layout
25781 \begin_layout Chapter
25785 \begin_layout Section
25790 \begin_layout Plain Layout
25791 Boxes ! Introduction
25799 \begin_layout Standard
25800 Boxes are used to format a block of text.
25801 Boxes can be used to write documents with multiple languages, see section
25802 \begin_inset space ~
25806 \begin_inset CommandInset ref
25808 reference "sec:Minipages"
25812 , to frame texts, see section
25813 \begin_inset space ~
25817 \begin_inset CommandInset ref
25819 reference "sec:Decoration"
25823 , to prevent words to be hyphenated, see section
25824 \begin_inset space ~
25828 \begin_inset CommandInset ref
25830 reference "sec:Prevent-Hyphenation"
25834 , to align text, see section
25835 \begin_inset space ~
25839 \begin_inset CommandInset ref
25841 reference "sub:Vertical-Alignment"
25845 , or to set the background color of texts, see section
25846 \begin_inset space ~
25850 \begin_inset CommandInset ref
25852 reference "sec:Colored-Boxes"
25859 \begin_layout Standard
25860 Boxes can be inserted with the menu
25862 Insert\SpecialChar \menuseparator
25865 or the toolbar button
25866 \begin_inset Graphics
25867 filename ../images/box-insert.png
25869 scaleBeforeRotation
25874 A grey box with the label
25879 \begin_inset Graphics
25880 filename clipart/BoxInsetDefaultQt4.png
25882 scaleBeforeRotation
25887 The box type can be specified by right-clicking on the box.
25888 The appearing box dialog offers the
25891 \begin_inset space ~
25909 is the default for new boxes and is explained in section
25910 \begin_inset space ~
25914 \begin_inset CommandInset ref
25916 reference "sec:Minipages"
25924 is described in section
25925 \begin_inset space ~
25929 \begin_inset CommandInset ref
25931 reference "sec:Parboxes"
25938 \begin_layout Standard
25939 Boxes aren't numbered and can therefore not be referenced like floats or
25943 \begin_layout Standard
25944 \begin_inset Note Greyedout
25947 \begin_layout Plain Layout
25952 Boxes must not be the item in an
25968 \begin_layout Standard
25969 \begin_inset Note Greyedout
25972 \begin_layout Plain Layout
25977 For an unknown reason you can only set the
25980 \begin_inset space ~
25989 when you use a framed box.
25993 \begin_inset space ~
25998 type and without frames are explained in section
25999 \begin_inset space ~
26003 \begin_inset CommandInset ref
26005 reference "sec:Prevent-Hyphenation"
26017 \begin_layout Section
26019 \begin_inset CommandInset label
26021 name "sec:Box-Dialog"
26029 \begin_layout Plain Layout
26038 \begin_layout Subsection
26043 \begin_layout Plain Layout
26052 \begin_layout Standard
26053 In the box dialog you can adjust the box geometry in the fields
26062 The available units for the geometry are explained in Table
26063 \begin_inset space ~
26067 \begin_inset CommandInset ref
26069 reference "tab:Units"
26078 offers the following additional sizes:
26081 \begin_layout Description
26082 Depth This is the plain text
26083 \begin_inset Quotes eld
26087 \begin_inset Quotes erd
26091 It ignores the total depth when there are multiple text lines in the box:
26092 \begin_inset Newline newline
26096 \begin_inset Newline newline
26100 \begin_inset Newline newline
26104 \begin_inset Box Boxed
26113 height_special "depth"
26116 \begin_layout Plain Layout
26118 Box height set to 1
26119 \begin_inset space \thinspace{}
26128 \begin_inset Newline newline
26132 \begin_inset Newline newline
26138 \begin_layout Description
26139 Height This is the heigth of the text that is inside the box.
26141 \begin_inset space \thinspace{}
26145 \begin_inset space ~
26148 2 for this size will set the box heigth to 2 times the text height:
26149 \begin_inset Box Boxed
26158 height_special "height"
26161 \begin_layout Plain Layout
26163 Box height set to 2
26164 \begin_inset space \thinspace{}
26175 \begin_layout Description
26177 \begin_inset space ~
26180 Height This is the Height
26181 \begin_inset space \thinspace{}
26185 \begin_inset space \thinspace{}
26189 \begin_inset Box Boxed
26198 height_special "totalheight"
26201 \begin_layout Plain Layout
26203 Box height set to 1
26204 \begin_inset space \thinspace{}
26208 \begin_inset space ~
26219 \begin_layout Description
26220 Width This sets the width of the box as heigth:
26221 \begin_inset Box Boxed
26230 height_special "width"
26233 \begin_layout Plain Layout
26235 Box height set to 1
26236 \begin_inset space \thinspace{}
26247 \begin_layout Subsection
26252 \begin_layout Plain Layout
26261 \begin_layout Standard
26262 When you have chosen an
26265 \begin_inset space ~
26270 , the vertical box alignment can be:
26273 \begin_layout Description
26274 Top This is an example text line.
26276 \begin_inset Box Boxed
26285 height_special "totalheight"
26288 \begin_layout Plain Layout
26290 This box is top-aligned.
26295 This is an example text line.
26298 \begin_layout Description
26299 Middle This is an example text line.
26301 \begin_inset Box Boxed
26310 height_special "totalheight"
26313 \begin_layout Plain Layout
26315 This box is middle-aligned.
26320 This is an example text line.
26323 \begin_layout Description
26324 Bottom This is an example text line.
26326 \begin_inset Box Boxed
26335 height_special "totalheight"
26338 \begin_layout Plain Layout
26340 This box is bottom-aligned.
26345 This is an example text line.
26348 \begin_layout Standard
26349 \begin_inset Note Greyedout
26352 \begin_layout Plain Layout
26357 The vertical box aligment can be lost in the output when you have two boxes
26358 in a line and one has e.
26359 \begin_inset space \thinspace{}
26363 \begin_inset space ~
26366 a shadow and the other one not.
26374 \begin_layout Standard
26375 The horizontal box alignment can be set via LyX's paragraph dialog when
26376 you set the box into its own paragraph.
26379 \begin_layout Standard
26380 \begin_inset VSpace bigskip
26383 When you have chosen an
26386 \begin_inset space ~
26391 , the box content can be vertical aligned to:
26394 \begin_layout Description
26395 top This is an example text line.
26397 \begin_inset Box Boxed
26406 height_special "totalheight"
26409 \begin_layout Plain Layout
26411 This box text is top-aligned.
26416 This is an example text line.
26419 \begin_layout Description
26420 middle This is an example text line.
26422 \begin_inset Box Boxed
26431 height_special "totalheight"
26434 \begin_layout Plain Layout
26436 This box text is middle-aligned.
26441 This is an example text line.
26444 \begin_layout Description
26445 bottom This is an example text line.
26447 \begin_inset Box Boxed
26456 height_special "totalheight"
26459 \begin_layout Plain Layout
26461 This box text is bottom-aligned.
26466 This is an example text line.
26469 \begin_layout Description
26470 stretch This is an example text line.
26472 \begin_inset Box Boxed
26481 height_special "totalheight"
26484 \begin_layout Plain Layout
26489 \begin_layout Plain Layout
26494 \begin_layout Plain Layout
26501 This is an example text line.
26504 \begin_layout Standard
26505 To stretch the box content, it must consist of more than one paragraph.
26506 In the example above every text line is in an own paragraph.
26509 \begin_layout Standard
26510 \begin_inset VSpace bigskip
26513 To align the box content horizontally you can use LyX's paragraph dialog
26514 when you have chosen an
26517 \begin_inset space ~
26525 \begin_layout Standard
26527 \begin_inset Box Boxed
26536 height_special "totalheight"
26539 \begin_layout Plain Layout
26544 \begin_layout Plain Layout
26549 \begin_layout Plain Layout
26559 \begin_layout Standard
26560 If you haven't set an
26563 \begin_inset space ~
26568 , you can align the box content horizontally in the box dialog.
26571 \begin_layout Standard
26573 \begin_inset Box Boxed
26582 height_special "totalheight"
26585 \begin_layout Plain Layout
26587 This box text is horizontally stretched.
26595 \begin_layout Subsection
26597 \begin_inset CommandInset label
26599 name "sec:Decoration"
26607 \begin_layout Plain Layout
26616 \begin_layout Standard
26617 The type of the box can be specified in the box-dialog in the drop-down
26623 The following types are possible:
26626 \begin_layout Description
26628 \begin_inset space ~
26632 \begin_inset space ~
26635 frame This draws a rectangle frame around the box.
26636 The frame line thickness has the size of
26644 \begin_inset Box Boxed
26653 height_special "totalheight"
26656 \begin_layout Plain Layout
26666 \begin_layout Description
26668 \begin_inset space ~
26672 \begin_inset space ~
26675 break When you use the decoration
26677 simple rectangular frame
26679 and no inner box, you can allow page breaks within a box.
26680 Note that then, in contrary to other framed boxes, the frame always uses
26681 the whole column width, the box is set as its own paragraph, and
26693 has no effect on this box type.
26694 The frame line thickness has the size of
26702 \begin_inset Box Framed
26711 height_special "totalheight"
26714 \begin_layout Plain Layout
26715 Allow page break box
26723 \begin_layout Description
26725 \begin_inset space ~
26729 \begin_inset space ~
26732 thin This draws an oval frame around the box.
26733 The frame line thickness has the size 0.4
26734 \begin_inset space \thinspace{}
26739 \begin_inset Box ovalbox
26748 height_special "totalheight"
26751 \begin_layout Plain Layout
26761 \begin_layout Description
26763 \begin_inset space ~
26767 \begin_inset space ~
26770 thick This draws an oval frame around the box.
26771 The frame line thickness has the size 0.8
26772 \begin_inset space \thinspace{}
26777 \begin_inset Box Ovalbox
26786 height_special "totalheight"
26789 \begin_layout Plain Layout
26799 \begin_layout Description
26801 \begin_inset space ~
26804 shadow This draws a rectangle frame with a shadow around the box.
26805 The frame line thickness has the size of
26811 , the shadow has a width of 4
26812 \begin_inset space \thinspace{}
26817 \begin_inset Box Shadowbox
26826 height_special "totalheight"
26829 \begin_layout Plain Layout
26839 \begin_layout Description
26841 \begin_inset space ~
26844 background This draws a box with red background color.
26845 In contrary to colored boxes
26849 \begin_layout Plain Layout
26851 \begin_inset space \thinspace{}
26855 \begin_inset CommandInset ref
26857 reference "sec:Colored-Boxes"
26866 , it always uses the whole column width and the box is set as its own paragraph.
26868 \begin_inset Box Shaded
26877 height_special "totalheight"
26880 \begin_layout Plain Layout
26881 Shaded background box
26889 \begin_layout Description
26891 \begin_inset space ~
26895 \begin_inset space ~
26898 frame This draws a double-line rectangle frame around the box.
26899 The line thickness of the inner frame is 0.75
26900 \begin_inset space \thinspace{}
26909 , the thickness of the outer frame is 1.5
26910 \begin_inset space \thinspace{}
26920 The distance between the lines is 1.5
26921 \begin_inset space \thinspace{}
26931 \begin_inset space \thinspace{}
26935 \begin_inset space \thinspace{}
26939 \begin_inset space \thinspace{}
26944 \begin_inset Box Doublebox
26953 height_special "totalheight"
26956 \begin_layout Plain Layout
26958 Double rectangular box
26966 \begin_layout Standard
26967 \begin_inset VSpace bigskip
26970 LyX's box label will reflect the different frame types.
26971 To be able to use all types, the LaTeX-package
26979 \begin_layout Plain Layout
26980 LaTeX-packages ! fancybox
26988 \begin_layout Section
26993 \begin_layout Plain Layout
26994 Boxes ! Customization
27002 \begin_layout Standard
27003 The default value for the size
27010 \begin_inset space \thinspace{}
27014 It can be changed with the following command in TeX-Code to e.
27015 \begin_inset space \thinspace{}
27019 \begin_inset space ~
27023 \begin_inset space \thinspace{}
27029 \begin_layout Standard
27039 \begin_layout Standard
27043 \begin_layout Plain Layout
27055 \begin_inset Box Boxed
27064 height_special "totalheight"
27067 \begin_layout Plain Layout
27069 Rectangular box with
27076 \begin_inset space \thinspace{}
27080 \begin_inset space \thinspace{}
27084 \begin_inset space \thinspace{}
27096 \begin_layout Plain Layout
27110 \begin_layout Standard
27111 \begin_inset VSpace bigskip
27114 The space between the frame and the box content is for all frame styles
27116 \begin_inset space \thinspace{}
27120 You can change it by setting the length
27127 For example the command
27130 \begin_layout Standard
27140 \begin_layout Standard
27141 sets the value to 10
27142 \begin_inset space \thinspace{}
27145 pt, like for the following box:
27148 \begin_layout Standard
27152 \begin_layout Plain Layout
27164 \begin_inset Box Boxed
27173 height_special "totalheight"
27176 \begin_layout Plain Layout
27178 Rectangular box with
27185 \begin_inset space \thinspace{}
27189 \begin_inset space \thinspace{}
27193 \begin_inset space \thinspace{}
27205 \begin_layout Plain Layout
27219 \begin_layout Standard
27220 \begin_inset VSpace bigskip
27223 The diameter of the round corners of the oval boxes can be set with the
27234 \begin_layout Standard
27242 \begin_layout Standard
27243 sets the diameter to 1
27244 \begin_inset space \thinspace{}
27251 \begin_layout Standard
27259 \begin_layout Standard
27260 sets the diameter to
27263 \begin_inset space \thinspace{}
27267 \begin_inset space \thinspace{}
27270 minimum(width and heigth of box)
27282 \begin_layout Standard
27286 \begin_layout Plain Layout
27296 \begin_inset Box Ovalbox
27305 height_special "totalheight"
27308 \begin_layout Plain Layout
27317 \begin_inset space \thinspace{}
27321 \begin_inset space \thinspace{}
27325 \begin_inset space \thinspace{}
27337 \begin_layout Plain Layout
27349 \begin_layout Standard
27350 \begin_inset VSpace bigskip
27353 The size of the shadow can be adjusted by changing the length
27361 \begin_inset space \thinspace{}
27364 pt for the following box by this command:
27367 \begin_layout Standard
27377 \begin_layout Standard
27381 \begin_layout Plain Layout
27393 \begin_inset Box Shadowbox
27402 height_special "totalheight"
27405 \begin_layout Plain Layout
27414 \begin_inset space \thinspace{}
27418 \begin_inset space \thinspace{}
27422 \begin_inset space \thinspace{}
27434 \begin_layout Plain Layout
27448 \begin_layout Standard
27449 \begin_inset VSpace bigskip
27455 \begin_layout Standard
27456 The default value for the size
27463 \begin_inset space \thinspace{}
27467 The default space between the note content and the frame is 9
27468 \begin_inset space \thinspace{}
27471 pt and can be changed with the value of
27478 For example the frame appearance of the following
27482 is set with the TeX-Code commands
27485 \begin_layout Standard
27493 \begin_inset Newline newline
27503 \begin_layout Standard
27507 \begin_layout Plain Layout
27516 \begin_layout Plain Layout
27528 \begin_inset Box Framed
27537 height_special "totalheight"
27540 \begin_layout Plain Layout
27554 \begin_layout Plain Layout
27563 \begin_layout Plain Layout
27577 \begin_layout Standard
27578 \begin_inset VSpace bigskip
27584 \begin_layout Standard
27589 boxes the default space between the box content and the box border is 3
27590 \begin_inset space \thinspace{}
27593 pt and can be changed with the value of
27600 The default background color red can either be changed locally with the
27605 definecolor{shadebox}
27607 or globally with the menu
27609 Tools\SpecialChar \menuseparator
27610 Preferences\SpecialChar \menuseparator
27611 Colors\SpecialChar \menuseparator
27613 \begin_inset space ~
27625 command is explained in section
27626 \begin_inset space ~
27630 \begin_inset CommandInset ref
27632 reference "sec:Colored-Tables"
27640 \begin_layout Plain Layout
27647 requires the LaTeX-package
27651 in the preamble, see section
27652 \begin_inset space ~
27656 \begin_inset CommandInset ref
27658 reference "sec:Colored-Boxes"
27667 For example the appearance of the following shaded background note is set
27668 with the TeX-Code commands
27671 \begin_layout Standard
27681 \begin_inset Newline newline
27688 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
27691 \begin_layout Standard
27695 \begin_layout Plain Layout
27704 \begin_layout Plain Layout
27708 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
27714 \begin_inset Box Shaded
27723 height_special "totalheight"
27726 \begin_layout Plain Layout
27729 This is yellow text in a
27739 box with dark green background.
27748 \begin_layout Plain Layout
27757 \begin_layout Plain Layout
27761 definecolor{shadecolor}{rgb}{1,0,0}
27769 \begin_layout Standard
27770 \begin_inset VSpace bigskip
27773 Changed lengths and widths are valid for all boxes following the commands
27777 \begin_layout Section
27779 \begin_inset CommandInset label
27781 name "sec:Minipages"
27789 \begin_layout Plain Layout
27798 \begin_layout Standard
27799 Minipages are treated by LaTeX as pages within pages and can therefore for
27800 example have their own footnotes.
27803 \begin_layout Standard
27804 Minipages are useful when you write documents with different languages.
27807 \begin_layout Standard
27808 Below are two example minipages side by side.
27809 Their width is set to 45
27810 \begin_inset space \thinspace{}
27813 col% and they are separated by a horizontal fill, that was inserted via
27816 Insert\SpecialChar \menuseparator
27818 \begin_inset space ~
27821 Formatting\SpecialChar \menuseparator
27823 \begin_inset space ~
27829 \begin_inset Newpage newpage
27835 \begin_layout Standard
27836 \begin_inset Box Frameless
27845 height_special "totalheight"
27848 \begin_layout Plain Layout
27851 Dies ist ein deutscher Text.
27852 Dies ist ein deutscher Text.
27853 Dies ist ein deutscher Text.
27854 Dies ist ein deutscher Text.
27855 Dies ist ein deutscher Text.
27856 Dies ist ein deutscher Text.
27857 Dies ist ein deutscher Text.
27858 Dies ist ein deutscher Text.
27859 Dies ist ein deutscher Text.
27860 Dies ist ein deutscher Text.
27861 Dies ist ein deutscher Text.
27862 Dies ist ein deutscher Text.
27863 Dies ist ein deutscher Text
27867 \begin_layout Plain Layout
27870 Dies ist eine deutsche Fußnote.
27876 Dies ist ein deutscher Text.
27877 Dies ist ein deutscher Text.
27883 \begin_inset space \hfill{}
27887 \begin_inset Box Frameless
27896 height_special "totalheight"
27899 \begin_layout Plain Layout
27900 This is an English Text.
27901 This is an English Text.
27902 This is an English Text.
27903 This is an English Text.
27904 This is an English Text.
27905 This is an English Text.
27906 This is an English Text.
27907 This is an English Text.
27908 This is an English Text.
27909 This is an English Text.
27910 This is an English Text.
27911 This is an English Text.
27912 This is an English Text.
27913 This is an English Text.
27914 This is an English Text.
27915 This is an English Text.
27919 \begin_layout Plain Layout
27920 This is an English footnote.
27925 This is an English Text.
27934 \begin_layout Standard
27935 \begin_inset VSpace bigskip
27938 Another application for minipages are footnotes within tables.
27939 Due to a LaTeX restriction footnotes within tables doesn't appear at the
27940 bottom of the current page.
27941 But when you put the table with the footnote to a minipage, the footnote
27942 will appear at its bottom, numbered with Latin letters.
27943 The footnote number is reset to 1 in every minipage but not outside the
27947 \begin_layout Standard
27948 The footnote of this table doesn't appear:
27949 \begin_inset Tabular
27950 <lyxtabular version="3" rows="3" columns="4">
27952 <column alignment="center" valignment="top" width="0pt">
27953 <column alignment="center" valignment="top" width="0pt">
27954 <column alignment="center" valignment="top" width="0pt">
27955 <column alignment="center" valignment="top" width="0pt">
27957 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27960 \begin_layout Plain Layout
27966 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27969 \begin_layout Plain Layout
27975 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27978 \begin_layout Plain Layout
27983 \begin_layout Plain Layout
27984 This is a footnote within a table.
27994 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27997 \begin_layout Plain Layout
28005 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28008 \begin_layout Plain Layout
28014 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28017 \begin_layout Plain Layout
28023 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28026 \begin_layout Plain Layout
28032 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28035 \begin_layout Plain Layout
28043 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28046 \begin_layout Plain Layout
28052 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28055 \begin_layout Plain Layout
28061 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28064 \begin_layout Plain Layout
28070 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28073 \begin_layout Plain Layout
28087 \begin_layout Standard
28089 \begin_inset Box Frameless
28098 height_special "totalheight"
28101 \begin_layout Plain Layout
28103 \begin_inset Tabular
28104 <lyxtabular version="3" rows="3" columns="4">
28106 <column alignment="center" valignment="top" width="0pt">
28107 <column alignment="center" valignment="top" width="0pt">
28108 <column alignment="center" valignment="top" width="0pt">
28109 <column alignment="center" valignment="top" width="0pt">
28111 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28114 \begin_layout Plain Layout
28120 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28123 \begin_layout Plain Layout
28129 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28132 \begin_layout Plain Layout
28137 \begin_layout Plain Layout
28138 This is a footnote within a table.
28148 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28151 \begin_layout Plain Layout
28159 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28162 \begin_layout Plain Layout
28168 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28171 \begin_layout Plain Layout
28177 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28180 \begin_layout Plain Layout
28186 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28189 \begin_layout Plain Layout
28197 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28200 \begin_layout Plain Layout
28206 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28209 \begin_layout Plain Layout
28215 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28218 \begin_layout Plain Layout
28224 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28227 \begin_layout Plain Layout
28246 \begin_layout Standard
28247 \begin_inset VSpace bigskip
28250 The document-wide paragraph settings are ignored within minipages.
28251 That means that there will be no space between paragraphs in minipages
28252 although you set it to e.
28253 \begin_inset space \thinspace{}
28257 \begin_inset space ~
28264 in the document settings.
28267 \begin_layout Standard
28268 Minipages can also be used to set a background color for text parts, see
28270 \begin_inset space ~
28274 \begin_inset CommandInset ref
28276 reference "sub:Color-for-Paragraphs"
28283 \begin_layout Standard
28284 \begin_inset Note Greyedout
28287 \begin_layout Plain Layout
28292 You cannot have floats or margin notes inside minipages but minipages can
28293 be used inside tables, floats, and other boxes.
28301 \begin_layout Section
28303 \begin_inset CommandInset label
28305 name "sec:Parboxes"
28313 \begin_layout Plain Layout
28322 \begin_layout Standard
28323 Parboxes are very similar to minipages with the difference that they cannot
28325 The main difference to minipages is that minipages are in contrary to parboxes
28326 no real boxes but LaTeX-environments.
28329 \begin_layout Standard
28331 \begin_inset Box Frameless
28340 height_special "totalheight"
28343 \begin_layout Plain Layout
28344 This a text within a parbox.
28345 This a text within a parbox.
28348 \begin_layout Plain Layout
28349 This footnote won't appear:
28353 \begin_layout Plain Layout
28354 This footnote is inside a parbox and will therefore not appear.
28367 \begin_layout Section
28368 Boxes for Words and Characters
28372 \begin_layout Plain Layout
28373 Boxes ! for Characters
28381 \begin_layout Subsection
28382 Prevent Hyphenation
28383 \begin_inset CommandInset label
28385 name "sec:Prevent-Hyphenation"
28393 \begin_layout Plain Layout
28394 Boxes ! to Prevent Hyphenation
28402 \begin_layout Standard
28403 You can use a special kind of boxes to prevent words or text to be hyphenated.
28404 \begin_inset Newline newline
28407 Here is an example text:
28410 \begin_layout Standard
28411 This line is an example to show how you can prevent the hyphenation of
28412 \begin_inset Quotes eld
28416 \begin_inset Quotes erd
28422 \begin_layout Standard
28423 To prevent the hyphenation of the word
28424 \begin_inset Quotes eld
28428 \begin_inset Quotes erd
28434 \begin_layout Standard
28442 \begin_layout Standard
28443 in TeX-Code before the word.
28444 Behind the word insert a closing brace
28445 \begin_inset Quotes eld
28453 \begin_inset Quotes erd
28459 \begin_layout Standard
28460 This is the result:
28463 \begin_layout Standard
28464 This line is an example to show how you can prevent the hyphenation of
28468 \begin_layout Plain Layout
28478 \begin_inset Quotes eld
28482 \begin_inset Quotes erd
28489 \begin_layout Plain Layout
28499 \begin_layout Standard
28500 You can alternatively set the command
28501 \begin_inset Quotes eld
28511 \begin_inset Quotes grd
28514 as TeX-Code directly before the word:
28517 \begin_layout Standard
28518 This line is an example to show how you can prevent the hyphenation of
28519 \begin_inset Quotes eld
28526 \begin_layout Plain Layout
28536 \begin_inset Quotes erd
28542 \begin_layout Standard
28543 Of course the word now protrudes over the side margin.
28544 To avoid this, add via the menu
28546 Insert\SpecialChar \menuseparator
28548 \begin_inset space ~
28551 Formatting\SpecialChar \menuseparator
28553 \begin_inset space ~
28562 ) a line break before the word:
28565 \begin_layout Standard
28566 This line is an example to show how you can prevent the hyphenation of
28567 \begin_inset Newline newline
28574 \begin_layout Plain Layout
28584 \begin_inset Quotes eld
28588 \begin_inset Quotes erd
28595 \begin_layout Plain Layout
28605 \begin_layout Subsection
28607 \begin_inset CommandInset label
28609 name "sub:Vertical-Alignment"
28617 \begin_layout Plain Layout
28618 Boxes ! for Vertical Alignment
28627 \begin_layout Plain Layout
28636 \begin_layout Standard
28637 With the help of the command
28643 you can align words, characters or other boxes vertically to the surrounding
28651 is used with the following scheme:
28654 \begin_layout Standard
28659 raisebox{lift}[height][depth]{box content}
28662 \begin_layout Standard
28663 The lift can be a positive value to raise the box or a negative value to
28667 \begin_layout Standard
28668 To align for example the word
28669 \begin_inset Quotes eld
28673 \begin_inset Quotes erd
28676 so that the bottom of the
28677 \begin_inset Quotes eld
28681 \begin_inset Quotes erd
28685 \begin_inset Quotes eld
28689 \begin_inset Quotes erd
28692 is at the baseline, insert the command
28695 \begin_layout Standard
28705 \begin_layout Standard
28706 in TeX-Code before the word.
28707 Behind the word insert a closing brace
28708 \begin_inset Quotes eld
28716 \begin_inset Quotes erd
28720 \begin_inset Newline newline
28723 This is the result:
28726 \begin_layout Standard
28727 This is a text line with the word
28731 \begin_layout Plain Layout
28743 \begin_inset Quotes eld
28747 \begin_inset Quotes erd
28754 \begin_layout Plain Layout
28764 \begin_layout Standard
28765 \begin_inset VSpace bigskip
28768 When you raise or lower characters in a line, the line distance will be
28772 \begin_layout Standard
28773 This is a text line with the word
28777 \begin_layout Plain Layout
28789 \begin_inset Quotes eld
28793 \begin_inset Quotes erd
28800 \begin_layout Plain Layout
28808 \begin_inset Newline newline
28811 This is a text line with the word
28815 \begin_layout Plain Layout
28825 \begin_inset Quotes eld
28829 \begin_inset Quotes erd
28836 \begin_layout Plain Layout
28846 \begin_layout Standard
28847 If you want to prevent this for a certain reason, set the box height to
28852 \begin_layout Standard
28862 \begin_layout Standard
28863 This is a text line with the word
28867 \begin_layout Plain Layout
28879 \begin_inset Quotes eld
28883 \begin_inset Quotes erd
28890 \begin_layout Plain Layout
28898 \begin_inset Newline newline
28901 This is a text line with the word
28905 \begin_layout Plain Layout
28909 raisebox{0.5cm}[0pt]{
28915 \begin_inset Quotes eld
28919 \begin_inset Quotes erd
28926 \begin_layout Plain Layout
28936 \begin_layout Section
28938 \begin_inset CommandInset label
28940 name "sec:Colored-Boxes"
28948 \begin_layout Plain Layout
28957 \begin_layout Subsection
28962 \begin_layout Plain Layout
28971 \begin_layout Standard
28972 To color the background of text the text must be put into a so called
28973 \begin_inset Quotes eld
28977 \begin_inset Quotes erd
28981 This requires that the LaTeX-package
28989 \begin_layout Plain Layout
28990 LaTeX-packages ! color
28995 is loaded in the document preamble with the command
28998 \begin_layout Standard
29003 @ifundefined{textcolor}
29004 \begin_inset Newline newline
29011 \begin_layout Plain Layout
29022 usepackage{color}}{}
29025 \begin_layout Standard
29030 will be loaded automatically by LyX when you color text
29034 \begin_layout Plain Layout
29035 To avoid that it is loaded twice the command
29049 \begin_layout Standard
29050 \begin_inset VSpace medskip
29053 Colorboxes are created with the command
29060 This will be used with the following scheme:
29063 \begin_layout Standard
29068 colorbox{color}{box content}
29071 \begin_layout Standard
29072 The box content can also be a box and colorboxes can also be within other
29076 \begin_layout Standard
29077 The following colors are predefined:
29078 \begin_inset Newline newline
29117 \begin_inset Newline newline
29120 You can also define your own color as described in section
29121 \begin_inset space ~
29125 \begin_inset CommandInset ref
29127 reference "sec:Colored-Tables"
29134 \begin_layout Standard
29136 \begin_inset space \thinspace{}
29140 \begin_inset space ~
29143 a red background for a word, insert the command
29146 \begin_layout Standard
29154 \begin_layout Standard
29155 before the word in TeX-Code.
29156 Behind the word insert a closing brace
29157 \begin_inset Quotes eld
29165 \begin_inset Quotes erd
29169 \begin_inset Newline newline
29172 This is the result:
29175 \begin_layout Standard
29176 This is a line where the word
29180 \begin_layout Plain Layout
29190 \begin_inset Quotes eld
29194 \begin_inset Quotes erd
29201 \begin_layout Plain Layout
29208 has a red background.
29211 \begin_layout Standard
29212 \begin_inset VSpace bigskip
29215 If you would have the box frame in a different color, you can use the command
29222 with the following scheme:
29225 \begin_layout Standard
29230 fcolorbox{frame color}{box color}{box content}
29233 \begin_layout Standard
29247 The frame thickness and the space between the frame and the box content
29248 can be adjusted with the lengths
29260 , respectively, as described in section
29261 \begin_inset space ~
29265 \begin_inset CommandInset ref
29267 reference "sec:Decoration"
29274 \begin_layout Standard
29275 For the following example the command
29278 \begin_layout Standard
29283 fcolorbox{cyan}{magenta}{
29286 \begin_layout Standard
29290 \begin_layout Standard
29291 Here is an example where the frame line thickness was set to 1
29292 \begin_inset space \thinspace{}
29296 \begin_inset Newline newline
29303 \begin_layout Plain Layout
29318 \begin_layout Plain Layout
29322 fcolorbox{cyan}{magenta}{
29327 This is text within a colored, framed box.
29331 \begin_layout Plain Layout
29341 \begin_layout Standard
29342 \begin_inset VSpace bigskip
29345 Of course you can also have colored text inside a colorbox:
29346 \begin_inset Newline newline
29353 \begin_layout Plain Layout
29357 fcolorbox{cyan}{magenta}{
29364 This is colored text within a colored, framed box.
29370 \begin_layout Plain Layout
29381 \begin_layout Plain Layout
29395 \begin_layout Standard
29398 \begin_inset VSpace medskip
29404 \begin_layout Standard
29405 \begin_inset Note Greyedout
29408 \begin_layout Plain Layout
29413 Text in colorboxes cannot have line breaks.
29414 To color multiple text lines or paragraphs, use a box inside a colorbox
29415 as described in the following.
29423 \begin_layout Subsection
29424 Color for Paragraphs
29425 \begin_inset CommandInset label
29427 name "sub:Color-for-Paragraphs"
29435 \begin_layout Plain Layout
29436 Color ! for Paragraphs
29444 \begin_layout Standard
29445 To set the background color for more than one text line, put the text into
29447 Before the minipage insert the
29456 \begin_layout Standard
29464 \begin_layout Standard
29466 Behind the minipage insert a closing brace
29467 \begin_inset Quotes eld
29475 \begin_inset Quotes erd
29481 \begin_layout Standard
29485 \begin_layout Plain Layout
29489 colorbox{lightgrey}{
29495 \begin_inset Box Frameless
29504 height_special "totalheight"
29507 \begin_layout Plain Layout
29508 This is text with background color.
29509 This is text with background color.
29512 \begin_layout Plain Layout
29513 \begin_inset VSpace defskip
29516 The text can have footnotes
29520 \begin_layout Plain Layout
29521 Another example footnote
29526 and can include tables and figures.
29529 \begin_layout Plain Layout
29531 \begin_inset Tabular
29532 <lyxtabular version="3" rows="3" columns="3">
29534 <column alignment="center" valignment="top" width="0">
29535 <column alignment="center" valignment="top" width="0">
29536 <column alignment="center" valignment="top" width="0">
29538 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29541 \begin_layout Plain Layout
29547 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29550 \begin_layout Plain Layout
29556 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29559 \begin_layout Plain Layout
29567 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29570 \begin_layout Plain Layout
29576 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29579 \begin_layout Plain Layout
29581 \begin_inset Quotes erd
29589 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29592 \begin_layout Plain Layout
29600 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29603 \begin_layout Plain Layout
29609 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29612 \begin_layout Plain Layout
29618 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29621 \begin_layout Plain Layout
29641 \begin_layout Plain Layout
29651 \begin_layout Section
29652 Rotated and Scaled Boxes
29655 \begin_layout Standard
29656 To use the the commands described in this section, the LaTeX-package
29664 \begin_layout Plain Layout
29665 LaTeX-packages ! graphicx
29670 needs to be loaded in the document preamble with the command
29673 \begin_layout Standard
29678 @ifundefined{rotatebox}
29679 \begin_inset Newline newline
29686 \begin_layout Plain Layout
29697 usepackage{graphicx}}{}
29700 \begin_layout Standard
29701 \begin_inset Note Greyedout
29704 \begin_layout Plain Layout
29709 Some DVI-viewers can't display rotated or scaled material.
29717 \begin_layout Standard
29718 \begin_inset Note Greyedout
29721 \begin_layout Plain Layout
29726 Floats mustn't be inside a rotated or scaled box.
29734 \begin_layout Subsection
29739 \begin_layout Plain Layout
29749 \begin_layout Plain Layout
29759 \begin_layout Plain Layout
29769 \begin_layout Plain Layout
29770 Table Customization ! Rotating
29778 \begin_layout Standard
29779 To rotate material, you can put it into a rotated box.
29780 Such a box is created using the command
29786 in TeX-Code with the following scheme:
29789 \begin_layout Standard
29794 rotatebox[rotation origin]{rotation angle}{box content}
29797 \begin_layout Standard
29798 The rotation origin is specified in the form
29803 The following positions are possible:
29823 (top), and also expedient combinations of the four base positions.
29828 means, that the rotation origin is at the top left corner of the box.
29829 When no rotation origin is specified, the position
29834 The rotation angle is a number that can be negative that specifies the
29836 The rotation direction is counterclockwise.
29839 \begin_layout Standard
29840 In the following example the command
29844 rotatebox[origin=c]{60}{
29846 was inserted as TeX-Code before the text
29847 \begin_inset Quotes eld
29851 \begin_inset Quotes erd
29854 ; after the text the box was closed by a closing brace
29861 \begin_layout Standard
29866 \begin_layout Plain Layout
29870 rotatebox[origin=c]{60}{
29879 \begin_layout Plain Layout
29889 \begin_layout Standard
29890 The box content can also be another box or an inline formula:
29893 \begin_layout Standard
29898 \begin_layout Plain Layout
29902 rotatebox[origin=r]{-60}{
29908 \begin_inset Box Doublebox
29917 height_special "totalheight"
29920 \begin_layout Plain Layout
29930 \begin_layout Plain Layout
29941 \begin_layout Plain Layout
29945 rotatebox[origin=lb]{60}{
29951 \begin_inset Formula $\int A\,\mathrm{d}x=B$
29958 \begin_layout Plain Layout
29968 \begin_layout Standard
29969 or an image or table:
29972 \begin_layout Standard
29977 \begin_layout Plain Layout
29981 rotatebox[origin=lb]{90}{
29987 \begin_inset Graphics
29988 filename clipart/platypus.eps
29998 \begin_layout Plain Layout
30005 with a rotated image
30009 \begin_layout Plain Layout
30013 rotatebox[origin=l]{-90}{
30019 \begin_inset Tabular
30020 <lyxtabular version="3" rows="2" columns="2">
30022 <column alignment="center" valignment="top" width="0">
30023 <column alignment="center" valignment="top" width="0">
30025 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30028 \begin_layout Plain Layout
30034 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30037 \begin_layout Plain Layout
30045 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30048 \begin_layout Plain Layout
30054 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30057 \begin_layout Plain Layout
30072 \begin_layout Plain Layout
30082 \begin_layout Subsection
30087 \begin_layout Plain Layout
30097 \begin_layout Plain Layout
30107 \begin_layout Plain Layout
30117 \begin_layout Plain Layout
30118 Table Customization ! Scaling
30126 \begin_layout Standard
30127 To scale material the commands
30139 can be used as TeX-Code.
30142 \begin_layout Standard
30149 is used with the following scheme:
30152 \begin_layout Standard
30157 scalebox{horizontal}[vertical]{box content}
30160 \begin_layout Standard
30161 Horizontal and vertical are the corresponding scaling factors.
30162 If no vertical scaling factor is given, the horizontal factor will also
30163 be used as vertical one.
30166 \begin_layout Standard
30173 creates for example a double size
30177 \begin_layout Plain Layout
30190 \begin_layout Plain Layout
30197 , compared to the document text size.
30200 \begin_layout Standard
30205 scalebox{2}[1]{Hello}
30207 in contrary distorts the
30211 \begin_layout Plain Layout
30224 \begin_layout Plain Layout
30234 \begin_layout Standard
30235 If a the scaling factor is negative, the box content will be mirrored.
30236 Therefore the command
30240 scalebox{-1}[1]{Hello}
30242 can be used to create mirror writing:
30246 \begin_layout Plain Layout
30259 \begin_layout Plain Layout
30269 \begin_layout Standard
30274 scalebox{1}[-1]{Hello}
30280 \begin_layout Plain Layout
30293 \begin_layout Plain Layout
30303 \begin_layout Standard
30308 scalebox{-1}[1]{box content}
30310 there exists the command
30311 \begin_inset Newline newline
30318 reflectbox{box content}
30323 \begin_layout Standard
30324 \begin_inset VSpace bigskip
30333 is used to scale the box to a defined width and height.
30334 The command scheme is:
30337 \begin_layout Standard
30342 resizebox{width}{height}{box content}
30345 \begin_layout Standard
30346 Is one of the two command arguments given as exclamation mark
30350 , the size is set so that the aspect ratio of the box content is kept.
30353 \begin_layout Standard
30358 resizebox{2cm}{1cm}{Hello}
30364 \begin_layout Plain Layout
30368 resizebox{2cm}{1cm}{
30377 \begin_layout Plain Layout
30385 \begin_inset Newline newline
30392 resizebox{2cm}{!}{Hello}
30398 \begin_layout Plain Layout
30411 \begin_layout Plain Layout
30421 \begin_layout Standard
30422 \begin_inset VSpace bigskip
30426 \begin_inset Note Greyedout
30429 \begin_layout Plain Layout
30446 are set to zero, no LaTeX-errors occur when exporting the document but
30447 the exported files can not or only partly be displayed.
30455 \begin_layout Standard
30456 \begin_inset VSpace bigskip
30462 \begin_layout Standard
30463 The boxes can be combined in any order.
30465 \begin_inset space \thinspace{}
30469 \begin_inset space ~
30473 \begin_inset Newline newline
30480 rotatebox[origin=c]{-45}{
30484 reflectbox{Hello}}}
30485 \begin_inset Newline newline
30493 \begin_layout Standard
30498 \begin_layout Plain Layout
30502 rotatebox[origin=c]{-45}{
30515 \begin_layout Plain Layout
30525 \begin_layout Standard
30527 Images, tables, and inline formulas are allowed as box content:
30530 \begin_layout Standard
30535 \begin_layout Plain Layout
30539 rotatebox[origin=c]{-30}{
30549 \begin_inset Graphics
30550 filename clipart/platypus.eps
30560 \begin_layout Plain Layout
30571 \begin_layout Plain Layout
30575 rotatebox[origin=c]{-45}{
30585 \begin_inset Tabular
30586 <lyxtabular version="3" rows="2" columns="2">
30588 <column alignment="center" valignment="top" width="0">
30589 <column alignment="center" valignment="top" width="0">
30591 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30594 \begin_layout Plain Layout
30600 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30603 \begin_layout Plain Layout
30611 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30614 \begin_layout Plain Layout
30620 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30623 \begin_layout Plain Layout
30638 \begin_layout Plain Layout
30649 \begin_layout Plain Layout
30653 rotatebox[origin=c]{-45}{
30663 \begin_inset Formula $\int A\,\mathrm{d}x=B$
30670 \begin_layout Plain Layout
30680 \begin_layout Standard
30681 When the global formula style
30685 is used in the document
30689 \begin_layout Plain Layout
30691 \begin_inset Quotes eld
30695 \begin_inset Quotes erd
30698 is added to the document class options.
30703 , also display formulas can be scaled.
30706 \begin_layout Chapter
30711 \begin_layout Plain Layout
30720 \begin_layout Standard
30723 Insert\SpecialChar \menuseparator
30726 you can insert external material to your document.
30730 \begin_layout Description
30732 \begin_inset space ~
30735 Document Another LyX document; its content is directly inserted to your
30739 \begin_layout Description
30741 \begin_inset space ~
30744 Text A text document; every of its text lines is inserted to your document
30748 \begin_layout Description
30750 \begin_inset space ~
30754 \begin_inset space ~
30758 \begin_inset space ~
30761 Lines A text document; its text lines are inserted as they are.
30762 Empty text lines creates a new paragraph in your document.
30765 \begin_layout Description
30767 \begin_inset space ~
30770 Material Files in various formats.
30773 \begin_layout Description
30775 \begin_inset space ~
30778 Document LyX or LaTeX-documents.
30781 \begin_layout Section
30786 \begin_layout Plain Layout
30787 External Stuff ! External Material
30795 \begin_layout Standard
30796 The external material feature allows you to insert files to your document
30797 without converting them previously to a format that can be read by the
30798 document output format because LyX takes care of needed conversions.
30799 This is similar to images that can be inserted in various image formats
30803 \begin_layout Standard
30804 External material can be inserted via the
30808 dialog that is accessible with the menu
30810 Insert\SpecialChar \menuseparator
30811 File\SpecialChar \menuseparator
30813 \begin_inset space ~
30819 Currently the following file types (
30826 \begin_layout Description
30827 ChessDiagram This template supports chess position diagrams made with the
30831 \begin_inset CommandInset href
30834 target "http://en.wikipedia.org/wiki/XBoard"
30843 \begin_layout Description
30844 Date This inserts the date in the form
30849 This is a date inserted as external material:
30850 \begin_inset External
30857 \begin_inset space ~
30861 \begin_inset Note Note
30864 \begin_layout Plain Layout
30865 Remove the protected space when bug 4398 is fixed!
30871 \begin_inset Newline newline
30874 The date is not shown within LyX, only in the output.
30875 There are two other methods of inserting a date: Via menu
30877 Insert\SpecialChar \menuseparator
30880 and with the LaTeX command
30887 The different methods are compared in Table
30888 \begin_inset space ~
30892 \begin_inset CommandInset ref
30894 reference "tab:Comparison-of-the"
30901 \begin_layout Description
30902 LilyPond This template is used for music notation typeset with the program
30903 \begin_inset Newline linebreak
30909 \begin_inset CommandInset href
30912 target "http://en.wikipedia.org/wiki/LilyPond"
30921 \begin_layout Description
30922 PDFPages With this template you can insert PDF documents to your document.
30923 To insert certain or all pages of a PDF, use the
30933 LaTeX and LyX options
30935 tab according to the template description in the dialog.
30940 option is given, only the first page of the PDF will be inserted.
30943 \begin_layout Description
30944 RasterImage This can be used for bitmap images.
30945 Nearly all popular image formats are supported.
30946 The image can be treated in the
30950 dialog like the images that are usually included via the
30954 dialog as described in section
30955 \begin_inset space ~
30959 \begin_inset CommandInset ref
30961 reference "sec:Graphics-Dialog"
30966 The difference is that only raster images are allowed, that means that
30967 PDF and EPS-images are not supported.
30970 \begin_layout Description
30971 XFig This template supports images created with the program
30974 \begin_inset CommandInset href
30977 target "http://en.wikipedia.org/wiki/Xfig"
30986 \begin_layout Standard
30987 \begin_inset Float table
30993 \begin_layout Plain Layout
30994 \begin_inset Caption
30996 \begin_layout Plain Layout
30997 \begin_inset CommandInset label
30999 name "tab:Comparison-of-the"
31003 Comparison of the date input methods.
31011 \begin_layout Plain Layout
31013 \begin_inset Tabular
31014 <lyxtabular version="3" rows="4" columns="4">
31016 <column alignment="center" valignment="top" width="0">
31017 <column alignment="center" valignment="top" width="0">
31018 <column alignment="center" valignment="top" width="0">
31019 <column alignment="center" valignment="top" width="0">
31021 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31024 \begin_layout Plain Layout
31030 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31033 \begin_layout Plain Layout
31036 External Material\SpecialChar \menuseparator
31042 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31045 \begin_layout Plain Layout
31048 Insert\SpecialChar \menuseparator
31054 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31057 \begin_layout Plain Layout
31069 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31072 \begin_layout Plain Layout
31078 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31081 \begin_layout Plain Layout
31087 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31090 \begin_layout Plain Layout
31096 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31099 \begin_layout Plain Layout
31100 as TeX-Code inset box
31107 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31110 \begin_layout Plain Layout
31116 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31119 \begin_layout Plain Layout
31125 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31128 \begin_layout Plain Layout
31134 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31137 \begin_layout Plain Layout
31145 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31148 \begin_layout Plain Layout
31154 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31157 \begin_layout Plain Layout
31163 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31166 \begin_layout Plain Layout
31172 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31175 \begin_layout Plain Layout
31194 \begin_layout Standard
31195 When you use the option
31207 dialog, only the path to the inserted file is shown in the output.
31208 \begin_inset Newline newline
31211 External material is displayed in LyX either as box like this:
31212 \begin_inset Graphics
31213 filename clipart/ExternalMaterialQt4.png
31215 scaleBeforeRotation
31219 or as image, depending on the option
31225 LaTeX and LyX options
31230 \begin_layout Standard
31237 manual explains how you can define your own templates.
31240 \begin_layout Section
31242 \begin_inset CommandInset label
31244 name "sec:Child-Documents"
31252 \begin_layout Plain Layout
31253 External Stuff ! Child Documents
31262 \begin_layout Plain Layout
31271 \begin_layout Standard
31272 Child documents are used when you have a long document consisting of several
31273 larger parts or sections.
31274 For maintenance it is often useful and sometimes even required to split
31275 the document in several files that can be revised separately.
31276 The different documents are then the so called child documents and a master
31277 document connects them to print the full document or parts of it.
31280 \begin_layout Standard
31281 Included documents are displayed in LyX as a box like this:
31282 \begin_inset Graphics
31283 filename clipart/ChildDocumentQt4.png
31285 scaleBeforeRotation
31289 To include child documents to a master document use the menu
31291 Insert\SpecialChar \menuseparator
31292 File\SpecialChar \menuseparator
31294 \begin_inset space ~
31300 A dialog pops up where you can choose between four include methods:
31303 \begin_layout Description
31304 Include You can include LyX and LaTeX-documents.
31313 dialog, the included documents will be opened in LyX in a new file tab
31314 so that you can modify it.
31315 \begin_inset Newline newline
31321 \begin_layout Standard
31322 Here is a child document inserted using
31327 \begin_inset CommandInset include
31328 LatexCommand include
31329 filename "DummyDocument1.lyx"
31336 \begin_layout Standard
31337 The section numbering includes the sections of the included files in the
31338 order they are inserted in the master document.
31339 The included example document has for example a subsection that is numbered
31340 as subsection of this section.
31341 Labels of included documents can be referenced: Subsection
31342 \begin_inset space ~
31346 \begin_inset CommandInset ref
31348 reference "sub:External-Subsection-1"
31355 \begin_layout Standard
31356 The preamble of the child document is ignored, only the preamble of the
31357 master document is used.
31358 Included documents are inserted starting on a new page and end with a page
31362 \begin_layout Standard
31363 With the LaTeX-command
31369 you can specify which included child documents are processed when the output
31371 This is useful when you are perhaps only working on a certain chapter of
31372 your large document as this saves compiling time.
31379 is inserted to the master document preamble.
31380 It takes a comma-separated list of the filenames as argument, e.g.
31383 \begin_layout Standard
31388 includeonly{chapter1,chapter5}
31391 \begin_layout Standard
31392 will only process the included files named
31393 \begin_inset Quotes eld
31397 \begin_inset Quotes erd
31401 \begin_inset Quotes eld
31405 \begin_inset Quotes erd
31409 \begin_inset Quotes eld
31413 \begin_inset Quotes erd
31419 \begin_layout Standard
31420 \begin_inset Note Greyedout
31423 \begin_layout Plain Layout
31428 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
31429 w the document in case that the child document uses another document class
31430 than the master document as this will lead to unexpected outputs.
31438 \begin_layout Description
31439 Input This method is very similar to the Include method.
31440 The differences are:
31444 \begin_layout Itemize
31445 Input files don't start with a new page and don't end with a page break.
31448 \begin_layout Itemize
31449 Input files can be previewed in LyX when
31452 \begin_inset space ~
31457 is enabled in LyX's preferences under
31460 \begin_inset space ~
31464 \begin_inset space ~
31467 feel\SpecialChar \menuseparator
31473 \begin_layout Itemize
31484 \begin_layout Standard
31485 Here is a child document inserted using
31490 \begin_inset CommandInset include
31492 filename "DummyDocument2.lyx"
31499 \begin_layout Description
31500 Verbatim With this method every text file can be included.
31501 The file is shown in the output with its source code, no command used in
31502 the text is invoked.
31503 You can use the option
31505 Mark spaces in output
31507 that displays the character
31508 \begin_inset Quotes eld
31515 \begin_layout Plain Layout
31525 \begin_inset Quotes erd
31528 for every space character in the source code.
31529 The difference to the method via the menu
31531 Insert\SpecialChar \menuseparator
31532 File\SpecialChar \menuseparator
31534 \begin_inset space ~
31539 is that the document content is not shown in LyX.
31542 \begin_layout Standard
31543 Here is a child document inserted as Verbatim:
31544 \begin_inset CommandInset include
31545 LatexCommand verbatiminput
31546 filename "DummyTextDocument.txt"
31551 \begin_inset VSpace bigskip
31554 Here is a child document inserted as Verbatim using the
31556 Mark spaces in output
31559 \begin_inset CommandInset include
31560 LatexCommand verbatiminput*
31561 filename "DummyTextDocument.txt"
31568 \begin_layout Standard
31569 \begin_inset VSpace bigskip
31575 \begin_layout Standard
31576 \begin_inset Note Greyedout
31579 \begin_layout Plain Layout
31584 As you can see in the examples above, the text of the documents included
31589 is not broken at the end of the document lines.
31597 \begin_layout Description
31598 Listings This type is described in chapter
31599 \begin_inset space ~
31603 \begin_inset CommandInset ref
31605 reference "cha:Program-Code-Listings"
31612 \begin_layout Standard
31613 \begin_inset Note Greyedout
31616 \begin_layout Plain Layout
31621 Including the same document twice in a document using different methods
31622 could cause LaTeX-problems.
31630 \begin_layout Chapter
31631 Program Code Listings
31632 \begin_inset CommandInset label
31634 name "cha:Program-Code-Listings"
31642 \begin_layout Plain Layout
31652 \begin_layout Plain Layout
31662 \begin_layout Plain Layout
31671 \begin_layout Standard
31672 To include and typeset program code you can use the
31676 inset that can be inserted via the menu
31678 Insert\SpecialChar \menuseparator
31690 \begin_layout Plain Layout
31691 LaTeX-packages ! listings
31696 provides a powerful and flexible way to insert program source code to your
31700 \begin_layout Standard
31701 When right-clicking on a listings inset a dialog pops up where you can set
31702 the listings format.
31705 \begin_layout Standard
31706 By default, a listing starts a new paragraph in the output.
31707 The placement option
31710 \begin_inset space ~
31715 prints the listing inline like this:
31716 \begin_inset listings
31717 lstparams "language={C++}"
31721 \begin_layout Plain Layout
31729 \begin_inset Newline newline
31736 creates a listings float where you can specify the placement options
31737 \begin_inset Quotes eld
31745 \begin_inset Quotes erd
31749 \begin_inset Quotes eld
31757 \begin_inset Quotes erd
31761 \begin_inset Quotes eld
31769 \begin_inset Quotes erd
31773 \begin_inset Quotes eld
31781 \begin_inset Quotes erd
31784 corresponding to the float placement options described in section
31785 \begin_inset space ~
31789 \begin_inset CommandInset ref
31791 reference "sec:Float-Placement"
31796 The placement options can be mixed and are inserted without any separation,
31798 \begin_inset space \thinspace{}
31802 \begin_inset space ~
31806 \begin_inset Quotes eld
31814 \begin_inset Quotes erd
31819 \begin_inset Quotes eld
31823 \begin_inset Quotes erd
31826 has sometimes no effect, but you don't need to use the
31830 option in this case as also non-float listings can have captions and be
31834 \begin_layout Standard
31835 You can add captions to listings with the menu
31837 Insert\SpecialChar \menuseparator
31841 Listings can be referenced like floats: Listing
31842 \begin_inset space ~
31846 \begin_inset CommandInset ref
31848 reference "lst:Example-Listing"
31855 \begin_layout Standard
31856 \begin_inset listings
31857 lstparams "language=Python"
31861 \begin_layout Plain Layout
31863 \begin_inset Caption
31865 \begin_layout Plain Layout
31866 \begin_inset CommandInset label
31868 name "lst:Example-Listing"
31872 Example Listing float
31877 # Example listing float
31880 \begin_layout Plain Layout
31885 \begin_layout Plain Layout
31887 'this is a python function'
31890 \begin_layout Plain Layout
31900 \begin_layout Standard
31901 When you have set a programming language in the listings dialog, the keywords
31902 of this language will be recognized and specially typeset in the output.
31903 In the example listings the Python keyword
31904 \begin_inset Quotes eld
31908 \begin_inset Quotes erd
31911 is recognized and printed bold in the output.
31914 \begin_layout Standard
31915 \begin_inset Note Greyedout
31918 \begin_layout Plain Layout
31923 If you don't get bold keywords when using typewriter fonts, your typewriter
31924 font probably doesn't provide a bold shape.
31925 In this case select a different one in the menu
31927 Document\SpecialChar \menuseparator
31928 Settings\SpecialChar \menuseparator
31940 provide bold shapes.)
31948 \begin_layout Standard
31952 \begin_inset space ~
31957 of the listings dialog you can specify the line numbering style.
31958 You can insert a number to specify which lines are numbered to the field
31964 When you insert e.g.
31966 \begin_inset Quotes eld
31970 \begin_inset Quotes erd
31973 , only every 3rd line will be numbered.
31976 \begin_layout Standard
31977 You can furthermore specify a range of lines, only these will then appear
31982 \begin_inset space ~
31987 should be used when you use national characters like the German umlauts
31989 \begin_inset Newline newline
31992 Here is an example listing with left line numbering, step
31993 \begin_inset Quotes eld
31997 \begin_inset Quotes erd
32001 \begin_inset Quotes eld
32005 \begin_inset Quotes erd
32009 \begin_inset Quotes eld
32013 \begin_inset space ~
32017 \begin_inset Quotes erd
32021 \begin_inset Quotes eld
32025 \begin_inset space ~
32029 \begin_inset space ~
32033 \begin_inset Quotes erd
32037 \begin_inset space \thinspace{}
32041 \begin_inset space \thinspace{}
32047 \begin_layout Standard
32048 \begin_inset listings
32049 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
32053 \begin_layout Plain Layout
32058 \begin_layout Plain Layout
32060 'this is a python function'
32063 \begin_layout Plain Layout
32068 \begin_layout Plain Layout
32073 \begin_layout Plain Layout
32075 'This is a German word: Tschüß'
32078 \begin_layout Plain Layout
32083 \begin_layout Plain Layout
32088 \begin_layout Plain Layout
32090 'this is a python function'
32093 \begin_layout Plain Layout
32103 \begin_layout Standard
32104 \begin_inset Note Greyedout
32107 \begin_layout Plain Layout
32112 Due to a bug in the
32116 package the line numbering is shifted by a line by every previous listing.
32117 That's the reason why the lines 2 and 5 are numbered in the above listing
32118 and not the lines 3 and 6.
32126 \begin_layout Standard
32127 \begin_inset VSpace bigskip
32133 \begin_layout Standard
32134 It is also possible to print lines from a file as listing.
32135 To do this, use the menu
32137 Insert\SpecialChar \menuseparator
32138 File\SpecialChar \menuseparator
32141 and choose the type
32149 \begin_layout Plain Layout
32150 The other child document types are described in section
32151 \begin_inset space ~
32155 \begin_inset CommandInset ref
32157 reference "sec:Child-Documents"
32166 In the child document dialog you can specify the listing parameters in
32168 To show a list of all available parameters, type in a question mark
32169 \begin_inset Quotes eld
32173 \begin_inset Quotes erd
32179 \begin_layout Standard
32180 To reference child document listings, write a label text into the corresponding
32181 field of the child document dialog.
32182 The label can then be referenced using the menu
32184 Insert\SpecialChar \menuseparator
32190 \begin_layout Standard
32192 \begin_inset space ~
32196 \begin_inset CommandInset ref
32198 reference "lst:file-listing"
32202 is an example for a listing of a file; there the lines 10
32203 \begin_inset space \thinspace{}
32207 \begin_inset space \thinspace{}
32210 15 of this LyX file are listed.
32213 \begin_layout Standard
32214 \begin_inset CommandInset include
32215 LatexCommand lstinputlisting
32216 filename "EmbeddedObjects.lyx"
32217 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
32224 \begin_layout Standard
32225 \begin_inset VSpace bigskip
32231 \begin_layout Standard
32232 Global listings settings can be set in the
32234 Document\SpecialChar \menuseparator
32235 Settings\SpecialChar \menuseparator
32239 To get there a list of available options, type in a question mark
32240 \begin_inset Quotes eld
32244 \begin_inset Quotes erd
32250 \begin_inset space ~
32258 \begin_layout Standard
32259 For more information about the
32263 package, we refer to its documentation
32264 \begin_inset CommandInset citation
32273 \begin_layout Standard
32274 \begin_inset Newpage newpage
32280 \begin_layout Chapter
32282 Units available in LyX
32286 \begin_layout Plain Layout
32293 \begin_inset CommandInset label
32295 name "cha:Units-available-in"
32302 \begin_layout Standard
32303 To understand the units described in this documentation, Table
32304 \begin_inset space ~
32308 \begin_inset CommandInset ref
32310 reference "tab:Units"
32314 explains all units available in LyX.
32317 \begin_layout Standard
32318 \begin_inset Float table
32324 \begin_layout Plain Layout
32325 \begin_inset Caption
32327 \begin_layout Plain Layout
32328 \begin_inset CommandInset label
32342 \begin_layout Plain Layout
32343 \begin_inset VSpace medskip
32349 \begin_layout Plain Layout
32351 \begin_inset Tabular
32352 <lyxtabular version="3" rows="20" columns="2">
32354 <column alignment="center" valignment="top" width="0">
32355 <column alignment="center" valignment="top" width="0">
32357 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32360 \begin_layout Plain Layout
32366 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
32369 \begin_layout Plain Layout
32377 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32380 \begin_layout Plain Layout
32386 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32389 \begin_layout Plain Layout
32397 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32400 \begin_layout Plain Layout
32406 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32409 \begin_layout Plain Layout
32417 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32420 \begin_layout Plain Layout
32426 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32429 \begin_layout Plain Layout
32437 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32440 \begin_layout Plain Layout
32446 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32449 \begin_layout Plain Layout
32451 \begin_inset space \thinspace{}
32455 \begin_inset space \thinspace{}
32465 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32468 \begin_layout Plain Layout
32474 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32477 \begin_layout Plain Layout
32479 \begin_inset space \thinspace{}
32483 \begin_inset space \thinspace{}
32493 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32496 \begin_layout Plain Layout
32502 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32505 \begin_layout Plain Layout
32506 scaled point (65536
32507 \begin_inset space \thinspace{}
32511 \begin_inset space \thinspace{}
32521 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32524 \begin_layout Plain Layout
32530 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32533 \begin_layout Plain Layout
32535 \begin_inset space \thinspace{}
32539 \begin_inset space \thinspace{}
32549 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32552 \begin_layout Plain Layout
32558 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32561 \begin_layout Plain Layout
32563 \begin_inset space \thinspace{}
32567 \begin_inset Formula $\approx$
32571 \begin_inset space \thinspace{}
32581 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32584 \begin_layout Plain Layout
32590 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32593 \begin_layout Plain Layout
32595 \begin_inset space \thinspace{}
32599 \begin_inset space \thinspace{}
32609 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32612 \begin_layout Plain Layout
32618 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32621 \begin_layout Plain Layout
32622 % of original image width
32629 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32632 \begin_layout Plain Layout
32638 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32641 \begin_layout Plain Layout
32649 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32652 \begin_layout Plain Layout
32658 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32661 \begin_layout Plain Layout
32669 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32672 \begin_layout Plain Layout
32678 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32681 \begin_layout Plain Layout
32689 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32692 \begin_layout Plain Layout
32698 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32701 \begin_layout Plain Layout
32709 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32712 \begin_layout Plain Layout
32718 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32721 \begin_layout Plain Layout
32729 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32732 \begin_layout Plain Layout
32738 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32741 \begin_layout Plain Layout
32749 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32752 \begin_layout Plain Layout
32758 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32761 \begin_layout Plain Layout
32773 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32776 \begin_layout Plain Layout
32782 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32785 \begin_layout Plain Layout
32797 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32800 \begin_layout Plain Layout
32806 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
32809 \begin_layout Plain Layout
32811 \begin_inset space \thinspace{}
32815 \begin_inset space \thinspace{}
32836 \begin_layout Chapter
32837 Output File Formats with Graphics
32838 \begin_inset CommandInset label
32840 name "cha:Output-File-Formats"
32847 \begin_layout Section
32852 \begin_layout Plain Layout
32862 \begin_layout Plain Layout
32867 \begin_layout Plain Layout
32878 \begin_layout Plain Layout
32893 \begin_layout Standard
32894 This file type has the extension
32895 \begin_inset Quotes eld
32903 \begin_inset Quotes erd
32908 \begin_inset Quotes eld
32912 \begin_inset Quotes erd
32915 (DVI), because it is completely portable; you can move them from one machine
32916 to another without needing to do any sort of conversion.
32917 At the time when this file-format was developed, this was no matter of
32919 DVIs are used for quick previews and as pre-stage for other output formats,
32923 \begin_layout Standard
32924 \begin_inset Note Greyedout
32927 \begin_layout Plain Layout
32932 DVI-files doesn't contain images, they will only be a linked.
32937 So don't forget this, if you move your
32941 file to another computer.
32942 This property can also slow down your computer when you view the DVI.
32943 Because the DVI-viewer has to convert the image in the background to make
32944 it visible when you scroll in the DVI.
32945 So we recommend to use PDF for files with many images.
32948 \begin_layout Standard
32949 You can export your document to DVI by using the menu
32951 File\SpecialChar \menuseparator
32952 Export\SpecialChar \menuseparator
32956 You can view your document as DVI via the
32960 menu or by using the toolbar button
32961 \begin_inset Graphics
32962 filename ../images/buffer-view_dvi.png
32964 scaleBeforeRotation
32971 \begin_layout Section
32973 \begin_inset CommandInset label
32975 name "sec:PostScript"
32983 \begin_layout Plain Layout
32984 File Formats ! PostScript
32993 \begin_layout Plain Layout
32998 \begin_layout Plain Layout
33009 \begin_layout Plain Layout
33024 \begin_layout Standard
33025 This file type has the extension
33026 \begin_inset Quotes eld
33034 \begin_inset Quotes erd
33038 PostScript was developed by the company
33042 as printer language.
33043 The file contains therefore commands that the printer uses to print the
33045 PostScript can be seen as
33046 \begin_inset Quotes eld
33049 programming language
33050 \begin_inset Quotes erd
33053 ; you can calculate with it and draw diagrams and images
33057 \begin_layout Plain Layout
33058 If you are interested to learn more about this, have a look at the LaTeX-package
33064 \begin_inset CommandInset citation
33076 Due to this ability, the files are often bigger than PDFs.
33079 \begin_layout Standard
33080 PostScript can only contain images in the format
33081 \begin_inset Quotes eld
33084 Encapsulated PostScript
33085 \begin_inset Quotes erd
33088 (EPS, file extension
33089 \begin_inset Quotes eld
33097 \begin_inset Quotes erd
33101 As LyX allows you to use any known image format in your document, it has
33102 to convert images in the background to EPS.
33103 If you have e.g 50 images in your document, LyX has to do 50 conversions
33104 whenever you view or export your document.
33105 This will slow down your work flow with LyX drastically.
33106 So if you plan to use PostScript, you can insert your images directly as
33107 EPS to avoid this problem.
33110 \begin_layout Standard
33111 You can export your document to PostScript using the menu
33113 File\SpecialChar \menuseparator
33114 Export\SpecialChar \menuseparator
33118 You can view your document as PostScript via the
33122 menu or by using the toolbar button
33123 \begin_inset Graphics
33124 filename ../images/buffer-view_ps.png
33126 scaleBeforeRotation
33133 \begin_layout Section
33135 \begin_inset CommandInset label
33145 \begin_layout Plain Layout
33155 \begin_layout Plain Layout
33164 \begin_layout Standard
33165 This file type has the extension
33166 \begin_inset Quotes eld
33174 \begin_inset Quotes erd
33179 \begin_inset Quotes eld
33182 Portable Document Format
33183 \begin_inset Quotes erd
33186 (PDF) is developed by
33190 as derivative from PostScript.
33191 It is more compressed and it uses much less commands than PostScript.
33193 \begin_inset Quotes eld
33197 \begin_inset Quotes erd
33200 implies, it can be processed at any computer system and the printed output
33201 looks exactly the same.
33204 \begin_layout Standard
33205 PDF can contain images in its own PDF format, in the format
33206 \begin_inset Quotes eld
33209 Joint Photographic Experts Group
33210 \begin_inset Quotes erd
33213 (JPG, file extension
33214 \begin_inset Quotes eld
33222 \begin_inset Quotes erd
33226 \begin_inset Quotes eld
33234 \begin_inset Quotes erd
33237 ), and in the format
33238 \begin_inset Quotes eld
33241 Portable Network Graphics
33242 \begin_inset Quotes erd
33245 (PNG, file extension
33246 \begin_inset Quotes eld
33254 \begin_inset Quotes erd
33258 Nevertheless you can use any other image format, because LyX converts them
33259 in the background to one of these formats.
33260 But as described in the section about PostScript, the image conversion
33261 will slow down your work flow.
33262 So it is recommended to use images in one of the three mentioned formats.
33265 \begin_layout Standard
33266 You can export your document to PDF via the menu
33268 File\SpecialChar \menuseparator
33271 in three different ways:
33274 \begin_layout Description
33276 \begin_inset space ~
33279 (ps2pdf) This uses the program
33283 that creates a PDF from a PostScript-version of your file.
33284 The PostScript-version is produced by the program
33288 which uses a DVI-version as intermediate step.
33289 So this export variant consist of three conversions.
33292 \begin_layout Description
33294 \begin_inset space ~
33297 (dvipdfm) This uses the program
33301 that converts your file in the background to DVI and in a second step to
33305 \begin_layout Description
33307 \begin_inset space ~
33310 (pdflatex) This uses the program
33314 that converts your file directly to PDF.
33317 \begin_layout Standard
33318 It is recommended to use
33321 \begin_inset space ~
33330 supports all features of actual PDF-versions, is quick and works stable
33336 is not under development and therefore a bit outdated.
33339 \begin_layout Standard
33340 You can view your document as PDF via the
33344 menu or by using the toolbar button
33345 \begin_inset Graphics
33346 filename ../images/buffer-view_pdf2.png
33348 scaleBeforeRotation
33359 \begin_inset space ~
33367 \begin_layout Chapter
33368 Explanation of Equation
33369 \begin_inset space ~
33373 \begin_inset CommandInset ref
33380 \begin_inset CommandInset label
33382 name "cha:Explanation-of-Equation"
33389 \begin_layout Standard
33395 \begin_inset Formula $W_{\mathrm{tot\, n}}$
33398 can be calculated to
33401 \begin_layout Standard
33402 \begin_inset Formula \begin{equation}
33403 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}
33410 \begin_layout Standard
33412 \begin_inset Formula $W_{g\, n}$
33415 is the given width of all cells.
33422 is the LaTeX-length between the cell text and the cell border, its default
33424 \begin_inset space \thinspace{}
33434 is the thickness of the cell border line, the default is 0.4
33435 \begin_inset space \thinspace{}
33441 \begin_layout Standard
33443 \begin_inset space ~
33447 \begin_inset CommandInset ref
33449 reference "eq:Wtot_n"
33453 , the total width of a multicolumn
33454 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
33460 \begin_layout Standard
33461 \begin_inset Formula \begin{equation}
33462 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
33469 \begin_layout Standard
33470 By setting equation
33471 \begin_inset space ~
33475 \begin_inset CommandInset ref
33477 reference "eq:Wtot_n"
33482 \begin_inset CommandInset ref
33484 reference "eq:Wtot_mult"
33488 equal we can calculate the needed given width
33489 \begin_inset Formula $W_{g\, n}$
33496 columns are spanned, so that each column has a total width of
33497 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
33503 \begin_layout Standard
33504 \begin_inset Formula \begin{equation}
33505 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
33512 \begin_layout Bibliography
33513 \begin_inset CommandInset bibitem
33514 LatexCommand bibitem
33515 key "latexcompanion"
33519 Frank Mittelbach and Michel Goossens:
33521 The LaTeX Companion Second Edition.
33524 Addison-Wesley, 2004
33527 \begin_layout Bibliography
33528 \begin_inset CommandInset bibitem
33529 LatexCommand bibitem
33534 Helmut Kopka and Patrick W.
33537 A Guide to LaTeX Fourth Edition.
33540 Addison-Wesley, 2003
33543 \begin_layout Bibliography
33544 \begin_inset CommandInset bibitem
33545 LatexCommand bibitem
33552 LaTeX: A Document Preparation System.
33555 Addison-Wesley, second edition, 1994
33558 \begin_layout Bibliography
33559 \begin_inset CommandInset bibitem
33560 LatexCommand bibitem
33565 Documentation of the LaTeX-package
33568 \begin_inset CommandInset href
33571 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
33581 \begin_layout Plain Layout
33582 LaTeX-packages ! booktabs
33590 \begin_layout Bibliography
33591 \begin_inset CommandInset bibitem
33592 LatexCommand bibitem
33597 Documentation of the LaTeX-package
33600 \begin_inset CommandInset href
33603 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf"
33613 \begin_layout Plain Layout
33614 LaTeX-packages ! caption
33622 \begin_layout Bibliography
33623 \begin_inset CommandInset bibitem
33624 LatexCommand bibitem
33629 Documentation of the LaTeX-package
33632 \begin_inset CommandInset href
33635 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
33645 \begin_layout Plain Layout
33646 LaTeX-packages ! endfloat
33654 \begin_layout Bibliography
33655 \begin_inset CommandInset bibitem
33656 LatexCommand bibitem
33661 Documentation of the LaTeX-package
33664 \begin_inset CommandInset href
33667 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/wrapfig/wrapfig.sty"
33677 \begin_layout Plain Layout
33678 LaTeX-packages ! wrapfig
33682 \begin_layout Plain Layout
33699 \begin_layout Bibliography
33700 \begin_inset CommandInset bibitem
33701 LatexCommand bibitem
33706 Documentation of the LaTeX-package
33709 \begin_inset CommandInset href
33712 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
33722 \begin_layout Plain Layout
33723 LaTeX-packages ! footmisc
33731 \begin_layout Bibliography
33732 \begin_inset CommandInset bibitem
33733 LatexCommand bibitem
33738 Documentation of the LaTeX-package
33741 \begin_inset CommandInset href
33744 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
33754 \begin_layout Plain Layout
33755 LaTeX-packages ! hyperref
33763 \begin_layout Bibliography
33764 \begin_inset CommandInset bibitem
33765 LatexCommand bibitem
33770 Documentation of the LaTeX-package
33773 \begin_inset CommandInset href
33776 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
33786 \begin_layout Plain Layout
33787 LaTeX-packages ! hyperref
33795 \begin_layout Bibliography
33796 \begin_inset CommandInset bibitem
33797 LatexCommand bibitem
33802 Documentation of the LaTeX-package
33805 \begin_inset CommandInset href
33808 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf"
33818 \begin_layout Plain Layout
33819 LaTeX-packages ! koma-script
33827 \begin_layout Bibliography
33828 \begin_inset CommandInset bibitem
33829 LatexCommand bibitem
33834 Documentation of the LaTeX-package
33837 \begin_inset CommandInset href
33840 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
33850 \begin_layout Plain Layout
33851 LaTeX-packages ! listings
33859 \begin_layout Bibliography
33860 \begin_inset CommandInset bibitem
33861 LatexCommand bibitem
33866 Documentation of the LaTeX-package
33869 \begin_inset CommandInset href
33872 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
33882 \begin_layout Plain Layout
33883 LaTeX-packages ! marginnote
33891 \begin_layout Bibliography
33892 \begin_inset CommandInset bibitem
33893 LatexCommand bibitem
33898 Web page of the LaTeX-package
33901 \begin_inset CommandInset href
33904 target "http://tug.org/PSTricks/"
33914 \begin_layout Plain Layout
33915 LaTeX-packages ! PSTricks
33923 \begin_layout Bibliography
33924 \begin_inset CommandInset bibitem
33925 LatexCommand bibitem
33930 Documentation of the LaTeX-package
33933 \begin_inset CommandInset href
33936 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
33946 \begin_layout Plain Layout
33947 LaTeX-packages ! sidecap
33955 \begin_layout Bibliography
33956 \begin_inset CommandInset bibitem
33957 LatexCommand bibitem
33963 \begin_inset CommandInset href
33966 target "http://wiki.lyx.org/LyX/NewInLyX16"
33970 about new features in
33977 \begin_layout Standard
33978 \begin_inset CommandInset index_print
33979 LatexCommand printindex
33986 \begin_layout Standard
33987 \begin_inset FloatList figure
33994 \begin_layout Standard
33995 \begin_inset FloatList table
34002 \begin_layout Standard
34003 \begin_inset FloatList algorithm