1 #LyX 1.6.0svn created this file. For more info see http://www.lyx.org/
11 % set fonts for nicer pdf view
12 \IfFileExists{lmodern.sty}
13 {\usepackage{lmodern}}{}
15 \fi % end if pdflatex is used
17 % that links to image floats jumps
18 % to the beginning of the float and
20 \usepackage[figure]{hypcap}
22 % the pages of the TOC is numbered roman
23 % and a PDF-bookmark for the TOC is added
24 \let\myTOC\tableofcontents
25 \renewcommand\tableofcontents{%
27 \pdfbookmark[1]{\contentsname}{}
31 % provides caption formatting
32 \usepackage[labelfont={bf,sf}, 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
12137 \begin_layout Plain Layout
12138 LaTeX-packages ! multirow
12146 \begin_layout Standard
12147 In contrary to multicolumns multirows are not yet supported by LyX so a
12148 bit of TeX-Code needs to be used.
12149 To use multirows load the LaTeX-package
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
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
20178 provides a very useful feature that cross-references automatically include
20179 the name of the referenced floats (or text parts like sections).
20180 You save to write e.
20181 \begin_inset space \thinspace{}
20185 \begin_inset space ~
20189 \begin_inset Quotes eld
20193 \begin_inset Quotes erd
20196 before every reference box.
20197 To get this automatic reference naming, you have to load the LaTeX-package
20206 \begin_layout Plain Layout
20207 LaTeX-packages ! hyperref
20212 in the document preamble with
20215 \begin_layout Standard
20220 usepackage[pdfborder={0 0 0}]{hyperref}
20221 \begin_inset Newline newline
20237 \begin_layout Standard
20242 is used to link cross-references in the DVI- and PDF-output, this means
20243 that the reader of your document will be able to click on a table of content
20244 (TOC) entry or on a reference and he will be shown the referenced document
20250 also creates PDF-bookmarks for every section of your document to make it
20251 easier for readers to navigate through the document.
20252 This is also used in this document but when you have a look in the document
20253 preamble you will find various options in the load command of
20258 To learn more about the
20262 package, we refer to its documentation
20263 \begin_inset CommandInset citation
20272 \begin_layout Standard
20273 \begin_inset Note Greyedout
20276 \begin_layout Plain Layout
20281 Automatic reference naming cannot be used when you use cross-references
20285 \begin_inset space ~
20290 style, described in section
20291 \begin_inset space ~
20295 \begin_inset CommandInset ref
20297 reference "sub:Cross-Reference-Formats"
20309 \begin_layout Subsection
20311 \begin_inset CommandInset label
20313 name "sub:Reference-Position"
20321 \begin_layout Plain Layout
20322 References ! Reference Position
20330 \begin_layout Standard
20339 \begin_layout Plain Layout
20340 LaTeX-packages ! hyperref
20353 dialog to link cross-references in the output, you will see that clicking
20354 on an image float reference jumps to the image label.
20355 The caption will be the first text part on the screen, so that you cannot
20356 see the image without scrolling.
20357 This is because the reference link anchor is placed at the position of
20359 With the use of the package
20367 \begin_layout Plain Layout
20368 LaTeX-packages ! hypcap
20373 , which is part of the LaTeX-package
20381 \begin_layout Plain Layout
20382 LaTeX-packages ! oberdiek
20387 , the link anchor is placed at the beginning of a float.
20388 To use this feature for figure floats, load
20392 in the document preamble with the line
20395 \begin_layout Standard
20400 usepackage[figure]{hypcap}
20403 \begin_layout Standard
20408 for all float types but this is not recommended for stability reasons.
20409 For more informations, have a look at
20414 \begin_inset CommandInset citation
20423 \begin_layout Standard
20424 \begin_inset Note Greyedout
20427 \begin_layout Plain Layout
20436 has no effect for references to subfigures.
20444 \begin_layout Section
20446 \begin_inset CommandInset label
20448 name "sec:Float-Placement"
20456 \begin_layout Plain Layout
20465 \begin_layout Standard
20466 Right-clicking on a float-box opens a dialog where you can alter the placement
20467 options that LaTeX uses for positioning the float.
20468 \begin_inset Newline newline
20474 \begin_inset space ~
20479 is only useful for two-column documents: If you select it, the float will
20480 span across both columns on the page instead of being confined to just
20482 \begin_inset Newline newline
20488 \begin_inset space ~
20493 is used to rotate floats, see section
20494 \begin_inset CommandInset ref
20496 reference "sec:Rotated-Floats"
20503 \begin_layout Standard
20504 You can use one ore more of the following options in the float dialog to
20505 set the placement for a particular float when you uncheck the option
20508 \begin_inset space ~
20512 \begin_inset space ~
20520 \begin_layout Description
20522 \begin_inset space ~
20526 \begin_inset space ~
20529 possible try to place the float on the position where it is inserted
20532 \begin_layout Description
20534 \begin_inset space ~
20538 \begin_inset space ~
20541 page try to place the float on the top of the current page
20544 \begin_layout Description
20546 \begin_inset space ~
20550 \begin_inset space ~
20553 page try to place the float on the bottom of the current page
20556 \begin_layout Description
20558 \begin_inset space ~
20562 \begin_inset space ~
20565 floats try to place the float on an own page
20568 \begin_layout Standard
20569 The order of the above option is
20574 That means, if you use the default placement, LaTeX will first try out
20578 \begin_inset space ~
20582 \begin_inset space ~
20590 \begin_inset space ~
20594 \begin_inset space ~
20599 , and then the others.
20600 If you don't use the default, LaTeX will try only the checked options but
20602 If none of the 4 placements are possible the procedure is internally repeated
20603 but it is tried to put the float on the following page.
20606 \begin_layout Standard
20607 By default, each option has its own rules:
20610 \begin_layout Labeling
20611 \labelwidthstring 00.00.0000
20615 \begin_inset space ~
20619 \begin_inset space ~
20624 only floats occupying less than 70
20625 \begin_inset space \thinspace{}
20628 % of the page can be placed at the top of a page (
20637 \begin_layout Labeling
20638 \labelwidthstring 00.00.0000
20642 \begin_inset space ~
20646 \begin_inset space ~
20651 : only floats occupying less than 30
20652 \begin_inset space \thinspace{}
20655 % of the page can be placed at the bottom of a page.
20665 \begin_layout Labeling
20666 \labelwidthstring 00.00.0000
20670 \begin_inset space ~
20674 \begin_inset space ~
20679 : only if more than 50
20680 \begin_inset space \thinspace{}
20683 % of the page are occupied by floats, several floats can be set together
20694 \begin_layout Standard
20695 If you don't like these rules, you can ignore them by using the additional
20699 \begin_inset space ~
20703 \begin_inset space ~
20709 \begin_inset Newline newline
20712 You can also redefine the rules with LaTeX-commands that are given in parenthese
20713 s behind the rules description above.
20714 To increase for example the often too small default of the bottom-rule
20716 \begin_inset space \thinspace{}
20719 % of the page, add this line to your document preamble:
20722 \begin_layout Standard
20729 bottomfraction}{0.5}
20732 \begin_layout Standard
20733 Sometimes you might need, under all circumstances, a float to be placed
20734 exactly at the position where it is inserted.
20735 For this case you can use the option
20738 \begin_inset space ~
20744 Use this option very rarely and only if the document is nearly ready to
20746 Because the float is then no longer able to
20747 \begin_inset Quotes eld
20751 \begin_inset Quotes erd
20754 when you change your document and this will often destroy the page layout.
20757 \begin_layout Standard
20758 There are no placement options for text wrap floats, because they are always
20759 surrounded by the text of a certain paragraph.
20760 \begin_inset VSpace bigskip
20766 \begin_layout Standard
20767 Sometimes you have the problem that a float is placed at the top of a page
20768 while its corresponding section starts at the middle of the page, so that
20769 the reader could think the float is part of the previous section.
20770 To avoid this the LaTeX-command
20777 It suppresses a given float placement for the page where it is inserted
20778 and can therefore be used to avoid that floats could be set before a section
20780 To get this, add these commands to your document preamble:
20783 \begin_layout Standard
20793 \begin_inset Newline newline
20807 \begin_layout Standard
20808 You can define the same for all section headings, like chapters and subsections.
20809 This definition is not recommended to be used for small text parts like
20810 subsubsections because LaTeX may then have problems to find a suitable
20814 \begin_layout Standard
20815 \begin_inset VSpace bigskip
20818 In some cases it is required to have all figures/tables at the end of the
20820 For this purpose the LaTeX-package
20828 \begin_layout Plain Layout
20829 LaTeX-packages ! endfloat
20835 It puts all figure and table floats at the end of the document into own
20837 At the original float position a text hint like
20838 \begin_inset Quotes eld
20844 \begin_inset space ~
20850 \begin_inset Quotes erd
20854 The endfloat-package is loaded in the preamble with the line
20857 \begin_layout Standard
20862 usepackage[options]{endfloat}
20865 \begin_layout Standard
20866 There are various package options to format the created figure/table sections.
20867 For more information we refer to the
20872 \begin_inset CommandInset citation
20879 \begin_inset Newline newline
20883 \begin_inset Note Greyedout
20886 \begin_layout Plain Layout
20891 doesn't provide an automatic translation for the text hint, you have to
20892 do this manually, see section
20893 \begin_inset space ~
20897 \begin_inset CommandInset citation
20909 \begin_inset Newline newline
20913 \begin_inset Note Greyedout
20916 \begin_layout Plain Layout
20921 There is currently a bug in
20925 when the caption contains a German
20926 \begin_inset Quotes eld
20930 \begin_inset Quotes erd
20934 Use in this case the command
20935 \begin_inset Quotes eld
20945 \begin_inset Quotes erd
20948 in TeX-Code instead of
20949 \begin_inset Quotes eld
20953 \begin_inset Quotes erd
20964 \begin_layout Standard
20965 \begin_inset VSpace bigskip
20968 For more details about float placements, have a look at LaTeX books,
20969 \begin_inset CommandInset citation
20971 key "latexcompanion,latexguide,latexbook"
20978 \begin_layout Section
20980 \begin_inset CommandInset label
20982 name "sec:Rotated-Floats"
20990 \begin_layout Plain Layout
20999 \begin_layout Standard
21000 Especially for wide tables you might have floats rotated.
21001 To rotate a whole float including the caption, right-click on the float-box
21005 \begin_inset space ~
21013 \begin_layout Standard
21014 Rotated floats are always placed on its own page (or column, in case you
21015 have a multi-column document).
21016 You can let them span several columns using the float settings option
21019 \begin_inset space ~
21025 Floats are rotated so that you can read them from the outside margin.
21026 To force a certain rotation direction for all pages, you can add either
21035 to the document class options.
21038 \begin_layout Standard
21039 Referencing rotated floats is the same like for normal floats, the caption
21040 format is also the same: Table
21041 \begin_inset space ~
21045 \begin_inset CommandInset ref
21047 reference "tab:Rotated-table"
21051 is an example of a rotated table float.
21054 \begin_layout Standard
21055 \begin_inset Note Greyedout
21058 \begin_layout Plain Layout
21063 Not all DVI-viewers are able to display rotated floats.
21071 \begin_layout Standard
21072 \begin_inset Float table
21077 \begin_layout Plain Layout
21078 \begin_inset Caption
21080 \begin_layout Plain Layout
21081 \begin_inset CommandInset label
21083 name "tab:Rotated-table"
21095 \begin_layout Plain Layout
21097 \begin_inset Tabular
21098 <lyxtabular version="3" rows="1" columns="5">
21100 <column alignment="center" valignment="top" width="0">
21101 <column alignment="center" valignment="top" width="0">
21102 <column alignment="center" valignment="top" width="0">
21103 <column alignment="center" valignment="top" width="0">
21104 <column alignment="center" valignment="top" width="0">
21106 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21109 \begin_layout Plain Layout
21115 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21118 \begin_layout Plain Layout
21124 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21127 \begin_layout Plain Layout
21133 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21136 \begin_layout Plain Layout
21142 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21145 \begin_layout Plain Layout
21164 \begin_layout Section
21165 Floats Side by Side
21169 \begin_layout Plain Layout
21170 Floats ! Side by side
21178 \begin_layout Standard
21179 To place floats side by side, like for Figure
21180 \begin_inset space ~
21184 \begin_inset CommandInset ref
21186 reference "fig:Float-left"
21191 \begin_inset CommandInset ref
21193 reference "fig:Float-right"
21202 In it two minipage boxes are inserted.
21206 \begin_layout Plain Layout
21207 Minipages are explained in section
21208 \begin_inset space ~
21212 \begin_inset CommandInset ref
21214 reference "sec:Minipages"
21223 The width is set to 45
21224 \begin_inset space \thinspace{}
21228 \begin_inset space \thinspace{}
21231 column% and the box alignment to
21236 The minipage boxes contain the image and the caption in the same way as
21237 they are in a float.
21238 The only difference is that the image unit
21241 \begin_inset space ~
21245 \begin_inset space ~
21250 is now calculated according to the width of the minipage boxes.
21253 \begin_layout Standard
21254 \begin_inset Float figure
21259 \begin_layout Plain Layout
21260 \begin_inset Box Frameless
21269 height_special "totalheight"
21272 \begin_layout Plain Layout
21274 \begin_inset Graphics
21275 filename clipart/mobius.eps
21278 scaleBeforeRotation
21285 \begin_layout Plain Layout
21286 \begin_inset Caption
21288 \begin_layout Plain Layout
21289 \begin_inset CommandInset label
21291 name "fig:Float-left"
21295 Float on the left side.
21306 \begin_inset space \hfill{}
21310 \begin_inset Box Frameless
21319 height_special "totalheight"
21322 \begin_layout Plain Layout
21324 \begin_inset Graphics
21325 filename clipart/platypus.eps
21328 scaleBeforeRotation
21335 \begin_layout Plain Layout
21336 \begin_inset Caption
21338 \begin_layout Plain Layout
21339 \begin_inset CommandInset label
21341 name "fig:Float-right"
21345 Float on the right side.
21358 \begin_layout Plain Layout
21367 \begin_layout Section
21372 \begin_layout Plain Layout
21373 Caption ! Formatting
21382 \begin_layout Plain Layout
21383 Floats ! Caption Formatting
21392 \begin_layout Plain Layout
21393 LaTeX-packages ! caption
21399 \begin_inset CommandInset label
21401 name "sec:Caption-Formatting"
21408 \begin_layout Standard
21413 environment is the default paragraph environment for
21418 On the LyX screen captions appear as label, e.
21419 \begin_inset space \thinspace{}
21423 \begin_inset space ~
21427 \begin_inset Quotes eld
21435 \begin_inset Quotes erd
21438 followed by the caption text.
21440 \begin_inset Quotes eld
21444 \begin_inset Quotes erd
21447 is the actual reference number.
21448 By default the label and the number are in the same font as the caption
21449 text and a colon follows the number to divide the label from the text.
21450 This caption format is not suitable for all document formats.
21454 \begin_layout Standard
21455 To change the default caption format, load the LaTeX-package
21463 \begin_layout Plain Layout
21464 LaTeX-packages ! caption
21469 in the document preamble with this line:
21472 \begin_layout Standard
21477 usepackage[format definition]{caption}
21480 \begin_layout Standard
21481 To have for example the label and the number in sans-serif bold font and
21482 the table captions always above the table like in this document, use the
21486 \begin_layout Standard
21491 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
21494 \begin_layout Standard
21495 You can also define different caption formats for the different float types.
21496 In this case load the
21500 package without format specific options and define the different formats
21501 with the help of the command
21504 \begin_layout Standard
21509 captionsetup[float type]{format definition}
21512 \begin_layout Standard
21513 in the document preamble.
21514 For example the caption formats of Figure
21515 \begin_inset space ~
21519 \begin_inset CommandInset ref
21521 reference "fig:This-is-an-fig"
21526 \begin_inset space ~
21530 \begin_inset CommandInset ref
21532 reference "tab:This-is-an-tab"
21536 can be created using these commands in the document preamble:
21539 \begin_layout Standard
21544 usepackage[tableposition=top]{caption}
21547 \begin_inset Newline newline
21554 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
21555 \begin_inset Newline newline
21562 \begin_layout Plain Layout
21570 captionsetup[figure]
21578 \begin_inset Newline newline
21583 captionsetup[table]{labelfont={bf,sf}}
21586 \begin_layout Standard
21587 \begin_inset Note Greyedout
21590 \begin_layout Plain Layout
21599 has no effect when a
21607 \begin_layout Plain Layout
21608 LaTeX-packages ! koma-script
21613 document class is used.
21614 In this case the document class option
21626 \begin_layout Standard
21627 For more information about the package
21631 we refer to its documentation
21632 \begin_inset CommandInset citation
21641 \begin_layout Standard
21642 To change the label name from e.g.
21644 \begin_inset Quotes eld
21648 \begin_inset Quotes erd
21652 \begin_inset Quotes eld
21656 \begin_inset Quotes erd
21659 use this preamble command:
21662 \begin_layout Standard
21669 fnum@figure}{Image~
21674 \begin_layout Standard
21681 inserts the figure number and
21684 \begin_inset Quotes eld
21690 \begin_inset Quotes erd
21693 creates a protected space.
21696 \begin_layout Standard
21697 \begin_inset VSpace bigskip
21708 \begin_layout Plain Layout
21709 LaTeX-packages ! koma-script
21716 article (koma-script)
21724 letter (koma-script)
21728 report (koma-script)
21731 \begin_inset space \thinspace{}
21734 ), you can alternatively to the
21742 's built-in command
21749 For example, to have the caption label in bold, add this command to your
21753 \begin_layout Standard
21758 setkomafont{captionlabel}{
21763 \begin_layout Standard
21764 For more information about
21775 \begin_inset CommandInset citation
21784 \begin_layout Standard
21788 \begin_layout Plain Layout
21792 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
21799 \begin_inset Note Note
21802 \begin_layout Plain Layout
21803 The caption format is changed only for this example.
21811 \begin_layout Standard
21812 \begin_inset Float figure
21818 \begin_layout Plain Layout
21820 \begin_inset Graphics
21821 filename clipart/mobius.eps
21824 scaleBeforeRotation
21831 \begin_layout Plain Layout
21832 \begin_inset Caption
21834 \begin_layout Plain Layout
21835 \begin_inset CommandInset label
21837 name "fig:This-is-an-fig"
21841 This is an example figure caption that is longer than one line to show the
21842 different caption format.
21843 Here a self-defined caption format is used.
21856 \begin_layout Standard
21860 \begin_layout Plain Layout
21864 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
21873 \begin_layout Standard
21874 \begin_inset Float table
21880 \begin_layout Plain Layout
21881 \begin_inset Caption
21883 \begin_layout Plain Layout
21884 \begin_inset CommandInset label
21886 name "tab:This-is-an-tab"
21890 This is an example table caption that is longer than one line to show the
21891 different caption format.
21892 Here the standard caption format for tables in this document is used.
21900 \begin_layout Plain Layout
21902 \begin_inset Tabular
21903 <lyxtabular version="3" rows="1" columns="5">
21905 <column alignment="center" valignment="top" width="0">
21906 <column alignment="center" valignment="top" width="0">
21907 <column alignment="center" valignment="top" width="0">
21908 <column alignment="center" valignment="top" width="0">
21909 <column alignment="center" valignment="top" width="0">
21911 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21914 \begin_layout Plain Layout
21920 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21923 \begin_layout Plain Layout
21929 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21932 \begin_layout Plain Layout
21938 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21941 \begin_layout Plain Layout
21947 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21950 \begin_layout Plain Layout
21969 \begin_layout Section
21974 \begin_layout Plain Layout
21975 Caption ! Placement
21984 \begin_layout Plain Layout
21985 Floats ! Caption Placement
21991 \begin_inset CommandInset label
21993 name "sec:Caption-Placement"
22000 \begin_layout Standard
22001 The common caption placement rule is:
22004 \begin_layout Description
22005 Figure: Caption is set below the figure
22008 \begin_layout Description
22009 Table: Caption is set above the table
22012 \begin_layout Standard
22013 Having the caption above the table is unfortunately not supported in LaTeX's
22015 That means if you are using the document classes
22031 there will be no space between the caption and the table.
22032 To insert the needed space, add the following option to the load command
22033 of the LaTeX-package
22037 in your document preamble
22041 \begin_layout Plain Layout
22043 \begin_inset space ~
22047 \begin_inset CommandInset ref
22049 reference "sec:Caption-Formatting"
22053 for more information of the package
22065 \begin_layout Standard
22071 \begin_layout Standard
22080 \begin_layout Plain Layout
22081 LaTeX-packages ! koma-script
22088 article (koma-script)
22096 letter (koma-script)
22100 report (koma-script)
22103 \begin_inset space \thinspace{}
22106 ), you can alternatively to the
22110 package set the document class option
22117 \begin_layout Standard
22118 \begin_inset VSpace bigskip
22121 It is also possible to set the caption beside a figure or table.
22122 To get this the LaTeX-package
22130 \begin_layout Plain Layout
22131 LaTeX-packages ! sidecap
22136 has to be loaded in the document preamble with the line
22139 \begin_layout Standard
22144 usepackage[option]{sidecap}
22147 \begin_layout Standard
22148 If you set no option, the caption is placed on the side of the outer page
22149 margin -- to the right on odd pages, to the left on even pages.
22150 You can change the placement to inner margin with the option
22155 To force the placement always to the right or left, use the option
22166 \begin_layout Standard
22170 \begin_layout Plain Layout
22180 \begin_inset Note Note
22183 \begin_layout Plain Layout
22184 The following section will only be displayed when the LaTeX-package
22196 \begin_layout Standard
22197 To place in LyX the caption of a float on the side, it is necessary to add
22198 these commands to the document preamble:
22201 \begin_layout Standard
22207 \begin_layout Standard
22215 \begin_inset Newline newline
22222 \begin_layout Plain Layout
22238 \begin_inset Newline newline
22245 \begin_layout Plain Layout
22261 \begin_inset Newline newline
22268 \begin_layout Plain Layout
22279 renewenvironment{table}{
22286 \begin_layout Standard
22294 \begin_inset Newline newline
22301 \begin_layout Plain Layout
22317 \begin_inset Newline newline
22324 \begin_layout Plain Layout
22342 \begin_layout Standard
22350 \begin_inset Newline newline
22357 \begin_layout Plain Layout
22373 \begin_inset Newline newline
22380 \begin_layout Plain Layout
22396 \begin_inset Newline newline
22403 \begin_layout Plain Layout
22414 renewenvironment{figure}{
22421 \begin_layout Standard
22429 \begin_inset Newline newline
22436 \begin_layout Plain Layout
22452 \begin_inset Newline newline
22459 \begin_layout Plain Layout
22477 \begin_layout Standard
22483 \begin_layout Standard
22484 The commands allow you to redefine the floats so that the caption is set
22486 For figure floats use the command
22489 \begin_layout Standard
22497 \begin_layout Standard
22498 in TeX-Code before the float.
22499 Behind the float insert the command
22502 \begin_layout Standard
22510 \begin_layout Standard
22511 in TeX-Code to get back to the original float definition.
22514 \begin_layout Standard
22515 For table floats use the corresponding commands
22518 \begin_layout Standard
22532 \begin_layout Standard
22534 \begin_inset space ~
22538 \begin_inset CommandInset ref
22540 reference "fig:cap-beside-fig"
22545 \begin_inset space ~
22549 \begin_inset CommandInset ref
22551 reference "tab:cap-beside-tab"
22555 are examples where the caption is set beside.
22558 \begin_layout Standard
22559 You can see in the examples that the caption text appears at the top of
22560 the floats for table floats and at the bottom for figure floats.
22561 To change this, you can use the command
22564 \begin_layout Standard
22569 sidecaptionvpos{float type}{placement}
22572 \begin_layout Standard
22573 in the document preamble or in TeX-Code before the float.
22574 The float type is either
22582 , the placement can be
22583 \begin_inset Quotes eld
22591 \begin_inset Quotes erd
22595 \begin_inset Quotes eld
22603 \begin_inset Quotes erd
22607 \begin_inset Quotes eld
22615 \begin_inset Quotes erd
22619 To have for example the caption of figure floats vertically centered, use
22623 \begin_layout Standard
22628 sidecaptionvpos{figure}{c}
22631 \begin_layout Standard
22632 This was used for Figure
22633 \begin_inset space ~
22637 \begin_inset CommandInset ref
22639 reference "fig:cap-beside-fig-2"
22646 \begin_layout Standard
22647 \begin_inset VSpace medskip
22650 For more information about the package
22654 we refer to its documentation
22655 \begin_inset CommandInset citation
22664 \begin_layout Standard
22665 \begin_inset Note Greyedout
22668 \begin_layout Plain Layout
22681 \begin_layout Plain Layout
22682 LaTeX-packages ! hypcap
22687 , described in section
22688 \begin_inset space ~
22692 \begin_inset CommandInset ref
22694 reference "sub:Reference-Position"
22698 , has no effect on floats with the caption set beside.
22706 \begin_layout Standard
22710 \begin_layout Plain Layout
22722 \begin_layout Standard
22723 \begin_inset Float figure
22728 \begin_layout Plain Layout
22729 \begin_inset Graphics
22730 filename clipart/escher-lsd.eps
22732 scaleBeforeRotation
22739 \begin_layout Plain Layout
22740 \begin_inset Caption
22742 \begin_layout Plain Layout
22743 \begin_inset CommandInset label
22745 name "fig:cap-beside-fig"
22749 This is a caption beside a figure.
22762 \begin_layout Standard
22766 \begin_layout Plain Layout
22778 \begin_layout Standard
22779 \begin_inset Float table
22784 \begin_layout Plain Layout
22785 \begin_inset Caption
22787 \begin_layout Plain Layout
22788 \begin_inset CommandInset label
22790 name "tab:cap-beside-tab"
22794 This is a caption beside a table.
22802 \begin_layout Plain Layout
22803 \begin_inset Tabular
22804 <lyxtabular version="3" rows="4" columns="5">
22806 <column alignment="center" valignment="top" width="0">
22807 <column alignment="center" valignment="top" width="0">
22808 <column alignment="center" valignment="top" width="0">
22809 <column alignment="center" valignment="top" width="0">
22810 <column alignment="center" valignment="top" width="0">
22812 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22815 \begin_layout Plain Layout
22821 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22824 \begin_layout Plain Layout
22830 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22833 \begin_layout Plain Layout
22839 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22842 \begin_layout Plain Layout
22848 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22851 \begin_layout Plain Layout
22859 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22862 \begin_layout Plain Layout
22868 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22871 \begin_layout Plain Layout
22877 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22880 \begin_layout Plain Layout
22886 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22889 \begin_layout Plain Layout
22895 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22898 \begin_layout Plain Layout
22906 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22909 \begin_layout Plain Layout
22915 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22918 \begin_layout Plain Layout
22924 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22927 \begin_layout Plain Layout
22933 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22936 \begin_layout Plain Layout
22942 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22945 \begin_layout Plain Layout
22953 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22956 \begin_layout Plain Layout
22962 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22965 \begin_layout Plain Layout
22971 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22974 \begin_layout Plain Layout
22980 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22983 \begin_layout Plain Layout
22989 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22992 \begin_layout Plain Layout
23011 \begin_layout Standard
23015 \begin_layout Plain Layout
23027 \begin_layout Standard
23031 \begin_layout Plain Layout
23035 sidecaptionvpos{figure}{c}
23041 \begin_inset Float figure
23046 \begin_layout Plain Layout
23047 \begin_inset Graphics
23048 filename clipart/escher-lsd.eps
23050 scaleBeforeRotation
23057 \begin_layout Plain Layout
23058 \begin_inset Caption
23060 \begin_layout Plain Layout
23061 \begin_inset CommandInset label
23063 name "fig:cap-beside-fig-2"
23067 This is a vertically centered caption beside a figure.
23080 \begin_layout Standard
23084 \begin_layout Plain Layout
23096 \begin_layout Standard
23100 \begin_layout Plain Layout
23110 \begin_inset Note Note
23113 \begin_layout Plain Layout
23114 The following will be displayed when the LaTeX-package
23126 \begin_layout Standard
23127 You need to install the LaTeX-package
23131 to see the following part of this section in the output.
23134 \begin_layout Standard
23138 \begin_layout Plain Layout
23150 \begin_layout Section
23152 \begin_inset CommandInset label
23154 name "sec:Listings-of-Floats"
23162 \begin_layout Plain Layout
23163 Floats ! Float Lists
23171 \begin_layout Standard
23172 Similar to the the table of contents where the sections of the document
23173 are listed, there are listings for all float types, like the figures of
23175 You can insert them via the
23177 Insert\SpecialChar \menuseparator
23179 \begin_inset space ~
23183 \begin_inset space ~
23191 \begin_layout Standard
23192 The list entries are the float captions or its short title, the float number,
23193 and the page number where they appear in the document.
23196 \begin_layout Standard
23197 You can find the list of figures and tables at the end of this document.
23200 \begin_layout Chapter
23204 \begin_layout Section
23206 \begin_inset CommandInset label
23208 name "sec:LyX-Notes"
23216 \begin_layout Plain Layout
23225 \begin_layout Standard
23226 Notes are inserted with the toolbar button
23227 \begin_inset Graphics
23228 filename ../images/note-insert.png
23230 scaleBeforeRotation
23236 Insert\SpecialChar \menuseparator
23240 There are three types of notes:
23243 \begin_layout Description
23245 \begin_inset space ~
23248 Note This note type is for internal notes that won't appear in the output.
23249 Its note-box looks like this:
23250 \begin_inset Newline newline
23254 \begin_inset Newline newline
23258 \begin_inset Graphics
23259 filename clipart/LyXNoteImageQt4.png
23262 scaleBeforeRotation
23267 \begin_inset Note Note
23270 \begin_layout Plain Layout
23271 This is text in a note box that doesn't appear in the output.
23279 \begin_layout Description
23280 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
23281 ent, when you export the document to LaTeX via the menu
23283 File\SpecialChar \menuseparator
23284 Export\SpecialChar \menuseparator
23285 LaTeX (pdflatex) / (plain)
23288 Its note-box looks like this:
23289 \begin_inset Newline newline
23293 \begin_inset Newline newline
23297 \begin_inset Graphics
23298 filename clipart/CommentNoteImageQt4.png
23301 scaleBeforeRotation
23306 \begin_inset Note Comment
23309 \begin_layout Plain Layout
23310 This is text in a note box that only appears as comment in LaTeX-files.
23318 \begin_layout Description
23320 \begin_inset space ~
23323 Out This note will appear in the output as grey text.
23324 Its note-box looks like this:
23325 \begin_inset Newline newline
23329 \begin_inset Newline newline
23333 \begin_inset Graphics
23334 filename clipart/GreyedOutNoteImageQt4.png
23337 scaleBeforeRotation
23342 \begin_inset Newline newline
23349 \begin_layout Plain Layout
23353 renewenvironment{lyxgreyedout}
23356 \begin_layout Plain Layout
23360 textcolor[gray]{0.8}
23370 \begin_inset Note Greyedout
23373 \begin_layout Plain Layout
23378 \begin_layout Plain Layout
23379 This is an example footnote within a greyed out note.
23384 of a comment that appears in the output as grey text.
23393 \begin_layout Plain Layout
23397 renewenvironment{lyxgreyedout}
23400 \begin_layout Plain Layout
23414 \begin_inset Note Note
23417 \begin_layout Plain Layout
23418 The greyed out note is here redefined to show it with the original LyX definitio
23419 n because greyed out notes are redefined in the preamble of this document,
23420 as described below, to have blue text.
23426 \begin_inset Newline newline
23430 \begin_inset Newline newline
23433 As you can see in the example, the first line of greyed out notes is a bit
23434 indented and greyed out notes can have footnotes.
23437 \begin_layout Standard
23438 \begin_inset VSpace bigskip
23441 When you use the toolbar button
23442 \begin_inset Graphics
23443 filename ../images/note-insert.png
23445 scaleBeforeRotation
23452 \begin_inset space ~
23458 You can switch between the five note types by right-clicking on the note-box.
23463 If you want to turn existing text into a note, mark it and click on the
23477 To change a note to text, press the backspace key when the cursor is in
23478 the first position of a note, or press the deletey key when the cursor
23479 is in the very last position of the note, respectively.
23482 \begin_layout Standard
23483 \begin_inset VSpace bigskip
23486 You can change the text color of the greyed out notes in the preamble with
23487 the following command:
23490 \begin_layout Standard
23495 renewenvironment{lyxgreyedout}
23496 \begin_inset Newline newline
23503 \begin_layout Plain Layout
23521 \begin_layout Standard
23522 The available colors and the method to define own colors is explained in
23524 \begin_inset space ~
23528 \begin_inset CommandInset ref
23530 reference "sec:Colored-Tables"
23537 \begin_layout Standard
23538 Notes that appear in blue in this document are set using greyed out notes
23542 \begin_layout Section
23544 \begin_inset CommandInset label
23546 name "sec:Footnotes"
23554 \begin_layout Plain Layout
23564 \begin_layout Plain Layout
23573 \begin_layout Standard
23574 Footnotes can be inserted using the toolbar button
23575 \begin_inset Graphics
23576 filename ../images/footnote-insert.png
23578 scaleBeforeRotation
23584 Insert\SpecialChar \menuseparator
23596 then the following footnote-box:
23597 \begin_inset Graphics
23598 filename clipart/footnoteQt4.png
23600 scaleBeforeRotation
23608 where you can enter the footnote text.
23609 If you want to turn existing text into a footnote, mark it and click on
23631 to text, press the Backspace key when the cursor is in the first position
23640 , or press the Delete key when the cursor is in the very last position of
23652 \begin_layout Standard
23653 Here is an example footnote:
23661 \begin_layout Plain Layout
23662 \begin_inset CommandInset label
23664 name "foot:This-is-an"
23668 This is an example footnote.
23681 \begin_layout Plain Layout
23685 newcounter{MyRepeatFoot}
23688 \begin_layout Plain Layout
23692 setcounter{MyRepeatFoot}{
23702 \begin_layout Standard
23703 The footnote will appear in the output as a superscript number at the text
23704 position where the footnote box is placed.
23705 The footnote text is placed at the bottom of the current page.
23706 The footnote number is calculated by LaTeX, the numbers are consecutive.
23707 It depends on your document-class, if the footnote number is reset for
23711 \begin_layout Standard
23712 Footnotes can be referenced like floats: Insert a label into the footnote
23713 and cross-reference this label in the text as described in section
23714 \begin_inset space ~
23718 \begin_inset CommandInset ref
23720 reference "sec:Referencing-Floats"
23725 \begin_inset Newline newline
23728 This is a cross-reference of Footnote
23729 \begin_inset space ~
23733 \begin_inset CommandInset ref
23735 reference "foot:This-is-an"
23742 \begin_layout Standard
23743 \begin_inset VSpace defskip
23746 To use footnotes within tables, you have to use minipages, see section
23747 \begin_inset space ~
23751 \begin_inset CommandInset ref
23753 reference "sec:Minipages"
23758 Footnotes within longtables are described in section
23759 \begin_inset space ~
23763 \begin_inset CommandInset ref
23765 reference "sub:Footnotes-in-Longtables"
23772 \begin_layout Standard
23773 \begin_inset VSpace defskip
23776 To create only a mark for a footnote, use the command
23780 footnotemark[number]
23783 This is used when you have the same annotation several times in a text
23784 but doesn't want to print the footnote text every time.
23785 \begin_inset Newline newline
23788 As you don't know the number of the repeating footnote while you are writing
23789 the text, you have to store its number.
23790 For the following footnote mark example, these commands were inserted in
23791 TeX-Code behind Footnote
23792 \begin_inset space ~
23796 \begin_inset CommandInset ref
23798 reference "foot:This-is-an"
23802 to store the footnote number:
23805 \begin_layout Standard
23810 newcounter{MyRepeatFoot}
23811 \begin_inset Newline newline
23816 setcounter{MyRepeatFoot}{
23821 \begin_layout Standard
23822 The footnote mark was then created with this command:
23825 \begin_layout Standard
23835 \begin_layout Standard
23836 Here is an example footnote mark:
23844 \begin_layout Plain Layout
23858 \begin_layout Subsection
23860 \begin_inset CommandInset label
23862 name "sub:Footnote-Numbering"
23870 \begin_layout Plain Layout
23871 Footnotes ! Numbering
23879 \begin_layout Standard
23880 To reset the footnote number back to 1 after each section
23882 , add this command to your document preamble:
23885 \begin_layout Standard
23890 @addtoreset{footnote}{section}
23893 \begin_layout Standard
23894 \begin_inset VSpace bigskip
23897 The following preamble command changes the footnote numbering style to small
23901 \begin_layout Standard
23913 \begin_layout Standard
23917 \begin_layout Plain Layout
23930 This is a footnote with roman numbering:
23934 \begin_layout Plain Layout
23935 This is an example footnote with roman numbering.
23943 \begin_layout Standard
23944 To change the numbering style to capital roman numerals replace in the command
23959 \begin_inset Quotes eld
23963 \begin_inset Quotes erd
23966 footnotes with capital or small Latin letters use
23980 \begin_inset Quotes eld
23984 \begin_inset Quotes erd
23987 footnotes with symbols use
23996 \begin_layout Standard
23997 \begin_inset Note Greyedout
24000 \begin_layout Plain Layout
24005 You can only number 26 footnotes with Latin letters, because this numbering
24006 is limited to single letters.
24012 \begin_inset Newline newline
24016 \begin_inset Note Greyedout
24019 \begin_layout Plain Layout
24024 You can only number 9 footnotes with symbols.
24032 \begin_layout Standard
24033 To return to the default numbering style when you changed to another one,
24046 in the command above.
24050 \begin_layout Plain Layout
24066 \begin_layout Standard
24067 \begin_inset VSpace bigskip
24073 \begin_layout Standard
24074 If you want to have footnotes numbered in the scheme
24075 \begin_inset Quotes eld
24079 \begin_inset Quotes erd
24082 , add the following command to your document preamble:
24085 \begin_layout Standard
24090 numberwithin{footnote}{chapter}
24093 \begin_layout Standard
24094 To be able to use the command
24103 \begin_inset space ~
24108 in the document settings the option
24111 \begin_inset space ~
24115 \begin_inset space ~
24119 \begin_inset space ~
24127 \begin_layout Standard
24131 \begin_layout Plain Layout
24135 numberwithin{footnote}{chapter}
24140 This is another example footnote:
24146 \begin_layout Plain Layout
24147 This is a footnote numbered in the scheme
24148 \begin_inset Quotes eld
24152 \begin_inset Quotes erd
24166 \begin_layout Plain Layout
24182 \begin_layout Standard
24183 \begin_inset Note Greyedout
24186 \begin_layout Plain Layout
24197 always prints out the footnote number as arabic number; previous redefinitions
24198 to get non-arabic numbers are overwritten.
24206 \begin_layout Standard
24207 So to get for example the scheme
24208 \begin_inset Quotes eld
24214 \begin_inset Quotes erd
24217 , use this command instead of
24226 \begin_layout Standard
24240 \begin_layout Subsection
24245 \begin_layout Plain Layout
24246 Footnotes ! Placement
24254 \begin_layout Standard
24255 If you have several footnotes in one page, they appear without vertical
24256 space between them at the bottom of the page.
24257 To make them better readable you can e.
24258 \begin_inset space \thinspace{}
24262 \begin_inset space ~
24266 \begin_inset space \thinspace{}
24269 mm space with the following preamble command:
24272 \begin_layout Standard
24282 \begin_inset Newline newline
24296 \begin_layout Standard
24297 \begin_inset VSpace bigskip
24300 In a two-column document the footnotes appear at the bottom of every column,
24302 \begin_inset space ~
24306 \begin_inset CommandInset ref
24308 reference "fig:Standard-footnote-placement"
24313 If the footnotes should only appear at the bottom of the right column,
24315 \begin_inset space ~
24319 \begin_inset CommandInset ref
24321 reference "fig:Footnote-placement-in"
24325 , use the LaTeX-package
24333 \begin_layout Plain Layout
24334 LaTeX-packages ! ftnright
24339 with this command in the document preamble:
24342 \begin_layout Standard
24347 usepackage{ftnright}
24350 \begin_layout Standard
24351 \begin_inset Float figure
24357 \begin_layout Plain Layout
24361 \begin_layout Plain Layout
24371 \begin_inset Graphics
24372 filename clipart/without_fntright.pdf
24374 scaleBeforeRotation
24382 \begin_layout Plain Layout
24392 \begin_layout Plain Layout
24393 \begin_inset Caption
24395 \begin_layout Plain Layout
24396 \begin_inset CommandInset label
24398 name "fig:Standard-footnote-placement"
24402 Standard footnote placement in two-column documents.
24415 \begin_layout Standard
24416 \begin_inset Float figure
24422 \begin_layout Plain Layout
24426 \begin_layout Plain Layout
24436 \begin_inset Graphics
24437 filename clipart/with_fntright.pdf
24439 scaleBeforeRotation
24447 \begin_layout Plain Layout
24457 \begin_layout Plain Layout
24458 \begin_inset Caption
24460 \begin_layout Plain Layout
24461 \begin_inset CommandInset label
24463 name "fig:Footnote-placement-in"
24467 Footnote placement in two-column documents when the LaTeX-package
24484 \begin_layout Standard
24485 \begin_inset VSpace bigskip
24488 In some scientific literature it is usual to collect the footnotes and print
24489 them in a separate paragraph at the the end of a section, like in Figure
24490 \begin_inset space ~
24494 \begin_inset CommandInset ref
24496 reference "fig:Endnotes----footnotes"
24501 They are then so called
24502 \begin_inset Quotes eld
24506 \begin_inset Quotes erd
24513 \begin_layout Plain Layout
24519 To use endnotes instead of footnotes in your document, load the LaTeX-package
24528 \begin_layout Plain Layout
24529 LaTeX-packages ! endnotes
24534 with the document preamble lines
24537 \begin_layout Standard
24542 usepackage{endnotes}
24543 \begin_inset Newline newline
24555 \begin_layout Standard
24556 To insert the collected footnotes, insert the command
24559 \begin_layout Standard
24567 \begin_layout Standard
24568 in TeX-Code at the the end of a section or chapter.
24571 \begin_layout Standard
24572 \begin_inset Float figure
24577 \begin_layout Plain Layout
24582 \begin_layout Plain Layout
24592 \begin_inset Graphics
24593 filename clipart/endnotes.pdf
24594 scaleBeforeRotation
24602 \begin_layout Plain Layout
24612 \begin_layout Plain Layout
24613 \begin_inset Caption
24615 \begin_layout Plain Layout
24616 \begin_inset CommandInset label
24618 name "fig:Endnotes----footnotes"
24622 Endnotes -- footnotes are printed in a separate paragraph at the end of
24623 sections or chapters.
24636 \begin_layout Standard
24637 \begin_inset VSpace medskip
24640 The paragraph heading for the endnotes isn't automatically translated into
24641 the document language, this must be done manually.
24642 The following preamble command translate the default English name
24643 \begin_inset Quotes eld
24647 \begin_inset Quotes erd
24650 to the German translation
24651 \begin_inset Quotes eld
24655 \begin_inset Quotes erd
24661 \begin_layout Standard
24668 notesname}{Anmerkungen}
24671 \begin_layout Standard
24672 \begin_inset VSpace medskip
24675 The numbering of endnotes can be changed like the footnote numbering as
24676 described in section
24677 \begin_inset space ~
24681 \begin_inset CommandInset ref
24683 reference "sub:Footnote-Numbering"
24687 ; just replace the command
24700 To reset the endnote number use the command
24706 as described in section
24707 \begin_inset space ~
24711 \begin_inset CommandInset ref
24713 reference "sub:Footnote-Numbering"
24717 and replace the command parameter
24728 \begin_layout Standard
24729 To create only a mark for an endnote, use the command
24733 endnotemark[number]
24735 similar to the command
24741 , described in section
24742 \begin_inset space ~
24746 \begin_inset CommandInset ref
24748 reference "sec:Footnotes"
24755 \begin_layout Standard
24756 \begin_inset VSpace bigskip
24759 Footnotes can also be placed in the page margin and the footnote text alignment
24760 can be changed, see the LaTeX-package
24768 \begin_layout Plain Layout
24769 LaTeX-packages ! footmisc
24775 \begin_inset CommandInset citation
24781 for more information about this.
24784 \begin_layout Standard
24785 For various further footnote formatting issues have a look at LaTeX-books,
24787 \begin_inset CommandInset citation
24789 key "latexcompanion,latexguide,latexbook"
24796 \begin_layout Section
24801 \begin_layout Plain Layout
24802 Notes ! Margin Notes
24810 \begin_layout Standard
24811 Margin notes look and behave in LyX like footnotes.
24812 They are inserted via the menu
24814 Insert\SpecialChar \menuseparator
24816 \begin_inset space ~
24821 or the toolbar button
24822 \begin_inset Graphics
24823 filename ../images/marginalnote-insert.png
24825 scaleBeforeRotation
24840 \begin_inset Quotes eld
24844 \begin_inset Quotes erd
24847 appears where you can enter the text of the margin note.
24850 \begin_layout Standard
24851 At the side is an example margin note.
24856 \begin_inset Marginal
24859 \begin_layout Plain Layout
24860 This is a margin note.
24868 \begin_layout Standard
24869 Margin notes appear at the right side in single-sided documents.
24870 In double-sided documents they appear in the outer margin -- left on even
24871 pages, right on odd pages.
24872 The text of margin notes is aligned opposite to the outer margin -- right-align
24873 ed when the note appears in the left margin.
24874 The first line of the margin note is placed at the position of the text
24875 line where it is inserted in the document.
24878 \begin_layout Standard
24879 \begin_inset VSpace bigskip
24882 To place the margin note in the inner margin, add the command
24885 \begin_layout Standard
24893 \begin_layout Standard
24894 in TeX-Code before a margin note.
24895 The new placement is valid for all following margin notes.
24900 \begin_layout Plain Layout
24910 \begin_inset Marginal
24913 \begin_layout Plain Layout
24914 This is a margin note in the inner margin.
24922 \begin_inset Newline newline
24928 \begin_inset Note Greyedout
24931 \begin_layout Plain Layout
24936 There is often not enough space in the inner margin so that the notes are
24937 not correctly displayed in the output.
24945 \begin_layout Standard
24946 To return to the default placement insert the command
24949 \begin_layout Standard
24957 \begin_layout Standard
24962 \begin_layout Plain Layout
24972 \begin_inset Note Greyedout
24975 \begin_layout Plain Layout
24980 The command is ignored when it is within a paragraph where also the command
24995 \begin_layout Standard
24996 \begin_inset VSpace bigskip
25003 \begin_inset Marginal
25006 \begin_layout Plain Layout
25007 AVeryLongMarginParWord that isn't hyphenated.
25015 Similar to the case described in section
25016 \begin_inset space ~
25020 \begin_inset CommandInset ref
25022 reference "sub:Multiple-Lines-in"
25026 , long words cannot be hyphenated when they are the first word in a margin
25028 To avoid this, insert 0
25029 \begin_inset space \thinspace{}
25032 pt horizontal space before the word
25037 \begin_inset Marginal
25040 \begin_layout Plain Layout
25041 \begin_inset space \hspace*{}
25045 AVeryLongMarginParWord that is hyphenated.
25053 \begin_layout Standard
25054 \begin_inset VSpace bigskip
25060 \begin_layout Standard
25061 \begin_inset Note Greyedout
25064 \begin_layout Plain Layout
25069 Margin notes can normally not be used inside tables, floats, and footnotes.
25077 \begin_layout Standard
25078 \begin_inset VSpace bigskip
25084 \begin_layout Standard
25088 \begin_layout Plain Layout
25098 \begin_inset Note Note
25101 \begin_layout Plain Layout
25102 The following section will only be displayed when the LaTeX-package
25114 \begin_layout Standard
25115 This restriction can be evaded by using the LaTeX-package
25123 \begin_layout Plain Layout
25124 LaTeX-packages ! marginnote
25130 By adding these two lines to your document preamble, the command used by
25131 LyX for margin notes is redefined to use the command provided by the
25138 \begin_layout Standard
25143 usepackage{marginnote}
25144 \begin_inset Newline newline
25156 \begin_layout Standard
25157 This is also used in this document because
25161 has another useful feature: You can set a vertical offset for the note.
25162 This is often needed when too many margin notes are too close together
25163 or for a better page layout.
25164 The offset is set in LyX as TeX-Code directly behind the margin note in
25168 \begin_layout Standard
25174 \begin_layout Standard
25175 where the offset is a length with one of the units listed in Table
25176 \begin_inset space ~
25180 \begin_inset CommandInset ref
25182 reference "tab:Units"
25187 A negative value shifts the note up, a positive value shifts it down.
25191 For example the margin note beside this text line is shifted up 1.5
25192 \begin_inset space \thinspace{}
25195 cm with the TeX-Code-command
25196 \begin_inset Quotes eld
25206 \begin_inset Quotes erd
25210 \begin_inset Marginal
25213 \begin_layout Plain Layout
25214 This margin note is shifted up 1.5
25215 \begin_inset space \thinspace{}
25218 cm from its original position.
25230 \begin_layout Plain Layout
25240 \begin_layout Standard
25241 \begin_inset VSpace medskip
25248 you can also change the alignment of the text in the margin note.
25249 For example the commands
25252 \begin_layout Standard
25259 raggedleftmarginnote}{
25262 \begin_inset Newline newline
25269 raggedrightmarginnote}{
25274 \begin_layout Standard
25275 set the alignment to centered.
25280 raggedleftmarginnote
25282 denotes margin notes that appear at the left side.
25289 \begin_layout Plain Layout
25295 raggedleftmarginnote}{
25300 \begin_layout Plain Layout
25306 raggedrightmarginnote}{
25314 \begin_inset Marginal
25317 \begin_layout Plain Layout
25318 The text of this margin note is centered.
25329 \begin_layout Standard
25336 raggedleftmarginnote}{
25339 \begin_inset Newline newline
25346 raggedrightmarginnote}{
25355 \begin_layout Plain Layout
25361 raggedleftmarginnote}{
25366 \begin_layout Plain Layout
25372 raggedrightmarginnote}{
25382 \begin_layout Standard
25383 \begin_inset VSpace medskip
25386 For the other features of
25390 we refer to its documentation
25391 \begin_inset CommandInset citation
25400 \begin_layout Standard
25401 \begin_inset VSpace bigskip
25404 You can adjust the layout of margin notes by changing its definition.
25405 To create for example a header for all margin notes with the underlined,
25406 sans-serif, and bold header text
25407 \begin_inset Quotes eld
25419 \begin_inset Quotes erd
25422 , add this to your document preamble:
25425 \begin_layout Standard
25435 \begin_inset Newline newline
25445 \begin_inset Newline newline
25452 \begin_layout Plain Layout
25469 underbar{Attention!}}}%
25470 \begin_inset Newline newline
25477 \begin_layout Plain Layout
25495 \begin_layout Standard
25502 \begin_layout Plain Layout
25513 \begin_layout Plain Layout
25524 \begin_layout Plain Layout
25532 underbar{Attention!}}}%
25535 \begin_layout Plain Layout
25549 \begin_inset Marginal
25552 \begin_layout Plain Layout
25553 This is a margin note with a defined heading.
25565 \begin_layout Plain Layout
25579 \begin_layout Plain Layout
25596 \begin_inset Note Note
25599 \begin_layout Plain Layout
25600 The margin note format is changed only for this example.
25608 \begin_layout Standard
25612 \begin_layout Plain Layout
25622 \begin_inset Note Note
25625 \begin_layout Plain Layout
25626 The following will be displayed when the LaTeX-package
25638 \begin_layout Standard
25639 You need to install the LaTeX-package
25643 to see the following part of this section in the output.
25646 \begin_layout Standard
25650 \begin_layout Plain Layout
25662 \begin_layout Chapter
25666 \begin_layout Section
25671 \begin_layout Plain Layout
25672 Boxes ! Introduction
25680 \begin_layout Standard
25681 Boxes are used to format a block of text.
25682 Boxes can be used to write documents with multiple languages, see section
25683 \begin_inset space ~
25687 \begin_inset CommandInset ref
25689 reference "sec:Minipages"
25693 , to frame texts, see section
25694 \begin_inset space ~
25698 \begin_inset CommandInset ref
25700 reference "sec:Decoration"
25704 , to prevent words to be hyphenated, see section
25705 \begin_inset space ~
25709 \begin_inset CommandInset ref
25711 reference "sec:Prevent-Hyphenation"
25715 , to align text, see section
25716 \begin_inset space ~
25720 \begin_inset CommandInset ref
25722 reference "sub:Vertical-Alignment"
25726 , or to set the background color of texts, see section
25727 \begin_inset space ~
25731 \begin_inset CommandInset ref
25733 reference "sec:Colored-Boxes"
25740 \begin_layout Standard
25741 Boxes can be inserted with the menu
25743 Insert\SpecialChar \menuseparator
25746 or the toolbar button
25747 \begin_inset Graphics
25748 filename ../images/box-insert.png
25750 scaleBeforeRotation
25755 A grey box with the label
25760 \begin_inset Graphics
25761 filename clipart/BoxInsetDefaultQt4.png
25763 scaleBeforeRotation
25768 The box type can be specified by right-clicking on the box.
25769 The appearing box dialog offers the
25772 \begin_inset space ~
25790 is the default for new boxes and is explained in section
25791 \begin_inset space ~
25795 \begin_inset CommandInset ref
25797 reference "sec:Minipages"
25805 is described in section
25806 \begin_inset space ~
25810 \begin_inset CommandInset ref
25812 reference "sec:Parboxes"
25819 \begin_layout Standard
25820 Boxes aren't numbered and can therefore not be referenced like floats or
25824 \begin_layout Standard
25825 \begin_inset Note Greyedout
25828 \begin_layout Plain Layout
25833 Boxes must not be the item in an
25849 \begin_layout Standard
25850 \begin_inset Note Greyedout
25853 \begin_layout Plain Layout
25858 For an unknown reason you can only set the
25861 \begin_inset space ~
25870 when you use a framed box.
25874 \begin_inset space ~
25879 type and without frames are explained in section
25880 \begin_inset space ~
25884 \begin_inset CommandInset ref
25886 reference "sec:Prevent-Hyphenation"
25898 \begin_layout Section
25900 \begin_inset CommandInset label
25902 name "sec:Box-Dialog"
25910 \begin_layout Plain Layout
25919 \begin_layout Subsection
25924 \begin_layout Plain Layout
25933 \begin_layout Standard
25934 In the box dialog you can adjust the box geometry in the fields
25943 The available units for the geometry are explained in Table
25944 \begin_inset space ~
25948 \begin_inset CommandInset ref
25950 reference "tab:Units"
25959 offers the following additional sizes:
25962 \begin_layout Description
25963 Depth This is the plain text
25964 \begin_inset Quotes eld
25968 \begin_inset Quotes erd
25972 It ignores the total depth when there are multiple text lines in the box:
25973 \begin_inset Newline newline
25977 \begin_inset Newline newline
25981 \begin_inset Newline newline
25985 \begin_inset Box Boxed
25994 height_special "depth"
25997 \begin_layout Plain Layout
25999 Box height set to 1
26000 \begin_inset space \thinspace{}
26009 \begin_inset Newline newline
26013 \begin_inset Newline newline
26019 \begin_layout Description
26020 Height This is the heigth of the text that is inside the box.
26022 \begin_inset space \thinspace{}
26026 \begin_inset space ~
26029 2 for this size will set the box heigth to 2 times the text height:
26030 \begin_inset Box Boxed
26039 height_special "height"
26042 \begin_layout Plain Layout
26044 Box height set to 2
26045 \begin_inset space \thinspace{}
26056 \begin_layout Description
26058 \begin_inset space ~
26061 Height This is the Height
26062 \begin_inset space \thinspace{}
26066 \begin_inset space \thinspace{}
26070 \begin_inset Box Boxed
26079 height_special "totalheight"
26082 \begin_layout Plain Layout
26084 Box height set to 1
26085 \begin_inset space \thinspace{}
26089 \begin_inset space ~
26100 \begin_layout Description
26101 Width This sets the width of the box as heigth:
26102 \begin_inset Box Boxed
26111 height_special "width"
26114 \begin_layout Plain Layout
26116 Box height set to 1
26117 \begin_inset space \thinspace{}
26128 \begin_layout Subsection
26133 \begin_layout Plain Layout
26142 \begin_layout Standard
26143 When you have chosen an
26146 \begin_inset space ~
26151 , the vertical box alignment can be:
26154 \begin_layout Description
26155 Top This is an example text line.
26157 \begin_inset Box Boxed
26166 height_special "totalheight"
26169 \begin_layout Plain Layout
26171 This box is top-aligned.
26176 This is an example text line.
26179 \begin_layout Description
26180 Middle This is an example text line.
26182 \begin_inset Box Boxed
26191 height_special "totalheight"
26194 \begin_layout Plain Layout
26196 This box is middle-aligned.
26201 This is an example text line.
26204 \begin_layout Description
26205 Bottom This is an example text line.
26207 \begin_inset Box Boxed
26216 height_special "totalheight"
26219 \begin_layout Plain Layout
26221 This box is bottom-aligned.
26226 This is an example text line.
26229 \begin_layout Standard
26230 \begin_inset Note Greyedout
26233 \begin_layout Plain Layout
26238 The vertical box aligment can be lost in the output when you have two boxes
26239 in a line and one has e.
26240 \begin_inset space \thinspace{}
26244 \begin_inset space ~
26247 a shadow and the other one not.
26255 \begin_layout Standard
26256 The horizontal box alignment can be set via LyX's paragraph dialog when
26257 you set the box into its own paragraph.
26260 \begin_layout Standard
26261 \begin_inset VSpace bigskip
26264 When you have chosen an
26267 \begin_inset space ~
26272 , the box content can be vertical aligned to:
26275 \begin_layout Description
26276 top This is an example text line.
26278 \begin_inset Box Boxed
26287 height_special "totalheight"
26290 \begin_layout Plain Layout
26292 This box text is top-aligned.
26297 This is an example text line.
26300 \begin_layout Description
26301 middle This is an example text line.
26303 \begin_inset Box Boxed
26312 height_special "totalheight"
26315 \begin_layout Plain Layout
26317 This box text is middle-aligned.
26322 This is an example text line.
26325 \begin_layout Description
26326 bottom This is an example text line.
26328 \begin_inset Box Boxed
26337 height_special "totalheight"
26340 \begin_layout Plain Layout
26342 This box text is bottom-aligned.
26347 This is an example text line.
26350 \begin_layout Description
26351 stretch This is an example text line.
26353 \begin_inset Box Boxed
26362 height_special "totalheight"
26365 \begin_layout Plain Layout
26370 \begin_layout Plain Layout
26375 \begin_layout Plain Layout
26382 This is an example text line.
26385 \begin_layout Standard
26386 To stretch the box content, it must consist of more than one paragraph.
26387 In the example above every text line is in an own paragraph.
26390 \begin_layout Standard
26391 \begin_inset VSpace bigskip
26394 To align the box content horizontally you can use LyX's paragraph dialog
26395 when you have chosen an
26398 \begin_inset space ~
26406 \begin_layout Standard
26408 \begin_inset Box Boxed
26417 height_special "totalheight"
26420 \begin_layout Plain Layout
26425 \begin_layout Plain Layout
26430 \begin_layout Plain Layout
26440 \begin_layout Standard
26441 If you haven't set an
26444 \begin_inset space ~
26449 , you can align the box content horizontally in the box dialog.
26452 \begin_layout Standard
26454 \begin_inset Box Boxed
26463 height_special "totalheight"
26466 \begin_layout Plain Layout
26468 This box text is horizontally stretched.
26476 \begin_layout Subsection
26478 \begin_inset CommandInset label
26480 name "sec:Decoration"
26488 \begin_layout Plain Layout
26497 \begin_layout Standard
26498 The type of the box can be specified in the box-dialog in the drop-down
26504 The following types are possible:
26507 \begin_layout Description
26509 \begin_inset space ~
26513 \begin_inset space ~
26516 frame This draws a rectangle frame around the box.
26517 The frame line thickness has the size of
26525 \begin_inset Box Boxed
26534 height_special "totalheight"
26537 \begin_layout Plain Layout
26547 \begin_layout Description
26549 \begin_inset space ~
26553 \begin_inset space ~
26556 break When you use the decoration
26558 simple rectangular frame
26560 and no inner box, you can allow page breaks within a box.
26561 Note that then, in contrary to other framed boxes, the frame always uses
26562 the whole column width, the box is set as its own paragraph, and
26574 has no effect on this box type.
26575 The frame line thickness has the size of
26583 \begin_inset Box Framed
26592 height_special "totalheight"
26595 \begin_layout Plain Layout
26596 Allow page break box
26604 \begin_layout Description
26606 \begin_inset space ~
26610 \begin_inset space ~
26613 thin This draws an oval frame around the box.
26614 The frame line thickness has the size 0.4
26615 \begin_inset space \thinspace{}
26620 \begin_inset Box ovalbox
26629 height_special "totalheight"
26632 \begin_layout Plain Layout
26642 \begin_layout Description
26644 \begin_inset space ~
26648 \begin_inset space ~
26651 thick This draws an oval frame around the box.
26652 The frame line thickness has the size 0.8
26653 \begin_inset space \thinspace{}
26658 \begin_inset Box Ovalbox
26667 height_special "totalheight"
26670 \begin_layout Plain Layout
26680 \begin_layout Description
26682 \begin_inset space ~
26685 shadow This draws a rectangle frame with a shadow around the box.
26686 The frame line thickness has the size of
26692 , the shadow has a width of 4
26693 \begin_inset space \thinspace{}
26698 \begin_inset Box Shadowbox
26707 height_special "totalheight"
26710 \begin_layout Plain Layout
26720 \begin_layout Description
26722 \begin_inset space ~
26725 background This draws a box with red background color.
26726 In contrary to colored boxes
26730 \begin_layout Plain Layout
26732 \begin_inset space \thinspace{}
26736 \begin_inset CommandInset ref
26738 reference "sec:Colored-Boxes"
26747 , it always uses the whole column width and the box is set as its own paragraph.
26749 \begin_inset Box Shaded
26758 height_special "totalheight"
26761 \begin_layout Plain Layout
26762 Shaded background box
26770 \begin_layout Description
26772 \begin_inset space ~
26776 \begin_inset space ~
26779 frame This draws a double-line rectangle frame around the box.
26780 The line thickness of the inner frame is 0.75
26781 \begin_inset space \thinspace{}
26790 , the thickness of the outer frame is 1.5
26791 \begin_inset space \thinspace{}
26801 The distance between the lines is 1.5
26802 \begin_inset space \thinspace{}
26812 \begin_inset space \thinspace{}
26816 \begin_inset space \thinspace{}
26820 \begin_inset space \thinspace{}
26825 \begin_inset Box Doublebox
26834 height_special "totalheight"
26837 \begin_layout Plain Layout
26839 Double rectangular box
26847 \begin_layout Standard
26848 \begin_inset VSpace bigskip
26851 LyX's box label will reflect the different frame types.
26852 To be able to use all types, the LaTeX-package
26860 \begin_layout Plain Layout
26861 LaTeX-packages ! fancybox
26869 \begin_layout Section
26874 \begin_layout Plain Layout
26875 Boxes ! Customization
26883 \begin_layout Standard
26884 The default value for the size
26891 \begin_inset space \thinspace{}
26895 It can be changed with the following command in TeX-Code to e.
26896 \begin_inset space \thinspace{}
26900 \begin_inset space ~
26904 \begin_inset space \thinspace{}
26910 \begin_layout Standard
26920 \begin_layout Standard
26924 \begin_layout Plain Layout
26936 \begin_inset Box Boxed
26945 height_special "totalheight"
26948 \begin_layout Plain Layout
26950 Rectangular box with
26957 \begin_inset space \thinspace{}
26961 \begin_inset space \thinspace{}
26965 \begin_inset space \thinspace{}
26977 \begin_layout Plain Layout
26991 \begin_layout Standard
26992 \begin_inset VSpace bigskip
26995 The space between the frame and the box content is for all frame styles
26997 \begin_inset space \thinspace{}
27001 You can change it by setting the length
27008 For example the command
27011 \begin_layout Standard
27021 \begin_layout Standard
27022 sets the value to 10
27023 \begin_inset space \thinspace{}
27026 pt, like for the following box:
27029 \begin_layout Standard
27033 \begin_layout Plain Layout
27045 \begin_inset Box Boxed
27054 height_special "totalheight"
27057 \begin_layout Plain Layout
27059 Rectangular box with
27066 \begin_inset space \thinspace{}
27070 \begin_inset space \thinspace{}
27074 \begin_inset space \thinspace{}
27086 \begin_layout Plain Layout
27100 \begin_layout Standard
27101 \begin_inset VSpace bigskip
27104 The diameter of the round corners of the oval boxes can be set with the
27115 \begin_layout Standard
27123 \begin_layout Standard
27124 sets the diameter to 1
27125 \begin_inset space \thinspace{}
27132 \begin_layout Standard
27140 \begin_layout Standard
27141 sets the diameter to
27144 \begin_inset space \thinspace{}
27148 \begin_inset space \thinspace{}
27151 minimum(width and heigth of box)
27163 \begin_layout Standard
27167 \begin_layout Plain Layout
27177 \begin_inset Box Ovalbox
27186 height_special "totalheight"
27189 \begin_layout Plain Layout
27198 \begin_inset space \thinspace{}
27202 \begin_inset space \thinspace{}
27206 \begin_inset space \thinspace{}
27218 \begin_layout Plain Layout
27230 \begin_layout Standard
27231 \begin_inset VSpace bigskip
27234 The size of the shadow can be adjusted by changing the length
27242 \begin_inset space \thinspace{}
27245 pt for the following box by this command:
27248 \begin_layout Standard
27258 \begin_layout Standard
27262 \begin_layout Plain Layout
27274 \begin_inset Box Shadowbox
27283 height_special "totalheight"
27286 \begin_layout Plain Layout
27295 \begin_inset space \thinspace{}
27299 \begin_inset space \thinspace{}
27303 \begin_inset space \thinspace{}
27315 \begin_layout Plain Layout
27329 \begin_layout Standard
27330 \begin_inset VSpace bigskip
27336 \begin_layout Standard
27337 The default value for the size
27344 \begin_inset space \thinspace{}
27348 The default space between the note content and the frame is 9
27349 \begin_inset space \thinspace{}
27352 pt and can be changed with the value of
27359 For example the frame appearance of the following
27363 is set with the TeX-Code commands
27366 \begin_layout Standard
27374 \begin_inset Newline newline
27384 \begin_layout Standard
27388 \begin_layout Plain Layout
27397 \begin_layout Plain Layout
27409 \begin_inset Box Framed
27418 height_special "totalheight"
27421 \begin_layout Plain Layout
27435 \begin_layout Plain Layout
27444 \begin_layout Plain Layout
27458 \begin_layout Standard
27459 \begin_inset VSpace bigskip
27465 \begin_layout Standard
27470 boxes the default space between the box content and the box border is 3
27471 \begin_inset space \thinspace{}
27474 pt and can be changed with the value of
27481 The default background color red can either be changed locally with the
27486 definecolor{shadebox}
27488 or globally with the menu
27490 Tools\SpecialChar \menuseparator
27491 Preferences\SpecialChar \menuseparator
27492 Colors\SpecialChar \menuseparator
27494 \begin_inset space ~
27506 command is explained in section
27507 \begin_inset space ~
27511 \begin_inset CommandInset ref
27513 reference "sec:Colored-Tables"
27521 \begin_layout Plain Layout
27528 requires the LaTeX-package
27532 in the preamble, see section
27533 \begin_inset space ~
27537 \begin_inset CommandInset ref
27539 reference "sec:Colored-Boxes"
27548 For example the appearance of the following shaded background note is set
27549 with the TeX-Code commands
27552 \begin_layout Standard
27562 \begin_inset Newline newline
27569 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
27572 \begin_layout Standard
27576 \begin_layout Plain Layout
27585 \begin_layout Plain Layout
27589 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
27595 \begin_inset Box Shaded
27604 height_special "totalheight"
27607 \begin_layout Plain Layout
27610 This is yellow text in a
27620 box with dark green background.
27629 \begin_layout Plain Layout
27638 \begin_layout Plain Layout
27642 definecolor{shadecolor}{rgb}{1,0,0}
27650 \begin_layout Standard
27651 \begin_inset VSpace bigskip
27654 Changed lengths and widths are valid for all boxes following the commands
27658 \begin_layout Section
27660 \begin_inset CommandInset label
27662 name "sec:Minipages"
27670 \begin_layout Plain Layout
27679 \begin_layout Standard
27680 Minipages are treated by LaTeX as pages within pages and can therefore for
27681 example have their own footnotes.
27684 \begin_layout Standard
27685 Minipages are useful when you write documents with different languages.
27688 \begin_layout Standard
27689 Below are two example minipages side by side.
27690 Their width is set to 45
27691 \begin_inset space \thinspace{}
27694 col% and they are separated by a horizontal fill, that was inserted via
27697 Insert\SpecialChar \menuseparator
27699 \begin_inset space ~
27702 Formatting\SpecialChar \menuseparator
27704 \begin_inset space ~
27710 \begin_inset Newpage newpage
27716 \begin_layout Standard
27717 \begin_inset Box Frameless
27726 height_special "totalheight"
27729 \begin_layout Plain Layout
27732 Dies ist ein deutscher Text.
27733 Dies ist ein deutscher Text.
27734 Dies ist ein deutscher Text.
27735 Dies ist ein deutscher Text.
27736 Dies ist ein deutscher Text.
27737 Dies ist ein deutscher Text.
27738 Dies ist ein deutscher Text.
27739 Dies ist ein deutscher Text.
27740 Dies ist ein deutscher Text.
27741 Dies ist ein deutscher Text.
27742 Dies ist ein deutscher Text.
27743 Dies ist ein deutscher Text.
27744 Dies ist ein deutscher Text
27748 \begin_layout Plain Layout
27751 Dies ist eine deutsche Fußnote.
27757 Dies ist ein deutscher Text.
27758 Dies ist ein deutscher Text.
27764 \begin_inset space \hfill{}
27768 \begin_inset Box Frameless
27777 height_special "totalheight"
27780 \begin_layout Plain Layout
27781 This is an English Text.
27782 This is an English Text.
27783 This is an English Text.
27784 This is an English Text.
27785 This is an English Text.
27786 This is an English Text.
27787 This is an English Text.
27788 This is an English Text.
27789 This is an English Text.
27790 This is an English Text.
27791 This is an English Text.
27792 This is an English Text.
27793 This is an English Text.
27794 This is an English Text.
27795 This is an English Text.
27796 This is an English Text.
27800 \begin_layout Plain Layout
27801 This is an English footnote.
27806 This is an English Text.
27815 \begin_layout Standard
27816 \begin_inset VSpace bigskip
27819 Another application for minipages are footnotes within tables.
27820 Due to a LaTeX restriction footnotes within tables doesn't appear at the
27821 bottom of the current page.
27822 But when you put the table with the footnote to a minipage, the footnote
27823 will appear at its bottom, numbered with Latin letters.
27824 The footnote number is reset to 1 in every minipage but not outside the
27828 \begin_layout Standard
27829 The footnote of this table doesn't appear:
27830 \begin_inset Tabular
27831 <lyxtabular version="3" rows="3" columns="4">
27833 <column alignment="center" valignment="top" width="0pt">
27834 <column alignment="center" valignment="top" width="0pt">
27835 <column alignment="center" valignment="top" width="0pt">
27836 <column alignment="center" valignment="top" width="0pt">
27838 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27841 \begin_layout Plain Layout
27847 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27850 \begin_layout Plain Layout
27856 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27859 \begin_layout Plain Layout
27864 \begin_layout Plain Layout
27865 This is a footnote within a table.
27875 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27878 \begin_layout Plain Layout
27886 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27889 \begin_layout Plain Layout
27895 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27898 \begin_layout Plain Layout
27904 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27907 \begin_layout Plain Layout
27913 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27916 \begin_layout Plain Layout
27924 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27927 \begin_layout Plain Layout
27933 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27936 \begin_layout Plain Layout
27942 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27945 \begin_layout Plain Layout
27951 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27954 \begin_layout Plain Layout
27968 \begin_layout Standard
27970 \begin_inset Box Frameless
27979 height_special "totalheight"
27982 \begin_layout Plain Layout
27984 \begin_inset Tabular
27985 <lyxtabular version="3" rows="3" columns="4">
27987 <column alignment="center" valignment="top" width="0pt">
27988 <column alignment="center" valignment="top" width="0pt">
27989 <column alignment="center" valignment="top" width="0pt">
27990 <column alignment="center" valignment="top" width="0pt">
27992 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27995 \begin_layout Plain Layout
28001 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28004 \begin_layout Plain Layout
28010 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28013 \begin_layout Plain Layout
28018 \begin_layout Plain Layout
28019 This is a footnote within a table.
28029 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28032 \begin_layout Plain Layout
28040 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28043 \begin_layout Plain Layout
28049 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28052 \begin_layout Plain Layout
28058 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28061 \begin_layout Plain Layout
28067 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28070 \begin_layout Plain Layout
28078 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28081 \begin_layout Plain Layout
28087 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28090 \begin_layout Plain Layout
28096 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28099 \begin_layout Plain Layout
28105 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28108 \begin_layout Plain Layout
28127 \begin_layout Standard
28128 \begin_inset VSpace bigskip
28131 The document-wide paragraph settings are ignored within minipages.
28132 That means that there will be no space between paragraphs in minipages
28133 although you set it to e.
28134 \begin_inset space \thinspace{}
28138 \begin_inset space ~
28145 in the document settings.
28148 \begin_layout Standard
28149 Minipages can also be used to set a background color for text parts, see
28151 \begin_inset space ~
28155 \begin_inset CommandInset ref
28157 reference "sub:Color-for-Paragraphs"
28164 \begin_layout Standard
28165 \begin_inset Note Greyedout
28168 \begin_layout Plain Layout
28173 You cannot have floats or margin notes inside minipages but minipages can
28174 be used inside tables, floats, and other boxes.
28182 \begin_layout Section
28184 \begin_inset CommandInset label
28186 name "sec:Parboxes"
28194 \begin_layout Plain Layout
28203 \begin_layout Standard
28204 Parboxes are very similar to minipages with the difference that they cannot
28206 The main difference to minipages is that minipages are in contrary to parboxes
28207 no real boxes but LaTeX-environments.
28210 \begin_layout Standard
28212 \begin_inset Box Frameless
28221 height_special "totalheight"
28224 \begin_layout Plain Layout
28225 This a text within a parbox.
28226 This a text within a parbox.
28229 \begin_layout Plain Layout
28230 This footnote won't appear:
28234 \begin_layout Plain Layout
28235 This footnote is inside a parbox and will therefore not appear.
28248 \begin_layout Section
28249 Boxes for Words and Characters
28253 \begin_layout Plain Layout
28254 Boxes ! for Characters
28262 \begin_layout Subsection
28263 Prevent Hyphenation
28264 \begin_inset CommandInset label
28266 name "sec:Prevent-Hyphenation"
28274 \begin_layout Plain Layout
28275 Boxes ! to Prevent Hyphenation
28283 \begin_layout Standard
28284 You can use a special kind of boxes to prevent words or text to be hyphenated.
28285 \begin_inset Newline newline
28288 Here is an example text:
28291 \begin_layout Standard
28292 This line is an example to show how you can prevent the hyphenation of
28293 \begin_inset Quotes eld
28297 \begin_inset Quotes erd
28303 \begin_layout Standard
28304 To prevent the hyphenation of the word
28305 \begin_inset Quotes eld
28309 \begin_inset Quotes erd
28315 \begin_layout Standard
28323 \begin_layout Standard
28324 in TeX-Code before the word.
28325 Behind the word insert a closing brace
28326 \begin_inset Quotes eld
28334 \begin_inset Quotes erd
28340 \begin_layout Standard
28341 This is the result:
28344 \begin_layout Standard
28345 This line is an example to show how you can prevent the hyphenation of
28349 \begin_layout Plain Layout
28359 \begin_inset Quotes eld
28363 \begin_inset Quotes erd
28370 \begin_layout Plain Layout
28380 \begin_layout Standard
28381 You can alternatively set the command
28382 \begin_inset Quotes eld
28392 \begin_inset Quotes grd
28395 as TeX-Code directly before the word:
28398 \begin_layout Standard
28399 This line is an example to show how you can prevent the hyphenation of
28400 \begin_inset Quotes eld
28407 \begin_layout Plain Layout
28417 \begin_inset Quotes erd
28423 \begin_layout Standard
28424 Of course the word now protrudes over the side margin.
28425 To avoid this, add via the menu
28427 Insert\SpecialChar \menuseparator
28429 \begin_inset space ~
28432 Formatting\SpecialChar \menuseparator
28434 \begin_inset space ~
28443 ) a line break before the word:
28446 \begin_layout Standard
28447 This line is an example to show how you can prevent the hyphenation of
28448 \begin_inset Newline newline
28455 \begin_layout Plain Layout
28465 \begin_inset Quotes eld
28469 \begin_inset Quotes erd
28476 \begin_layout Plain Layout
28486 \begin_layout Subsection
28488 \begin_inset CommandInset label
28490 name "sub:Vertical-Alignment"
28498 \begin_layout Plain Layout
28499 Boxes ! for Vertical Alignment
28508 \begin_layout Plain Layout
28517 \begin_layout Standard
28518 With the help of the command
28524 you can align words, characters or other boxes vertically to the surrounding
28532 is used with the following scheme:
28535 \begin_layout Standard
28540 raisebox{lift}[height][depth]{box content}
28543 \begin_layout Standard
28544 The lift can be a positive value to raise the box or a negative value to
28548 \begin_layout Standard
28549 To align for example the word
28550 \begin_inset Quotes eld
28554 \begin_inset Quotes erd
28557 so that the bottom of the
28558 \begin_inset Quotes eld
28562 \begin_inset Quotes erd
28566 \begin_inset Quotes eld
28570 \begin_inset Quotes erd
28573 is at the baseline, insert the command
28576 \begin_layout Standard
28586 \begin_layout Standard
28587 in TeX-Code before the word.
28588 Behind the word insert a closing brace
28589 \begin_inset Quotes eld
28597 \begin_inset Quotes erd
28601 \begin_inset Newline newline
28604 This is the result:
28607 \begin_layout Standard
28608 This is a text line with the word
28612 \begin_layout Plain Layout
28624 \begin_inset Quotes eld
28628 \begin_inset Quotes erd
28635 \begin_layout Plain Layout
28645 \begin_layout Standard
28646 \begin_inset VSpace bigskip
28649 When you raise or lower characters in a line, the line distance will be
28653 \begin_layout Standard
28654 This is a text line with the word
28658 \begin_layout Plain Layout
28670 \begin_inset Quotes eld
28674 \begin_inset Quotes erd
28681 \begin_layout Plain Layout
28689 \begin_inset Newline newline
28692 This is a text line with the word
28696 \begin_layout Plain Layout
28706 \begin_inset Quotes eld
28710 \begin_inset Quotes erd
28717 \begin_layout Plain Layout
28727 \begin_layout Standard
28728 If you want to prevent this for a certain reason, set the box height to
28733 \begin_layout Standard
28743 \begin_layout Standard
28744 This is a text line with the word
28748 \begin_layout Plain Layout
28760 \begin_inset Quotes eld
28764 \begin_inset Quotes erd
28771 \begin_layout Plain Layout
28779 \begin_inset Newline newline
28782 This is a text line with the word
28786 \begin_layout Plain Layout
28790 raisebox{0.5cm}[0pt]{
28796 \begin_inset Quotes eld
28800 \begin_inset Quotes erd
28807 \begin_layout Plain Layout
28817 \begin_layout Section
28819 \begin_inset CommandInset label
28821 name "sec:Colored-Boxes"
28829 \begin_layout Plain Layout
28838 \begin_layout Subsection
28843 \begin_layout Plain Layout
28852 \begin_layout Standard
28853 To color the background of text the text must be put into a so called
28854 \begin_inset Quotes eld
28858 \begin_inset Quotes erd
28862 This requires that the LaTeX-package
28870 \begin_layout Plain Layout
28871 LaTeX-packages ! color
28876 is loaded in the document preamble with the command
28879 \begin_layout Standard
28884 @ifundefined{textcolor}
28885 \begin_inset Newline newline
28892 \begin_layout Plain Layout
28903 usepackage{color}}{}
28906 \begin_layout Standard
28911 will be loaded automatically by LyX when you color text
28915 \begin_layout Plain Layout
28916 To avoid that it is loaded twice the command
28930 \begin_layout Standard
28931 \begin_inset VSpace medskip
28934 Colorboxes are created with the command
28941 This will be used with the following scheme:
28944 \begin_layout Standard
28949 colorbox{color}{box content}
28952 \begin_layout Standard
28953 The box content can also be a box and colorboxes can also be within other
28957 \begin_layout Standard
28958 The following colors are predefined:
28959 \begin_inset Newline newline
28998 \begin_inset Newline newline
29001 You can also define your own color as described in section
29002 \begin_inset space ~
29006 \begin_inset CommandInset ref
29008 reference "sec:Colored-Tables"
29015 \begin_layout Standard
29017 \begin_inset space \thinspace{}
29021 \begin_inset space ~
29024 a red background for a word, insert the command
29027 \begin_layout Standard
29035 \begin_layout Standard
29036 before the word in TeX-Code.
29037 Behind the word insert a closing brace
29038 \begin_inset Quotes eld
29046 \begin_inset Quotes erd
29050 \begin_inset Newline newline
29053 This is the result:
29056 \begin_layout Standard
29057 This is a line where the word
29061 \begin_layout Plain Layout
29071 \begin_inset Quotes eld
29075 \begin_inset Quotes erd
29082 \begin_layout Plain Layout
29089 has a red background.
29092 \begin_layout Standard
29093 \begin_inset VSpace bigskip
29096 If you would have the box frame in a different color, you can use the command
29103 with the following scheme:
29106 \begin_layout Standard
29111 fcolorbox{frame color}{box color}{box content}
29114 \begin_layout Standard
29128 The frame thickness and the space between the frame and the box content
29129 can be adjusted with the lengths
29141 , respectively, as described in section
29142 \begin_inset space ~
29146 \begin_inset CommandInset ref
29148 reference "sec:Decoration"
29155 \begin_layout Standard
29156 For the following example the command
29159 \begin_layout Standard
29164 fcolorbox{cyan}{magenta}{
29167 \begin_layout Standard
29171 \begin_layout Standard
29172 Here is an example where the frame line thickness was set to 1
29173 \begin_inset space \thinspace{}
29177 \begin_inset Newline newline
29184 \begin_layout Plain Layout
29199 \begin_layout Plain Layout
29203 fcolorbox{cyan}{magenta}{
29208 This is text within a colored, framed box.
29212 \begin_layout Plain Layout
29222 \begin_layout Standard
29223 \begin_inset VSpace bigskip
29226 Of course you can also have colored text inside a colorbox:
29227 \begin_inset Newline newline
29234 \begin_layout Plain Layout
29238 fcolorbox{cyan}{magenta}{
29245 This is colored text within a colored, framed box.
29251 \begin_layout Plain Layout
29262 \begin_layout Plain Layout
29276 \begin_layout Standard
29279 \begin_inset VSpace medskip
29285 \begin_layout Standard
29286 \begin_inset Note Greyedout
29289 \begin_layout Plain Layout
29294 Text in colorboxes cannot have line breaks.
29295 To color multiple text lines or paragraphs, use a box inside a colorbox
29296 as described in the following.
29304 \begin_layout Subsection
29305 Color for Paragraphs
29306 \begin_inset CommandInset label
29308 name "sub:Color-for-Paragraphs"
29316 \begin_layout Plain Layout
29317 Color ! for Paragraphs
29325 \begin_layout Standard
29326 To set the background color for more than one text line, put the text into
29328 Before the minipage insert the
29337 \begin_layout Standard
29345 \begin_layout Standard
29347 Behind the minipage insert a closing brace
29348 \begin_inset Quotes eld
29356 \begin_inset Quotes erd
29362 \begin_layout Standard
29366 \begin_layout Plain Layout
29370 colorbox{lightgrey}{
29376 \begin_inset Box Frameless
29385 height_special "totalheight"
29388 \begin_layout Plain Layout
29389 This is text with background color.
29390 This is text with background color.
29393 \begin_layout Plain Layout
29394 \begin_inset VSpace defskip
29397 The text can have footnotes
29401 \begin_layout Plain Layout
29402 Another example footnote
29407 and can include tables and figures.
29410 \begin_layout Plain Layout
29412 \begin_inset Tabular
29413 <lyxtabular version="3" rows="3" columns="3">
29415 <column alignment="center" valignment="top" width="0">
29416 <column alignment="center" valignment="top" width="0">
29417 <column alignment="center" valignment="top" width="0">
29419 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29422 \begin_layout Plain Layout
29428 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29431 \begin_layout Plain Layout
29437 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29440 \begin_layout Plain Layout
29448 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29451 \begin_layout Plain Layout
29457 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29460 \begin_layout Plain Layout
29462 \begin_inset Quotes erd
29470 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29473 \begin_layout Plain Layout
29481 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29484 \begin_layout Plain Layout
29490 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29493 \begin_layout Plain Layout
29499 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29502 \begin_layout Plain Layout
29522 \begin_layout Plain Layout
29532 \begin_layout Section
29533 Rotated and Scaled Boxes
29536 \begin_layout Standard
29537 To use the the commands described in this section, the LaTeX-package
29545 \begin_layout Plain Layout
29546 LaTeX-packages ! graphicx
29551 needs to be loaded in the document preamble with the command
29554 \begin_layout Standard
29559 @ifundefined{rotatebox}
29560 \begin_inset Newline newline
29567 \begin_layout Plain Layout
29578 usepackage{graphicx}}{}
29581 \begin_layout Standard
29582 \begin_inset Note Greyedout
29585 \begin_layout Plain Layout
29590 Some DVI-viewers can't display rotated or scaled material.
29598 \begin_layout Standard
29599 \begin_inset Note Greyedout
29602 \begin_layout Plain Layout
29607 Floats mustn't be inside a rotated or scaled box.
29615 \begin_layout Subsection
29620 \begin_layout Plain Layout
29630 \begin_layout Plain Layout
29640 \begin_layout Plain Layout
29650 \begin_layout Plain Layout
29651 Table Customization ! Rotating
29659 \begin_layout Standard
29660 To rotate material, you can put it into a rotated box.
29661 Such a box is created using the command
29667 in TeX-Code with the following scheme:
29670 \begin_layout Standard
29675 rotatebox[rotation origin]{rotation angle}{box content}
29678 \begin_layout Standard
29679 The rotation origin is specified in the form
29684 The following positions are possible:
29704 (top), and also expedient combinations of the four base positions.
29709 means, that the rotation origin is at the top left corner of the box.
29710 When no rotation origin is specified, the position
29715 The rotation angle is a number that can be negative that specifies the
29717 The rotation direction is counterclockwise.
29720 \begin_layout Standard
29721 In the following example the command
29725 rotatebox[origin=c]{60}{
29727 was inserted as TeX-Code before the text
29728 \begin_inset Quotes eld
29732 \begin_inset Quotes erd
29735 ; after the text the box was closed by a closing brace
29742 \begin_layout Standard
29747 \begin_layout Plain Layout
29751 rotatebox[origin=c]{60}{
29760 \begin_layout Plain Layout
29770 \begin_layout Standard
29771 The box content can also be another box or an inline formula:
29774 \begin_layout Standard
29779 \begin_layout Plain Layout
29783 rotatebox[origin=r]{-60}{
29789 \begin_inset Box Doublebox
29798 height_special "totalheight"
29801 \begin_layout Plain Layout
29811 \begin_layout Plain Layout
29822 \begin_layout Plain Layout
29826 rotatebox[origin=lb]{60}{
29832 \begin_inset Formula $\int A\,\mathrm{d}x=B$
29839 \begin_layout Plain Layout
29849 \begin_layout Standard
29850 or an image or table:
29853 \begin_layout Standard
29858 \begin_layout Plain Layout
29862 rotatebox[origin=lb]{90}{
29868 \begin_inset Graphics
29869 filename clipart/platypus.eps
29879 \begin_layout Plain Layout
29886 with a rotated image
29890 \begin_layout Plain Layout
29894 rotatebox[origin=l]{-90}{
29900 \begin_inset Tabular
29901 <lyxtabular version="3" rows="2" columns="2">
29903 <column alignment="center" valignment="top" width="0">
29904 <column alignment="center" valignment="top" width="0">
29906 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29909 \begin_layout Plain Layout
29915 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29918 \begin_layout Plain Layout
29926 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29929 \begin_layout Plain Layout
29935 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29938 \begin_layout Plain Layout
29953 \begin_layout Plain Layout
29963 \begin_layout Subsection
29968 \begin_layout Plain Layout
29978 \begin_layout Plain Layout
29988 \begin_layout Plain Layout
29998 \begin_layout Plain Layout
29999 Table Customization ! Scaling
30007 \begin_layout Standard
30008 To scale material the commands
30020 can be used as TeX-Code.
30023 \begin_layout Standard
30030 is used with the following scheme:
30033 \begin_layout Standard
30038 scalebox{horizontal}[vertical]{box content}
30041 \begin_layout Standard
30042 Horizontal and vertical are the corresponding scaling factors.
30043 If no vertical scaling factor is given, the horizontal factor will also
30044 be used as vertical one.
30047 \begin_layout Standard
30054 creates for example a double size
30058 \begin_layout Plain Layout
30071 \begin_layout Plain Layout
30078 , compared to the document text size.
30081 \begin_layout Standard
30086 scalebox{2}[1]{Hello}
30088 in contrary distorts the
30092 \begin_layout Plain Layout
30105 \begin_layout Plain Layout
30115 \begin_layout Standard
30116 If a the scaling factor is negative, the box content will be mirrored.
30117 Therefore the command
30121 scalebox{-1}[1]{Hello}
30123 can be used to create mirror writing:
30127 \begin_layout Plain Layout
30140 \begin_layout Plain Layout
30150 \begin_layout Standard
30155 scalebox{1}[-1]{Hello}
30161 \begin_layout Plain Layout
30174 \begin_layout Plain Layout
30184 \begin_layout Standard
30189 scalebox{-1}[1]{box content}
30191 there exists the command
30192 \begin_inset Newline newline
30199 reflectbox{box content}
30204 \begin_layout Standard
30205 \begin_inset VSpace bigskip
30214 is used to scale the box to a defined width and height.
30215 The command scheme is:
30218 \begin_layout Standard
30223 resizebox{width}{height}{box content}
30226 \begin_layout Standard
30227 Is one of the two command arguments given as exclamation mark
30231 , the size is set so that the aspect ratio of the box content is kept.
30234 \begin_layout Standard
30239 resizebox{2cm}{1cm}{Hello}
30245 \begin_layout Plain Layout
30249 resizebox{2cm}{1cm}{
30258 \begin_layout Plain Layout
30266 \begin_inset Newline newline
30273 resizebox{2cm}{!}{Hello}
30279 \begin_layout Plain Layout
30292 \begin_layout Plain Layout
30302 \begin_layout Standard
30303 \begin_inset VSpace bigskip
30307 \begin_inset Note Greyedout
30310 \begin_layout Plain Layout
30327 are set to zero, no LaTeX-errors occur when exporting the document but
30328 the exported files can not or only partly be displayed.
30336 \begin_layout Standard
30337 \begin_inset VSpace bigskip
30343 \begin_layout Standard
30344 The boxes can be combined in any order.
30346 \begin_inset space \thinspace{}
30350 \begin_inset space ~
30354 \begin_inset Newline newline
30361 rotatebox[origin=c]{-45}{
30365 reflectbox{Hello}}}
30366 \begin_inset Newline newline
30374 \begin_layout Standard
30379 \begin_layout Plain Layout
30383 rotatebox[origin=c]{-45}{
30396 \begin_layout Plain Layout
30406 \begin_layout Standard
30408 Images, tables, and inline formulas are allowed as box content:
30411 \begin_layout Standard
30416 \begin_layout Plain Layout
30420 rotatebox[origin=c]{-30}{
30430 \begin_inset Graphics
30431 filename clipart/platypus.eps
30441 \begin_layout Plain Layout
30452 \begin_layout Plain Layout
30456 rotatebox[origin=c]{-45}{
30466 \begin_inset Tabular
30467 <lyxtabular version="3" rows="2" columns="2">
30469 <column alignment="center" valignment="top" width="0">
30470 <column alignment="center" valignment="top" width="0">
30472 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30475 \begin_layout Plain Layout
30481 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30484 \begin_layout Plain Layout
30492 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30495 \begin_layout Plain Layout
30501 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30504 \begin_layout Plain Layout
30519 \begin_layout Plain Layout
30530 \begin_layout Plain Layout
30534 rotatebox[origin=c]{-45}{
30544 \begin_inset Formula $\int A\,\mathrm{d}x=B$
30551 \begin_layout Plain Layout
30561 \begin_layout Standard
30562 When the global formula style
30566 is used in the document
30570 \begin_layout Plain Layout
30572 \begin_inset Quotes eld
30576 \begin_inset Quotes erd
30579 is added to the document class options.
30584 , also display formulas can be scaled.
30587 \begin_layout Chapter
30592 \begin_layout Plain Layout
30601 \begin_layout Standard
30604 Insert\SpecialChar \menuseparator
30607 you can insert external material to your document.
30611 \begin_layout Description
30613 \begin_inset space ~
30616 Document Another LyX document; its content is directly inserted to your
30620 \begin_layout Description
30622 \begin_inset space ~
30625 Text A text document; every of its text lines is inserted to your document
30629 \begin_layout Description
30631 \begin_inset space ~
30635 \begin_inset space ~
30639 \begin_inset space ~
30642 Lines A text document; its text lines are inserted as they are.
30643 Empty text lines creates a new paragraph in your document.
30646 \begin_layout Description
30648 \begin_inset space ~
30651 Material Files in various formats.
30654 \begin_layout Description
30656 \begin_inset space ~
30659 Document LyX or LaTeX-documents.
30662 \begin_layout Section
30667 \begin_layout Plain Layout
30668 External Stuff ! External Material
30676 \begin_layout Standard
30677 The external material feature allows you to insert files to your document
30678 without converting them previously to a format that can be read by the
30679 document output format because LyX takes care of needed conversions.
30680 This is similar to images that can be inserted in various image formats
30684 \begin_layout Standard
30685 External material can be inserted via the
30689 dialog that is accessible with the menu
30691 Insert\SpecialChar \menuseparator
30692 File\SpecialChar \menuseparator
30694 \begin_inset space ~
30700 Currently the following file types (
30707 \begin_layout Description
30708 ChessDiagram This template supports chess position diagrams made with the
30712 \begin_inset CommandInset href
30715 target "http://en.wikipedia.org/wiki/XBoard"
30724 \begin_layout Description
30725 Date This inserts the date in the form
30730 This is a date inserted as external material:
30731 \begin_inset External
30738 \begin_inset space ~
30742 \begin_inset Note Note
30745 \begin_layout Plain Layout
30746 Remove the protected space when bug 4398 is fixed!
30752 \begin_inset Newline newline
30755 The date is not shown within LyX, only in the output.
30756 There are two other methods of inserting a date: Via menu
30758 Insert\SpecialChar \menuseparator
30761 and with the LaTeX command
30768 The different methods are compared in Table
30769 \begin_inset space ~
30773 \begin_inset CommandInset ref
30775 reference "tab:Comparison-of-the"
30782 \begin_layout Description
30783 LilyPond This template is used for music notation typeset with the program
30784 \begin_inset Newline linebreak
30790 \begin_inset CommandInset href
30793 target "http://en.wikipedia.org/wiki/LilyPond"
30802 \begin_layout Description
30803 PDFPages With this template you can insert PDF documents to your document.
30804 To insert certain or all pages of a PDF, use the
30814 LaTeX and LyX options
30816 tab according to the template description in the dialog.
30821 option is given, only the first page of the PDF will be inserted.
30824 \begin_layout Description
30825 RasterImage This can be used for bitmap images.
30826 Nearly all popular image formats are supported.
30827 The image can be treated in the
30831 dialog like the images that are usually included via the
30835 dialog as described in section
30836 \begin_inset space ~
30840 \begin_inset CommandInset ref
30842 reference "sec:Graphics-Dialog"
30847 The difference is that only raster images are allowed, that means that
30848 PDF and EPS-images are not supported.
30851 \begin_layout Description
30852 XFig This template supports images created with the program
30855 \begin_inset CommandInset href
30858 target "http://en.wikipedia.org/wiki/Xfig"
30867 \begin_layout Standard
30868 \begin_inset Float table
30874 \begin_layout Plain Layout
30875 \begin_inset Caption
30877 \begin_layout Plain Layout
30878 \begin_inset CommandInset label
30880 name "tab:Comparison-of-the"
30884 Comparison of the date input methods.
30892 \begin_layout Plain Layout
30894 \begin_inset Tabular
30895 <lyxtabular version="3" rows="4" columns="4">
30897 <column alignment="center" valignment="top" width="0">
30898 <column alignment="center" valignment="top" width="0">
30899 <column alignment="center" valignment="top" width="0">
30900 <column alignment="center" valignment="top" width="0">
30902 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30905 \begin_layout Plain Layout
30911 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30914 \begin_layout Plain Layout
30917 External Material\SpecialChar \menuseparator
30923 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30926 \begin_layout Plain Layout
30929 Insert\SpecialChar \menuseparator
30935 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30938 \begin_layout Plain Layout
30950 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30953 \begin_layout Plain Layout
30959 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30962 \begin_layout Plain Layout
30968 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30971 \begin_layout Plain Layout
30977 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30980 \begin_layout Plain Layout
30981 as TeX-Code inset box
30988 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30991 \begin_layout Plain Layout
30997 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31000 \begin_layout Plain Layout
31006 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31009 \begin_layout Plain Layout
31015 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31018 \begin_layout Plain Layout
31026 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31029 \begin_layout Plain Layout
31035 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31038 \begin_layout Plain Layout
31044 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31047 \begin_layout Plain Layout
31053 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31056 \begin_layout Plain Layout
31075 \begin_layout Standard
31076 When you use the option
31088 dialog, only the path to the inserted file is shown in the output.
31089 \begin_inset Newline newline
31092 External material is displayed in LyX either as box like this:
31093 \begin_inset Graphics
31094 filename clipart/ExternalMaterialQt4.png
31096 scaleBeforeRotation
31100 or as image, depending on the option
31106 LaTeX and LyX options
31111 \begin_layout Standard
31118 manual explains how you can define your own templates.
31121 \begin_layout Section
31123 \begin_inset CommandInset label
31125 name "sec:Child-Documents"
31133 \begin_layout Plain Layout
31134 External Stuff ! Child Documents
31143 \begin_layout Plain Layout
31152 \begin_layout Standard
31153 Child documents are used when you have a long document consisting of several
31154 larger parts or sections.
31155 For maintenance it is often useful and sometimes even required to split
31156 the document in several files that can be revised separately.
31157 The different documents are then the so called child documents and a master
31158 document connects them to print the full document or parts of it.
31161 \begin_layout Standard
31162 Included documents are displayed in LyX as a box like this:
31163 \begin_inset Graphics
31164 filename clipart/ChildDocumentQt4.png
31166 scaleBeforeRotation
31170 To include child documents to a master document use the menu
31172 Insert\SpecialChar \menuseparator
31173 File\SpecialChar \menuseparator
31175 \begin_inset space ~
31181 A dialog pops up where you can choose between four include methods:
31184 \begin_layout Description
31185 Include You can include LyX and LaTeX-documents.
31194 dialog, the included documents will be opened in LyX in a new file tab
31195 so that you can modify it.
31196 \begin_inset Newline newline
31202 \begin_layout Standard
31203 Here is a child document inserted using
31208 \begin_inset CommandInset include
31209 LatexCommand include
31210 filename "DummyDocument1.lyx"
31217 \begin_layout Standard
31218 The section numbering includes the sections of the included files in the
31219 order they are inserted in the master document.
31220 The included example document has for example a subsection that is numbered
31221 as subsection of this section.
31222 Labels of included documents can be referenced: Subsection
31223 \begin_inset space ~
31227 \begin_inset CommandInset ref
31229 reference "sub:External-Subsection-1"
31236 \begin_layout Standard
31237 The preamble of the child document is ignored, only the preamble of the
31238 master document is used.
31239 Included documents are inserted starting on a new page and end with a page
31243 \begin_layout Standard
31244 With the LaTeX-command
31250 you can specify which included child documents are processed when the output
31252 This is useful when you are perhaps only working on a certain chapter of
31253 your large document as this saves compiling time.
31260 is inserted to the master document preamble.
31261 It takes a comma-separated list of the filenames as argument, e.g.
31264 \begin_layout Standard
31269 includeonly{chapter1,chapter5}
31272 \begin_layout Standard
31273 will only process the included files named
31274 \begin_inset Quotes eld
31278 \begin_inset Quotes erd
31282 \begin_inset Quotes eld
31286 \begin_inset Quotes erd
31290 \begin_inset Quotes eld
31294 \begin_inset Quotes erd
31300 \begin_layout Standard
31301 \begin_inset Note Greyedout
31304 \begin_layout Plain Layout
31309 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
31310 w the document in case that the child document uses another document class
31311 than the master document as this will lead to unexpected outputs.
31319 \begin_layout Description
31320 Input This method is very similar to the Include method.
31321 The differences are:
31325 \begin_layout Itemize
31326 Input files don't start with a new page and don't end with a page break.
31329 \begin_layout Itemize
31330 Input files can be previewed in LyX when
31333 \begin_inset space ~
31338 is enabled in LyX's preferences under
31341 \begin_inset space ~
31345 \begin_inset space ~
31348 feel\SpecialChar \menuseparator
31354 \begin_layout Itemize
31365 \begin_layout Standard
31366 Here is a child document inserted using
31371 \begin_inset CommandInset include
31373 filename "DummyDocument2.lyx"
31380 \begin_layout Description
31381 Verbatim With this method every text file can be included.
31382 The file is shown in the output with its source code, no command used in
31383 the text is invoked.
31384 You can use the option
31386 Mark spaces in output
31388 that displays the character
31389 \begin_inset Quotes eld
31396 \begin_layout Plain Layout
31406 \begin_inset Quotes erd
31409 for every space character in the source code.
31410 The difference to the method via the menu
31412 Insert\SpecialChar \menuseparator
31413 File\SpecialChar \menuseparator
31415 \begin_inset space ~
31420 is that the document content is not shown in LyX.
31423 \begin_layout Standard
31424 Here is a child document inserted as Verbatim:
31425 \begin_inset CommandInset include
31426 LatexCommand verbatiminput
31427 filename "DummyTextDocument.txt"
31432 \begin_inset VSpace bigskip
31435 Here is a child document inserted as Verbatim using the
31437 Mark spaces in output
31440 \begin_inset CommandInset include
31441 LatexCommand verbatiminput*
31442 filename "DummyTextDocument.txt"
31449 \begin_layout Standard
31450 \begin_inset VSpace bigskip
31456 \begin_layout Standard
31457 \begin_inset Note Greyedout
31460 \begin_layout Plain Layout
31465 As you can see in the examples above, the text of the documents included
31470 is not broken at the end of the document lines.
31478 \begin_layout Description
31479 Listings This type is described in chapter
31480 \begin_inset space ~
31484 \begin_inset CommandInset ref
31486 reference "cha:Program-Code-Listings"
31493 \begin_layout Standard
31494 \begin_inset Note Greyedout
31497 \begin_layout Plain Layout
31502 Including the same document twice in a document using different methods
31503 could cause LaTeX-problems.
31511 \begin_layout Chapter
31512 Program Code Listings
31513 \begin_inset CommandInset label
31515 name "cha:Program-Code-Listings"
31523 \begin_layout Plain Layout
31533 \begin_layout Plain Layout
31543 \begin_layout Plain Layout
31552 \begin_layout Standard
31553 To include and typeset program code you can use the
31557 inset that can be inserted via the menu
31559 Insert\SpecialChar \menuseparator
31571 \begin_layout Plain Layout
31572 LaTeX-packages ! listings
31577 provides a powerful and flexible way to insert program source code to your
31581 \begin_layout Standard
31582 When right-clicking on a listings inset a dialog pops up where you can set
31583 the listings format.
31586 \begin_layout Standard
31587 By default, a listing starts a new paragraph in the output.
31588 The placement option
31591 \begin_inset space ~
31596 prints the listing inline like this:
31597 \begin_inset listings
31598 lstparams "language={C++}"
31602 \begin_layout Plain Layout
31610 \begin_inset Newline newline
31617 creates a listings float where you can specify the placement options
31618 \begin_inset Quotes eld
31626 \begin_inset Quotes erd
31630 \begin_inset Quotes eld
31638 \begin_inset Quotes erd
31642 \begin_inset Quotes eld
31650 \begin_inset Quotes erd
31654 \begin_inset Quotes eld
31662 \begin_inset Quotes erd
31665 corresponding to the float placement options described in section
31666 \begin_inset space ~
31670 \begin_inset CommandInset ref
31672 reference "sec:Float-Placement"
31677 The placement options can be mixed and are inserted without any separation,
31679 \begin_inset space \thinspace{}
31683 \begin_inset space ~
31687 \begin_inset Quotes eld
31695 \begin_inset Quotes erd
31700 \begin_inset Quotes eld
31704 \begin_inset Quotes erd
31707 has sometimes no effect, but you don't need to use the
31711 option in this case as also non-float listings can have captions and be
31715 \begin_layout Standard
31716 You can add captions to listings with the menu
31718 Insert\SpecialChar \menuseparator
31722 Listings can be referenced like floats: Listing
31723 \begin_inset space ~
31727 \begin_inset CommandInset ref
31729 reference "lst:Example-Listing"
31736 \begin_layout Standard
31737 \begin_inset listings
31738 lstparams "language=Python"
31742 \begin_layout Plain Layout
31744 \begin_inset Caption
31746 \begin_layout Plain Layout
31747 \begin_inset CommandInset label
31749 name "lst:Example-Listing"
31753 Example Listing float
31758 # Example listing float
31761 \begin_layout Plain Layout
31766 \begin_layout Plain Layout
31768 'this is a python function'
31771 \begin_layout Plain Layout
31781 \begin_layout Standard
31782 When you have set a programming language in the listings dialog, the keywords
31783 of this language will be recognized and specially typeset in the output.
31784 In the example listings the Python keyword
31785 \begin_inset Quotes eld
31789 \begin_inset Quotes erd
31792 is recognized and printed bold in the output.
31795 \begin_layout Standard
31796 \begin_inset Note Greyedout
31799 \begin_layout Plain Layout
31804 If you don't get bold keywords when using typewriter fonts, your typewriter
31805 font probably doesn't provide a bold shape.
31806 In this case select a different one in the menu
31808 Document\SpecialChar \menuseparator
31809 Settings\SpecialChar \menuseparator
31821 provide bold shapes.)
31829 \begin_layout Standard
31833 \begin_inset space ~
31838 of the listings dialog you can specify the line numbering style.
31839 You can insert a number to specify which lines are numbered to the field
31845 When you insert e.g.
31847 \begin_inset Quotes eld
31851 \begin_inset Quotes erd
31854 , only every 3rd line will be numbered.
31857 \begin_layout Standard
31858 You can furthermore specify a range of lines, only these will then appear
31863 \begin_inset space ~
31868 should be used when you use national characters like the German umlauts
31870 \begin_inset Newline newline
31873 Here is an example listing with left line numbering, step
31874 \begin_inset Quotes eld
31878 \begin_inset Quotes erd
31882 \begin_inset Quotes eld
31886 \begin_inset Quotes erd
31890 \begin_inset Quotes eld
31894 \begin_inset space ~
31898 \begin_inset Quotes erd
31902 \begin_inset Quotes eld
31906 \begin_inset space ~
31910 \begin_inset space ~
31914 \begin_inset Quotes erd
31918 \begin_inset space \thinspace{}
31922 \begin_inset space \thinspace{}
31928 \begin_layout Standard
31929 \begin_inset listings
31930 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
31934 \begin_layout Plain Layout
31939 \begin_layout Plain Layout
31941 'this is a python function'
31944 \begin_layout Plain Layout
31949 \begin_layout Plain Layout
31954 \begin_layout Plain Layout
31956 'This is a German word: Tschüß'
31959 \begin_layout Plain Layout
31964 \begin_layout Plain Layout
31969 \begin_layout Plain Layout
31971 'this is a python function'
31974 \begin_layout Plain Layout
31984 \begin_layout Standard
31985 \begin_inset Note Greyedout
31988 \begin_layout Plain Layout
31993 Due to a bug in the
31997 package the line numbering is shifted by a line by every previous listing.
31998 That's the reason why the lines 2 and 5 are numbered in the above listing
31999 and not the lines 3 and 6.
32007 \begin_layout Standard
32008 \begin_inset VSpace bigskip
32014 \begin_layout Standard
32015 It is also possible to print lines from a file as listing.
32016 To do this, use the menu
32018 Insert\SpecialChar \menuseparator
32019 File\SpecialChar \menuseparator
32022 and choose the type
32030 \begin_layout Plain Layout
32031 The other child document types are described in section
32032 \begin_inset space ~
32036 \begin_inset CommandInset ref
32038 reference "sec:Child-Documents"
32047 In the child document dialog you can specify the listing parameters in
32049 To show a list of all available parameters, type in a question mark
32050 \begin_inset Quotes eld
32054 \begin_inset Quotes erd
32060 \begin_layout Standard
32061 To reference child document listings, write a label text into the corresponding
32062 field of the child document dialog.
32063 The label can then be referenced using the menu
32065 Insert\SpecialChar \menuseparator
32071 \begin_layout Standard
32073 \begin_inset space ~
32077 \begin_inset CommandInset ref
32079 reference "lst:file-listing"
32083 is an example for a listing of a file; there the lines 10
32084 \begin_inset space \thinspace{}
32088 \begin_inset space \thinspace{}
32091 15 of this LyX file are listed.
32094 \begin_layout Standard
32095 \begin_inset CommandInset include
32096 LatexCommand lstinputlisting
32097 filename "EmbeddedObjects.lyx"
32098 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
32105 \begin_layout Standard
32106 \begin_inset VSpace bigskip
32112 \begin_layout Standard
32113 Global listings settings can be set in the
32115 Document\SpecialChar \menuseparator
32116 Settings\SpecialChar \menuseparator
32120 To get there a list of available options, type in a question mark
32121 \begin_inset Quotes eld
32125 \begin_inset Quotes erd
32131 \begin_inset space ~
32139 \begin_layout Standard
32140 For more information about the
32144 package, we refer to its documentation
32145 \begin_inset CommandInset citation
32154 \begin_layout Standard
32155 \begin_inset Newpage newpage
32161 \begin_layout Chapter
32163 Units available in LyX
32167 \begin_layout Plain Layout
32174 \begin_inset CommandInset label
32176 name "cha:Units-available-in"
32183 \begin_layout Standard
32184 To understand the units described in this documentation, Table
32185 \begin_inset space ~
32189 \begin_inset CommandInset ref
32191 reference "tab:Units"
32195 explains all units available in LyX.
32198 \begin_layout Standard
32199 \begin_inset Float table
32205 \begin_layout Plain Layout
32206 \begin_inset Caption
32208 \begin_layout Plain Layout
32209 \begin_inset CommandInset label
32223 \begin_layout Plain Layout
32224 \begin_inset VSpace medskip
32230 \begin_layout Plain Layout
32232 \begin_inset Tabular
32233 <lyxtabular version="3" rows="20" columns="2">
32235 <column alignment="center" valignment="top" width="0">
32236 <column alignment="center" valignment="top" width="0">
32238 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32241 \begin_layout Plain Layout
32247 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
32250 \begin_layout Plain Layout
32258 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32261 \begin_layout Plain Layout
32267 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32270 \begin_layout Plain Layout
32278 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32281 \begin_layout Plain Layout
32287 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32290 \begin_layout Plain Layout
32298 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32301 \begin_layout Plain Layout
32307 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32310 \begin_layout Plain Layout
32318 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32321 \begin_layout Plain Layout
32327 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32330 \begin_layout Plain Layout
32332 \begin_inset space \thinspace{}
32336 \begin_inset space \thinspace{}
32346 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32349 \begin_layout Plain Layout
32355 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32358 \begin_layout Plain Layout
32360 \begin_inset space \thinspace{}
32364 \begin_inset space \thinspace{}
32374 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32377 \begin_layout Plain Layout
32383 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32386 \begin_layout Plain Layout
32387 scaled point (65536
32388 \begin_inset space \thinspace{}
32392 \begin_inset space \thinspace{}
32402 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32405 \begin_layout Plain Layout
32411 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32414 \begin_layout Plain Layout
32416 \begin_inset space \thinspace{}
32420 \begin_inset space \thinspace{}
32430 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32433 \begin_layout Plain Layout
32439 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32442 \begin_layout Plain Layout
32444 \begin_inset space \thinspace{}
32448 \begin_inset Formula $\approx$
32452 \begin_inset space \thinspace{}
32462 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32465 \begin_layout Plain Layout
32471 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32474 \begin_layout Plain Layout
32476 \begin_inset space \thinspace{}
32480 \begin_inset space \thinspace{}
32490 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32493 \begin_layout Plain Layout
32499 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32502 \begin_layout Plain Layout
32503 % of original image width
32510 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32513 \begin_layout Plain Layout
32519 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32522 \begin_layout Plain Layout
32530 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32533 \begin_layout Plain Layout
32539 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32542 \begin_layout Plain Layout
32550 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32553 \begin_layout Plain Layout
32559 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32562 \begin_layout Plain Layout
32570 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32573 \begin_layout Plain Layout
32579 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32582 \begin_layout Plain Layout
32590 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32593 \begin_layout Plain Layout
32599 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32602 \begin_layout Plain Layout
32610 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32613 \begin_layout Plain Layout
32619 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32622 \begin_layout Plain Layout
32630 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32633 \begin_layout Plain Layout
32639 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32642 \begin_layout Plain Layout
32654 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32657 \begin_layout Plain Layout
32663 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32666 \begin_layout Plain Layout
32678 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32681 \begin_layout Plain Layout
32687 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
32690 \begin_layout Plain Layout
32692 \begin_inset space \thinspace{}
32696 \begin_inset space \thinspace{}
32717 \begin_layout Chapter
32718 Output File Formats with Graphics
32719 \begin_inset CommandInset label
32721 name "cha:Output-File-Formats"
32728 \begin_layout Section
32733 \begin_layout Plain Layout
32743 \begin_layout Plain Layout
32748 \begin_layout Plain Layout
32759 \begin_layout Plain Layout
32774 \begin_layout Standard
32775 This file type has the extension
32776 \begin_inset Quotes eld
32784 \begin_inset Quotes erd
32789 \begin_inset Quotes eld
32793 \begin_inset Quotes erd
32796 (DVI), because it is completely portable; you can move them from one machine
32797 to another without needing to do any sort of conversion.
32798 At the time when this file-format was developed, this was no matter of
32800 DVIs are used for quick previews and as pre-stage for other output formats,
32804 \begin_layout Standard
32805 \begin_inset Note Greyedout
32808 \begin_layout Plain Layout
32813 DVI-files doesn't contain images, they will only be a linked.
32818 So don't forget this, if you move your
32822 file to another computer.
32823 This property can also slow down your computer when you view the DVI.
32824 Because the DVI-viewer has to convert the image in the background to make
32825 it visible when you scroll in the DVI.
32826 So we recommend to use PDF for files with many images.
32829 \begin_layout Standard
32830 You can export your document to DVI by using the menu
32832 File\SpecialChar \menuseparator
32833 Export\SpecialChar \menuseparator
32837 You can view your document as DVI via the
32841 menu or by using the toolbar button
32842 \begin_inset Graphics
32843 filename ../images/buffer-view_dvi.png
32845 scaleBeforeRotation
32852 \begin_layout Section
32854 \begin_inset CommandInset label
32856 name "sec:PostScript"
32864 \begin_layout Plain Layout
32865 File Formats ! PostScript
32874 \begin_layout Plain Layout
32879 \begin_layout Plain Layout
32890 \begin_layout Plain Layout
32905 \begin_layout Standard
32906 This file type has the extension
32907 \begin_inset Quotes eld
32915 \begin_inset Quotes erd
32919 PostScript was developed by the company
32923 as printer language.
32924 The file contains therefore commands that the printer uses to print the
32926 PostScript can be seen as
32927 \begin_inset Quotes eld
32930 programming language
32931 \begin_inset Quotes erd
32934 ; you can calculate with it and draw diagrams and images
32938 \begin_layout Plain Layout
32939 If you are interested to learn more about this, have a look at the LaTeX-package
32945 \begin_inset CommandInset citation
32957 Due to this ability, the files are often bigger than PDFs.
32960 \begin_layout Standard
32961 PostScript can only contain images in the format
32962 \begin_inset Quotes eld
32965 Encapsulated PostScript
32966 \begin_inset Quotes erd
32969 (EPS, file extension
32970 \begin_inset Quotes eld
32978 \begin_inset Quotes erd
32982 As LyX allows you to use any known image format in your document, it has
32983 to convert images in the background to EPS.
32984 If you have e.g 50 images in your document, LyX has to do 50 conversions
32985 whenever you view or export your document.
32986 This will slow down your work flow with LyX drastically.
32987 So if you plan to use PostScript, you can insert your images directly as
32988 EPS to avoid this problem.
32991 \begin_layout Standard
32992 You can export your document to PostScript using the menu
32994 File\SpecialChar \menuseparator
32995 Export\SpecialChar \menuseparator
32999 You can view your document as PostScript via the
33003 menu or by using the toolbar button
33004 \begin_inset Graphics
33005 filename ../images/buffer-view_ps.png
33007 scaleBeforeRotation
33014 \begin_layout Section
33016 \begin_inset CommandInset label
33026 \begin_layout Plain Layout
33036 \begin_layout Plain Layout
33045 \begin_layout Standard
33046 This file type has the extension
33047 \begin_inset Quotes eld
33055 \begin_inset Quotes erd
33060 \begin_inset Quotes eld
33063 Portable Document Format
33064 \begin_inset Quotes erd
33067 (PDF) is developed by
33071 as derivative from PostScript.
33072 It is more compressed and it uses much less commands than PostScript.
33074 \begin_inset Quotes eld
33078 \begin_inset Quotes erd
33081 implies, it can be processed at any computer system and the printed output
33082 looks exactly the same.
33085 \begin_layout Standard
33086 PDF can contain images in its own PDF format, in the format
33087 \begin_inset Quotes eld
33090 Joint Photographic Experts Group
33091 \begin_inset Quotes erd
33094 (JPG, file extension
33095 \begin_inset Quotes eld
33103 \begin_inset Quotes erd
33107 \begin_inset Quotes eld
33115 \begin_inset Quotes erd
33118 ), and in the format
33119 \begin_inset Quotes eld
33122 Portable Network Graphics
33123 \begin_inset Quotes erd
33126 (PNG, file extension
33127 \begin_inset Quotes eld
33135 \begin_inset Quotes erd
33139 Nevertheless you can use any other image format, because LyX converts them
33140 in the background to one of these formats.
33141 But as described in the section about PostScript, the image conversion
33142 will slow down your work flow.
33143 So it is recommended to use images in one of the three mentioned formats.
33146 \begin_layout Standard
33147 You can export your document to PDF via the menu
33149 File\SpecialChar \menuseparator
33152 in three different ways:
33155 \begin_layout Description
33157 \begin_inset space ~
33160 (ps2pdf) This uses the program
33164 that creates a PDF from a PostScript-version of your file.
33165 The PostScript-version is produced by the program
33169 which uses a DVI-version as intermediate step.
33170 So this export variant consist of three conversions.
33173 \begin_layout Description
33175 \begin_inset space ~
33178 (dvipdfm) This uses the program
33182 that converts your file in the background to DVI and in a second step to
33186 \begin_layout Description
33188 \begin_inset space ~
33191 (pdflatex) This uses the program
33195 that converts your file directly to PDF.
33198 \begin_layout Standard
33199 It is recommended to use
33202 \begin_inset space ~
33211 supports all features of actual PDF-versions, is quick and works stable
33217 is not under development and therefore a bit outdated.
33220 \begin_layout Standard
33221 You can view your document as PDF via the
33225 menu or by using the toolbar button
33226 \begin_inset Graphics
33227 filename ../images/buffer-view_pdf2.png
33229 scaleBeforeRotation
33240 \begin_inset space ~
33248 \begin_layout Chapter
33249 Explanation of Equation
33250 \begin_inset space ~
33254 \begin_inset CommandInset ref
33261 \begin_inset CommandInset label
33263 name "cha:Explanation-of-Equation"
33270 \begin_layout Standard
33276 \begin_inset Formula $W_{\mathrm{tot\, n}}$
33279 can be calculated to
33282 \begin_layout Standard
33283 \begin_inset Formula \begin{equation}
33284 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}
33291 \begin_layout Standard
33293 \begin_inset Formula $W_{g\, n}$
33296 is the given width of all cells.
33303 is the LaTeX-length between the cell text and the cell border, its default
33305 \begin_inset space \thinspace{}
33315 is the thickness of the cell border line, the default is 0.4
33316 \begin_inset space \thinspace{}
33322 \begin_layout Standard
33324 \begin_inset space ~
33328 \begin_inset CommandInset ref
33330 reference "eq:Wtot_n"
33334 , the total width of a multicolumn
33335 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
33341 \begin_layout Standard
33342 \begin_inset Formula \begin{equation}
33343 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
33350 \begin_layout Standard
33351 By setting equation
33352 \begin_inset space ~
33356 \begin_inset CommandInset ref
33358 reference "eq:Wtot_n"
33363 \begin_inset CommandInset ref
33365 reference "eq:Wtot_mult"
33369 equal we can calculate the needed given width
33370 \begin_inset Formula $W_{g\, n}$
33377 columns are spanned, so that each column has a total width of
33378 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
33384 \begin_layout Standard
33385 \begin_inset Formula \begin{equation}
33386 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
33393 \begin_layout Bibliography
33394 \begin_inset CommandInset bibitem
33395 LatexCommand bibitem
33396 key "latexcompanion"
33400 Frank Mittelbach and Michel Goossens:
33402 The LaTeX Companion Second Edition.
33405 Addison-Wesley, 2004
33408 \begin_layout Bibliography
33409 \begin_inset CommandInset bibitem
33410 LatexCommand bibitem
33415 Helmut Kopka and Patrick W.
33418 A Guide to LaTeX Fourth Edition.
33421 Addison-Wesley, 2003
33424 \begin_layout Bibliography
33425 \begin_inset CommandInset bibitem
33426 LatexCommand bibitem
33433 LaTeX: A Document Preparation System.
33436 Addison-Wesley, second edition, 1994
33439 \begin_layout Bibliography
33440 \begin_inset CommandInset bibitem
33441 LatexCommand bibitem
33446 Documentation of the LaTeX-package
33449 \begin_inset CommandInset href
33452 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
33462 \begin_layout Plain Layout
33463 LaTeX-packages ! booktabs
33471 \begin_layout Bibliography
33472 \begin_inset CommandInset bibitem
33473 LatexCommand bibitem
33478 Documentation of the LaTeX-package
33481 \begin_inset CommandInset href
33484 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf"
33494 \begin_layout Plain Layout
33495 LaTeX-packages ! caption
33503 \begin_layout Bibliography
33504 \begin_inset CommandInset bibitem
33505 LatexCommand bibitem
33510 Documentation of the LaTeX-package
33513 \begin_inset CommandInset href
33516 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
33526 \begin_layout Plain Layout
33527 LaTeX-packages ! endfloat
33535 \begin_layout Bibliography
33536 \begin_inset CommandInset bibitem
33537 LatexCommand bibitem
33542 Documentation of the LaTeX-package
33545 \begin_inset CommandInset href
33548 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/wrapfig/wrapfig.sty"
33558 \begin_layout Plain Layout
33559 LaTeX-packages ! wrapfig
33563 \begin_layout Plain Layout
33580 \begin_layout Bibliography
33581 \begin_inset CommandInset bibitem
33582 LatexCommand bibitem
33587 Documentation of the LaTeX-package
33590 \begin_inset CommandInset href
33593 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
33603 \begin_layout Plain Layout
33604 LaTeX-packages ! footmisc
33612 \begin_layout Bibliography
33613 \begin_inset CommandInset bibitem
33614 LatexCommand bibitem
33619 Documentation of the LaTeX-package
33622 \begin_inset CommandInset href
33625 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
33635 \begin_layout Plain Layout
33636 LaTeX-packages ! hyperref
33644 \begin_layout Bibliography
33645 \begin_inset CommandInset bibitem
33646 LatexCommand bibitem
33651 Documentation of the LaTeX-package
33654 \begin_inset CommandInset href
33657 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
33667 \begin_layout Plain Layout
33668 LaTeX-packages ! hyperref
33676 \begin_layout Bibliography
33677 \begin_inset CommandInset bibitem
33678 LatexCommand bibitem
33683 Documentation of the LaTeX-package
33686 \begin_inset CommandInset href
33689 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf"
33699 \begin_layout Plain Layout
33700 LaTeX-packages ! koma-script
33708 \begin_layout Bibliography
33709 \begin_inset CommandInset bibitem
33710 LatexCommand bibitem
33715 Documentation of the LaTeX-package
33718 \begin_inset CommandInset href
33721 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
33731 \begin_layout Plain Layout
33732 LaTeX-packages ! listings
33740 \begin_layout Bibliography
33741 \begin_inset CommandInset bibitem
33742 LatexCommand bibitem
33747 Documentation of the LaTeX-package
33750 \begin_inset CommandInset href
33753 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
33763 \begin_layout Plain Layout
33764 LaTeX-packages ! marginnote
33772 \begin_layout Bibliography
33773 \begin_inset CommandInset bibitem
33774 LatexCommand bibitem
33779 Web page of the LaTeX-package
33782 \begin_inset CommandInset href
33785 target "http://tug.org/PSTricks/"
33795 \begin_layout Plain Layout
33796 LaTeX-packages ! PSTricks
33804 \begin_layout Bibliography
33805 \begin_inset CommandInset bibitem
33806 LatexCommand bibitem
33811 Documentation of the LaTeX-package
33814 \begin_inset CommandInset href
33817 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
33827 \begin_layout Plain Layout
33828 LaTeX-packages ! sidecap
33836 \begin_layout Bibliography
33837 \begin_inset CommandInset bibitem
33838 LatexCommand bibitem
33844 \begin_inset CommandInset href
33847 target "http://wiki.lyx.org/LyX/NewInLyX16"
33851 about new features in
33858 \begin_layout Standard
33859 \begin_inset CommandInset index_print
33860 LatexCommand printindex
33867 \begin_layout Standard
33868 \begin_inset FloatList figure
33875 \begin_layout Standard
33876 \begin_inset FloatList table
33883 \begin_layout Standard
33884 \begin_inset FloatList algorithm