1 #LyX 1.6.2svn 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
165 \use_default_options false
170 \font_typewriter default
171 \font_default_family default
181 \pdf_title "LyX's Figure, Table, Floats, Notes, and Boxes manual"
182 \pdf_author "LyX Team, Uwe Stöhr"
183 \pdf_subject "LyX-documentation about figures, tables, floats, notes, and boxes"
184 \pdf_keywords "LyX, Tables, Figures, Floats, Boxes, Notes"
186 \pdf_bookmarksnumbered true
187 \pdf_bookmarksopen true
188 \pdf_bookmarksopenlevel 1
189 \pdf_breaklinks 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
327 \begin_layout Plain Layout
337 \begin_layout Plain Layout
342 \begin_layout Plain Layout
353 \begin_layout Plain Layout
368 \begin_layout Section
373 \begin_layout Plain Layout
374 Figures ! Graphics Dialog
380 \begin_inset CommandInset label
382 name "sec:Graphics-Dialog"
389 \begin_layout Standard
390 To insert an image into your document, place the cursor at the text position
391 you want and click on the toolbar icon
392 \begin_inset Graphics
393 filename ../images/dialog-show-new-inset_graphics.png
401 Insert\SpecialChar \menuseparator
405 Then a dialog will appear to choose the file to load.
406 The image will appear in the output exactly at the position where it is
410 \begin_layout Standard
411 The graphics dialog can be called at any time by clicking on an image.
412 This dialog has three tabs:
415 \begin_layout Description
420 Here you can choose an image file and adjust its appearance in the output.
421 The available units for the image size are explained in appendix
426 \begin_inset CommandInset ref
428 reference "cha:Units-available-in"
433 \begin_inset Newline newline
440 \begin_layout Plain Layout
446 You can rotate images counter-clockwise by setting a rotation angle and
448 The image will also be rotated inside LyX.
449 \begin_inset Newline newline
456 \begin_layout Plain Layout
462 Images can be scaled by using a percentage value or by setting the width
463 and height explicitly.
464 If you set only the width or only the height, the other size will be determined
466 If you set both, then the image will be transformed to the given size,
467 possibly distorting it.
468 To prevent the image from distortion, use the option
470 Maintain aspect ratio
473 The image will then be scaled so that its width and height don't exceed
474 the specified dimensions.
475 \begin_inset Newline newline
478 Images can be opened in a program of your choice when pressing the
483 The program can be set for every image format in the file format settings
484 in LyX's preferences.
487 \begin_layout Description
492 Alternatively to the usage of scaling units it is possible to set image
493 coordinates to adjust the height and width of the image in the output.
494 The coordinates can also be calculated automatically by pressing the button
524 will only print the image region within the given coordinates.
525 Normally you don't need to take care about image coordinates and can ignore
529 \begin_layout Description
546 In this tab you can modify the appearance of the image within LyX and LaTeX
547 experts can specify additional LaTeX options.
548 \begin_inset Newline newline
559 makes the image appear in the output only as a frame with the size of the
561 \begin_inset Newline newline
580 option only affects zipped EPS-graphics, e.
581 \begin_inset space \thinspace{}
585 \begin_inset space \space{}
593 When the option is used the images will not be unzipped on export, since
594 LaTeX can handle them as they are.
595 \begin_inset Newline newline
598 Zipped EPS-graphics are useful to save disk space when you choose PostScript
599 as output format, see appendix
604 \begin_inset CommandInset ref
606 reference "sec:PostScript"
611 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
613 \begin_inset Newline newline
621 \begin_inset Newline newline
626 zgrep %%Bounding x.eps.gz > x.eps.bb
629 \begin_inset Newline newline
632 The second command creates the bounding box file
633 \begin_inset Quotes eld
637 \begin_inset Quotes erd
640 that is needed by LaTeX for zipped graphics.
641 \begin_inset Newline newline
656 allows you define or join an image settings group.
660 \begin_layout Plain Layout
661 Figures ! Settings grouping
666 Images within such a group share their settings, so adjusting one image
667 of the group automatically also adjusts all other images of the group in
669 So you can for example change the size for a bunch of images without the
670 need to manually change each of them.
671 Joining an existing group can also be done using the context menu of the
672 image by checking the name of the desired group.
675 \begin_layout Standard
676 \begin_inset VSpace bigskip
682 \begin_layout Standard
683 This is an example image in EPS format
687 \begin_layout Plain Layout
688 Image formats are explained in section
693 \begin_inset CommandInset ref
695 reference "sec:Image-Formats"
704 within a separate, horizontally centered paragraph:
707 \begin_layout Standard
709 \begin_inset Graphics
710 filename clipart/mobius.eps
720 \begin_layout Standard
721 This is the same image like the one above but in draft mode:
724 \begin_layout Standard
726 \begin_inset Graphics
727 filename clipart/mobius.eps
738 \begin_layout Standard
739 \begin_inset Newpage newpage
745 \begin_layout Section
747 \begin_inset CommandInset label
749 name "sec:Figure-Floats"
757 \begin_layout Plain Layout
767 \begin_layout Plain Layout
776 \begin_layout Standard
777 For general explanations about floats, have a look at section
782 \begin_inset CommandInset ref
784 reference "sec:FloatIntroduction"
791 \begin_layout Standard
793 \begin_inset Graphics
794 filename ../images/float-insert_figure.png
802 Insert\SpecialChar \menuseparator
803 Float\SpecialChar \menuseparator
806 inserts a float with a caption that has the label
807 \begin_inset Quotes eld
815 \begin_inset Quotes erd
818 (# is the actual number).
819 You can insert the image above the caption, like in Figure
824 \begin_inset CommandInset ref
826 reference "fig:kill-plat"
830 or below the caption, like in Figure
835 \begin_inset CommandInset ref
837 reference "fig:escher"
842 More about the caption placement is described in section
847 \begin_inset CommandInset ref
849 reference "sec:Caption-Placement"
856 \begin_layout Standard
857 \begin_inset Float figure
862 \begin_layout Plain Layout
864 \begin_inset Graphics
865 filename clipart/platypus.eps
875 \begin_layout Plain Layout
878 \begin_layout Plain Layout
879 \begin_inset CommandInset label
885 A severely distorted platypus in a float.
898 \begin_layout Standard
899 \begin_inset Float figure
904 \begin_layout Plain Layout
907 \begin_layout Plain Layout
908 \begin_inset CommandInset label
923 \begin_layout Plain Layout
925 \begin_inset Graphics
926 filename clipart/escher-lsd.eps
941 \begin_layout Standard
945 \begin_layout Plain Layout
946 References ! to Figures
956 \begin_inset CommandInset ref
958 reference "fig:kill-plat"
963 \begin_inset CommandInset ref
965 reference "fig:escher"
969 are examples of referenced figures.
970 Figures can be referenced in the text by referencing their label.
971 To do this insert a label in the caption using the menu
973 Insert\SpecialChar \menuseparator
976 or the toolbar button
977 \begin_inset Graphics
978 filename ../images/label-insert.png
985 You can now refer to the label using the menu
987 Insert\SpecialChar \menuseparator
994 or the toolbar button
995 \begin_inset Graphics
996 filename ../images/dialog-show-new-inset_ref.png
1003 It is important to use references to floats, rather than using vague references
1005 \begin_inset Quotes eld
1009 \begin_inset Quotes erd
1012 , because as LaTeX will reposition the floats in the final document, it
1014 \begin_inset Quotes eld
1018 \begin_inset Quotes erd
1022 \begin_inset Newline newline
1025 Referencing is explained in detail in section
1026 \begin_inset space ~
1030 \begin_inset CommandInset ref
1032 reference "sec:Referencing-Floats"
1039 \begin_layout Standard
1040 Normally only one image is inserted to a figure float, but sometimes you
1041 might want to use two images with separate subcaptions.
1042 This can be done by inserting image floats into existing image floats.
1043 Note that only the main caption of the float is added to the List of Figures.
1045 \begin_inset space ~
1049 \begin_inset CommandInset ref
1051 reference "fig:Two-distorted-images"
1055 is an example of a figure float with two images set side by side.
1056 You can also set the images one below the other.
1058 \begin_inset space ~
1062 \begin_inset CommandInset ref
1064 reference "fig:Undefinable-structure"
1069 \begin_inset CommandInset ref
1071 reference "fig:A-Platypus"
1078 \begin_layout Standard
1079 \begin_inset Float figure
1084 \begin_layout Plain Layout
1085 \begin_inset space \hfill{}
1089 \begin_inset Float figure
1094 \begin_layout Plain Layout
1095 \begin_inset Caption
1097 \begin_layout Plain Layout
1098 \begin_inset CommandInset label
1100 name "fig:Undefinable-structure"
1104 Undefinable structure.
1112 \begin_layout Plain Layout
1113 \begin_inset Graphics
1114 filename clipart/escher-lsd.eps
1127 \begin_inset space \hfill{}
1131 \begin_inset Float figure
1136 \begin_layout Plain Layout
1137 \begin_inset Caption
1139 \begin_layout Plain Layout
1140 \begin_inset CommandInset label
1142 name "fig:A-Platypus"
1154 \begin_layout Plain Layout
1155 \begin_inset Graphics
1156 filename clipart/platypus.eps
1169 \begin_inset space \hfill{}
1175 \begin_layout Plain Layout
1176 \begin_inset Caption
1178 \begin_layout Plain Layout
1179 \begin_inset CommandInset label
1181 name "fig:Two-distorted-images"
1185 Two distorted images.
1186 Both images are in the image settings group named
1187 \begin_inset Quotes eld
1191 \begin_inset Quotes erd
1207 \begin_layout Standard
1208 \begin_inset Newpage newpage
1214 \begin_layout Section
1216 \begin_inset CommandInset label
1218 name "sec:Image-Formats"
1226 \begin_layout Plain Layout
1236 \begin_layout Plain Layout
1237 Figures ! Image Formats
1245 \begin_layout Standard
1246 You can insert images in any known file format.
1247 But as explained in appendix
1248 \begin_inset space ~
1252 \begin_inset CommandInset ref
1254 reference "cha:Output-File-Formats"
1258 , every output document format allows only a few image formats.
1259 LyX uses therefore the program
1263 in the background to convert the images to the right format.
1264 To increase your work flow by avoiding these conversions in the background,
1265 you can use only the image formats that can directly be embedded in the
1267 The output file formats are explained in appendix
1268 \begin_inset space ~
1272 \begin_inset CommandInset ref
1274 reference "cha:Output-File-Formats"
1281 \begin_layout Standard
1282 Similar to fonts there are two types of image formats:
1285 \begin_layout Description
1287 \begin_inset space ~
1290 images consist of pixel values, often in a compressed form.
1291 They are therefore not fully scalable and look pixeled in large zooms.
1292 Well-known bitmap image formats are
1293 \begin_inset Quotes eld
1296 Graphics Interchange Format
1297 \begin_inset Quotes erd
1300 (GIF, file extension
1301 \begin_inset Quotes eld
1309 \begin_inset Quotes erd
1316 \begin_layout Plain Layout
1321 \begin_layout Plain Layout
1332 \begin_layout Plain Layout
1345 \begin_inset Quotes eld
1348 Portable Network Graphics
1349 \begin_inset Quotes erd
1352 (PNG, file extension
1353 \begin_inset Quotes eld
1361 \begin_inset Quotes erd
1368 \begin_layout Plain Layout
1373 \begin_layout Plain Layout
1384 \begin_layout Plain Layout
1397 \begin_inset Quotes eld
1400 Joint Photographic Experts Group
1401 \begin_inset Quotes erd
1404 (JPG, file extension
1405 \begin_inset Quotes eld
1413 \begin_inset Quotes erd
1417 \begin_inset Quotes eld
1425 \begin_inset Quotes erd
1432 \begin_layout Plain Layout
1437 \begin_layout Plain Layout
1448 \begin_layout Plain Layout
1463 \begin_layout Description
1465 \begin_inset space ~
1468 images consist of vectors and can therefore be scaled to any size without
1470 The scaling ability is necessary if you want to create presentations, because
1471 presentations are always scaled by the video projector.
1472 Scaling is also useful for online documents to let the user zoom into diagrams.
1473 \begin_inset Newline newline
1476 Well-known scalable image formats are
1477 \begin_inset Quotes eld
1480 Scalable Vector Graphics
1481 \begin_inset Quotes erd
1484 (SVG, file extension
1485 \begin_inset Quotes eld
1493 \begin_inset Quotes erd
1500 \begin_layout Plain Layout
1505 \begin_layout Plain Layout
1516 \begin_layout Plain Layout
1529 \begin_inset Quotes eld
1532 Encapsulated PostScript
1533 \begin_inset Quotes erd
1536 (EPS, file extension
1537 \begin_inset Quotes eld
1545 \begin_inset Quotes erd
1552 \begin_layout Plain Layout
1557 \begin_layout Plain Layout
1568 \begin_layout Plain Layout
1581 \begin_inset Quotes eld
1584 Portable Document Format
1585 \begin_inset Quotes erd
1588 (PDF, file extension
1589 \begin_inset Quotes eld
1597 \begin_inset Quotes erd
1604 \begin_layout Plain Layout
1611 \begin_inset Quotes eld
1615 \begin_inset Quotes erd
1618 (WMF, file extension
1619 \begin_inset Quotes eld
1627 \begin_inset Quotes erd
1634 \begin_layout Plain Layout
1639 \begin_layout Plain Layout
1650 \begin_layout Plain Layout
1664 \begin_inset Quotes eld
1668 \begin_inset Quotes erd
1671 , because you can convert any bitmap image to a PDF or EPS-image and the
1672 result will still be a bitmap image.
1673 In this cases only a header with the image properties is added to the original
1678 \begin_layout Plain Layout
1679 In the case of PDF, the original image is additionally compressed.
1685 The PDF-files generated by
1689 are for example bitmap images.
1692 \begin_layout Standard
1693 Normally it is not possible to convert a bitmap image into a scalable one,
1695 Only the image formats PDF and EPS can directly be embedded to PDF and
1696 PostScript output files, respectively.
1697 SVG and WMF-images are recalculated to bitmaps when the output file is
1698 generated because there is currently no adequate WMF/SVG
1699 \begin_inset Formula $\to$
1702 PDF/EPS converter available.
1705 \begin_layout Chapter
1710 \begin_layout Plain Layout
1719 \begin_layout Section
1724 \begin_layout Plain Layout
1725 Table ! Introduction
1733 \begin_layout Standard
1734 You can insert a table using either the toolbar button
1735 \begin_inset Graphics
1736 filename ../images/tabular-insert.png
1744 Insert\SpecialChar \menuseparator
1748 The toolbar button offers you a graphical selection: Move the mouse to
1749 set the column/row number of the table that should be created and then
1750 press a mouse button.
1751 When you use the menu to create a table, a dialog will appear, asking you
1752 for the number of rows and columns.
1753 \begin_inset Newline newline
1756 The default table has lines around any cell and the first row appears separated
1757 from the rest of the table.
1758 This separation occurs due to a double line: The cells of the first row
1759 have a line below them and the cells of the second row have a line above
1761 Here is an example table:
1764 \begin_layout Standard
1766 \begin_inset Tabular
1767 <lyxtabular version="3" rows="4" columns="4">
1769 <column alignment="center" valignment="top" width="0">
1770 <column alignment="center" valignment="top" width="0">
1771 <column alignment="center" valignment="top" width="0">
1772 <column alignment="center" valignment="top" width="0">
1774 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1777 \begin_layout Plain Layout
1783 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1786 \begin_layout Plain Layout
1801 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1804 \begin_layout Plain Layout
1810 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1813 \begin_layout Plain Layout
1821 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1824 \begin_layout Plain Layout
1839 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1842 \begin_layout Plain Layout
1848 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1851 \begin_layout Plain Layout
1857 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1860 \begin_layout Plain Layout
1868 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1871 \begin_layout Plain Layout
1886 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1889 \begin_layout Plain Layout
1895 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1898 \begin_layout Plain Layout
1904 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1907 \begin_layout Plain Layout
1915 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1918 \begin_layout Plain Layout
1933 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1936 \begin_layout Plain Layout
1942 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1945 \begin_layout Plain Layout
1951 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1954 \begin_layout Plain Layout
1968 \begin_layout Section
1973 \begin_layout Plain Layout
1982 \begin_layout Standard
1983 You can alter a table by clicking on it with the right mouse button, which
1984 brings up the table dialog.
1985 Here you can adjust the settings of that cell and row/column respectively
1986 where the cursor is currently placed.
1987 Most of the dialog options also work on selections.
1988 This means if you select more cells, columns or rows, the action is done
1989 for the whole selection.
1990 Note that there is a difference between selecting the
1994 of the cell, and the cell itself.
1995 You can alter tables with the following tabs of the table dialog:
1998 \begin_layout Description
2002 \begin_inset space ~
2007 Here you can set the horizontal alignment and the width of the current
2009 When you have set a width you can also adjust the vertical alignment of
2011 A given width will allow the cell to have line breaks and multiple paragraphs
2012 of text, see section
2013 \begin_inset space ~
2017 \begin_inset CommandInset ref
2019 reference "sub:Multiple-Lines-in"
2024 If you set no width, the column is as wide as their widest cell content
2026 \begin_inset Newline newline
2029 Furthermore, you can mark one or multiple cells of one row as a multicolumn
2031 \begin_inset space ~
2035 \begin_inset CommandInset ref
2037 reference "sub:Multicolumns"
2042 \begin_inset Newline newline
2045 The rotate check boxes rotates the current cell, a selection, or the whole
2046 table counter-clockwise by 90°.
2047 The rotation is not shown within LyX, only in the output.
2048 \begin_inset Newline newline
2052 \begin_inset Note Greyedout
2055 \begin_layout Plain Layout
2060 Not all DVI-viewers are able to display rotations.
2066 \begin_inset Newline newline
2069 It is also possible to enter a LaTeX-argument which is needed for special
2070 table formattings, see section
2071 \begin_inset space ~
2075 \begin_inset CommandInset ref
2077 reference "sub:Multicolumn-Calculations"
2082 \begin_inset CommandInset ref
2084 reference "sec:Colored-Tables"
2091 \begin_layout Description
2096 In this tab you can add and delete border lines for the current row/column.
2097 \begin_inset Newline newline
2100 Using the style option
2104 will convert the table to a formal table as described in section
2105 \begin_inset space ~
2109 \begin_inset CommandInset ref
2111 reference "sec:Formal-Tables"
2116 \begin_inset Newline newline
2119 You can also add here space to table rows as decribed in section
2120 \begin_inset space ~
2124 \begin_inset CommandInset ref
2126 reference "sub:Row-Spacing"
2133 \begin_layout Description
2138 This tab is to make a table a so called
2139 \begin_inset Quotes eld
2147 \begin_inset Quotes erd
2150 that can run over several pages.
2152 \begin_inset space ~
2156 \begin_inset CommandInset ref
2158 reference "sec:Longtables"
2163 \begin_inset CommandInset ref
2165 reference "sec:Special-Longtable-Issues"
2169 describe the longtable features in detail.
2172 \begin_layout Standard
2173 When the table toolbar is opened, you can move the cursor with the arrow
2174 keys from cell to cell and the property of the current cell will immediately
2175 be displayed in the dialog.
2178 \begin_layout Section
2183 \begin_layout Plain Layout
2192 \begin_layout Standard
2193 The table toolbar is an alternative to the table dialog to be able to alter
2195 It should normally appear at the bottom of LyX's main window when the cursor
2197 You can alternatively switch it on to appear always, by right-clicking
2198 in LyX's main menu bar.
2201 \begin_layout Standard
2202 The toolbar has the following icons:
2205 \begin_layout Labeling
2206 \labelwidthstring 00.00.0000
2207 \begin_inset Graphics
2208 filename ../images/tabular-feature_append-row.png
2213 adds a row below the current cell or selection
2216 \begin_layout Labeling
2217 \labelwidthstring 00.00.0000
2218 \begin_inset Graphics
2219 filename ../images/tabular-feature_append-column.png
2224 adds a column right beside the current cell or selection
2227 \begin_layout Labeling
2228 \labelwidthstring 00.00.0000
2229 \begin_inset Graphics
2230 filename ../images/tabular-feature_delete-row.png
2235 deletes the current row or selection
2238 \begin_layout Labeling
2239 \labelwidthstring 00.00.0000
2240 \begin_inset Graphics
2241 filename ../images/tabular-feature_delete-column.png
2246 deletes the current column or selection
2249 \begin_layout Labeling
2250 \labelwidthstring 00.00.0000
2251 \begin_inset Graphics
2252 filename ../images/tabular-feature_toggle-line-top.png
2257 adds a line at the top of the current cell / row or of a selection
2260 \begin_layout Labeling
2261 \labelwidthstring 00.00.0000
2262 \begin_inset Graphics
2263 filename ../images/tabular-feature_toggle-line-bottom.png
2268 adds a line at the bottom of the current cell / row or of a selection
2271 \begin_layout Labeling
2272 \labelwidthstring 00.00.0000
2273 \begin_inset Graphics
2274 filename ../images/tabular-feature_toggle-line-left.png
2279 adds a line at the left side of the current cell / row or of a selection
2282 \begin_layout Labeling
2283 \labelwidthstring 00.00.0000
2284 \begin_inset Graphics
2285 filename ../images/tabular-feature_toggle-line-right.png
2290 adds a line at the right side of the current cell / row or of a selection
2293 \begin_layout Labeling
2294 \labelwidthstring 00.00.0000
2295 \begin_inset Graphics
2296 filename ../images/tabular-feature_set-all-lines.png
2301 adds lines around the current or selected cells - if the current cell no
2302 multicolumn this also affects the current row and column
2305 \begin_layout Labeling
2306 \labelwidthstring 00.00.0000
2307 \begin_inset Graphics
2308 filename ../images/tabular-feature_unset-all-lines.png
2313 deletes all lines of the current or selected cells - if the current cell
2314 no multicolumn this also affects the current row and column
2317 \begin_layout Labeling
2318 \labelwidthstring 00.00.0000
2319 \begin_inset Graphics
2320 filename ../images/tabular-feature_align-left.png
2325 left-aligns the content of the current cell / column
2328 \begin_layout Labeling
2329 \labelwidthstring 00.00.0000
2330 \begin_inset Graphics
2331 filename ../images/tabular-feature_align-center.png
2336 centers the content of the current cell / column horizontally
2339 \begin_layout Labeling
2340 \labelwidthstring 00.00.0000
2341 \begin_inset Graphics
2342 filename ../images/tabular-feature_align-right.png
2347 right-aligns the content of the current cell / column
2350 \begin_layout Labeling
2351 \labelwidthstring 00.00.0000
2352 \begin_inset Graphics
2353 filename ../images/tabular-feature_valign-top.png
2358 aligns the content of the current cell vertically to the top
2361 \begin_layout Labeling
2362 \labelwidthstring 00.00.0000
2363 \begin_inset Graphics
2364 filename ../images/tabular-feature_valign-middle.png
2369 centers the content of the current cell vertically
2372 \begin_layout Labeling
2373 \labelwidthstring 00.00.0000
2374 \begin_inset Graphics
2375 filename ../images/tabular-feature_valign-bottom.png
2380 aligns the content of the current cell vertically to the bottom
2383 \begin_layout Labeling
2384 \labelwidthstring 00.00.0000
2385 \begin_inset Graphics
2386 filename ../images/tabular-feature_set-rotate-cell.png
2391 rotates the current cell or selection counter-clockwise by 90°
2394 \begin_layout Labeling
2395 \labelwidthstring 00.00.0000
2396 \begin_inset Graphics
2397 filename ../images/tabular-feature_set-rotate-tabular.png
2402 rotates the whole table counter-clockwise by 90°
2405 \begin_layout Labeling
2406 \labelwidthstring 00.00.0000
2407 \begin_inset Graphics
2408 filename ../images/tabular-feature_multicolumn.png
2413 sets the current cell or selection as a multicolumn
2416 \begin_layout Standard
2417 \begin_inset Note Greyedout
2420 \begin_layout Plain Layout
2425 For the output the vertical alignment of the first cell in a row is used
2426 for all following cells in the row.
2434 \begin_layout Section
2439 \begin_layout Plain Layout
2448 \begin_layout Standard
2449 Additionally to the table dialog and toolbar, the menu
2451 Edit\SpecialChar \menuseparator
2454 allows you to add and delete border lines for the current row/column and
2455 to set the current selection as multicolumn.
2456 The menu is only available when the cursor is inside a table.
2459 \begin_layout Section
2461 \begin_inset CommandInset label
2463 name "sec:Table-Floats"
2471 \begin_layout Plain Layout
2481 \begin_layout Plain Layout
2490 \begin_layout Standard
2491 For general explanations about floats, have a look at section
2492 \begin_inset space ~
2496 \begin_inset CommandInset ref
2498 reference "sec:FloatIntroduction"
2505 \begin_layout Standard
2506 \begin_inset Float table
2512 \begin_layout Plain Layout
2513 \begin_inset Caption
2515 \begin_layout Plain Layout
2516 \begin_inset CommandInset label
2518 name "tab:a table float"
2530 \begin_layout Plain Layout
2532 \begin_inset Tabular
2533 <lyxtabular version="3" rows="3" columns="3">
2535 <column alignment="center" valignment="top" width="0pt">
2536 <column alignment="center" valignment="top" width="0pt">
2537 <column alignment="center" valignment="top" width="0pt">
2539 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2542 \begin_layout Plain Layout
2557 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2560 \begin_layout Plain Layout
2575 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2578 \begin_layout Plain Layout
2595 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2598 \begin_layout Plain Layout
2613 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2616 \begin_layout Plain Layout
2631 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2634 \begin_layout Plain Layout
2651 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2654 \begin_layout Plain Layout
2664 \begin_inset Formula $\int x^{2}dx$
2672 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2675 \begin_layout Plain Layout
2685 \begin_inset Formula $\left[\begin{array}{cc}
2687 c & d\end{array}\right]$
2695 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2698 \begin_layout Plain Layout
2708 \begin_inset Formula $1+1=2$
2729 \begin_layout Standard
2730 Table floats can be inserted using the menu
2732 Insert\SpecialChar \menuseparator
2733 Float\SpecialChar \menuseparator
2736 or the toolbar button
2737 \begin_inset Graphics
2738 filename ../images/float-insert_table.png
2747 \begin_layout Standard
2748 The float appears as a collapsible box with a caption that has the label
2750 \begin_inset Quotes eld
2754 \begin_inset space ~
2758 \begin_inset Quotes erd
2761 (# is the actual table number).
2762 You can insert tables to the float above or below the caption.
2765 \begin_layout Standard
2767 \begin_inset space ~
2771 \begin_inset CommandInset ref
2773 reference "tab:a table float"
2777 is an example table within a table float.
2780 \begin_layout Standard
2781 Having the caption above the table is the common rule that is unfortunately
2782 not supported in LaTeX's standard classes.
2783 That means if you are using the document classes
2799 there will be no space between the caption and the table.
2800 To insert the needed space, add the following option to the load command
2801 of the LaTeX-package
2809 \begin_layout Plain Layout
2810 LaTeX-packages ! caption
2815 in your document preamble
2819 \begin_layout Plain Layout
2820 For more information have a look at section
2821 \begin_inset space ~
2825 \begin_inset CommandInset ref
2827 reference "sec:Caption-Placement"
2839 \begin_layout Standard
2845 \begin_layout Standard
2850 , which is described in section
2851 \begin_inset space ~
2855 \begin_inset CommandInset ref
2857 reference "sec:Caption-Formatting"
2861 , is used to adjust the caption format.
2864 \begin_layout Standard
2868 \begin_layout Plain Layout
2869 References ! to Tables
2874 Tables can be cross-referenced in the text by referencing their label.
2875 To do this insert a label in the caption using the menu
2877 Insert\SpecialChar \menuseparator
2880 or the toolbar button
2881 \begin_inset Graphics
2882 filename ../images/label-insert.png
2889 You can now refer to the label using the menu
2891 Insert\SpecialChar \menuseparator
2893 \begin_inset space ~
2898 or the toolbar button
2899 \begin_inset Graphics
2900 filename ../images/dialog-show-new-inset_ref.png
2907 \begin_inset Newline newline
2910 Referencing is explained in detail in section
2911 \begin_inset space ~
2915 \begin_inset CommandInset ref
2917 reference "sec:Referencing-Floats"
2924 \begin_layout Section
2926 \begin_inset CommandInset label
2928 name "sec:Longtables"
2936 \begin_layout Plain Layout
2946 \begin_layout Plain Layout
2955 \begin_layout Standard
2956 If the table is too long to fit on one page, you can use the option
2959 \begin_inset space ~
2963 \begin_inset space ~
2972 of the table dialog to split the table automatically over more pages.
2973 Doing this enables the following options:
2976 \begin_layout Description
2977 Header: The current row is defined to be a header row that appears on all
2978 pages of the longtable; except for the first page, if
2981 \begin_inset space ~
2987 This therefore called the main header.
2990 \begin_layout Description
2992 \begin_inset space ~
2995 header: The current row is defined to be a header row that appears on the
2996 first page of the longtable.
2999 \begin_layout Description
3000 Footer: The current row is defined to be a footer row that appears on all
3001 pages of the longtable; except for the last page, if
3004 \begin_inset space ~
3012 \begin_layout Description
3014 \begin_inset space ~
3017 footer: The current row is defined to be a footer row that appear on the
3018 last page of the longtable.
3021 \begin_layout Description
3022 Caption: The current row contains the table caption.
3023 The row is reset as single column and a caption is inserted.
3024 More about longtable captions is explained in sec.
3025 \begin_inset space \thinspace{}
3029 \begin_inset CommandInset ref
3031 reference "sub:Longtable-Captions"
3038 \begin_layout Standard
3039 You can also specify a row where the table is split.
3040 See the following longtable to see how it works:
3043 \begin_layout Standard
3045 \begin_inset Tabular
3046 <lyxtabular version="3" rows="69" columns="3">
3047 <features islongtable="true">
3048 <column alignment="left" valignment="top" width="0cm">
3049 <column alignment="left" valignment="top" width="0pt">
3050 <column alignment="center" valignment="top" width="0pt">
3051 <row endfirsthead="true">
3052 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3055 \begin_layout Plain Layout
3058 Example Phone List (ignore the names)
3063 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3066 \begin_layout Plain Layout
3072 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3075 \begin_layout Plain Layout
3082 <row endfirsthead="true">
3083 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3086 \begin_layout Plain Layout
3094 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3097 \begin_layout Plain Layout
3103 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3106 \begin_layout Plain Layout
3115 <row endhead="true">
3116 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3119 \begin_layout Plain Layout
3127 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3130 \begin_layout Plain Layout
3136 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3139 \begin_layout Plain Layout
3146 <row endhead="true">
3147 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3150 \begin_layout Plain Layout
3158 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3161 \begin_layout Plain Layout
3167 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3170 \begin_layout Plain Layout
3179 <row endfoot="true">
3180 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
3183 \begin_layout Plain Layout
3184 continued on next page
3189 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3192 \begin_layout Plain Layout
3198 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3201 \begin_layout Plain Layout
3209 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3212 \begin_layout Plain Layout
3220 <cell alignment="center" valignment="top" usebox="none">
3223 \begin_layout Plain Layout
3229 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3232 \begin_layout Plain Layout
3240 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3243 \begin_layout Plain Layout
3251 <cell alignment="center" valignment="top" usebox="none">
3254 \begin_layout Plain Layout
3260 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3263 \begin_layout Plain Layout
3271 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3274 \begin_layout Plain Layout
3282 <cell alignment="center" valignment="top" usebox="none">
3285 \begin_layout Plain Layout
3291 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3294 \begin_layout Plain Layout
3302 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3305 \begin_layout Plain Layout
3313 <cell alignment="center" valignment="top" usebox="none">
3316 \begin_layout Plain Layout
3322 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3325 \begin_layout Plain Layout
3333 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3336 \begin_layout Plain Layout
3344 <cell alignment="center" valignment="top" usebox="none">
3347 \begin_layout Plain Layout
3353 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3356 \begin_layout Plain Layout
3364 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3367 \begin_layout Plain Layout
3375 <cell alignment="center" valignment="top" usebox="none">
3378 \begin_layout Plain Layout
3384 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3387 \begin_layout Plain Layout
3395 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3398 \begin_layout Plain Layout
3406 <cell alignment="center" valignment="top" usebox="none">
3409 \begin_layout Plain Layout
3415 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3418 \begin_layout Plain Layout
3426 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3429 \begin_layout Plain Layout
3437 <cell alignment="center" valignment="top" usebox="none">
3440 \begin_layout Plain Layout
3446 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3449 \begin_layout Plain Layout
3457 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3460 \begin_layout Plain Layout
3468 <cell alignment="center" valignment="top" usebox="none">
3471 \begin_layout Plain Layout
3477 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3480 \begin_layout Plain Layout
3488 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3491 \begin_layout Plain Layout
3499 <cell alignment="center" valignment="top" usebox="none">
3502 \begin_layout Plain Layout
3508 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3511 \begin_layout Plain Layout
3519 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3522 \begin_layout Plain Layout
3530 <cell alignment="center" valignment="top" usebox="none">
3533 \begin_layout Plain Layout
3539 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3542 \begin_layout Plain Layout
3550 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3553 \begin_layout Plain Layout
3561 <cell alignment="center" valignment="top" usebox="none">
3564 \begin_layout Plain Layout
3570 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3573 \begin_layout Plain Layout
3581 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3584 \begin_layout Plain Layout
3592 <cell alignment="center" valignment="top" usebox="none">
3595 \begin_layout Plain Layout
3601 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3604 \begin_layout Plain Layout
3612 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3615 \begin_layout Plain Layout
3623 <cell alignment="center" valignment="top" usebox="none">
3626 \begin_layout Plain Layout
3632 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3635 \begin_layout Plain Layout
3643 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3646 \begin_layout Plain Layout
3654 <cell alignment="center" valignment="top" usebox="none">
3657 \begin_layout Plain Layout
3663 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3666 \begin_layout Plain Layout
3674 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3677 \begin_layout Plain Layout
3685 <cell alignment="center" valignment="top" usebox="none">
3688 \begin_layout Plain Layout
3694 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3697 \begin_layout Plain Layout
3705 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3708 \begin_layout Plain Layout
3716 <cell alignment="center" valignment="top" usebox="none">
3719 \begin_layout Plain Layout
3725 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3728 \begin_layout Plain Layout
3736 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3739 \begin_layout Plain Layout
3747 <cell alignment="center" valignment="top" usebox="none">
3750 \begin_layout Plain Layout
3756 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3759 \begin_layout Plain Layout
3767 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3770 \begin_layout Plain Layout
3778 <cell alignment="center" valignment="top" usebox="none">
3781 \begin_layout Plain Layout
3787 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3790 \begin_layout Plain Layout
3798 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3801 \begin_layout Plain Layout
3809 <cell alignment="center" valignment="top" usebox="none">
3812 \begin_layout Plain Layout
3818 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3821 \begin_layout Plain Layout
3829 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3832 \begin_layout Plain Layout
3840 <cell alignment="center" valignment="top" usebox="none">
3843 \begin_layout Plain Layout
3849 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3852 \begin_layout Plain Layout
3860 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3863 \begin_layout Plain Layout
3871 <cell alignment="center" valignment="top" usebox="none">
3874 \begin_layout Plain Layout
3880 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3883 \begin_layout Plain Layout
3891 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3894 \begin_layout Plain Layout
3902 <cell alignment="center" valignment="top" usebox="none">
3905 \begin_layout Plain Layout
3911 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3914 \begin_layout Plain Layout
3922 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3925 \begin_layout Plain Layout
3933 <cell alignment="center" valignment="top" usebox="none">
3936 \begin_layout Plain Layout
3942 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3945 \begin_layout Plain Layout
3953 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3956 \begin_layout Plain Layout
3964 <cell alignment="center" valignment="top" usebox="none">
3967 \begin_layout Plain Layout
3973 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3976 \begin_layout Plain Layout
3984 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3987 \begin_layout Plain Layout
3995 <cell alignment="center" valignment="top" usebox="none">
3998 \begin_layout Plain Layout
4004 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4007 \begin_layout Plain Layout
4015 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4018 \begin_layout Plain Layout
4026 <cell alignment="center" valignment="top" usebox="none">
4029 \begin_layout Plain Layout
4035 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4038 \begin_layout Plain Layout
4046 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4049 \begin_layout Plain Layout
4057 <cell alignment="center" valignment="top" usebox="none">
4060 \begin_layout Plain Layout
4066 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4069 \begin_layout Plain Layout
4077 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4080 \begin_layout Plain Layout
4088 <cell alignment="center" valignment="top" usebox="none">
4091 \begin_layout Plain Layout
4097 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4100 \begin_layout Plain Layout
4108 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4111 \begin_layout Plain Layout
4119 <cell alignment="center" valignment="top" usebox="none">
4122 \begin_layout Plain Layout
4128 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4131 \begin_layout Plain Layout
4139 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4142 \begin_layout Plain Layout
4150 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4153 \begin_layout Plain Layout
4159 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4162 \begin_layout Plain Layout
4170 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4173 \begin_layout Plain Layout
4179 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4182 \begin_layout Plain Layout
4188 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4191 \begin_layout Plain Layout
4199 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4202 \begin_layout Plain Layout
4210 <cell alignment="center" valignment="top" usebox="none">
4213 \begin_layout Plain Layout
4219 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4222 \begin_layout Plain Layout
4230 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4233 \begin_layout Plain Layout
4241 <cell alignment="center" valignment="top" usebox="none">
4244 \begin_layout Plain Layout
4250 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4253 \begin_layout Plain Layout
4261 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4264 \begin_layout Plain Layout
4272 <cell alignment="center" valignment="top" usebox="none">
4275 \begin_layout Plain Layout
4281 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4284 \begin_layout Plain Layout
4292 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4295 \begin_layout Plain Layout
4303 <cell alignment="center" valignment="top" usebox="none">
4306 \begin_layout Plain Layout
4312 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4315 \begin_layout Plain Layout
4323 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4326 \begin_layout Plain Layout
4334 <cell alignment="center" valignment="top" usebox="none">
4337 \begin_layout Plain Layout
4343 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4346 \begin_layout Plain Layout
4354 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4357 \begin_layout Plain Layout
4365 <cell alignment="center" valignment="top" usebox="none">
4368 \begin_layout Plain Layout
4374 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4377 \begin_layout Plain Layout
4385 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4388 \begin_layout Plain Layout
4396 <cell alignment="center" valignment="top" usebox="none">
4399 \begin_layout Plain Layout
4405 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4408 \begin_layout Plain Layout
4416 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4419 \begin_layout Plain Layout
4427 <cell alignment="center" valignment="top" usebox="none">
4430 \begin_layout Plain Layout
4436 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4439 \begin_layout Plain Layout
4447 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4450 \begin_layout Plain Layout
4458 <cell alignment="center" valignment="top" usebox="none">
4461 \begin_layout Plain Layout
4467 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4470 \begin_layout Plain Layout
4478 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4481 \begin_layout Plain Layout
4489 <cell alignment="center" valignment="top" usebox="none">
4492 \begin_layout Plain Layout
4498 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4501 \begin_layout Plain Layout
4509 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4512 \begin_layout Plain Layout
4520 <cell alignment="center" valignment="top" usebox="none">
4523 \begin_layout Plain Layout
4529 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4532 \begin_layout Plain Layout
4540 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4543 \begin_layout Plain Layout
4551 <cell alignment="center" valignment="top" usebox="none">
4554 \begin_layout Plain Layout
4560 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4563 \begin_layout Plain Layout
4571 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4574 \begin_layout Plain Layout
4582 <cell alignment="center" valignment="top" usebox="none">
4585 \begin_layout Plain Layout
4591 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4594 \begin_layout Plain Layout
4602 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4605 \begin_layout Plain Layout
4613 <cell alignment="center" valignment="top" usebox="none">
4616 \begin_layout Plain Layout
4622 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4625 \begin_layout Plain Layout
4633 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4636 \begin_layout Plain Layout
4644 <cell alignment="center" valignment="top" usebox="none">
4647 \begin_layout Plain Layout
4653 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4656 \begin_layout Plain Layout
4664 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4667 \begin_layout Plain Layout
4675 <cell alignment="center" valignment="top" usebox="none">
4678 \begin_layout Plain Layout
4684 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4687 \begin_layout Plain Layout
4695 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4698 \begin_layout Plain Layout
4706 <cell alignment="center" valignment="top" usebox="none">
4709 \begin_layout Plain Layout
4715 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4718 \begin_layout Plain Layout
4726 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4729 \begin_layout Plain Layout
4737 <cell alignment="center" valignment="top" usebox="none">
4740 \begin_layout Plain Layout
4746 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4749 \begin_layout Plain Layout
4757 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4760 \begin_layout Plain Layout
4768 <cell alignment="center" valignment="top" usebox="none">
4771 \begin_layout Plain Layout
4777 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4780 \begin_layout Plain Layout
4788 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4791 \begin_layout Plain Layout
4799 <cell alignment="center" valignment="top" usebox="none">
4802 \begin_layout Plain Layout
4808 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4811 \begin_layout Plain Layout
4819 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4822 \begin_layout Plain Layout
4830 <cell alignment="center" valignment="top" usebox="none">
4833 \begin_layout Plain Layout
4839 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4842 \begin_layout Plain Layout
4850 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4853 \begin_layout Plain Layout
4861 <cell alignment="center" valignment="top" usebox="none">
4864 \begin_layout Plain Layout
4870 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4873 \begin_layout Plain Layout
4881 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4884 \begin_layout Plain Layout
4892 <cell alignment="center" valignment="top" usebox="none">
4895 \begin_layout Plain Layout
4901 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4904 \begin_layout Plain Layout
4912 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4915 \begin_layout Plain Layout
4923 <cell alignment="center" valignment="top" usebox="none">
4926 \begin_layout Plain Layout
4932 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4935 \begin_layout Plain Layout
4943 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4946 \begin_layout Plain Layout
4954 <cell alignment="center" valignment="top" usebox="none">
4957 \begin_layout Plain Layout
4963 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4966 \begin_layout Plain Layout
4974 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4977 \begin_layout Plain Layout
4985 <cell alignment="center" valignment="top" usebox="none">
4988 \begin_layout Plain Layout
4994 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4997 \begin_layout Plain Layout
5005 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5008 \begin_layout Plain Layout
5016 <cell alignment="center" valignment="top" usebox="none">
5019 \begin_layout Plain Layout
5025 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5028 \begin_layout Plain Layout
5036 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5039 \begin_layout Plain Layout
5047 <cell alignment="center" valignment="top" usebox="none">
5050 \begin_layout Plain Layout
5056 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5059 \begin_layout Plain Layout
5067 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5070 \begin_layout Plain Layout
5078 <cell alignment="center" valignment="top" usebox="none">
5081 \begin_layout Plain Layout
5087 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5090 \begin_layout Plain Layout
5098 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5101 \begin_layout Plain Layout
5109 <cell alignment="center" valignment="top" usebox="none">
5112 \begin_layout Plain Layout
5118 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5121 \begin_layout Plain Layout
5129 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5132 \begin_layout Plain Layout
5140 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5143 \begin_layout Plain Layout
5149 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5152 \begin_layout Plain Layout
5159 <row endlastfoot="true">
5160 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5163 \begin_layout Plain Layout
5169 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5172 \begin_layout Plain Layout
5178 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5181 \begin_layout Plain Layout
5196 \begin_layout Plain Layout
5200 addtocounter{table}{-1}
5206 \begin_inset Note Note
5209 \begin_layout Plain Layout
5210 See the first greyed-out note in section
5211 \begin_inset space ~
5215 \begin_inset CommandInset ref
5217 reference "sub:Longtable-Captions"
5221 for an explanation of this command.
5229 \begin_layout Subsection
5230 Footnotes in Longtables
5231 \begin_inset CommandInset label
5233 name "sub:Footnotes-in-Longtables"
5241 \begin_layout Plain Layout
5242 Longtables ! Footnotes
5250 \begin_layout Standard
5251 Footnotes can be inserted to every longtable cell.
5252 They appear at the bottom of the page where the table cell with the footnote
5255 \begin_inset space ~
5259 \begin_inset CommandInset ref
5261 reference "tab:DiffCaptions"
5265 has for example a footnote.
5268 \begin_layout Subsection
5273 \begin_layout Plain Layout
5274 Longtables ! Alignment
5282 \begin_layout Standard
5283 Longtables are by default centered.
5284 In contrary to the alignment of the table columns and row, the table alignment
5285 can currently not be changed in the table dialog.
5286 To change the alignment of longtables you have to change the value of the
5299 by inserting this line as TeX-Code before the corresponding longtable:
5302 \begin_layout Standard
5312 \begin_layout Standard
5313 Where the value can have any of the units listed in Table
5314 \begin_inset space ~
5318 \begin_inset CommandInset ref
5320 reference "tab:Units"
5331 controls the horizontal distance from the left page border to the longtable,
5338 the distance from the right side.
5339 The default value for both lengths is
5345 , which is in this case the same as an horizontal fill in LyX.
5348 \begin_layout Standard
5349 The following longtable was left-aligned by setting
5356 \begin_inset space \thinspace{}
5363 \begin_layout Plain Layout
5377 \begin_layout Standard
5378 \begin_inset Tabular
5379 <lyxtabular version="3" rows="5" columns="5">
5380 <features islongtable="true">
5381 <column alignment="center" valignment="top" width="0">
5382 <column alignment="center" valignment="top" width="0">
5383 <column alignment="center" valignment="top" width="0">
5384 <column alignment="center" valignment="top" width="0">
5385 <column alignment="center" valignment="top" width="0">
5387 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5390 \begin_layout Plain Layout
5396 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5399 \begin_layout Plain Layout
5405 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5408 \begin_layout Plain Layout
5414 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5417 \begin_layout Plain Layout
5423 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5426 \begin_layout Plain Layout
5434 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5437 \begin_layout Plain Layout
5443 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5446 \begin_layout Plain Layout
5452 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5455 \begin_layout Plain Layout
5461 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5464 \begin_layout Plain Layout
5470 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5473 \begin_layout Plain Layout
5481 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5484 \begin_layout Plain Layout
5490 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5493 \begin_layout Plain Layout
5499 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5502 \begin_layout Plain Layout
5508 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5511 \begin_layout Plain Layout
5517 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5520 \begin_layout Plain Layout
5528 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5531 \begin_layout Plain Layout
5537 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5540 \begin_layout Plain Layout
5546 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5549 \begin_layout Plain Layout
5555 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5558 \begin_layout Plain Layout
5564 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5567 \begin_layout Plain Layout
5575 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5578 \begin_layout Plain Layout
5584 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5587 \begin_layout Plain Layout
5593 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5596 \begin_layout Plain Layout
5602 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5605 \begin_layout Plain Layout
5611 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5614 \begin_layout Plain Layout
5629 \begin_layout Plain Layout
5646 \begin_layout Plain Layout
5650 addtocounter{table}{-1}
5656 \begin_inset Note Note
5659 \begin_layout Plain Layout
5660 See the first greyed-out note in section
5661 \begin_inset space ~
5665 \begin_inset CommandInset ref
5667 reference "sub:Longtable-Captions"
5671 for an explanation of this command.
5679 \begin_layout Subsection
5684 \begin_layout Plain Layout
5685 Longtables ! Captions
5691 \begin_inset CommandInset label
5693 name "sub:Longtable-Captions"
5700 \begin_layout Standard
5701 A longtable cannot be put into a table float because floats can only be
5703 But the caption environment of floats can also be used for longtables when
5704 you use for a table row the longtable option
5708 as described in sec.
5709 \begin_inset space \thinspace{}
5713 \begin_inset CommandInset ref
5715 reference "sec:Longtables"
5720 Only one table row can contain the caption.
5723 \begin_layout Standard
5724 Here is a short longtable to see how it works:
5727 \begin_layout Standard
5728 \begin_inset Tabular
5729 <lyxtabular version="3" rows="6" columns="5">
5730 <features islongtable="true">
5731 <column alignment="center" valignment="top" width="0">
5732 <column alignment="center" valignment="top" width="0">
5733 <column alignment="center" valignment="top" width="0">
5734 <column alignment="center" valignment="top" width="0">
5735 <column alignment="center" valignment="top" width="0">
5736 <row caption="true">
5737 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
5740 \begin_layout Plain Layout
5741 \begin_inset Caption
5743 \begin_layout Plain Layout
5744 Longtable with caption
5748 \begin_layout Plain Layout
5764 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5767 \begin_layout Plain Layout
5773 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5776 \begin_layout Plain Layout
5782 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5785 \begin_layout Plain Layout
5791 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5794 \begin_layout Plain Layout
5802 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5805 \begin_layout Plain Layout
5811 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5814 \begin_layout Plain Layout
5820 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5823 \begin_layout Plain Layout
5829 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5832 \begin_layout Plain Layout
5838 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5841 \begin_layout Plain Layout
5849 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5852 \begin_layout Plain Layout
5858 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5861 \begin_layout Plain Layout
5867 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5870 \begin_layout Plain Layout
5876 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5879 \begin_layout Plain Layout
5885 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5888 \begin_layout Plain Layout
5896 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5899 \begin_layout Plain Layout
5905 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5908 \begin_layout Plain Layout
5914 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5917 \begin_layout Plain Layout
5923 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5926 \begin_layout Plain Layout
5932 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5935 \begin_layout Plain Layout
5943 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5946 \begin_layout Plain Layout
5952 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5955 \begin_layout Plain Layout
5961 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5964 \begin_layout Plain Layout
5970 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5973 \begin_layout Plain Layout
5979 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5982 \begin_layout Plain Layout
5990 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5993 \begin_layout Plain Layout
5999 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6002 \begin_layout Plain Layout
6008 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6011 \begin_layout Plain Layout
6017 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6020 \begin_layout Plain Layout
6026 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6029 \begin_layout Plain Layout
6043 \begin_layout Standard
6044 \begin_inset VSpace medskip
6048 \begin_inset Note Greyedout
6051 \begin_layout Plain Layout
6055 \begin_inset space ~
6060 The table number is increased for every longtable, also if you didn't set
6062 For this reason you could have the case that e.
6063 \begin_inset space \thinspace{}
6067 \begin_inset space \space{}
6071 \begin_inset space ~
6074 2.4 follows on Table
6075 \begin_inset space ~
6078 2.1 in the list of tables if there are two longtables without captions.
6079 To avoid this you can add the following command in TeX-Code behind every
6080 longtable without a caption:
6083 \begin_layout Plain Layout
6088 addtocounter{table}{-1}
6091 \begin_layout Plain Layout
6092 This is not needed when none of your longtables have a caption and you add
6093 the following code to the document preamble:
6096 \begin_layout Plain Layout
6106 \begin_inset Newline newline
6117 addtocounter{table}{-1}}
6125 \begin_layout Standard
6126 \begin_inset Note Greyedout
6129 \begin_layout Plain Layout
6133 \begin_inset space ~
6146 \begin_layout Plain Layout
6147 LaTeX-packages ! hyperref
6160 dialog to link cross-references, the link to a longtable caption will always
6161 point to the beginning of the document.
6169 \begin_layout Subsubsection
6170 References to Longtables
6174 \begin_layout Plain Layout
6175 Longtables ! References
6183 \begin_layout Standard
6184 \begin_inset Tabular
6185 <lyxtabular version="3" rows="6" columns="5">
6186 <features islongtable="true">
6187 <column alignment="center" valignment="top" width="0">
6188 <column alignment="center" valignment="top" width="0">
6189 <column alignment="center" valignment="top" width="0">
6190 <column alignment="center" valignment="top" width="0">
6191 <column alignment="center" valignment="top" width="0">
6192 <row caption="true">
6193 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6196 \begin_layout Plain Layout
6197 \begin_inset Caption
6199 \begin_layout Plain Layout
6200 Referenced longtable
6201 \begin_inset CommandInset label
6203 name "tab:RefExample"
6217 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6220 \begin_layout Plain Layout
6226 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6229 \begin_layout Plain Layout
6235 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6238 \begin_layout Plain Layout
6244 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6247 \begin_layout Plain Layout
6255 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6258 \begin_layout Plain Layout
6264 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6267 \begin_layout Plain Layout
6273 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6276 \begin_layout Plain Layout
6282 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6285 \begin_layout Plain Layout
6291 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6294 \begin_layout Plain Layout
6302 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6305 \begin_layout Plain Layout
6311 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6314 \begin_layout Plain Layout
6320 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6323 \begin_layout Plain Layout
6329 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6332 \begin_layout Plain Layout
6338 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6341 \begin_layout Plain Layout
6349 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6352 \begin_layout Plain Layout
6358 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6361 \begin_layout Plain Layout
6367 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6370 \begin_layout Plain Layout
6376 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6379 \begin_layout Plain Layout
6385 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6388 \begin_layout Plain Layout
6396 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6399 \begin_layout Plain Layout
6405 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6408 \begin_layout Plain Layout
6414 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6417 \begin_layout Plain Layout
6423 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6426 \begin_layout Plain Layout
6432 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6435 \begin_layout Plain Layout
6443 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6446 \begin_layout Plain Layout
6452 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6455 \begin_layout Plain Layout
6461 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6464 \begin_layout Plain Layout
6470 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6473 \begin_layout Plain Layout
6479 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6482 \begin_layout Plain Layout
6496 \begin_layout Standard
6497 To reference a longtable, insert a label into the caption.
6500 \begin_layout Standard
6501 This is a reference to Table
6502 \begin_inset space ~
6506 \begin_inset CommandInset ref
6508 reference "tab:RefExample"
6515 \begin_layout Standard
6516 The caption layout can be set together with all other captions of your document
6517 using the LaTeX-package
6525 \begin_layout Plain Layout
6526 LaTeX-packages ! caption
6532 \begin_inset space ~
6536 \begin_inset CommandInset ref
6538 reference "sec:Caption-Formatting"
6545 \begin_layout Subsubsection
6550 \begin_layout Plain Layout
6551 Longtables ! Caption Width
6559 \begin_layout Standard
6560 The maximal width of of caption lines is defined by the length
6567 Its default value is 4
6568 \begin_inset space \thinspace{}
6572 To change it add the following command to your document preamble or as
6573 TeX-Code into your document before the longtable that should be affected
6576 \begin_layout Standard
6586 \begin_layout Standard
6587 where the width could have one of the units listed in appendix
6588 \begin_inset space ~
6592 \begin_inset CommandInset ref
6594 reference "cha:Units-available-in"
6601 \begin_layout Standard
6602 The following tables show the difference:
6605 \begin_layout Standard
6606 \begin_inset Tabular
6607 <lyxtabular version="3" rows="6" columns="5">
6608 <features islongtable="true">
6609 <column alignment="center" valignment="top" width="0">
6610 <column alignment="center" valignment="top" width="0">
6611 <column alignment="center" valignment="top" width="0">
6612 <column alignment="center" valignment="top" width="0">
6613 <column alignment="center" valignment="top" width="0">
6614 <row caption="true">
6615 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6618 \begin_layout Plain Layout
6619 \begin_inset Caption
6621 \begin_layout Plain Layout
6622 long full title with default width long full title with default width long
6623 full title with default width
6627 \begin_layout Plain Layout
6628 caption with default width
6643 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6646 \begin_layout Plain Layout
6652 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6655 \begin_layout Plain Layout
6661 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6664 \begin_layout Plain Layout
6670 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6673 \begin_layout Plain Layout
6681 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6684 \begin_layout Plain Layout
6690 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6693 \begin_layout Plain Layout
6699 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6702 \begin_layout Plain Layout
6708 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6711 \begin_layout Plain Layout
6717 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6720 \begin_layout Plain Layout
6728 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6731 \begin_layout Plain Layout
6737 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6740 \begin_layout Plain Layout
6746 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6749 \begin_layout Plain Layout
6755 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6758 \begin_layout Plain Layout
6764 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6767 \begin_layout Plain Layout
6775 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6778 \begin_layout Plain Layout
6784 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6787 \begin_layout Plain Layout
6793 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6796 \begin_layout Plain Layout
6802 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6805 \begin_layout Plain Layout
6811 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6814 \begin_layout Plain Layout
6822 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6825 \begin_layout Plain Layout
6831 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6834 \begin_layout Plain Layout
6840 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6843 \begin_layout Plain Layout
6849 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6852 \begin_layout Plain Layout
6858 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6861 \begin_layout Plain Layout
6869 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6872 \begin_layout Plain Layout
6878 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6881 \begin_layout Plain Layout
6887 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6890 \begin_layout Plain Layout
6896 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6899 \begin_layout Plain Layout
6905 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6908 \begin_layout Plain Layout
6922 \begin_layout Standard
6926 \begin_layout Plain Layout
6938 \begin_inset Tabular
6939 <lyxtabular version="3" rows="6" columns="5">
6940 <features islongtable="true">
6941 <column alignment="center" valignment="top" width="0">
6942 <column alignment="center" valignment="top" width="0">
6943 <column alignment="center" valignment="top" width="0">
6944 <column alignment="center" valignment="top" width="0">
6945 <column alignment="center" valignment="top" width="0">
6946 <row caption="true">
6947 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6950 \begin_layout Plain Layout
6951 \begin_inset Caption
6953 \begin_layout Plain Layout
6954 long full title with width set to 5
6955 \begin_inset space \thinspace{}
6958 cm long full title with width set to 5
6959 \begin_inset space \thinspace{}
6962 cm long full title with width set to 5
6963 \begin_inset space \thinspace{}
6970 \begin_layout Plain Layout
6972 \begin_inset space \thinspace{}
6976 \begin_inset space \thinspace{}
6980 \begin_inset space \thinspace{}
6998 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7001 \begin_layout Plain Layout
7007 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7010 \begin_layout Plain Layout
7016 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7019 \begin_layout Plain Layout
7025 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7028 \begin_layout Plain Layout
7036 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7039 \begin_layout Plain Layout
7045 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7048 \begin_layout Plain Layout
7054 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7057 \begin_layout Plain Layout
7063 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7066 \begin_layout Plain Layout
7072 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7075 \begin_layout Plain Layout
7083 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7086 \begin_layout Plain Layout
7092 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7095 \begin_layout Plain Layout
7101 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7104 \begin_layout Plain Layout
7110 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7113 \begin_layout Plain Layout
7119 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7122 \begin_layout Plain Layout
7130 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7133 \begin_layout Plain Layout
7139 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7142 \begin_layout Plain Layout
7148 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7151 \begin_layout Plain Layout
7157 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7160 \begin_layout Plain Layout
7166 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7169 \begin_layout Plain Layout
7177 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7180 \begin_layout Plain Layout
7186 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7189 \begin_layout Plain Layout
7195 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7198 \begin_layout Plain Layout
7204 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7207 \begin_layout Plain Layout
7213 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7216 \begin_layout Plain Layout
7224 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7227 \begin_layout Plain Layout
7233 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7236 \begin_layout Plain Layout
7242 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7245 \begin_layout Plain Layout
7251 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7254 \begin_layout Plain Layout
7260 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7263 \begin_layout Plain Layout
7277 \begin_layout Standard
7281 \begin_layout Plain Layout
7295 \begin_layout Standard
7296 \begin_inset Note Greyedout
7299 \begin_layout Plain Layout
7304 When the LaTeX-package
7312 \begin_layout Plain Layout
7313 LaTeX-packages ! caption
7318 is used, as in this document, the full page width is used for the caption
7319 when you use the default value of 4
7320 \begin_inset space \thinspace{}
7330 To get in this case exactly a 4
7331 \begin_inset space \thinspace{}
7334 in wide caption, you can either use a value slightly different from 4.0
7335 \begin_inset space \thinspace{}
7339 \begin_inset space \thinspace{}
7343 \begin_inset space \space{}
7347 \begin_inset space \thinspace{}
7350 in, or the LaTeX-command
7354 captionsetup{width=value}
7356 that is provided by the
7368 \begin_layout Subsubsection
7369 Different Captions for Table Pages
7373 \begin_layout Plain Layout
7374 Longtables ! Different Captions for Pages
7382 \begin_layout Standard
7383 When the table captions for the following pages should differ from the one
7384 of the first table page, insert a caption with the TeX code command
7387 \begin_layout Standard
7392 caption*{caption text}
7399 \begin_layout Standard
7400 in a dummy caption row that is marked as header.
7402 \begin_inset space ~
7406 \begin_inset CommandInset ref
7408 reference "tab:DiffCaptions"
7412 is an example for a longtable with different heading where the second caption
7413 doesn't include the table number.
7416 \begin_layout Standard
7418 \begin_inset Tabular
7419 <lyxtabular version="3" rows="59" columns="3">
7420 <features islongtable="true" lastFootEmpty="true">
7421 <column alignment="left" valignment="top" width="0cm">
7422 <column alignment="left" valignment="top" width="0pt">
7423 <column alignment="center" valignment="top" width="0pt">
7424 <row caption="true">
7425 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7428 \begin_layout Plain Layout
7429 \begin_inset Caption
7431 \begin_layout Plain Layout
7433 \begin_inset CommandInset label
7435 name "tab:DiffCaptions"
7443 \begin_layout Plain Layout
7459 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7462 \begin_layout Plain Layout
7468 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7471 \begin_layout Plain Layout
7478 <row endfirsthead="true">
7479 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7482 \begin_layout Plain Layout
7485 Example Phone List (ignore the names)
7490 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7493 \begin_layout Plain Layout
7499 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7502 \begin_layout Plain Layout
7509 <row endfirsthead="true">
7510 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7513 \begin_layout Plain Layout
7521 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7524 \begin_layout Plain Layout
7530 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7533 \begin_layout Plain Layout
7542 <row endhead="true">
7543 <cell alignment="left" valignment="top" leftline="true" usebox="none">
7546 \begin_layout Plain Layout
7550 \begin_layout Plain Layout
7554 caption*{Continued Example Phone List}
7568 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7571 \begin_layout Plain Layout
7577 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7580 \begin_layout Plain Layout
7587 <row endhead="true">
7588 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7591 \begin_layout Plain Layout
7599 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7602 \begin_layout Plain Layout
7608 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7611 \begin_layout Plain Layout
7618 <row endhead="true">
7619 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7622 \begin_layout Plain Layout
7630 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7633 \begin_layout Plain Layout
7639 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7642 \begin_layout Plain Layout
7651 <row endfoot="true">
7652 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
7655 \begin_layout Plain Layout
7656 continued on next page
7661 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7664 \begin_layout Plain Layout
7670 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7673 \begin_layout Plain Layout
7681 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7684 \begin_layout Plain Layout
7692 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7695 \begin_layout Plain Layout
7701 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
7704 \begin_layout Plain Layout
7712 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7715 \begin_layout Plain Layout
7723 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7726 \begin_layout Plain Layout
7732 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7735 \begin_layout Plain Layout
7743 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7746 \begin_layout Plain Layout
7754 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7757 \begin_layout Plain Layout
7763 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7766 \begin_layout Plain Layout
7774 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7777 \begin_layout Plain Layout
7785 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7788 \begin_layout Plain Layout
7794 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7797 \begin_layout Plain Layout
7805 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7808 \begin_layout Plain Layout
7816 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7819 \begin_layout Plain Layout
7825 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7828 \begin_layout Plain Layout
7836 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7839 \begin_layout Plain Layout
7847 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7850 \begin_layout Plain Layout
7856 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7859 \begin_layout Plain Layout
7867 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7870 \begin_layout Plain Layout
7878 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7881 \begin_layout Plain Layout
7887 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7890 \begin_layout Plain Layout
7898 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7901 \begin_layout Plain Layout
7909 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7912 \begin_layout Plain Layout
7918 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7921 \begin_layout Plain Layout
7929 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7932 \begin_layout Plain Layout
7940 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7943 \begin_layout Plain Layout
7949 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7952 \begin_layout Plain Layout
7960 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7963 \begin_layout Plain Layout
7971 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7974 \begin_layout Plain Layout
7980 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7983 \begin_layout Plain Layout
7991 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7994 \begin_layout Plain Layout
8002 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8005 \begin_layout Plain Layout
8011 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8014 \begin_layout Plain Layout
8022 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8025 \begin_layout Plain Layout
8033 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8036 \begin_layout Plain Layout
8042 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8045 \begin_layout Plain Layout
8053 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8056 \begin_layout Plain Layout
8064 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8067 \begin_layout Plain Layout
8073 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8076 \begin_layout Plain Layout
8084 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8087 \begin_layout Plain Layout
8095 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8098 \begin_layout Plain Layout
8104 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8107 \begin_layout Plain Layout
8115 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8118 \begin_layout Plain Layout
8127 \begin_layout Plain Layout
8138 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8141 \begin_layout Plain Layout
8147 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8150 \begin_layout Plain Layout
8158 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8161 \begin_layout Plain Layout
8169 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8172 \begin_layout Plain Layout
8178 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8181 \begin_layout Plain Layout
8189 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8192 \begin_layout Plain Layout
8200 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8203 \begin_layout Plain Layout
8209 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8212 \begin_layout Plain Layout
8220 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8223 \begin_layout Plain Layout
8231 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8234 \begin_layout Plain Layout
8240 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8243 \begin_layout Plain Layout
8251 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8254 \begin_layout Plain Layout
8262 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8265 \begin_layout Plain Layout
8271 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8274 \begin_layout Plain Layout
8282 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8285 \begin_layout Plain Layout
8293 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8296 \begin_layout Plain Layout
8302 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8305 \begin_layout Plain Layout
8313 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8316 \begin_layout Plain Layout
8324 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8327 \begin_layout Plain Layout
8333 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8336 \begin_layout Plain Layout
8344 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8347 \begin_layout Plain Layout
8355 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8358 \begin_layout Plain Layout
8364 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8367 \begin_layout Plain Layout
8375 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8378 \begin_layout Plain Layout
8386 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8389 \begin_layout Plain Layout
8395 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8398 \begin_layout Plain Layout
8406 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8409 \begin_layout Plain Layout
8417 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8420 \begin_layout Plain Layout
8426 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8429 \begin_layout Plain Layout
8437 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8440 \begin_layout Plain Layout
8448 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8451 \begin_layout Plain Layout
8457 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8460 \begin_layout Plain Layout
8468 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8471 \begin_layout Plain Layout
8479 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8482 \begin_layout Plain Layout
8488 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8491 \begin_layout Plain Layout
8499 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8502 \begin_layout Plain Layout
8510 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8513 \begin_layout Plain Layout
8519 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8522 \begin_layout Plain Layout
8530 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8533 \begin_layout Plain Layout
8541 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8544 \begin_layout Plain Layout
8550 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8553 \begin_layout Plain Layout
8561 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8564 \begin_layout Plain Layout
8572 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8575 \begin_layout Plain Layout
8581 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8584 \begin_layout Plain Layout
8592 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8595 \begin_layout Plain Layout
8603 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8606 \begin_layout Plain Layout
8612 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8615 \begin_layout Plain Layout
8623 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8626 \begin_layout Plain Layout
8634 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8637 \begin_layout Plain Layout
8643 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8646 \begin_layout Plain Layout
8654 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8657 \begin_layout Plain Layout
8663 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8666 \begin_layout Plain Layout
8672 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8675 \begin_layout Plain Layout
8683 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8686 \begin_layout Plain Layout
8694 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8697 \begin_layout Plain Layout
8703 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8706 \begin_layout Plain Layout
8714 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8717 \begin_layout Plain Layout
8725 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8728 \begin_layout Plain Layout
8734 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8737 \begin_layout Plain Layout
8745 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8748 \begin_layout Plain Layout
8756 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8759 \begin_layout Plain Layout
8765 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8768 \begin_layout Plain Layout
8776 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8779 \begin_layout Plain Layout
8787 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8790 \begin_layout Plain Layout
8796 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8799 \begin_layout Plain Layout
8807 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8810 \begin_layout Plain Layout
8818 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8821 \begin_layout Plain Layout
8827 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8830 \begin_layout Plain Layout
8838 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8841 \begin_layout Plain Layout
8849 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8852 \begin_layout Plain Layout
8858 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8861 \begin_layout Plain Layout
8869 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8872 \begin_layout Plain Layout
8880 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8883 \begin_layout Plain Layout
8889 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8892 \begin_layout Plain Layout
8900 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8903 \begin_layout Plain Layout
8911 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8914 \begin_layout Plain Layout
8920 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8923 \begin_layout Plain Layout
8931 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8934 \begin_layout Plain Layout
8942 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8945 \begin_layout Plain Layout
8951 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8954 \begin_layout Plain Layout
8962 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8965 \begin_layout Plain Layout
8973 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8976 \begin_layout Plain Layout
8982 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8985 \begin_layout Plain Layout
8993 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8996 \begin_layout Plain Layout
9004 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9007 \begin_layout Plain Layout
9013 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9016 \begin_layout Plain Layout
9024 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9027 \begin_layout Plain Layout
9035 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9038 \begin_layout Plain Layout
9044 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9047 \begin_layout Plain Layout
9055 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9058 \begin_layout Plain Layout
9066 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9069 \begin_layout Plain Layout
9075 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9078 \begin_layout Plain Layout
9086 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9089 \begin_layout Plain Layout
9097 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9100 \begin_layout Plain Layout
9106 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9109 \begin_layout Plain Layout
9117 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9120 \begin_layout Plain Layout
9128 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9131 \begin_layout Plain Layout
9137 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9140 \begin_layout Plain Layout
9148 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9151 \begin_layout Plain Layout
9159 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9162 \begin_layout Plain Layout
9168 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9171 \begin_layout Plain Layout
9179 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9182 \begin_layout Plain Layout
9190 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9193 \begin_layout Plain Layout
9199 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9202 \begin_layout Plain Layout
9210 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9213 \begin_layout Plain Layout
9221 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9224 \begin_layout Plain Layout
9230 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9233 \begin_layout Plain Layout
9241 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9244 \begin_layout Plain Layout
9252 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9255 \begin_layout Plain Layout
9261 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9264 \begin_layout Plain Layout
9272 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9275 \begin_layout Plain Layout
9283 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9286 \begin_layout Plain Layout
9292 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9295 \begin_layout Plain Layout
9309 \begin_layout Section
9310 Special Longtable Issues
9311 \begin_inset CommandInset label
9313 name "sec:Special-Longtable-Issues"
9320 \begin_layout Subsection
9321 Longtable Calculation
9325 \begin_layout Plain Layout
9326 Longtables ! Calculation
9334 \begin_layout Standard
9335 LaTeX calculates the height of table pages and their page breaks using so
9337 Chunks are pieces of the tables that are at once in LaTeX's memory.
9338 The default value is historically set to only 20 table rows.
9339 If you are using longtables with many pages this may slow down the creation
9341 You can safely increase the chunk size to values of 100-1000 by adding
9342 this command line to your document preamble:
9345 \begin_layout Standard
9350 setcounter{LTchunksize}{100}
9353 \begin_layout Subsection
9354 Floats and Longtables
9358 \begin_layout Plain Layout
9367 \begin_layout Standard
9368 There might be problems when a float appears on the same page where a longtable
9370 To avoid such situation, add the command
9376 as TeX-Code before your longtable.
9379 \begin_layout Subsection
9384 \begin_layout Plain Layout
9385 Longtables ! Forced Page Breaks
9393 \begin_layout Standard
9394 By default tables are only broken between rows.
9395 If you have a cell with multiples lines and want to have a page break within
9396 the cell, insert the new line command
9397 \begin_inset Quotes eld
9409 \begin_inset Quotes erd
9412 as TeX-Code at this point of the cell where it can be broken.
9421 command you have to insert in TeX-Code so many
9422 \begin_inset Quotes eld
9430 \begin_inset Quotes erd
9433 characters like the number of the following table columns.
9438 is the character to separate table cells.
9439 Write in TeX-Code after each
9443 the content of the corresponding following cell and delete the content
9445 \begin_inset Newline newline
9456 command, insert so many
9460 characters like the number of table columns before the current column.
9462 \begin_inset space ~
9466 \begin_inset CommandInset ref
9468 reference "tab:ForcedPagebreak"
9472 the cell that should be broken is in the second column followed by another
9474 Therefore the following command was inserted in the cell as TeX-Code behind
9476 \begin_inset Quotes eld
9484 \begin_inset Quotes erd
9490 \begin_layout Standard
9500 \begin_inset Newline newline
9506 \begin_layout Standard
9508 \begin_inset Quotes eld
9512 \begin_inset Quotes erd
9515 in the third columns of the row was deleted.
9522 is only needed when a page break should definitively occur at this position,
9523 otherwise it is only a possibility to break.
9524 If your footer row of the longtable has for a certain reason no upper line
9525 but you would have a horizontal line where the cell is broken, use this
9529 \begin_layout Standard
9537 \begin_inset Newline newline
9545 \begin_layout Standard
9546 When the cell to be broken is in the last column, the command
9549 \begin_layout Standard
9559 \begin_layout Standard
9560 must be inserted as TeX-Code at the beginning of the cell.
9561 This assures that the part of the cell that will be displayed on the new
9562 page appears with the full width.
9565 \begin_layout Standard
9567 \begin_inset Tabular
9568 <lyxtabular version="3" rows="38" columns="3">
9569 <features islongtable="true" lastFootEmpty="true">
9570 <column alignment="left" valignment="top" width="0cm">
9571 <column alignment="left" valignment="top" width="3cm">
9572 <column alignment="center" valignment="top" width="0pt">
9573 <row caption="true">
9574 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9577 \begin_layout Plain Layout
9578 \begin_inset Caption
9580 \begin_layout Plain Layout
9581 Table with forced page break in table cell
9582 \begin_inset CommandInset label
9584 name "tab:ForcedPagebreak"
9592 \begin_layout Plain Layout
9593 Table with forced page break in table cell
9608 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9611 \begin_layout Plain Layout
9617 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9620 \begin_layout Plain Layout
9627 <row endfirsthead="true">
9628 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9631 \begin_layout Plain Layout
9634 Example Phone List (ignore the names)
9639 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9642 \begin_layout Plain Layout
9648 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9651 \begin_layout Plain Layout
9658 <row endfirsthead="true">
9659 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9662 \begin_layout Plain Layout
9670 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9673 \begin_layout Plain Layout
9679 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9682 \begin_layout Plain Layout
9691 <row endhead="true">
9692 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9695 \begin_layout Plain Layout
9699 \begin_layout Plain Layout
9703 caption*{Continued Example Phone List}
9717 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9720 \begin_layout Plain Layout
9726 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9729 \begin_layout Plain Layout
9736 <row endhead="true">
9737 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9740 \begin_layout Plain Layout
9748 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9751 \begin_layout Plain Layout
9757 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9760 \begin_layout Plain Layout
9767 <row endhead="true">
9768 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9771 \begin_layout Plain Layout
9779 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9782 \begin_layout Plain Layout
9788 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9791 \begin_layout Plain Layout
9800 <row endfoot="true">
9801 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
9804 \begin_layout Plain Layout
9805 continued on next page
9810 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9813 \begin_layout Plain Layout
9819 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9822 \begin_layout Plain Layout
9830 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9833 \begin_layout Plain Layout
9841 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9844 \begin_layout Plain Layout
9850 <cell alignment="right" valignment="top" rightline="true" usebox="none">
9853 \begin_layout Plain Layout
9861 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9864 \begin_layout Plain Layout
9872 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9875 \begin_layout Plain Layout
9881 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9884 \begin_layout Plain Layout
9892 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9895 \begin_layout Plain Layout
9903 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9906 \begin_layout Plain Layout
9912 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9915 \begin_layout Plain Layout
9923 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9926 \begin_layout Plain Layout
9934 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9937 \begin_layout Plain Layout
9943 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9946 \begin_layout Plain Layout
9954 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9957 \begin_layout Plain Layout
9965 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9968 \begin_layout Plain Layout
9974 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9977 \begin_layout Plain Layout
9985 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9988 \begin_layout Plain Layout
9996 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9999 \begin_layout Plain Layout
10005 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10008 \begin_layout Plain Layout
10016 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10019 \begin_layout Plain Layout
10027 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10030 \begin_layout Plain Layout
10036 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10039 \begin_layout Plain Layout
10047 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10050 \begin_layout Plain Layout
10058 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10061 \begin_layout Plain Layout
10067 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10070 \begin_layout Plain Layout
10078 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10081 \begin_layout Plain Layout
10089 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10092 \begin_layout Plain Layout
10098 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10101 \begin_layout Plain Layout
10109 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10112 \begin_layout Plain Layout
10120 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10123 \begin_layout Plain Layout
10129 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10132 \begin_layout Plain Layout
10140 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10143 \begin_layout Plain Layout
10151 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10154 \begin_layout Plain Layout
10160 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10163 \begin_layout Plain Layout
10171 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10174 \begin_layout Plain Layout
10182 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10185 \begin_layout Plain Layout
10191 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10194 \begin_layout Plain Layout
10202 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10205 \begin_layout Plain Layout
10213 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10216 \begin_layout Plain Layout
10222 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10225 \begin_layout Plain Layout
10233 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10236 \begin_layout Plain Layout
10244 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10247 \begin_layout Plain Layout
10253 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10256 \begin_layout Plain Layout
10264 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10267 \begin_layout Plain Layout
10275 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10278 \begin_layout Plain Layout
10284 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10287 \begin_layout Plain Layout
10295 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10298 \begin_layout Plain Layout
10306 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10309 \begin_layout Plain Layout
10315 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10318 \begin_layout Plain Layout
10326 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10329 \begin_layout Plain Layout
10337 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10340 \begin_layout Plain Layout
10346 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10349 \begin_layout Plain Layout
10357 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10360 \begin_layout Plain Layout
10368 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10371 \begin_layout Plain Layout
10377 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10380 \begin_layout Plain Layout
10388 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10391 \begin_layout Plain Layout
10399 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10402 \begin_layout Plain Layout
10408 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10411 \begin_layout Plain Layout
10419 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10422 \begin_layout Plain Layout
10430 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10433 \begin_layout Plain Layout
10439 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10442 \begin_layout Plain Layout
10450 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10453 \begin_layout Plain Layout
10461 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10464 \begin_layout Plain Layout
10470 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10473 \begin_layout Plain Layout
10481 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10484 \begin_layout Plain Layout
10492 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10495 \begin_layout Plain Layout
10501 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10504 \begin_layout Plain Layout
10512 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10515 \begin_layout Plain Layout
10523 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10526 \begin_layout Plain Layout
10528 Fürst von Montecompatri, 11.
10529 Fürst von Sulmona und Vivaro, 10.
10530 Fürst von Rossano, 5.
10531 Herzog von Canemorte, 11.
10532 Herzog von Palombara, 5.
10533 Herzog von Castelchiodato,
10537 \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
10830 \begin_layout Section
10831 Multiple Lines Columns and Rows
10834 \begin_layout Subsection
10835 Multiple Lines in Table Cells
10836 \begin_inset CommandInset label
10838 name "sub:Multiple-Lines-in"
10846 \begin_layout Plain Layout
10847 Multiple Lines in Table Cells
10856 \begin_layout Plain Layout
10865 \begin_layout Standard
10867 \begin_inset Float table
10873 \begin_layout Plain Layout
10874 \begin_inset Caption
10876 \begin_layout Plain Layout
10877 \begin_inset CommandInset label
10879 name "tab:Table-with-multiple"
10883 Table with multiple lines in cells
10891 \begin_layout Plain Layout
10893 \begin_inset Tabular
10894 <lyxtabular version="3" rows="3" columns="3">
10896 <column alignment="center" valignment="middle" width="2.5cm">
10897 <column alignment="center" valignment="middle" width="0">
10898 <column alignment="center" valignment="middle" width="0">
10900 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10903 \begin_layout Plain Layout
10905 \begin_inset Newline linebreak
10913 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10916 \begin_layout Plain Layout
10922 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10925 \begin_layout Plain Layout
10933 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10936 \begin_layout Plain Layout
10942 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10945 \begin_layout Plain Layout
10951 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10954 \begin_layout Plain Layout
10962 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10965 \begin_layout Plain Layout
10971 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10974 \begin_layout Plain Layout
10980 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10983 \begin_layout Plain Layout
11002 \begin_layout Standard
11003 Adjusting a fixed width for a column, enables to enter text as a paragraph
11004 with multiple lines and hyphenations.
11007 \begin_layout Standard
11009 \begin_inset space ~
11013 \begin_inset CommandInset ref
11015 reference "tab:Table-with-multiple"
11019 , create a 3×3 table, mark the first cell and right-click on it.
11020 In the appearing table dialog we set a cell width of 2.5
11021 \begin_inset space \thinspace{}
11024 cm and choose centered for the vertical and horizontal alignment.
11025 The vertical alignment is used for all cells of the row.
11026 As our text is smaller than than 2.5
11027 \begin_inset space \thinspace{}
11030 cm, only one line will appear.
11031 To get two lines, a justified line break (shortcut
11034 arg "newline-insert linebreak"
11038 If the text is wider than the set cell width, it will automatically be
11039 broken to several lines.
11042 \begin_layout Standard
11043 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11044 by LaTeX if it is the first entry.
11045 Therefore you need to insert something, to make the word not being the
11047 So add a horizontal space of 0
11048 \begin_inset space \thinspace{}
11051 pt before the word.
11052 As the space is zero, it doesn't change the output.
11054 \begin_inset space ~
11058 \begin_inset CommandInset ref
11060 reference "tab:Table-with-and"
11067 \begin_layout Standard
11068 \begin_inset Float table
11074 \begin_layout Plain Layout
11075 \begin_inset Caption
11077 \begin_layout Plain Layout
11078 \begin_inset CommandInset label
11080 name "tab:Table-with-and"
11084 Table with and without hyphenation
11092 \begin_layout Plain Layout
11093 \begin_inset space \hfill{}
11097 \begin_inset Tabular
11098 <lyxtabular version="3" rows="3" columns="3">
11100 <column alignment="center" valignment="middle" width="2.5cm">
11101 <column alignment="center" valignment="middle" width="0">
11102 <column alignment="center" valignment="middle" width="0">
11104 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11107 \begin_layout Plain Layout
11108 verylongtablecellword
11113 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11116 \begin_layout Plain Layout
11122 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11125 \begin_layout Plain Layout
11133 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11136 \begin_layout Plain Layout
11142 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11145 \begin_layout Plain Layout
11151 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11154 \begin_layout Plain Layout
11162 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11165 \begin_layout Plain Layout
11171 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11174 \begin_layout Plain Layout
11180 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11183 \begin_layout Plain Layout
11195 \begin_inset space \hfill{}
11199 \begin_inset Tabular
11200 <lyxtabular version="3" rows="3" columns="3">
11202 <column alignment="center" valignment="middle" width="2.5cm">
11203 <column alignment="center" valignment="middle" width="0">
11204 <column alignment="center" valignment="middle" width="0">
11206 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11209 \begin_layout Plain Layout
11210 \begin_inset space \hspace{}
11214 verylongtablecellword
11219 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11222 \begin_layout Plain Layout
11228 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11231 \begin_layout Plain Layout
11239 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11242 \begin_layout Plain Layout
11248 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11251 \begin_layout Plain Layout
11257 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11260 \begin_layout Plain Layout
11268 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11271 \begin_layout Plain Layout
11277 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11280 \begin_layout Plain Layout
11286 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11289 \begin_layout Plain Layout
11301 \begin_inset space \hfill{}
11312 \begin_layout Subsection
11314 \begin_inset CommandInset label
11316 name "sub:Multicolumns"
11324 \begin_layout Plain Layout
11334 \begin_layout Plain Layout
11335 Table ! Multicolumns
11343 \begin_layout Subsubsection
11347 \begin_layout Standard
11348 To span a cell over multiple columns, mark as much cells within a line that
11349 should be one spanned cell and use either the table-toolbar button
11350 \begin_inset Graphics
11351 filename ../images/tabular-feature_multicolumn.png
11353 scaleBeforeRotation
11359 Edit\SpecialChar \menuseparator
11360 Table\SpecialChar \menuseparator
11363 , or right click on the marked cells and choose multicolumn in the appearing
11364 table dialog under the tab
11371 \begin_layout Standard
11372 Multicolumns have there own cell settings.
11373 That means changing cell borders, cell alignment, and the width only affects
11375 Here is an example table with a multicolumn cell in the first row and one
11376 in the last row without the upper border:
11379 \begin_layout Standard
11381 \begin_inset Tabular
11382 <lyxtabular version="3" rows="3" columns="4">
11383 <features firstHeadTopDL="true" firstHeadBottomDL="true">
11384 <column alignment="center" valignment="top" width="0pt">
11385 <column alignment="center" valignment="middle" width="0">
11386 <column alignment="center" valignment="top" width="0in">
11387 <column alignment="center" valignment="top" width="0pt">
11389 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11392 \begin_layout Plain Layout
11398 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11401 \begin_layout Plain Layout
11407 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11410 \begin_layout Plain Layout
11416 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11419 \begin_layout Plain Layout
11427 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11430 \begin_layout Plain Layout
11445 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11448 \begin_layout Plain Layout
11454 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11457 \begin_layout Plain Layout
11463 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11466 \begin_layout Plain Layout
11474 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11477 \begin_layout Plain Layout
11483 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11486 \begin_layout Plain Layout
11492 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11495 \begin_layout Plain Layout
11501 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11504 \begin_layout Plain Layout
11518 \begin_layout Subsubsection
11519 Multicolumn Calculations
11520 \begin_inset CommandInset label
11522 name "sub:Multicolumn-Calculations"
11530 \begin_layout Plain Layout
11531 Multicolumns ! Calculations
11539 \begin_layout Standard
11540 LyX supports multicolumns directly, but we have to take notice of the cell
11541 width of the columns spanned by the multicolumn cell.
11544 \begin_layout Standard
11545 \begin_inset Float table
11551 \begin_layout Plain Layout
11552 \begin_inset Caption
11554 \begin_layout Plain Layout
11555 \begin_inset CommandInset label
11557 name "tab:Table-with-centered"
11561 Table with centered multicolumn text above two columns that have exactly
11562 half the width of the multicolumn cell
11563 \begin_inset OptArg
11566 \begin_layout Plain Layout
11567 Perfect multicolumn table
11580 \begin_layout Plain Layout
11582 \begin_inset Tabular
11583 <lyxtabular version="3" rows="3" columns="3">
11585 <column alignment="center" valignment="middle" width="0" special=">{\centering}m{1.25cm-6.2pt}">
11586 <column alignment="center" valignment="middle" width="0">
11587 <column alignment="center" valignment="top" width="0">
11589 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11592 \begin_layout Plain Layout
11593 multiple lines multicolumn
11598 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11601 \begin_layout Plain Layout
11607 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11610 \begin_layout Plain Layout
11618 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11621 \begin_layout Plain Layout
11627 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11630 \begin_layout Plain Layout
11636 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11639 \begin_layout Plain Layout
11647 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11650 \begin_layout Plain Layout
11656 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11659 \begin_layout Plain Layout
11665 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11668 \begin_layout Plain Layout
11687 \begin_layout Standard
11688 To create for example Table
11689 \begin_inset space ~
11693 \begin_inset CommandInset ref
11695 reference "tab:Table-with-centered"
11699 , mark the first two cells in the first row of a 3×3 table and right-click
11701 Now choose for this cell
11710 \begin_inset space \thinspace{}
11713 cm in the table dialog.
11714 The spanned columns should have exactly half the width of the multicolumn
11715 cell, so that you would adjust a width of 1.25
11716 \begin_inset space \thinspace{}
11719 cm for the first column.
11720 The second column has then automatically a width of 1.25
11721 \begin_inset space \thinspace{}
11724 cm (multicolumn width - width of first column).
11725 This was done for Table
11726 \begin_inset space ~
11730 \begin_inset CommandInset ref
11732 reference "tab:Table-without-half"
11739 \begin_layout Standard
11740 \begin_inset Float table
11745 \begin_layout Plain Layout
11746 \begin_inset Caption
11748 \begin_layout Plain Layout
11749 \begin_inset CommandInset label
11751 name "tab:Table-without-half"
11755 Table where the spanned table columns have not exactly half the width of
11756 the multicolumn cell
11757 \begin_inset OptArg
11760 \begin_layout Plain Layout
11761 Imperfect multicolumn table
11774 \begin_layout Plain Layout
11776 \begin_inset Tabular
11777 <lyxtabular version="3" rows="3" columns="3">
11779 <column alignment="center" valignment="top" width="1.25cm">
11780 <column alignment="center" valignment="top" width="0">
11781 <column alignment="center" valignment="top" width="0">
11783 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
11786 \begin_layout Plain Layout
11787 multiple lines multicolumn
11792 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11795 \begin_layout Plain Layout
11801 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11804 \begin_layout Plain Layout
11812 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11815 \begin_layout Plain Layout
11821 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11824 \begin_layout Plain Layout
11830 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11833 \begin_layout Plain Layout
11841 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11844 \begin_layout Plain Layout
11850 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11853 \begin_layout Plain Layout
11859 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11862 \begin_layout Plain Layout
11881 \begin_layout Standard
11882 You can see that the first column has not the half width of the multicolumn
11883 cell, it is a bit bigger.
11884 The reason is that the given width of a cell
11885 \begin_inset Formula $W_{g}$
11888 is not its total width
11889 \begin_inset Formula $W_{\mathrm{tot}}$
11892 because a cell is always a bit larger than its given width.
11894 \begin_inset space ~
11898 \begin_inset CommandInset ref
11900 reference "cha:Explanation-of-Equation"
11904 explains it in detail.
11907 \begin_layout Standard
11908 The needed given width
11909 \begin_inset Formula $W_{g\, n}$
11916 columns are spanned can be calculated, so that each column has a total
11918 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
11922 \begin_inset Formula \begin{equation}
11923 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}\end{equation}
11930 \begin_layout Standard
11931 In our case we have
11932 \begin_inset Formula $n=2$
11936 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
11939 cm and the default values for the lengths, so that equation
11940 \begin_inset CommandInset ref
11947 \begin_inset Formula \begin{equation}
11948 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}\end{equation}
11955 \begin_layout Standard
11956 To enable calculations in LaTeX, the LaTeX-package
11960 must be loaded with the document preamble line
11964 \begin_layout Plain Layout
11965 LaTeX-packages ! calc
11973 \begin_layout Standard
11981 \begin_layout Standard
11982 LyX does not allow to calculate lengths in the width-field of the table
11984 Therefore you have to format the column by inserting a LaTeX-argument in
11986 Here is an overview about the arguments:
11989 \begin_layout Itemize
11994 creates cell with a fixed width, its text is vertically top-aligned
11997 \begin_layout Itemize
12002 creates cell with a fixed width, its text is vertically centered
12005 \begin_layout Itemize
12010 creates cell with a fixed width, its text is vertically bottom-aligned
12013 \begin_layout Standard
12014 By entering a LaTeX-argument, all cell settings set in the table dialog
12018 \begin_layout Standard
12019 \begin_inset Note Greyedout
12022 \begin_layout Plain Layout
12027 Due to a bug, LyX shows the overwritten settings anyway.
12035 \begin_layout Standard
12036 As the text should be horizontally centered, the command
12043 You can now enter the following LaTeX-argument for the first spanned column:
12046 \begin_layout Standard
12051 centering}m{1.25cm-6.2pt}
12054 \begin_layout Standard
12059 means, that the commands inside the braces are applied before the cell
12063 \begin_layout Standard
12064 Although we have chosen centered alignment for the text of the multicolumn
12065 cell, it is still left aligned.
12066 This is because LyX only applies the alignment to single columns.
12067 So we have to use for the multicolumn the LaTeX-argument
12070 \begin_layout Standard
12078 \begin_layout Subsection
12083 \begin_layout Plain Layout
12093 \begin_layout Plain Layout
12102 \begin_layout Standard
12103 In contrary to multicolumns multirows are not yet supported by LyX so a
12104 bit of TeX-Code needs to be used.
12105 To use multirows load the LaTeX-package
12113 \begin_layout Plain Layout
12114 LaTeX-packages ! multirow
12119 in your document preamble with the command
12122 \begin_layout Standard
12127 usepackage{multirow}
12130 \begin_layout Standard
12131 Multirows are created with the command
12134 \begin_layout Standard
12139 multirow{number of rows}{cell width}{cell entry}
12142 \begin_layout Standard
12143 To create the following table:
12146 \begin_layout Standard
12151 \begin_layout Plain Layout
12165 \begin_inset Tabular
12166 <lyxtabular version="3" rows="3" columns="3">
12168 <column alignment="center" valignment="top" width="0">
12169 <column alignment="center" valignment="top" width="0">
12170 <column alignment="center" valignment="top" width="0">
12172 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12175 \begin_layout Plain Layout
12181 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12184 \begin_layout Plain Layout
12190 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12193 \begin_layout Plain Layout
12201 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12204 \begin_layout Plain Layout
12208 \begin_layout Plain Layout
12212 multirow{2}{2.5cm}{
12221 \begin_layout Plain Layout
12233 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12236 \begin_layout Plain Layout
12242 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12245 \begin_layout Plain Layout
12253 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
12256 \begin_layout Plain Layout
12262 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12265 \begin_layout Plain Layout
12271 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12274 \begin_layout Plain Layout
12289 \begin_layout Plain Layout
12305 \begin_layout Standard
12306 create a 3×3 table.
12307 To get rid of the line above the last cell in the first column, the cell
12308 is marked as multicolumn and the upper border is unset.
12309 The multirow is now created in the second row of the first column by inserting
12313 \begin_layout Standard
12318 multirow{2}{2.5cm}{
12321 \begin_layout Standard
12323 According to the command parameters the multirow spans now two rows and
12325 \begin_inset space \thinspace{}
12329 The content of the multirow cell follows outside the TeX-Code box and the
12330 command is finished with a right brace
12334 in another TeX-Code-box behind the text.
12337 \begin_layout Standard
12344 left-aligns its content by default.
12345 To override the default, renew the command
12354 \begin_layout Standard
12366 \begin_layout Standard
12367 in TeX-Code in the document preamble.
12368 Then all entries of multirow cells in the document are centered.
12369 If centering is only needed for several tables, you can renew the command
12370 in an TeX-Code box just before the table instead of the preamble.
12371 If the text should be right-aligned, replace
12384 To return to left-alignment
12393 \begin_layout Section
12395 \begin_inset CommandInset label
12397 name "sec:Formal-Tables"
12405 \begin_layout Plain Layout
12414 \begin_layout Standard
12415 Tables are often typeset in books similar to Table
12416 \begin_inset space ~
12420 \begin_inset CommandInset ref
12422 reference "tab:Example-booktabs-table"
12427 This kind of tables is called
12428 \begin_inset Quotes eld
12436 \begin_inset Quotes erd
12440 To make a table a formal table use the option
12448 tab of the table dialog.
12451 \begin_layout Standard
12452 \begin_inset Float table
12458 \begin_layout Plain Layout
12459 \begin_inset Caption
12461 \begin_layout Plain Layout
12462 \begin_inset CommandInset label
12464 name "tab:Example-booktabs-table"
12468 Example booktabs-table
12476 \begin_layout Plain Layout
12478 \begin_inset Tabular
12479 <lyxtabular version="3" rows="8" columns="4">
12480 <features booktabs="true">
12481 <column alignment="center" valignment="top" width="0">
12482 <column alignment="center" valignment="top" width="0">
12483 <column alignment="center" valignment="top" width="0">
12484 <column alignment="center" valignment="top" width="0">
12486 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12489 \begin_layout Plain Layout
12495 <cell alignment="center" valignment="top" topline="true" usebox="none">
12498 \begin_layout Plain Layout
12500 \begin_inset space \thinspace{}
12508 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
12511 \begin_layout Plain Layout
12513 \begin_inset space \thinspace{}
12521 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12524 \begin_layout Plain Layout
12532 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12535 \begin_layout Plain Layout
12539 \begin_layout Plain Layout
12552 \begin_layout Plain Layout
12561 Detector thickness [µm]
12566 <cell alignment="center" valignment="top" usebox="none">
12569 \begin_layout Plain Layout
12575 <cell alignment="center" valignment="top" usebox="none">
12578 \begin_layout Plain Layout
12584 <cell alignment="center" valignment="top" usebox="none">
12587 \begin_layout Plain Layout
12595 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12598 \begin_layout Plain Layout
12604 <cell alignment="center" valignment="top" topline="true" usebox="none">
12607 \begin_layout Plain Layout
12613 <cell alignment="center" valignment="top" topline="true" usebox="none">
12616 \begin_layout Plain Layout
12622 <cell alignment="center" valignment="top" topline="true" usebox="none">
12625 \begin_layout Plain Layout
12632 <row topspace="default">
12633 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12636 \begin_layout Plain Layout
12637 Spatial resolution [µm]
12642 <cell alignment="center" valignment="top" usebox="none">
12645 \begin_layout Plain Layout
12651 <cell alignment="center" valignment="top" usebox="none">
12654 \begin_layout Plain Layout
12660 <cell alignment="center" valignment="top" usebox="none">
12663 \begin_layout Plain Layout
12670 <row topspace="default">
12671 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12674 \begin_layout Plain Layout
12676 \begin_inset Formula $f_{\mathrm{max}}$
12684 <cell alignment="center" valignment="top" usebox="none">
12687 \begin_layout Plain Layout
12693 <cell alignment="center" valignment="top" usebox="none">
12696 \begin_layout Plain Layout
12702 <cell alignment="center" valignment="top" usebox="none">
12705 \begin_layout Plain Layout
12712 <row topspace="default">
12713 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12716 \begin_layout Plain Layout
12720 \begin_layout Plain Layout
12724 cmidrule(l{10pt}){1-1}
12729 LSF-spatial resolution
12734 <cell alignment="center" valignment="top" usebox="none">
12737 \begin_layout Plain Layout
12743 <cell alignment="center" valignment="top" usebox="none">
12746 \begin_layout Plain Layout
12752 <cell alignment="center" valignment="top" usebox="none">
12755 \begin_layout Plain Layout
12763 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12766 \begin_layout Plain Layout
12772 <cell alignment="center" valignment="top" usebox="none">
12775 \begin_layout Plain Layout
12781 <cell alignment="center" valignment="top" usebox="none">
12784 \begin_layout Plain Layout
12790 <cell alignment="center" valignment="top" usebox="none">
12793 \begin_layout Plain Layout
12801 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
12804 \begin_layout Plain Layout
12810 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12813 \begin_layout Plain Layout
12819 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12822 \begin_layout Plain Layout
12828 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12831 \begin_layout Plain Layout
12850 \begin_layout Standard
12851 Spaces to table rows can be added using the
12855 tab of the table dialog as described in section
12856 \begin_inset space ~
12860 \begin_inset CommandInset ref
12862 reference "sub:Row-Spacing"
12869 \begin_layout Standard
12870 In contrary to normal tables, formal tables have no vertical table lines.
12871 The horizontal table lines can be set like for normal tables but they appear
12872 with different width in the output:
12873 \begin_inset Newline newline
12876 The first and the last table line have a default width of 0.08
12877 \begin_inset space \thinspace{}
12880 em while the other lines have a default width of 0.05
12881 \begin_inset space \thinspace{}
12887 \begin_layout Standard
12888 The default widths can be changed with the following preamble lines
12891 \begin_layout Standard
12901 \begin_inset Newline newline
12913 \begin_layout Standard
12914 This example is for the first line, the so called
12919 If you want to change the width for the last line, replace
12928 To change the width for the other lines replace
12937 You can use all units listed in appendix
12938 \begin_inset space ~
12942 \begin_inset CommandInset ref
12944 reference "cha:Units-available-in"
12951 \begin_layout Standard
12952 Lines that don't span over all table columns can be created by setting a
12953 table line for multicolumn cells.
12954 LyX will then internally use the command
12960 to create this line.
12964 \begin_layout Standard
12969 cmidrule[width](trim){startcol-endcol}
12972 \begin_layout Standard
12979 are are currently not supported by LyX so you have to use TeX-Code to be
12987 s can manually be created by inserting the command as TeX-Code as first
12988 cell entry of the first cell of a row.
12989 The line is then drawn in the output above the current row.
12992 \begin_layout Standard
12993 The default for the width is 0.03
12994 \begin_inset space \thinspace{}
12998 Startcol is the number of the column where the line starts and endcol the
12999 column number where the line ends.
13000 The endcol always needs to be specified, also when the line should span
13002 The optional parameter trim could be either
13010 where the trimwidth is also optional.
13011 Using for example the parameter
13015 means that the line is trimmed from its left end by 2
13016 \begin_inset space \thinspace{}
13020 If you don't specify the trimwidth the lines are trimmed by the default
13022 \begin_inset space \thinspace{}
13028 \begin_layout Standard
13029 \begin_inset VSpace bigskip
13033 \begin_inset space ~
13037 \begin_inset CommandInset ref
13039 reference "tab:Example-booktabs-table"
13043 was created using the commands
13046 \begin_layout Standard
13056 \begin_layout Standard
13057 at the beginning of the in the second row and
13060 \begin_layout Standard
13065 cmidrule(l{10pt}){1-1}
13068 \begin_layout Standard
13072 \begin_layout Standard
13073 \begin_inset VSpace bigskip
13079 \begin_layout Standard
13080 You might want to have overlapping
13087 \begin_inset space ~
13091 \begin_inset CommandInset ref
13093 reference "tab:Special-booktabs-table"
13098 This can be achieved with the TeX-Code command
13101 \begin_layout Standard
13109 \begin_layout Standard
13110 The command that was used for the second row of Table
13111 \begin_inset space ~
13115 \begin_inset CommandInset ref
13117 reference "tab:Special-booktabs-table"
13124 \begin_layout Standard
13138 \begin_layout Standard
13139 The command for the sixth row is
13142 \begin_layout Standard
13154 \begin_layout Standard
13155 \begin_inset VSpace bigskip
13161 \begin_layout Standard
13162 If you are anyway not satisfied with the border line spacing, you can use
13163 the following command to produce lines that span over all table columns
13168 \begin_layout Standard
13173 specialrule{width}{space above}{space below}
13176 \begin_layout Standard
13177 For more informations about these specialties, we refer to the manual of
13183 \begin_inset CommandInset citation
13193 \begin_layout Plain Layout
13194 LaTeX-packages ! booktabs
13202 \begin_layout Standard
13203 \begin_inset Float table
13209 \begin_layout Plain Layout
13210 \begin_inset Caption
13212 \begin_layout Plain Layout
13213 \begin_inset CommandInset label
13215 name "tab:Special-booktabs-table"
13219 Special booktabs-table
13227 \begin_layout Plain Layout
13229 \begin_inset Tabular
13230 <lyxtabular version="3" rows="8" columns="4">
13231 <features booktabs="true">
13232 <column alignment="center" valignment="top" width="0">
13233 <column alignment="center" valignment="top" width="0">
13234 <column alignment="center" valignment="top" width="0">
13235 <column alignment="center" valignment="top" width="0">
13237 <cell alignment="center" valignment="top" topline="true" usebox="none">
13240 \begin_layout Plain Layout
13246 <cell alignment="center" valignment="top" topline="true" usebox="none">
13249 \begin_layout Plain Layout
13251 \begin_inset space \thinspace{}
13259 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
13262 \begin_layout Plain Layout
13264 \begin_inset space \thinspace{}
13272 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13275 \begin_layout Plain Layout
13283 <cell alignment="center" valignment="top" usebox="none">
13286 \begin_layout Plain Layout
13290 \begin_layout Plain Layout
13303 \begin_layout Plain Layout
13316 \begin_layout Plain Layout
13329 \begin_layout Plain Layout
13338 Detector thickness [µm]
13343 <cell alignment="center" valignment="top" usebox="none">
13346 \begin_layout Plain Layout
13352 <cell alignment="center" valignment="top" usebox="none">
13355 \begin_layout Plain Layout
13361 <cell alignment="center" valignment="top" usebox="none">
13364 \begin_layout Plain Layout
13372 <cell alignment="center" valignment="top" topline="true" usebox="none">
13375 \begin_layout Plain Layout
13381 <cell alignment="center" valignment="top" topline="true" usebox="none">
13384 \begin_layout Plain Layout
13390 <cell alignment="center" valignment="top" topline="true" usebox="none">
13393 \begin_layout Plain Layout
13399 <cell alignment="center" valignment="top" topline="true" usebox="none">
13402 \begin_layout Plain Layout
13409 <row topspace="default">
13410 <cell alignment="center" valignment="top" usebox="none">
13413 \begin_layout Plain Layout
13414 Spatial resolution [µm]
13419 <cell alignment="center" valignment="top" usebox="none">
13422 \begin_layout Plain Layout
13428 <cell alignment="center" valignment="top" usebox="none">
13431 \begin_layout Plain Layout
13437 <cell alignment="center" valignment="top" usebox="none">
13440 \begin_layout Plain Layout
13447 <row topspace="default">
13448 <cell alignment="center" valignment="top" usebox="none">
13451 \begin_layout Plain Layout
13453 \begin_inset Formula $f_{\mathrm{max}}$
13461 <cell alignment="center" valignment="top" usebox="none">
13464 \begin_layout Plain Layout
13470 <cell alignment="center" valignment="top" usebox="none">
13473 \begin_layout Plain Layout
13479 <cell alignment="center" valignment="top" usebox="none">
13482 \begin_layout Plain Layout
13490 <cell alignment="center" valignment="top" topline="true" usebox="none">
13493 \begin_layout Plain Layout
13497 \begin_layout Plain Layout
13510 \begin_layout Plain Layout
13519 LSF-spatial resolution
13524 <cell alignment="center" valignment="top" topline="true" usebox="none">
13527 \begin_layout Plain Layout
13533 <cell alignment="center" valignment="top" topline="true" usebox="none">
13536 \begin_layout Plain Layout
13542 <cell alignment="center" valignment="top" topline="true" usebox="none">
13545 \begin_layout Plain Layout
13553 <cell alignment="center" valignment="top" usebox="none">
13556 \begin_layout Plain Layout
13562 <cell alignment="center" valignment="top" usebox="none">
13565 \begin_layout Plain Layout
13571 <cell alignment="center" valignment="top" usebox="none">
13574 \begin_layout Plain Layout
13580 <cell alignment="center" valignment="top" usebox="none">
13583 \begin_layout Plain Layout
13591 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13594 \begin_layout Plain Layout
13600 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13603 \begin_layout Plain Layout
13609 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13612 \begin_layout Plain Layout
13618 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13621 \begin_layout Plain Layout
13640 \begin_layout Section
13641 Vertical Table Alignment
13645 \begin_layout Plain Layout
13654 \begin_layout Standard
13655 To align tables vertically in a text line the table must be inside a box.
13656 The box can then be vertically aligned as described in section
13657 \begin_inset space ~
13661 \begin_inset CommandInset ref
13663 reference "sec:Box-Dialog"
13670 \begin_layout Standard
13671 In the following example the tables are inside a minipage
13675 \begin_layout Plain Layout
13676 Minipages are described in section
13677 \begin_inset space ~
13681 \begin_inset CommandInset ref
13683 reference "sec:Minipages"
13692 box that has a width of 15
13693 \begin_inset space \thinspace{}
13699 \begin_layout Itemize
13701 \begin_inset Box Frameless
13710 height_special "totalheight"
13713 \begin_layout Plain Layout
13714 \begin_inset Tabular
13715 <lyxtabular version="3" rows="3" columns="3">
13717 <column alignment="center" valignment="top" width="0">
13718 <column alignment="center" valignment="top" width="0">
13719 <column alignment="center" valignment="top" width="0">
13721 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13724 \begin_layout Plain Layout
13730 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13733 \begin_layout Plain Layout
13739 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13742 \begin_layout Plain Layout
13750 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13753 \begin_layout Plain Layout
13759 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13762 \begin_layout Plain Layout
13768 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13771 \begin_layout Plain Layout
13779 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13782 \begin_layout Plain Layout
13788 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13791 \begin_layout Plain Layout
13797 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13800 \begin_layout Plain Layout
13820 \begin_layout Plain Layout
13832 \begin_inset Box Frameless
13841 height_special "totalheight"
13844 \begin_layout Plain Layout
13845 \begin_inset Tabular
13846 <lyxtabular version="3" rows="3" columns="3">
13848 <column alignment="center" valignment="top" width="0">
13849 <column alignment="center" valignment="top" width="0">
13850 <column alignment="center" valignment="top" width="0">
13852 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13855 \begin_layout Plain Layout
13861 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13864 \begin_layout Plain Layout
13870 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13873 \begin_layout Plain Layout
13881 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13884 \begin_layout Plain Layout
13890 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13893 \begin_layout Plain Layout
13899 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13902 \begin_layout Plain Layout
13910 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13913 \begin_layout Plain Layout
13919 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13922 \begin_layout Plain Layout
13928 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13931 \begin_layout Plain Layout
13951 \begin_layout Plain Layout
13961 \begin_layout Itemize
13963 \begin_inset Box Frameless
13972 height_special "totalheight"
13975 \begin_layout Plain Layout
13976 \begin_inset Tabular
13977 <lyxtabular version="3" rows="3" columns="3">
13979 <column alignment="center" valignment="top" width="0">
13980 <column alignment="center" valignment="top" width="0">
13981 <column alignment="center" valignment="top" width="0">
13983 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13986 \begin_layout Plain Layout
13992 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13995 \begin_layout Plain Layout
14001 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14004 \begin_layout Plain Layout
14012 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14015 \begin_layout Plain Layout
14021 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14024 \begin_layout Plain Layout
14030 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14033 \begin_layout Plain Layout
14041 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14044 \begin_layout Plain Layout
14050 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14053 \begin_layout Plain Layout
14059 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14062 \begin_layout Plain Layout
14081 \begin_layout Itemize
14083 \begin_inset Box Frameless
14092 height_special "totalheight"
14095 \begin_layout Plain Layout
14096 \begin_inset Tabular
14097 <lyxtabular version="3" rows="3" columns="3">
14099 <column alignment="center" valignment="top" width="0">
14100 <column alignment="center" valignment="top" width="0">
14101 <column alignment="center" valignment="top" width="0">
14103 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14106 \begin_layout Plain Layout
14112 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14115 \begin_layout Plain Layout
14121 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14124 \begin_layout Plain Layout
14132 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14135 \begin_layout Plain Layout
14141 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14144 \begin_layout Plain Layout
14150 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14153 \begin_layout Plain Layout
14161 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14164 \begin_layout Plain Layout
14170 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14173 \begin_layout Plain Layout
14179 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14182 \begin_layout Plain Layout
14202 \begin_layout Plain Layout
14214 \begin_inset Box Frameless
14223 height_special "totalheight"
14226 \begin_layout Plain Layout
14227 \begin_inset Tabular
14228 <lyxtabular version="3" rows="3" columns="3">
14230 <column alignment="center" valignment="top" width="0">
14231 <column alignment="center" valignment="top" width="0">
14232 <column alignment="center" valignment="top" width="0">
14234 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14237 \begin_layout Plain Layout
14243 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14246 \begin_layout Plain Layout
14252 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14255 \begin_layout Plain Layout
14263 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14266 \begin_layout Plain Layout
14272 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14275 \begin_layout Plain Layout
14281 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14284 \begin_layout Plain Layout
14292 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14295 \begin_layout Plain Layout
14301 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14304 \begin_layout Plain Layout
14310 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14313 \begin_layout Plain Layout
14333 \begin_layout Plain Layout
14343 \begin_layout Standard
14344 As you can see, the content of the first and last table row is not correctly
14345 aligned with the text line where the table is in.
14346 To get this alignment, the minipage box must be set into a raisebox
14350 \begin_layout Plain Layout
14351 Raiseboxes are described in section
14352 \begin_inset space ~
14356 \begin_inset CommandInset ref
14358 reference "sub:Vertical-Alignment"
14368 In the example above the second table in the first item is aligned using
14369 the TeX-Code-command
14372 \begin_layout Standard
14382 \begin_layout Standard
14384 Behind the box the closing brace
14388 is inserted as TeX-Code.
14389 For the second table in the last item the command
14392 \begin_layout Standard
14402 \begin_layout Standard
14406 \begin_layout Standard
14407 \begin_inset Note Greyedout
14410 \begin_layout Plain Layout
14415 The alignment of the table row content to the surrounding text line is
14417 The needed factor of the
14423 command for this alignment depends on the document font, the font size,
14424 and the table line thickness.
14432 \begin_layout Section
14434 \begin_inset CommandInset label
14436 name "sec:Colored-Tables"
14444 \begin_layout Plain Layout
14453 \begin_layout Subsection
14458 \begin_layout Plain Layout
14459 Table Color ! for Cells
14468 \begin_layout Plain Layout
14469 Color ! for Table Cells
14477 \begin_layout Standard
14478 \begin_inset Float table
14484 \begin_layout Plain Layout
14485 \begin_inset Caption
14487 \begin_layout Plain Layout
14488 \begin_inset CommandInset label
14490 name "tab:Table-colored-without"
14494 Table colored without using the package
14499 \begin_inset OptArg
14502 \begin_layout Plain Layout
14503 Table without colortbl
14516 \begin_layout Plain Layout
14518 \begin_inset Tabular
14519 <lyxtabular version="3" rows="3" columns="3">
14521 <column alignment="center" valignment="top" width="0">
14522 <column alignment="center" valignment="top" width="0">
14523 <column alignment="center" valignment="top" width="0">
14525 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14528 \begin_layout Plain Layout
14536 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14539 \begin_layout Plain Layout
14547 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14550 \begin_layout Plain Layout
14560 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14563 \begin_layout Plain Layout
14571 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14574 \begin_layout Plain Layout
14582 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14585 \begin_layout Plain Layout
14595 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14598 \begin_layout Plain Layout
14606 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14609 \begin_layout Plain Layout
14617 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14620 \begin_layout Plain Layout
14641 \begin_layout Standard
14642 If you only need colored text, mark the cells and choose a color in the
14645 Edit\SpecialChar \menuseparator
14647 \begin_inset space ~
14653 This was used to create Table
14654 \begin_inset space ~
14658 \begin_inset CommandInset ref
14660 reference "tab:Table-colored-without"
14665 In any other case you have to use the LaTeX-package
14673 \begin_layout Plain Layout
14674 LaTeX-packages ! colortbl
14682 \begin_layout Standard
14686 \begin_layout Plain Layout
14696 \begin_inset Note Note
14699 \begin_layout Plain Layout
14700 The following section part will only be displayed when the LaTeX-package
14713 \begin_layout Standard
14714 To create colored tables,
14718 must be loaded in the preamble with the line
14721 \begin_layout Standard
14726 usepackage{colortbl}
14729 \begin_layout Standard
14730 The color of a column is adjusted with the command
14733 \begin_layout Standard
14738 columncolor{name of color}
14741 \begin_layout Standard
14747 More about the command
14751 is described in section
14752 \begin_inset space ~
14756 \begin_inset CommandInset ref
14758 reference "sub:Multicolumn-Calculations"
14765 \begin_layout Standard
14766 The following color names are predefined:
14769 \begin_layout Standard
14803 \begin_layout Standard
14804 \begin_inset VSpace medskip
14810 \begin_layout Standard
14811 You can also define your own color with the command
14814 \begin_layout Standard
14819 definecolor{color name}{color model}{color values}
14822 \begin_layout Standard
14823 The color model can be
14826 \begin_layout Labeling
14827 \labelwidthstring 00.00.0000
14828 cmyk: cyan, magenta, yellow, black
14831 \begin_layout Labeling
14832 \labelwidthstring 00.00.0000
14833 rgb: red, green blue
14836 \begin_layout Labeling
14837 \labelwidthstring 00.00.0000
14841 \begin_layout Standard
14842 and the color values are comma separated numbers between 0 and 1 describing
14843 the factor for the corresponding color of the color model.
14846 \begin_layout Standard
14848 \begin_inset space \thinspace{}
14852 \begin_inset space \space{}
14859 " in the preamble with
14862 \begin_layout Standard
14867 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
14870 \begin_layout Standard
14878 \begin_layout Standard
14883 definecolor{lightgray}{gray}{0.8}
14886 \begin_layout Standard
14887 \begin_inset VSpace medskip
14893 \begin_layout Standard
14894 Lines are colored with the command
14897 \begin_layout Standard
14902 rowcolor{name of color}
14905 \begin_layout Standard
14906 and cells are colored with the command
14909 \begin_layout Standard
14914 cellcolor{name of color}
14917 \begin_layout Standard
14918 Both commands are inserted at the beginning of a cell as TeX-Code.
14921 \begin_layout Standard
14922 To color characters in the table, mark the cells and use the LyX menu
14924 Edit\SpecialChar \menuseparator
14926 \begin_inset space ~
14932 If a cell contains TeX-Code mark only the characters, otherwise the colored
14933 TeX-Code will cause LaTeX-errors.
14936 \begin_layout Standard
14937 \begin_inset Note Greyedout
14940 \begin_layout Plain Layout
14945 Not all DVI-viewers are able to display self-defined colors.
14953 \begin_layout Standard
14954 \begin_inset VSpace bigskip
14960 \begin_layout Standard
14962 \begin_inset space ~
14966 \begin_inset CommandInset ref
14968 reference "tab:Table-colored-using"
14972 do the following: The color of the first column should be
14980 \begin_layout Standard
14985 columncolor{darkgreen}
14990 \begin_layout Standard
14991 as LaTeX-argument for this column.
14992 The first row should be blue, therefore the TeX-Code command
14995 \begin_layout Standard
15003 \begin_layout Standard
15004 is inserted to the first cell of this row.
15005 Note that this overwrites the column color for the first cell.
15006 The last cell of the last row is colored magenta by inserting the TeX-Code
15010 \begin_layout Standard
15018 \begin_layout Standard
15019 The characters could now be colored using the menu
15021 Edit\SpecialChar \menuseparator
15023 \begin_inset space ~
15031 \begin_layout Standard
15032 \begin_inset Float table
15038 \begin_layout Plain Layout
15039 \begin_inset Caption
15041 \begin_layout Plain Layout
15042 \begin_inset CommandInset label
15044 name "tab:Table-colored-using"
15048 Table colored using the package
15053 \begin_inset OptArg
15056 \begin_layout Plain Layout
15057 Table with colortbl
15070 \begin_layout Plain Layout
15072 \begin_inset Tabular
15073 <lyxtabular version="3" rows="3" columns="3">
15075 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
15076 <column alignment="center" valignment="top" width="0">
15077 <column alignment="center" valignment="top" width="0">
15079 <cell alignment="center" valignment="top" usebox="none">
15082 \begin_layout Plain Layout
15086 \begin_layout Plain Layout
15102 <cell alignment="center" valignment="top" usebox="none">
15105 \begin_layout Plain Layout
15113 <cell alignment="center" valignment="top" usebox="none">
15116 \begin_layout Plain Layout
15126 <cell alignment="center" valignment="top" usebox="none">
15129 \begin_layout Plain Layout
15137 <cell alignment="center" valignment="top" usebox="none">
15140 \begin_layout Plain Layout
15148 <cell alignment="center" valignment="top" usebox="none">
15151 \begin_layout Plain Layout
15161 <cell alignment="center" valignment="top" usebox="none">
15164 \begin_layout Plain Layout
15172 <cell alignment="center" valignment="top" usebox="none">
15175 \begin_layout Plain Layout
15183 <cell alignment="center" valignment="top" usebox="none">
15186 \begin_layout Plain Layout
15190 \begin_layout Plain Layout
15219 \begin_layout Standard
15223 \begin_layout Plain Layout
15233 \begin_inset Note Note
15236 \begin_layout Plain Layout
15237 The following will be displayed when the LaTeX-package
15249 \begin_layout Standard
15250 You need to install the package
15254 to see the content of this section in the output.
15257 \begin_layout Standard
15261 \begin_layout Plain Layout
15273 \begin_layout Subsection
15278 \begin_layout Plain Layout
15279 Table Color ! for Lines
15288 \begin_layout Plain Layout
15289 Color ! for Table Lines
15297 \begin_layout Standard
15298 As described in section
15299 \begin_inset space ~
15303 \begin_inset CommandInset ref
15305 reference "sub:Line-Thickness"
15309 , the line thickness for all lines in a table can be adjusted with the length
15318 \begin_inset space \thinspace{}
15321 pt for all tables of this section.
15325 \begin_layout Plain Layout
15331 arrayrulewidth}{1.5pt}
15339 \begin_layout Standard
15340 To color vertical lines for example with green, create the following column
15341 format in the document preamble, according to the description in section
15342 \begin_inset space ~
15346 \begin_inset CommandInset ref
15348 reference "sub:Customized-Format"
15355 \begin_layout Standard
15360 newcolumntype{W}{!{
15367 \begin_layout Standard
15369 \begin_inset space ~
15373 \begin_inset CommandInset ref
15375 reference "tab:Table-with-vertical-colored"
15383 was used for the last column and
15387 for the other columns.
15390 \begin_layout Standard
15391 If you want to have several colors, define more column formats.
15394 \begin_layout Standard
15395 \begin_inset Float table
15401 \begin_layout Plain Layout
15402 \begin_inset Caption
15404 \begin_layout Plain Layout
15405 \begin_inset CommandInset label
15407 name "tab:Table-with-vertical-colored"
15411 Table with colored vertical lines
15419 \begin_layout Plain Layout
15421 \begin_inset Tabular
15422 <lyxtabular version="3" rows="3" columns="3">
15424 <column alignment="center" valignment="top" width="0" special="Wc">
15425 <column alignment="center" valignment="top" width="0" special="Wc">
15426 <column alignment="center" valignment="top" width="0" special="WcW">
15428 <cell alignment="center" valignment="top" topline="true" usebox="none">
15431 \begin_layout Plain Layout
15437 <cell alignment="center" valignment="top" topline="true" usebox="none">
15440 \begin_layout Plain Layout
15446 <cell alignment="center" valignment="top" topline="true" usebox="none">
15449 \begin_layout Plain Layout
15457 <cell alignment="center" valignment="top" topline="true" usebox="none">
15460 \begin_layout Plain Layout
15466 <cell alignment="center" valignment="top" topline="true" usebox="none">
15469 \begin_layout Plain Layout
15475 <cell alignment="center" valignment="top" topline="true" usebox="none">
15478 \begin_layout Plain Layout
15486 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15489 \begin_layout Plain Layout
15495 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15498 \begin_layout Plain Layout
15504 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15507 \begin_layout Plain Layout
15526 \begin_layout Standard
15527 \begin_inset VSpace bigskip
15530 To color horizontal lines for example with red, like in Table
15531 \begin_inset space ~
15535 \begin_inset CommandInset ref
15537 reference "tab:Table-with-horizontal-colored"
15541 , insert these commands in TeX-Code before the table or table float:
15544 \begin_layout Standard
15554 \begin_inset Newline newline
15562 \begin_inset Newline newline
15569 \begin_layout Plain Layout
15580 arrayrulecolor{red}
15584 arrayrulecolor{black}}
15587 \begin_layout Standard
15591 \begin_layout Plain Layout
15602 \begin_layout Plain Layout
15611 \begin_layout Plain Layout
15615 arrayrulecolor{red}
15619 arrayrulecolor{black}}
15625 \begin_inset Float table
15631 \begin_layout Plain Layout
15632 \begin_inset Caption
15634 \begin_layout Plain Layout
15635 \begin_inset CommandInset label
15637 name "tab:Table-with-horizontal-colored"
15641 Table with colored horizontal lines
15649 \begin_layout Plain Layout
15651 \begin_inset Tabular
15652 <lyxtabular version="3" rows="3" columns="3">
15654 <column alignment="center" valignment="top" width="0">
15655 <column alignment="center" valignment="top" width="0">
15656 <column alignment="center" valignment="top" width="0">
15658 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15661 \begin_layout Plain Layout
15667 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15670 \begin_layout Plain Layout
15676 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15679 \begin_layout Plain Layout
15687 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15690 \begin_layout Plain Layout
15696 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15699 \begin_layout Plain Layout
15705 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15708 \begin_layout Plain Layout
15716 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15719 \begin_layout Plain Layout
15725 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15728 \begin_layout Plain Layout
15734 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
15737 \begin_layout Plain Layout
15756 \begin_layout Standard
15757 To return to the default line color black, insert this command in TeX-Code
15758 behind the table or table float:
15761 \begin_layout Standard
15773 \begin_layout Standard
15775 \begin_inset space ~
15779 \begin_inset CommandInset ref
15781 reference "tab:Table-with-colored"
15785 is an example with colored vertical and horizontal lines.
15788 \begin_layout Standard
15789 \begin_inset Float table
15795 \begin_layout Plain Layout
15796 \begin_inset Caption
15798 \begin_layout Plain Layout
15799 \begin_inset CommandInset label
15801 name "tab:Table-with-colored"
15805 Table with colored lines
15813 \begin_layout Plain Layout
15815 \begin_inset Tabular
15816 <lyxtabular version="3" rows="3" columns="3">
15818 <column alignment="center" valignment="top" width="0" special="Wc">
15819 <column alignment="center" valignment="top" width="0" special="Wc">
15820 <column alignment="center" valignment="top" width="0" special="WcW">
15822 <cell alignment="center" valignment="top" topline="true" usebox="none">
15825 \begin_layout Plain Layout
15831 <cell alignment="center" valignment="top" topline="true" usebox="none">
15834 \begin_layout Plain Layout
15840 <cell alignment="center" valignment="top" topline="true" usebox="none">
15843 \begin_layout Plain Layout
15851 <cell alignment="center" valignment="top" topline="true" usebox="none">
15854 \begin_layout Plain Layout
15860 <cell alignment="center" valignment="top" topline="true" usebox="none">
15863 \begin_layout Plain Layout
15869 <cell alignment="center" valignment="top" topline="true" usebox="none">
15872 \begin_layout Plain Layout
15879 <row topspace="default">
15880 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15883 \begin_layout Plain Layout
15889 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15892 \begin_layout Plain Layout
15898 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15901 \begin_layout Plain Layout
15920 \begin_layout Standard
15924 \begin_layout Plain Layout
15940 \begin_layout Standard
15944 \begin_layout Plain Layout
15950 arrayrulewidth}{0.4pt}
15958 \begin_layout Section
15959 Table Customization
15963 \begin_layout Plain Layout
15964 Table Customization
15973 \begin_layout Plain Layout
15974 Table ! Customization
15982 \begin_layout Subsection
15984 \begin_inset CommandInset label
15986 name "sub:Row-Spacing"
15994 \begin_layout Plain Layout
15995 Table Customization ! Row Spacing
16003 \begin_layout Standard
16004 You can add vertical space to table rows in the
16008 tab of the table dialog.
16009 You find there three possibilities:
16012 \begin_layout Description
16014 \begin_inset space ~
16018 \begin_inset space ~
16021 row will add space above the characters of the table row.
16022 If the table is a formal table
16026 \begin_layout Plain Layout
16027 Formal tables are explained in section
16028 \begin_inset space ~
16032 \begin_inset CommandInset ref
16034 reference "sec:Formal-Tables"
16043 LyX will insert as default 0.5
16044 \begin_inset space \thinspace{}
16048 For normal tables the inserted space will unfortunately destroy the vertical
16049 table lines as in the following table:
16050 \begin_inset VSpace medskip
16054 \begin_inset Newline newline
16058 \begin_inset space \hspace*{}
16063 \begin_inset space \hfill{}
16067 \begin_inset Tabular
16068 <lyxtabular version="3" rows="3" columns="1">
16070 <column alignment="center" valignment="top" width="0">
16072 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16075 \begin_layout Plain Layout
16082 <row topspace="3mm">
16083 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16086 \begin_layout Plain Layout
16088 \begin_inset space \thinspace{}
16091 mm space top of row
16098 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16101 \begin_layout Plain Layout
16113 \begin_inset space \hfill{}
16117 \begin_inset space \hspace*{}
16122 \begin_inset VSpace medskip
16126 \begin_inset Newline newline
16129 So inserting space to the top of row for normal tables is only useful when
16130 you don't have vertical lines.
16133 \begin_layout Description
16135 \begin_inset space ~
16139 \begin_inset space ~
16142 row will add space below the characters of the table row.
16143 If the table is a formal table LyX will insert as default 0.5
16144 \begin_inset space \thinspace{}
16147 em space, for normal tables the default size is 2
16148 \begin_inset space \thinspace{}
16154 \begin_layout Description
16156 \begin_inset space ~
16159 rows adds space between the current and the following row.
16160 If the table is a formal table LyX will insert as default 0.5
16161 \begin_inset space \thinspace{}
16165 For normal tables the inserted space will unfortunately destroy the vertical
16166 table lines as in the following table:
16167 \begin_inset VSpace medskip
16171 \begin_inset Newline newline
16175 \begin_inset space \hspace*{}
16180 \begin_inset space \hfill{}
16184 \begin_inset Tabular
16185 <lyxtabular version="3" rows="3" columns="1">
16187 <column alignment="center" valignment="top" width="0">
16189 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16192 \begin_layout Plain Layout
16199 <row interlinespace="3mm">
16200 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16203 \begin_layout Plain Layout
16204 \begin_inset Formula $\downarrow$
16208 \begin_inset space \thinspace{}
16211 mm space between row
16212 \begin_inset Formula $\downarrow$
16222 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16225 \begin_layout Plain Layout
16226 \begin_inset Formula $\uparrow$
16230 \begin_inset space \thinspace{}
16233 mm space between row
16234 \begin_inset Formula $\uparrow$
16248 \begin_inset space \hfill{}
16252 \begin_inset space \hspace*{}
16257 \begin_inset VSpace medskip
16261 \begin_inset Newline newline
16264 So inserting space between rows for normal tables is only useful when you
16265 don't have vertical lines.
16268 \begin_layout Standard
16269 \begin_inset VSpace bigskip
16272 When you want to add extra height to all cells of all tables, you can do
16273 this with the following preamble lines:
16276 \begin_layout Standard
16281 @ifundefined{extrarowheight}
16282 \begin_inset Newline newline
16289 \begin_layout Plain Layout
16300 usepackage{array}}{}
16301 \begin_inset Newline newline
16308 extrarowheight}{height}
16311 \begin_layout Standard
16312 But this has the disadvantage that the cell texts are no longer exactly
16313 vertically centered.
16318 will be loaded automatically by LyX when you use self defined table formats.
16319 To avoid that it is loaded twice the command
16325 is used in the above command.)
16328 \begin_layout Standard
16329 In case you are using font sizes larger than the normal size, the table
16330 borders are often too close to the letters.
16331 This can be corrected by inserting the command
16337 in TeX code at the beginning of a table row.
16339 \begin_inset space ~
16343 \begin_inset CommandInset ref
16345 reference "tab:Vertical-alignment-of"
16349 visualizes the effect.
16352 \begin_layout Standard
16354 \begin_inset Float table
16360 \begin_layout Plain Layout
16361 \begin_inset Caption
16363 \begin_layout Plain Layout
16364 \begin_inset CommandInset label
16366 name "tab:Vertical-alignment-of"
16370 Vertical alignment of text with large font sizes.
16378 \begin_layout Plain Layout
16379 \begin_inset space \hfill{}
16383 \begin_inset Float table
16388 \begin_layout Plain Layout
16389 \begin_inset Caption
16391 \begin_layout Plain Layout
16400 \begin_layout Plain Layout
16403 \begin_inset Tabular
16404 <lyxtabular version="3" rows="6" columns="1">
16406 <column alignment="left" valignment="top" width="0">
16408 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16411 \begin_layout Plain Layout
16419 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16422 \begin_layout Plain Layout
16432 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16435 \begin_layout Plain Layout
16445 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16448 \begin_layout Plain Layout
16458 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16461 \begin_layout Plain Layout
16471 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16474 \begin_layout Plain Layout
16493 \begin_inset space \hfill{}
16497 \begin_inset Float table
16502 \begin_layout Plain Layout
16503 \begin_inset Caption
16505 \begin_layout Plain Layout
16506 Table using the command
16520 \begin_layout Plain Layout
16523 \begin_inset Tabular
16524 <lyxtabular version="3" rows="6" columns="1">
16526 <column alignment="left" valignment="top" width="0">
16528 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16531 \begin_layout Plain Layout
16539 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16542 \begin_layout Plain Layout
16548 \begin_layout Plain Layout
16564 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16567 \begin_layout Plain Layout
16573 \begin_layout Plain Layout
16589 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16592 \begin_layout Plain Layout
16598 \begin_layout Plain Layout
16614 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16617 \begin_layout Plain Layout
16623 \begin_layout Plain Layout
16639 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16642 \begin_layout Plain Layout
16648 \begin_layout Plain Layout
16675 \begin_inset space \hfill{}
16686 \begin_layout Subsection
16687 Special Cell Alignment
16691 \begin_layout Plain Layout
16692 Table Customization ! Special Cell Alignment
16700 \begin_layout Standard
16701 Sometimes it looks better when the cell entries of a column are aligned
16702 with a special character, e.
16703 \begin_inset space \thinspace{}
16707 \begin_inset space \space{}
16710 with the decimal separator as in Table
16711 \begin_inset space ~
16715 \begin_inset CommandInset ref
16717 reference "tab:Table-cells-of"
16724 \begin_layout Standard
16725 \begin_inset Float table
16731 \begin_layout Plain Layout
16732 \begin_inset Caption
16734 \begin_layout Plain Layout
16735 \begin_inset CommandInset label
16737 name "tab:Table-cells-of"
16741 Table cells of a column aligned with the decimal separator.
16749 \begin_layout Plain Layout
16751 \begin_inset Tabular
16752 <lyxtabular version="3" rows="4" columns="2">
16754 <column alignment="right" valignment="top" width="0">
16755 <column alignment="left" valignment="top" width="0" special="@{}l">
16757 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16760 \begin_layout Plain Layout
16766 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16769 \begin_layout Plain Layout
16777 <cell alignment="center" valignment="top" usebox="none">
16780 \begin_layout Plain Layout
16786 <cell alignment="center" valignment="top" usebox="none">
16789 \begin_layout Plain Layout
16797 <cell alignment="center" valignment="top" usebox="none">
16800 \begin_layout Plain Layout
16806 <cell alignment="center" valignment="top" usebox="none">
16809 \begin_layout Plain Layout
16817 <cell alignment="center" valignment="top" usebox="none">
16820 \begin_layout Plain Layout
16826 <cell alignment="center" valignment="top" usebox="none">
16829 \begin_layout Plain Layout
16848 \begin_layout Standard
16849 This table was created with a 4×2 table.
16850 The heading is a centered multicolumn.
16851 The first column is right-aligned and contains the digits before the decimal
16852 point and the decimal point.
16853 The second column is left aligned and contains the digits after the decimal
16855 To omit the space that is normally between two table columns, use the following
16856 LaTeX-argument for the second column:
16859 \begin_layout Standard
16865 \begin_layout Standard
16867 \begin_inset space ~
16871 \begin_inset CommandInset ref
16873 reference "tab:Several-table-cell"
16877 shows some example alignments.
16878 For the alignment with the relation sign, you must add the second smallest
16879 math-space at the beginning of the last column to get the correct space
16880 surrounding the relation sign.
16883 \begin_layout Standard
16884 \begin_inset Float table
16889 \begin_layout Plain Layout
16890 \begin_inset Caption
16892 \begin_layout Plain Layout
16893 \begin_inset CommandInset label
16895 name "tab:Several-table-cell"
16899 Several table cell alignments.
16907 \begin_layout Plain Layout
16909 \begin_inset Tabular
16910 <lyxtabular version="3" rows="4" columns="6">
16912 <column alignment="right" valignment="top" width="0">
16913 <column alignment="left" valignment="top" width="0" special="@{}l">
16914 <column alignment="right" valignment="top" width="0">
16915 <column alignment="left" valignment="top" width="0" special="@{}l">
16916 <column alignment="right" valignment="top" width="0">
16917 <column alignment="left" valignment="top" width="0" special="@{}l">
16919 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16922 \begin_layout Plain Layout
16928 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16931 \begin_layout Plain Layout
16937 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16940 \begin_layout Plain Layout
16946 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16949 \begin_layout Plain Layout
16955 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16958 \begin_layout Plain Layout
16964 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16967 \begin_layout Plain Layout
16975 <cell alignment="center" valignment="top" usebox="none">
16978 \begin_layout Plain Layout
16984 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16987 \begin_layout Plain Layout
16989 \begin_inset space \thinspace{}
16997 <cell alignment="center" valignment="top" usebox="none">
17000 \begin_layout Plain Layout
17001 \begin_inset Formula $10\cdot$
17009 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17012 \begin_layout Plain Layout
17013 \begin_inset Formula $10^{\mbox{-}17}$
17021 <cell alignment="center" valignment="top" usebox="none">
17024 \begin_layout Plain Layout
17025 \begin_inset Formula $\Gamma(t)\propto$
17033 <cell alignment="center" valignment="top" usebox="none">
17036 \begin_layout Plain Layout
17037 \begin_inset Formula $\:\Upsilon(t)$
17047 <cell alignment="center" valignment="top" usebox="none">
17050 \begin_layout Plain Layout
17056 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17059 \begin_layout Plain Layout
17061 \begin_inset space \thinspace{}
17069 <cell alignment="center" valignment="top" usebox="none">
17072 \begin_layout Plain Layout
17073 \begin_inset Formula $5.78\cdot$
17081 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17084 \begin_layout Plain Layout
17085 \begin_inset Formula $10^{7}$
17093 <cell alignment="center" valignment="top" usebox="none">
17096 \begin_layout Plain Layout
17097 \begin_inset Formula $A\ne$
17105 <cell alignment="center" valignment="top" usebox="none">
17108 \begin_layout Plain Layout
17109 \begin_inset Formula $\: B_{\mathrm{red}}$
17119 <cell alignment="center" valignment="top" usebox="none">
17122 \begin_layout Plain Layout
17128 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17131 \begin_layout Plain Layout
17133 \begin_inset space \thinspace{}
17141 <cell alignment="center" valignment="top" usebox="none">
17144 \begin_layout Plain Layout
17146 \begin_inset Formula $33.5\cdot$
17154 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17157 \begin_layout Plain Layout
17158 \begin_inset Formula $10^{4}$
17166 <cell alignment="center" valignment="top" usebox="none">
17169 \begin_layout Plain Layout
17170 \begin_inset Formula $\sin(\alpha)\ge$
17178 <cell alignment="center" valignment="top" usebox="none">
17181 \begin_layout Plain Layout
17182 \begin_inset Formula $\:\sin(\beta)$
17203 \begin_layout Standard
17204 \begin_inset VSpace bigskip
17207 There is also the LaTeX-package
17215 \begin_layout Plain Layout
17216 LaTeX-packages ! dcolumn
17221 that provides table cell alignments.
17222 But this unfortunately treats the cell entries as math and doesn't allow
17223 formulas in table cells: The first column of Table
17224 \begin_inset space ~
17228 \begin_inset CommandInset ref
17230 reference "tab:Several-table-cell"
17238 like the first column in Table
17239 \begin_inset space ~
17243 \begin_inset CommandInset ref
17245 reference "tab:Alignments-when"
17249 and only with some tricks like the expected.
17250 The alignment of the second and third column of Table
17251 \begin_inset space ~
17255 \begin_inset CommandInset ref
17257 reference "tab:Several-table-cell"
17261 is not possible with
17268 \begin_layout Standard
17269 \begin_inset Float table
17275 \begin_layout Plain Layout
17276 \begin_inset Caption
17278 \begin_layout Plain Layout
17279 \begin_inset CommandInset label
17281 name "tab:Alignments-when"
17285 Alignments when LaTeX-package dcolumn is used.
17286 For all column alignments tricks have to be used to get the output.
17294 \begin_layout Plain Layout
17296 \begin_inset Tabular
17297 <lyxtabular version="3" rows="4" columns="3">
17299 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{-1}">
17300 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{4.9}">
17301 <column alignment="center" valignment="top" width="0" special="D{~}{\,}{9.7}">
17303 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17306 \begin_layout Plain Layout
17312 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17315 \begin_layout Plain Layout
17321 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
17324 \begin_layout Plain Layout
17332 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17335 \begin_layout Plain Layout
17337 \begin_inset space \thinspace{}
17345 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17348 \begin_layout Plain Layout
17350 \begin_inset space \thinspace{}
17354 \begin_inset Formula $\mbox{bottles}$
17362 <cell alignment="center" valignment="top" usebox="none">
17365 \begin_layout Plain Layout
17370 \begin_layout Plain Layout
17380 \begin_inset Formula $\mbox{bottles}$
17390 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17393 \begin_layout Plain Layout
17395 \begin_inset space \thinspace{}
17403 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17406 \begin_layout Plain Layout
17408 \begin_inset space \thinspace{}
17412 \begin_inset Formula $\mbox{Pixels}$
17420 <cell alignment="center" valignment="top" usebox="none">
17423 \begin_layout Plain Layout
17428 \begin_layout Plain Layout
17438 \begin_inset Formula $\mbox{Pixels}$
17448 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17451 \begin_layout Plain Layout
17453 \begin_inset space \thinspace{}
17461 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17464 \begin_layout Plain Layout
17466 \begin_inset space \thinspace{}
17470 \begin_inset Formula $\mbox{cm}$
17478 <cell alignment="center" valignment="top" usebox="none">
17481 \begin_layout Plain Layout
17486 \begin_layout Plain Layout
17496 \begin_inset Formula $\mbox{cm}$
17517 \begin_layout Subsection
17518 Customized Cell/Column Format
17519 \begin_inset CommandInset label
17521 name "sub:Customized-Format"
17529 \begin_layout Plain Layout
17530 Table Customization ! Cell/Column Format
17538 \begin_layout Standard
17539 Calculating the needed width for spanned columns like in section
17540 \begin_inset space ~
17544 \begin_inset CommandInset ref
17546 reference "sub:Multicolumn-Calculations"
17550 is very annoying if you have several tables with multicolumn cells.
17551 To make life easier, you can define a cell/column format in the preamble,
17552 so that it can be used in all tables of the document.
17553 The format is defined with the command
17556 \begin_layout Standard
17561 newcolumntype{name of format}[number of arguments]{commands}
17564 \begin_layout Standard
17565 The format name may only consist of one letter.
17590 are predefined and cannot be used.
17591 But all letters are allowed as capitals.
17594 \begin_layout Standard
17595 \begin_inset VSpace medskip
17601 \begin_layout Standard
17602 For vertically and horizontally centered multicolumn cells with a fixed
17603 width you can define the cell format
17606 \begin_layout Standard
17611 newcolumntype{M}[1]{>{
17618 \begin_layout Standard
17625 avoids the problem of hyphenating the first word, as described in section
17626 \begin_inset space ~
17630 \begin_inset CommandInset ref
17632 reference "sub:Multiple-Lines-in"
17637 Now you can simply enter
17640 \begin_layout Standard
17646 \begin_layout Standard
17647 as LaTeX-argument in the table dialog to create a multicolumn.
17650 \begin_layout Standard
17651 \begin_inset VSpace bigskip
17657 \begin_layout Standard
17658 For cells spanned by a multicolumn cell, you can define the format
17661 \begin_layout Standard
17666 newcolumntype{S}[2]{>{
17671 \begin_inset Newline newline
17678 \begin_layout Plain Layout
17693 \begin_layout Plain Layout
17704 arrayrulewidth)*(1-#2))/#2}}
17707 \begin_layout Standard
17708 This format uses equation
17709 \begin_inset CommandInset ref
17715 to calculate the needed width so that each spanned cell has the same width.
17718 \begin_layout Standard
17722 \begin_layout Standard
17725 S{width of multicolumn cell}{number of spanned columns}
17728 \begin_layout Standard
17729 as LaTeX-argument of the column.
17732 \begin_layout Standard
17733 \begin_inset VSpace bigskip
17739 \begin_layout Standard
17740 For colored columns, you can define
17743 \begin_layout Standard
17748 newcolumntype{K}[1]{>{
17755 \begin_layout Standard
17757 \begin_inset Quotes eld
17761 \begin_inset Quotes erd
17764 at the end creates a column with a flexible width whose text is horizontally
17769 \begin_layout Standard
17775 \begin_layout Standard
17779 \begin_layout Standard
17780 \begin_inset VSpace bigskip
17786 \begin_layout Standard
17788 \begin_inset space ~
17792 \begin_inset CommandInset ref
17794 reference "tab:Table-using-user-defined"
17798 use the LaTeX-arguments
17801 \begin_layout Standard
17807 \begin_layout Standard
17808 for the first column and the multicolumn,
17811 \begin_layout Standard
17817 \begin_layout Standard
17818 for the the last column, and
17821 \begin_layout Standard
17827 \begin_layout Standard
17828 for the cells in the second column.
17831 \begin_layout Standard
17832 \begin_inset Float table
17838 \begin_layout Plain Layout
17839 \begin_inset Caption
17841 \begin_layout Plain Layout
17842 \begin_inset CommandInset label
17844 name "tab:Table-using-user-defined"
17848 Table using user-defined table formats
17856 \begin_layout Plain Layout
17858 \begin_inset Tabular
17859 <lyxtabular version="3" rows="3" columns="4">
17861 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
17862 <column alignment="center" valignment="middle" width="0" special="S{2.5cm}{2}">
17863 <column alignment="center" valignment="middle" width="0">
17864 <column alignment="center" valignment="middle" width="0" special="K{red}">
17866 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17869 \begin_layout Plain Layout
17870 verylongtablecellword
17875 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
17878 \begin_layout Plain Layout
17879 multiple lines multicolumn
17884 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17887 \begin_layout Plain Layout
17893 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17896 \begin_layout Plain Layout
17904 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17907 \begin_layout Plain Layout
17913 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17916 \begin_layout Plain Layout
17922 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17925 \begin_layout Plain Layout
17931 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17934 \begin_layout Plain Layout
17942 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17945 \begin_layout Plain Layout
17951 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17954 \begin_layout Plain Layout
17960 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17963 \begin_layout Plain Layout
17969 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17972 \begin_layout Plain Layout
17991 \begin_layout Subsection
17993 \begin_inset CommandInset label
17995 name "sub:Line-Thickness"
18003 \begin_layout Plain Layout
18004 Table Customization ! Line Thickness
18012 \begin_layout Standard
18013 The line thickness for all lines in a table can be adjusted with the length
18021 To set for example a line thickness of 1.5
18022 \begin_inset space \thinspace{}
18026 \begin_inset space ~
18030 \begin_inset CommandInset ref
18032 reference "tab:Table-with-1.5"
18036 , insert the command
18039 \begin_layout Standard
18046 arrayrulewidth}{1.5pt}
18049 \begin_layout Standard
18050 in TeX-Code before the table or table float.
18051 The changed thickness is valid for all following tables.
18052 To use the default value again, set
18059 \begin_inset space \thinspace{}
18062 pt in TeX-Code behind the table or table float.
18065 \begin_layout Standard
18069 \begin_layout Plain Layout
18075 arrayrulewidth}{1.5pt}
18081 \begin_inset Float table
18086 \begin_layout Plain Layout
18087 \begin_inset Caption
18089 \begin_layout Plain Layout
18090 \begin_inset CommandInset label
18092 name "tab:Table-with-1.5"
18097 \begin_inset space \thinspace{}
18108 \begin_layout Plain Layout
18110 \begin_inset Tabular
18111 <lyxtabular version="3" rows="3" columns="3">
18113 <column alignment="center" valignment="top" width="0">
18114 <column alignment="center" valignment="top" width="0">
18115 <column alignment="center" valignment="top" width="0">
18117 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18120 \begin_layout Plain Layout
18126 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18129 \begin_layout Plain Layout
18135 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18138 \begin_layout Plain Layout
18146 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18149 \begin_layout Plain Layout
18155 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18158 \begin_layout Plain Layout
18164 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18167 \begin_layout Plain Layout
18175 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18178 \begin_layout Plain Layout
18184 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18187 \begin_layout Plain Layout
18193 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18196 \begin_layout Plain Layout
18216 \begin_layout Plain Layout
18222 arrayrulewidth}{0.4pt}
18230 \begin_layout Standard
18231 \begin_inset VSpace bigskip
18234 To set the line thickness to 1.5
18235 \begin_inset space \thinspace{}
18238 pt only for horizontal lines, like in Table
18239 \begin_inset space ~
18243 \begin_inset CommandInset ref
18245 reference "tab:Table-with-horizontal"
18249 , insert these commands in TeX-Code before the table or table float:
18252 \begin_layout Standard
18262 \begin_inset Newline newline
18270 \begin_inset Newline newline
18279 arrayrulewidth 1.5pt}
18280 \begin_inset Newline newline
18291 arrayrulewidth 0.4pt}}
18294 \begin_layout Standard
18295 To return to the default line thickness, insert this command in TeX-Code
18296 behind the table or table float:
18299 \begin_layout Standard
18311 \begin_layout Standard
18315 \begin_layout Plain Layout
18326 \begin_layout Plain Layout
18335 \begin_layout Plain Layout
18343 arrayrulewidth 1.5pt}
18346 \begin_layout Plain Layout
18356 arrayrulewidth 0.4pt}}
18362 \begin_inset Float table
18367 \begin_layout Plain Layout
18368 \begin_inset Caption
18370 \begin_layout Plain Layout
18371 \begin_inset CommandInset label
18373 name "tab:Table-with-horizontal"
18378 \begin_inset space \thinspace{}
18381 pt thick horizontal lines
18389 \begin_layout Plain Layout
18391 \begin_inset Tabular
18392 <lyxtabular version="3" rows="3" columns="3">
18394 <column alignment="center" valignment="top" width="0">
18395 <column alignment="center" valignment="top" width="0">
18396 <column alignment="center" valignment="top" width="0">
18398 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18401 \begin_layout Plain Layout
18407 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18410 \begin_layout Plain Layout
18416 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18419 \begin_layout Plain Layout
18427 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18430 \begin_layout Plain Layout
18436 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18439 \begin_layout Plain Layout
18445 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18448 \begin_layout Plain Layout
18456 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18459 \begin_layout Plain Layout
18465 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18468 \begin_layout Plain Layout
18474 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18477 \begin_layout Plain Layout
18497 \begin_layout Plain Layout
18513 \begin_layout Standard
18514 \begin_inset VSpace bigskip
18517 To set the line thickness to 1.5
18518 \begin_inset space \thinspace{}
18521 pt only for vertical lines, create the following column format in the document
18522 preamble, according to the description in section
18523 \begin_inset space ~
18527 \begin_inset CommandInset ref
18529 reference "sub:Customized-Format"
18536 \begin_layout Standard
18541 newcolumntype{V}{!{
18543 vrule width 1.5pt}}
18546 \begin_layout Standard
18548 \begin_inset space ~
18552 \begin_inset CommandInset ref
18554 reference "tab:Table-with-vertical"
18561 \begin_layout Standard
18567 \begin_layout Standard
18568 was used for the last column and
18571 \begin_layout Standard
18577 \begin_layout Standard
18578 for the other columns.
18581 \begin_layout Standard
18582 \begin_inset Float table
18587 \begin_layout Plain Layout
18588 \begin_inset Caption
18590 \begin_layout Plain Layout
18591 \begin_inset CommandInset label
18593 name "tab:Table-with-vertical"
18598 \begin_inset space \thinspace{}
18601 pt thick vertical lines
18609 \begin_layout Plain Layout
18611 \begin_inset Tabular
18612 <lyxtabular version="3" rows="3" columns="3">
18614 <column alignment="center" valignment="top" width="0" special="Vc">
18615 <column alignment="center" valignment="top" width="0" special="Vc">
18616 <column alignment="center" valignment="top" width="0" special="VcV">
18618 <cell alignment="center" valignment="top" topline="true" usebox="none">
18621 \begin_layout Plain Layout
18627 <cell alignment="center" valignment="top" topline="true" usebox="none">
18630 \begin_layout Plain Layout
18636 <cell alignment="center" valignment="top" topline="true" usebox="none">
18639 \begin_layout Plain Layout
18647 <cell alignment="center" valignment="top" topline="true" usebox="none">
18650 \begin_layout Plain Layout
18656 <cell alignment="center" valignment="top" topline="true" usebox="none">
18659 \begin_layout Plain Layout
18665 <cell alignment="center" valignment="top" topline="true" usebox="none">
18668 \begin_layout Plain Layout
18676 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18679 \begin_layout Plain Layout
18685 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18688 \begin_layout Plain Layout
18694 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18697 \begin_layout Plain Layout
18716 \begin_layout Subsection
18721 \begin_layout Plain Layout
18722 Table Customization ! Dashed Lines
18730 \begin_layout Standard
18734 \begin_layout Plain Layout
18744 \begin_inset Note Note
18747 \begin_layout Plain Layout
18748 The following section will only be displayed when the LaTeX-package
18760 \begin_layout Standard
18761 \begin_inset Float table
18767 \begin_layout Plain Layout
18768 \begin_inset Caption
18770 \begin_layout Plain Layout
18771 \begin_inset CommandInset label
18773 name "tab:Table-with-dashed"
18777 Table with dashed lines
18785 \begin_layout Plain Layout
18787 \begin_inset Tabular
18788 <lyxtabular version="3" rows="5" columns="5">
18790 <column alignment="center" valignment="top" width="0">
18791 <column alignment="center" valignment="top" width="0">
18792 <column alignment="center" valignment="top" width="0" special=":c">
18793 <column alignment="center" valignment="top" width="0">
18794 <column alignment="center" valignment="top" width="0">
18796 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18799 \begin_layout Plain Layout
18805 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18808 \begin_layout Plain Layout
18814 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18817 \begin_layout Plain Layout
18823 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18826 \begin_layout Plain Layout
18832 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18835 \begin_layout Plain Layout
18843 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18846 \begin_layout Plain Layout
18852 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18855 \begin_layout Plain Layout
18861 <cell alignment="center" valignment="top" topline="true" usebox="none">
18864 \begin_layout Plain Layout
18870 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18873 \begin_layout Plain Layout
18879 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18882 \begin_layout Plain Layout
18890 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18893 \begin_layout Plain Layout
18897 \begin_layout Plain Layout
18911 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18914 \begin_layout Plain Layout
18920 <cell alignment="center" valignment="top" usebox="none">
18923 \begin_layout Plain Layout
18929 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18932 \begin_layout Plain Layout
18938 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
18941 \begin_layout Plain Layout
18949 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18952 \begin_layout Plain Layout
18956 \begin_layout Plain Layout
18970 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18973 \begin_layout Plain Layout
18979 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
18982 \begin_layout Plain Layout
18988 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none" special="c:">
18991 \begin_layout Plain Layout
18997 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19000 \begin_layout Plain Layout
19008 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19011 \begin_layout Plain Layout
19017 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19020 \begin_layout Plain Layout
19026 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19029 \begin_layout Plain Layout
19035 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19038 \begin_layout Plain Layout
19044 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19047 \begin_layout Plain Layout
19066 \begin_layout Standard
19067 LyX doesn't natively support dashed lines, so you have to use TeX-Code.
19068 As prerequisite the LaTeX-package
19076 \begin_layout Plain Layout
19077 LaTeX-packages ! arydshln
19082 must be loaded in the document preamble with the command
19085 \begin_layout Standard
19090 usepackage{arydshln}
19093 \begin_layout Standard
19094 To make a vertical line dashed, enter the colon
19095 \begin_inset Quotes eld
19099 \begin_inset Quotes erd
19102 together with the character for the horizontal alignment as LaTeX-argument
19103 in the table cell dialog.
19106 \begin_layout Standard
19107 For a horizontal dashed line add the command
19110 \begin_layout Standard
19118 \begin_layout Standard
19119 in TeX-Code as first element of the first cell in the table row.
19122 \begin_layout Standard
19123 For dashed multicolumn lines use the command
19126 \begin_layout Standard
19131 cdashline{line number
19136 \begin_layout Standard
19137 in TeX-Code as first element of the first cell in the table row.
19138 If you have for example a multicolumn spanning over columns 2 to 4 and
19139 you want to have a dashed line above, add the command
19142 \begin_layout Standard
19150 \begin_layout Standard
19151 as first element of the first cell in the row of the multicolumn.
19154 \begin_layout Standard
19155 \begin_inset VSpace bigskip
19161 \begin_layout Standard
19163 \begin_inset space ~
19167 \begin_inset CommandInset ref
19169 reference "tab:Table-with-dashed"
19174 \begin_inset Quotes eld
19182 \begin_inset Quotes erd
19185 as LaTeX-argument of the third column.
19186 The TeX-Code command
19192 was inserted to the first cell of the third row and the the TeX-Code command
19193 \begin_inset Newline newline
19202 was inserted to the first cell of the fourth row.
19205 \begin_layout Standard
19206 \begin_inset Note Greyedout
19209 \begin_layout Plain Layout
19214 The used LaTeX-package
19218 is apparently not compatible with the LaTeX-package
19226 \begin_layout Plain Layout
19227 LaTeX-packages ! colortbl
19232 that is used for colored tables in section
19233 \begin_inset space ~
19237 \begin_inset CommandInset ref
19239 reference "sec:Colored-Tables"
19244 That means colored tables cannot have dashed lines.
19252 \begin_layout Standard
19256 \begin_layout Plain Layout
19266 \begin_inset Note Note
19269 \begin_layout Plain Layout
19270 The following will be displayed when the LaTeX-package
19282 \begin_layout Standard
19283 You need to install the package
19287 to see the content of this section in the output.
19290 \begin_layout Standard
19294 \begin_layout Plain Layout
19306 \begin_layout Chapter
19311 \begin_layout Plain Layout
19320 \begin_layout Section
19322 \begin_inset CommandInset label
19324 name "sec:FloatIntroduction"
19332 \begin_layout Plain Layout
19333 Floats ! Introduction
19341 \begin_layout Standard
19342 A float is a block of text associated with some sort of label, which doesn't
19343 have a fixed location.
19345 \begin_inset Quotes eld
19349 \begin_inset Quotes erd
19352 forward or backward a page or two, to wherever it fits best.
19360 \begin_inset space ~
19365 are also floats, because they can float to the next page when there are
19366 too many notes at the page.
19369 \begin_layout Standard
19370 Floats allow a high quality layout.
19371 Images and tables can evenly be spread to the pages to avoid white space
19372 and pages without text.
19373 As the floating often destroys the context between the text and the image/table
19374 , every float can be referenced in the text.
19375 Floats are therefore numbered.
19376 Referencing is described in section
19377 \begin_inset space ~
19381 \begin_inset CommandInset ref
19383 reference "sec:Referencing-Floats"
19390 \begin_layout Standard
19391 To insert a float, use the menu
19393 Insert\SpecialChar \menuseparator
19401 inset, a box with a label.
19402 The label will automatically be translated to the document language in
19404 Behind the label you can insert the caption text.
19405 The image or table is inserted above or below the caption in a separate
19406 paragraph within the float.
19407 More about the caption placement is described in section
19408 \begin_inset space ~
19412 \begin_inset CommandInset ref
19414 reference "sec:Caption-Placement"
19419 To keep your LyX-document readable, you can open and close the float box
19420 by left-clicking on the box label.
19421 A closed float box looks like this:
19422 \begin_inset Graphics
19423 filename clipart/floatQt4.png
19425 scaleBeforeRotation
19429 – a gray button with a red label.
19432 \begin_layout Standard
19433 It is recommended to insert floats as a separate paragraph to avoid possible
19434 LaTeX-errors that can occur when the surrounding text is specially formatted.
19437 \begin_layout Standard
19438 Existing figures or tables can be put into a float by marking them and then
19439 pressing the corresponding toolbar button for a new float.
19442 \begin_layout Section
19446 \begin_layout Standard
19447 Besides figure and table floats that are described in section
19448 \begin_inset space ~
19452 \begin_inset CommandInset ref
19454 reference "sec:Figure-Floats"
19459 \begin_inset CommandInset ref
19461 reference "sec:Table-Floats"
19465 , respectively, LyX offers the float types
19476 \begin_layout Subsection
19481 \begin_layout Plain Layout
19482 Floats ! Algorithms
19490 \begin_layout Standard
19491 \begin_inset Float algorithm
19497 \begin_layout Plain Layout
19498 \begin_inset Caption
19500 \begin_layout Plain Layout
19501 \begin_inset CommandInset label
19503 name "alg:Example-Algorithm-float"
19507 Example Algorithm float
19515 \begin_layout LyX-Code
19517 \begin_inset Newline newline
19520 Sum:= Sum + A(I); /*comment*/
19521 \begin_inset Newline newline
19525 \begin_inset VSpace -4mm
19536 \begin_layout Standard
19537 This float type is inserted with the menu
19539 Insert\SpecialChar \menuseparator
19540 Floats\SpecialChar \menuseparator
19544 It is used for program codes and descriptions of algorithms.
19545 A possible environment for algorithms is the
19549 , described in LyX's
19555 \begin_inset space ~
19559 \begin_inset CommandInset ref
19561 reference "alg:Example-Algorithm-float"
19565 is an example of an algorithm float where -4
19566 \begin_inset space \thinspace{}
19569 mm vertical space was added at the end of the float to have the bottom rule
19570 exactly below the last text line.
19573 \begin_layout Standard
19574 The float label is not automatically translated into the document language.
19575 If your document is not in English, you have to do this manually by adding
19576 the following line to the document preamble
19581 \begin_layout Standard
19586 floatname{algorithm}{your
19587 \begin_inset space ~
19593 \begin_layout Standard
19597 \begin_inset space ~
19603 \begin_inset Quotes eld
19611 \begin_inset Quotes erd
19617 \begin_layout Standard
19618 To insert the list of algorithms you can not use the menu
19620 Insert\SpecialChar \menuseparator
19622 \begin_inset space \thinspace{}
19626 \begin_inset space \thinspace{}
19629 TOC\SpecialChar \menuseparator
19632 when your document is a non-English one.
19633 In this case use this command in TeX-Code instead:
19636 \begin_layout Standard
19641 listof{algorithm}{your
19642 \begin_inset space ~
19648 \begin_layout Standard
19652 \begin_inset space ~
19658 \begin_inset Quotes eld
19666 \begin_inset Quotes erd
19672 \begin_layout Standard
19673 Algorithm floats are not by default numbered in the scheme
19674 \begin_inset Quotes eld
19678 \begin_inset Quotes erd
19681 like it is the case for table and figure floats in many document-classes.
19682 To number algorithm floats in the same scheme, add this command to your
19686 \begin_layout Standard
19691 numberwithin{algorithm}{chapter}
19694 \begin_layout Standard
19695 To be able to use the command
19704 \begin_inset space ~
19709 in the document settings the option
19712 \begin_inset space ~
19716 \begin_inset space ~
19720 \begin_inset space ~
19728 \begin_layout Subsection
19733 \begin_layout Plain Layout
19734 Floats ! Wrap Floats
19742 \begin_layout Standard
19743 \begin_inset Wrap figure
19750 \begin_layout Plain Layout
19751 \begin_inset Graphics
19752 filename clipart/mobius.eps
19754 scaleBeforeRotation
19755 rotateOrigin center
19762 \begin_layout Plain Layout
19763 \begin_inset Caption
19765 \begin_layout Plain Layout
19766 \begin_inset CommandInset label
19768 name "fig:This-is-a"
19772 This is a figure wrap float.
19782 This float type is used if you want to wrap text around a figure or table
19783 so that it only occupies some fraction of the column width.
19784 It can be inserted using the menu
19786 Insert\SpecialChar \menuseparator
19787 Floats\SpecialChar \menuseparator
19789 \begin_inset space ~
19793 \begin_inset space ~
19801 \begin_inset space ~
19805 \begin_inset space ~
19810 if the LaTeX-package
19818 \begin_layout Plain Layout
19819 LaTeX-packages ! wrapfig
19823 \begin_layout Plain Layout
19841 \begin_layout Plain Layout
19842 Installing a LaTeX-package is explained it in the
19845 \begin_inset space ~
19855 The settings of the float can be modified by right-clicking on the float
19857 The mandatory settings are the float
19870 that specifies how much the float is set into the paragraph
19871 \begin_inset space \thinspace{}
19875 \begin_inset space \thinspace{}
19878 page margin, and the
19881 \begin_inset space ~
19886 that specifies how many text lines the float will approximately need.
19887 The line span is often hard to be approximated, so better only use it when
19888 you encounter float placement problems.
19889 You can furthermore decide if LaTeX is allowed to let the float float within
19890 the paragraph or to surrounding paragraphs.
19892 \begin_inset space ~
19896 \begin_inset CommandInset ref
19898 reference "fig:This-is-a"
19902 is an example text wrap float with a width of 40
19903 \begin_inset space \thinspace{}
19907 \begin_inset space \thinspace{}
19910 cm overhang, set to the left.
19914 \begin_layout Plain Layout
19915 Available units are explained in appendix
19916 \begin_inset space ~
19920 \begin_inset CommandInset ref
19922 reference "cha:Units-available-in"
19934 \begin_layout Standard
19935 \begin_inset Note Greyedout
19938 \begin_layout Plain Layout
19944 \begin_inset space ~
19947 wrap float floats are fragile! E.
19948 \begin_inset space \thinspace{}
19952 \begin_inset space \space{}
19955 having a figure too close to the bottom of the page can mess things up in
19956 the way that the float doesn't appear in the output or that it is placed
19957 over some other text.
19965 \begin_layout Standard
19969 \begin_layout Itemize
19970 Wrap floats should not be placed in paragraphs that run over a page break.
19971 That means that wrap floats should better be inserted to the exact place
19972 when the document is nearly finished and you are able to estimate where
19973 page breaks will appear.
19976 \begin_layout Itemize
19977 Wrap floats should either be placed in an own paragraph before the paragraph
19978 where they should wrap into or within a paragraph.
19981 \begin_layout Itemize
19982 Wrap floats in consecutive paragraphs may cause troubles, so assure that
19983 there is a text paragraph between them as separator.
19986 \begin_layout Itemize
19987 Wrap floats are not allowed in section headings or tables.
19990 \begin_layout Section
19995 \begin_layout Plain Layout
20004 \begin_layout Standard
20005 Floats are usually numbered either independent from the sections the floats
20006 are in, or in the scheme
20007 \begin_inset Quotes eld
20011 \begin_inset Quotes erd
20015 \begin_inset Quotes eld
20019 \begin_inset Quotes erd
20023 This depends on the used document class.
20026 \begin_layout Standard
20027 To change the section independent numbering, you can use this command in
20028 the document preamble:
20031 \begin_layout Standard
20043 \begin_layout Standard
20050 is the command that prints the table number, for figure floats, the command
20064 prints in the command above the table number as small roman number.
20067 \begin_layout Standard
20068 To change the numbering scheme for example to
20069 \begin_inset Quotes eld
20073 \begin_inset Quotes erd
20076 , use this command in the preamble:
20079 \begin_layout Standard
20084 numberwithin{table}{subsection}
20087 \begin_layout Standard
20088 To be able to use the command
20097 \begin_inset space ~
20102 in the document settings the option
20105 \begin_inset space ~
20109 \begin_inset space ~
20113 \begin_inset space ~
20121 \begin_layout Standard
20122 Please also have a look at section
20123 \begin_inset space ~
20127 \begin_inset CommandInset ref
20129 reference "sub:Footnote-Numbering"
20133 for the details and important notes about the numbering commands.
20136 \begin_layout Section
20138 \begin_inset CommandInset label
20140 name "sec:Referencing-Floats"
20148 \begin_layout Plain Layout
20149 Floats ! References
20158 \begin_layout Plain Layout
20159 References ! to Floats
20167 \begin_layout Standard
20168 To reference a float, insert a label into its caption using the menu
20170 Insert\SpecialChar \menuseparator
20173 or the toolbar button
20174 \begin_inset Graphics
20175 filename ../images/label-insert.png
20177 scaleBeforeRotation
20182 A grey label box like this one:
20183 \begin_inset Graphics
20184 filename clipart/labelQt4.png
20186 scaleBeforeRotation
20190 will be inserted and the label window pops up asking for the label text.
20191 LyX offers as text the first words of the caption with a prefix.
20192 The prefix depends on the float type, e.
20193 \begin_inset space \thinspace{}
20197 \begin_inset space \space{}
20200 for figure floats the prefix will be "
20207 \begin_layout Standard
20208 The label is used as anchor and name for the reference.
20209 You can refer to the label using the menu
20211 Insert\SpecialChar \menuseparator
20214 or the toolbar button
20215 \begin_inset Graphics
20216 filename ../images/dialog-show-new-inset_ref.png
20218 scaleBeforeRotation
20223 A grey cross-reference box like this one:
20224 \begin_inset Graphics
20225 filename clipart/referenceQt4.png
20227 scaleBeforeRotation
20231 will be inserted and the cross-reference window appear showing all labels
20233 If you have multiple LyX-documents opened, choose the one you are working
20234 on from the drop-list at the top of the dialog.
20235 You can now sort the labels alphabetically and then choose one.
20236 At the position of the cross-reference box the float number will appear
20240 \begin_layout Standard
20241 It is recommended to use a protected space between the cross-reference name
20242 and its number to avoid line breaks between them.
20243 If a cross-reference refers to a non-existing label, you will see two question
20244 marks in the output instead of the reference.
20247 \begin_layout Standard
20248 You can change labels at any time by clicking on the label box.
20249 References to the changed label will automatically change its link to the
20250 new label text, so that you don't need to take care about this.
20253 \begin_layout Standard
20257 \begin_inset space ~
20261 \begin_inset space ~
20266 in the cross-reference window sets the cursor before the referred label.
20267 The button text changes then to Go
20268 \begin_inset space ~
20271 Back and you can use it to set the cursor back to the cross-reference.
20272 Right-clicking on a cross-reference box also sets the cursor before the
20273 referenced label but without a possibility to go back.
20276 \begin_layout Subsection
20277 Cross-Reference Formats
20278 \begin_inset CommandInset label
20280 name "sub:Cross-Reference-Formats"
20288 \begin_layout Plain Layout
20289 References ! Formats
20297 \begin_layout Standard
20298 There are six varieties of cross-references:
20301 \begin_layout Description
20302 <reference>: prints the float number, this is the default:
20303 \begin_inset CommandInset ref
20305 reference "fig:Two-distorted-images"
20312 \begin_layout Description
20313 (<reference>): prints the float number within two parentheses, this is the
20314 style normally used to reference formulas, especially when the reference
20316 \begin_inset Quotes eld
20320 \begin_inset Quotes erd
20324 \begin_inset CommandInset ref
20333 \begin_layout Description
20334 <page>: prints the page number: Page
20335 \begin_inset space ~
20339 \begin_inset CommandInset ref
20340 LatexCommand pageref
20341 reference "fig:Two-distorted-images"
20348 \begin_layout Description
20350 \begin_inset space ~
20354 \begin_inset space ~
20357 <page>: prints the text "on page" and the page number:
20358 \begin_inset CommandInset ref
20359 LatexCommand vpageref
20360 reference "fig:Two-distorted-images"
20367 \begin_layout Description
20369 \begin_inset space ~
20373 \begin_inset space ~
20377 \begin_inset space ~
20380 <page>: prints the float number, the text "on page", and the page number:
20382 \begin_inset CommandInset ref
20384 reference "fig:Two-distorted-images"
20391 \begin_layout Description
20393 \begin_inset space ~
20396 reference: prints a self defined cross-reference format.
20398 \begin_inset Note Greyedout
20401 \begin_layout Plain Layout
20406 This feature is only available when you have the LaTeX-package
20418 \begin_layout Standard
20419 Note that the style <page> won't print the page number if the label is on
20420 the previous, the same, or the next page.
20422 \begin_inset space \thinspace{}
20426 \begin_inset space \space{}
20430 \begin_inset Quotes eld
20438 \begin_inset Quotes erd
20444 \begin_layout Standard
20445 The number and current page of the referred document part in the output,
20446 is automatically calculated by LaTeX.
20447 The varieties are adjusted in the field
20451 of the cross-reference window, that appear when you click on the cross-referenc
20455 \begin_layout Subsection
20456 Automatic Reference Naming
20460 \begin_layout Plain Layout
20461 References ! Automatic Reference Naming
20469 \begin_layout Standard
20478 \begin_layout Plain Layout
20479 LaTeX-packages ! hyperref
20484 , that is enabled in the
20492 dialog, provides a very useful feature that cross-references automatically
20493 include the name of the referenced floats (or text parts like
20498 So you will save to write e.
20499 \begin_inset space \thinspace{}
20503 \begin_inset space \space{}
20507 \begin_inset Quotes eld
20511 \begin_inset Quotes erd
20514 before every reference to a figure.
20515 To use this feature, enable
20519 and insert this line to the LaTeX preamble:
20522 \begin_layout Standard
20538 \begin_layout Standard
20539 When you prefer other reference names than the default ones, for example
20540 you want instead of
20541 \begin_inset Quotes eld
20545 \begin_inset Quotes erd
20549 \begin_inset Quotes eld
20553 \begin_inset space \thinspace{}
20557 \begin_inset Quotes eld
20560 , you can redefine the name by inserting this to the preamble:
20563 \begin_layout Standard
20574 sectionautorefname}
20575 \begin_inset Newline newline
20582 \begin_layout Plain Layout
20596 \begin_layout Standard
20597 When you are using another document language than English, replace
20598 \begin_inset Newline newline
20613 , where *** is the name of the used language.
20616 \begin_layout Standard
20617 To get automatic names, but not for certain reference types, for example
20618 not for equations, use this preamble code:
20621 \begin_layout Standard
20629 \begin_inset Newline newline
20639 \begin_inset Newline newline
20650 equationautorefname}
20651 \begin_inset Newline newline
20658 \begin_layout Plain Layout
20674 \begin_layout Standard
20675 More about this topic can be found in
20680 \begin_inset CommandInset citation
20689 \begin_layout Standard
20690 \begin_inset Note Greyedout
20693 \begin_layout Plain Layout
20698 Automatic reference naming cannot be used when you use cross-references
20702 \begin_inset space ~
20707 style, as described in section
20708 \begin_inset space ~
20712 \begin_inset CommandInset ref
20714 reference "sub:Cross-Reference-Formats"
20726 \begin_layout Standard
20731 manual is an example where automatic reference naming is used.
20734 \begin_layout Subsection
20736 \begin_inset CommandInset label
20738 name "sub:Reference-Position"
20746 \begin_layout Plain Layout
20747 References ! Reference Position
20755 \begin_layout Standard
20764 \begin_layout Plain Layout
20765 LaTeX-packages ! hyperref
20778 dialog to link cross-references in the output, you will see that clicking
20779 on an image float reference jumps to the image label.
20780 The caption will be the first text part on the screen, so that you cannot
20781 see the image without scrolling.
20782 This is because the reference link anchor is placed at the position of
20784 With the use of the package
20792 \begin_layout Plain Layout
20793 LaTeX-packages ! hypcap
20798 , which is part of the LaTeX-package
20806 \begin_layout Plain Layout
20807 LaTeX-packages ! oberdiek
20812 , the link anchor is placed at the beginning of a float.
20813 To use this feature for figure floats, load
20817 in the document preamble with the line
20820 \begin_layout Standard
20825 usepackage[figure]{hypcap}
20828 \begin_layout Standard
20833 for all float types but this is not recommended for stability reasons.
20834 For more informations, have a look at
20839 \begin_inset CommandInset citation
20848 \begin_layout Standard
20849 \begin_inset Note Greyedout
20852 \begin_layout Plain Layout
20861 has no effect for references to subfigures.
20869 \begin_layout Section
20871 \begin_inset CommandInset label
20873 name "sec:Float-Placement"
20881 \begin_layout Plain Layout
20890 \begin_layout Standard
20891 Right-clicking on a float-box opens a dialog where you can alter the placement
20892 options that LaTeX uses for positioning the float.
20893 \begin_inset Newline newline
20899 \begin_inset space ~
20904 is only useful for two-column documents: If you select it, the float will
20905 span across both columns on the page instead of being confined to just
20907 \begin_inset Newline newline
20913 \begin_inset space ~
20918 is used to rotate floats, see section
20919 \begin_inset CommandInset ref
20921 reference "sec:Rotated-Floats"
20928 \begin_layout Standard
20929 You can use one ore more of the following options in the float dialog to
20930 set the placement for a particular float when you uncheck the option
20933 \begin_inset space ~
20937 \begin_inset space ~
20945 \begin_layout Description
20947 \begin_inset space ~
20951 \begin_inset space ~
20954 possible try to place the float on the position where it is inserted
20957 \begin_layout Description
20959 \begin_inset space ~
20963 \begin_inset space ~
20966 page try to place the float on the top of the current page
20969 \begin_layout Description
20971 \begin_inset space ~
20975 \begin_inset space ~
20978 page try to place the float on the bottom of the current page
20981 \begin_layout Description
20983 \begin_inset space ~
20987 \begin_inset space ~
20990 floats try to place the float on an own page
20993 \begin_layout Standard
20994 The order of the above option is
20999 That means, if you use the default placement, LaTeX will first try out
21003 \begin_inset space ~
21007 \begin_inset space ~
21015 \begin_inset space ~
21019 \begin_inset space ~
21024 , and then the others.
21025 If you don't use the default, LaTeX will try only the checked options but
21027 If none of the 4 placements are possible the procedure is internally repeated
21028 but it is tried to put the float on the following page.
21031 \begin_layout Standard
21032 By default, each option has its own rules:
21035 \begin_layout Labeling
21036 \labelwidthstring 00.00.0000
21040 \begin_inset space ~
21044 \begin_inset space ~
21049 only floats occupying less than 70
21050 \begin_inset space \thinspace{}
21053 % of the page can be placed at the top of a page (
21062 \begin_layout Labeling
21063 \labelwidthstring 00.00.0000
21067 \begin_inset space ~
21071 \begin_inset space ~
21076 : only floats occupying less than 30
21077 \begin_inset space \thinspace{}
21080 % of the page can be placed at the bottom of a page.
21090 \begin_layout Labeling
21091 \labelwidthstring 00.00.0000
21095 \begin_inset space ~
21099 \begin_inset space ~
21104 : only if more than 50
21105 \begin_inset space \thinspace{}
21108 % of the page are occupied by floats, several floats can be set together
21119 \begin_layout Standard
21120 If you don't like these rules, you can ignore them by using the additional
21124 \begin_inset space ~
21128 \begin_inset space ~
21134 \begin_inset Newline newline
21137 You can also redefine the rules with LaTeX-commands that are given in parenthese
21138 s behind the rules description above.
21139 To increase for example the often too small default of the bottom-rule
21141 \begin_inset space \thinspace{}
21144 % of the page, add this line to your document preamble:
21147 \begin_layout Standard
21154 bottomfraction}{0.5}
21157 \begin_layout Standard
21158 Sometimes you might need, under all circumstances, a float to be placed
21159 exactly at the position where it is inserted.
21160 For this case you can use the option
21163 \begin_inset space ~
21169 Use this option very rarely and only if the document is nearly ready to
21171 Because the float is then no longer able to
21172 \begin_inset Quotes eld
21176 \begin_inset Quotes erd
21179 when you change your document and this will often destroy the page layout.
21182 \begin_layout Standard
21183 There are no placement options for text wrap floats, because they are always
21184 surrounded by the text of a certain paragraph.
21185 \begin_inset VSpace bigskip
21191 \begin_layout Standard
21192 Sometimes you have the problem that a float is placed at the top of a page
21193 while its corresponding section starts at the middle of the page, so that
21194 the reader could think the float is part of the previous section.
21195 To avoid this the LaTeX-command
21202 It suppresses a given float placement for the page where it is inserted
21203 and can therefore be used to avoid that floats could be set before a section
21205 To get this, add these commands to your document preamble:
21208 \begin_layout Standard
21218 \begin_inset Newline newline
21232 \begin_layout Standard
21233 You can define the same for all section headings, like chapters and subsections.
21234 This definition is not recommended to be used for small text parts like
21235 subsubsections because LaTeX may then have problems to find a suitable
21239 \begin_layout Standard
21240 \begin_inset VSpace bigskip
21243 In some cases it is required to have all figures/tables at the end of the
21245 For this purpose the LaTeX-package
21253 \begin_layout Plain Layout
21254 LaTeX-packages ! endfloat
21260 It puts all figure and table floats at the end of the document into own
21262 At the original float position a text hint like
21263 \begin_inset Quotes eld
21269 \begin_inset space ~
21275 \begin_inset Quotes erd
21279 The endfloat-package is loaded in the preamble with the line
21282 \begin_layout Standard
21287 usepackage[options]{endfloat}
21290 \begin_layout Standard
21291 There are various package options to format the created figure/table sections.
21292 For more information we refer to the
21297 \begin_inset CommandInset citation
21304 \begin_inset Newline newline
21308 \begin_inset Note Greyedout
21311 \begin_layout Plain Layout
21316 doesn't provide an automatic translation for the text hint, you have to
21317 do this manually, see section
21318 \begin_inset space ~
21322 \begin_inset CommandInset citation
21334 \begin_inset Newline newline
21338 \begin_inset Note Greyedout
21341 \begin_layout Plain Layout
21346 There is currently a bug in
21350 when the caption contains a German
21351 \begin_inset Quotes eld
21355 \begin_inset Quotes erd
21359 Use in this case the command
21360 \begin_inset Quotes eld
21370 \begin_inset Quotes erd
21373 in TeX-Code instead of
21374 \begin_inset Quotes eld
21378 \begin_inset Quotes erd
21389 \begin_layout Standard
21390 \begin_inset VSpace bigskip
21393 For more details about float placements, have a look at LaTeX books,
21394 \begin_inset CommandInset citation
21396 key "latexcompanion,latexguide,latexbook"
21403 \begin_layout Section
21405 \begin_inset CommandInset label
21407 name "sec:Rotated-Floats"
21415 \begin_layout Plain Layout
21424 \begin_layout Standard
21425 Especially for wide tables you might have floats rotated.
21426 To rotate a whole float including the caption, right-click on the float-box
21430 \begin_inset space ~
21438 \begin_layout Standard
21439 Rotated floats are always placed on its own page (or column, in case you
21440 have a multi-column document).
21441 You can let them span several columns using the float settings option
21444 \begin_inset space ~
21450 Floats are rotated so that you can read them from the outside margin.
21451 To force a certain rotation direction for all pages, you can add either
21460 to the document class options.
21463 \begin_layout Standard
21464 Referencing rotated floats is the same like for normal floats, the caption
21465 format is also the same: Table
21466 \begin_inset space ~
21470 \begin_inset CommandInset ref
21472 reference "tab:Rotated-table"
21476 is an example of a rotated table float.
21479 \begin_layout Standard
21480 \begin_inset Note Greyedout
21483 \begin_layout Plain Layout
21488 Not all DVI-viewers are able to display rotated floats.
21496 \begin_layout Standard
21497 \begin_inset Float table
21502 \begin_layout Plain Layout
21503 \begin_inset Caption
21505 \begin_layout Plain Layout
21506 \begin_inset CommandInset label
21508 name "tab:Rotated-table"
21520 \begin_layout Plain Layout
21522 \begin_inset Tabular
21523 <lyxtabular version="3" rows="1" columns="5">
21525 <column alignment="center" valignment="top" width="0">
21526 <column alignment="center" valignment="top" width="0">
21527 <column alignment="center" valignment="top" width="0">
21528 <column alignment="center" valignment="top" width="0">
21529 <column alignment="center" valignment="top" width="0">
21531 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21534 \begin_layout Plain Layout
21540 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21543 \begin_layout Plain Layout
21549 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21552 \begin_layout Plain Layout
21558 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21561 \begin_layout Plain Layout
21567 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21570 \begin_layout Plain Layout
21589 \begin_layout Section
21590 Floats Side by Side
21594 \begin_layout Plain Layout
21595 Floats ! Side by side
21603 \begin_layout Standard
21604 To place floats side by side, like for Figure
21605 \begin_inset space ~
21609 \begin_inset CommandInset ref
21611 reference "fig:Float-left"
21616 \begin_inset CommandInset ref
21618 reference "fig:Float-right"
21627 In it two minipage boxes are inserted.
21631 \begin_layout Plain Layout
21632 Minipages are explained in section
21633 \begin_inset space ~
21637 \begin_inset CommandInset ref
21639 reference "sec:Minipages"
21648 The width is set to 45
21649 \begin_inset space \thinspace{}
21653 \begin_inset space \thinspace{}
21656 column% and the box alignment to
21661 The minipage boxes contain the image and the caption in the same way as
21662 they are in a float.
21663 The only difference is that the image unit
21666 \begin_inset space ~
21670 \begin_inset space ~
21675 is now calculated according to the width of the minipage boxes.
21678 \begin_layout Standard
21679 \begin_inset Float figure
21684 \begin_layout Plain Layout
21685 \begin_inset Box Frameless
21694 height_special "totalheight"
21697 \begin_layout Plain Layout
21699 \begin_inset Graphics
21700 filename clipart/mobius.eps
21703 scaleBeforeRotation
21710 \begin_layout Plain Layout
21711 \begin_inset Caption
21713 \begin_layout Plain Layout
21714 \begin_inset CommandInset label
21716 name "fig:Float-left"
21720 Float on the left side.
21731 \begin_inset space \hfill{}
21735 \begin_inset Box Frameless
21744 height_special "totalheight"
21747 \begin_layout Plain Layout
21749 \begin_inset Graphics
21750 filename clipart/platypus.eps
21753 scaleBeforeRotation
21760 \begin_layout Plain Layout
21761 \begin_inset Caption
21763 \begin_layout Plain Layout
21764 \begin_inset CommandInset label
21766 name "fig:Float-right"
21770 Float on the right side.
21783 \begin_layout Plain Layout
21792 \begin_layout Section
21797 \begin_layout Plain Layout
21798 Caption ! Formatting
21807 \begin_layout Plain Layout
21808 Floats ! Caption Formatting
21814 \begin_inset CommandInset label
21816 name "sec:Caption-Formatting"
21823 \begin_layout Standard
21828 environment is the default paragraph environment for
21833 On the LyX screen captions appear as label, e.
21834 \begin_inset space \thinspace{}
21838 \begin_inset space \space{}
21842 \begin_inset Quotes eld
21850 \begin_inset Quotes erd
21853 followed by the caption text.
21855 \begin_inset Quotes eld
21859 \begin_inset Quotes erd
21862 is the actual reference number.
21863 By default the label and the number are in the same font as the caption
21864 text and a colon follows the number to divide the label from the text.
21865 This caption format is not suitable for all document formats.
21869 \begin_layout Standard
21870 To change the default caption format, load the LaTeX-package
21878 \begin_layout Plain Layout
21879 LaTeX-packages ! caption
21884 in the document preamble with this line:
21887 \begin_layout Standard
21892 usepackage[format definition]{caption}
21895 \begin_layout Standard
21896 To have for example the label and the number in sans-serif bold font and
21897 the table captions always above the table like in this document, use the
21901 \begin_layout Standard
21906 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
21909 \begin_layout Standard
21910 You can also define different caption formats for the different float types.
21911 In this case load the
21915 package without format specific options and define the different formats
21916 with the help of the command
21919 \begin_layout Standard
21924 captionsetup[float type]{format definition}
21927 \begin_layout Standard
21928 in the document preamble.
21929 For example the caption formats of Figure
21930 \begin_inset space ~
21934 \begin_inset CommandInset ref
21936 reference "fig:This-is-an-fig"
21941 \begin_inset space ~
21945 \begin_inset CommandInset ref
21947 reference "tab:This-is-an-tab"
21951 can be created using these commands in the document preamble:
21954 \begin_layout Standard
21959 usepackage[tableposition=top]{caption}
21962 \begin_inset Newline newline
21969 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
21970 \begin_inset Newline newline
21977 \begin_layout Plain Layout
21985 captionsetup[figure]
21993 \begin_inset Newline newline
21998 captionsetup[table]{labelfont={bf,sf}}
22001 \begin_layout Standard
22002 \begin_inset Note Greyedout
22005 \begin_layout Plain Layout
22014 has no effect when a
22022 \begin_layout Plain Layout
22023 LaTeX-packages ! koma-script
22028 document class is used.
22029 In this case the document class option
22041 \begin_layout Standard
22042 For more information about the package
22046 we refer to its documentation
22047 \begin_inset CommandInset citation
22056 \begin_layout Standard
22057 To change the label name from e.
22058 \begin_inset space \thinspace{}
22062 \begin_inset space \space{}
22066 \begin_inset Quotes eld
22070 \begin_inset Quotes erd
22074 \begin_inset Quotes eld
22078 \begin_inset Quotes erd
22081 use this preamble command:
22084 \begin_layout Standard
22091 fnum@figure}{Image~
22096 \begin_layout Standard
22103 inserts the figure number and
22106 \begin_inset Quotes eld
22112 \begin_inset Quotes erd
22115 creates a protected space.
22118 \begin_layout Standard
22119 \begin_inset VSpace bigskip
22130 \begin_layout Plain Layout
22131 LaTeX-packages ! koma-script
22138 article (koma-script)
22146 letter (koma-script)
22150 report (koma-script)
22153 \begin_inset space \thinspace{}
22156 ), you can alternatively to the
22164 's built-in command
22171 For example, to have the caption label in bold, add this command to your
22175 \begin_layout Standard
22180 setkomafont{captionlabel}{
22185 \begin_layout Standard
22186 For more information about
22197 \begin_inset CommandInset citation
22206 \begin_layout Standard
22210 \begin_layout Plain Layout
22214 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
22221 \begin_inset Note Note
22224 \begin_layout Plain Layout
22225 The caption format is changed only for this example.
22233 \begin_layout Standard
22234 \begin_inset Float figure
22240 \begin_layout Plain Layout
22242 \begin_inset Graphics
22243 filename clipart/mobius.eps
22246 scaleBeforeRotation
22253 \begin_layout Plain Layout
22254 \begin_inset Caption
22256 \begin_layout Plain Layout
22257 \begin_inset CommandInset label
22259 name "fig:This-is-an-fig"
22263 This is an example figure caption that is longer than one line to show the
22264 different caption format.
22265 Here a self-defined caption format is used.
22278 \begin_layout Standard
22282 \begin_layout Plain Layout
22286 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
22295 \begin_layout Standard
22296 \begin_inset Float table
22302 \begin_layout Plain Layout
22303 \begin_inset Caption
22305 \begin_layout Plain Layout
22306 \begin_inset CommandInset label
22308 name "tab:This-is-an-tab"
22312 This is an example table caption that is longer than one line to show the
22313 different caption format.
22314 Here the standard caption format for tables in this document is used.
22322 \begin_layout Plain Layout
22324 \begin_inset Tabular
22325 <lyxtabular version="3" rows="1" columns="5">
22327 <column alignment="center" valignment="top" width="0">
22328 <column alignment="center" valignment="top" width="0">
22329 <column alignment="center" valignment="top" width="0">
22330 <column alignment="center" valignment="top" width="0">
22331 <column alignment="center" valignment="top" width="0">
22333 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22336 \begin_layout Plain Layout
22342 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22345 \begin_layout Plain Layout
22351 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22354 \begin_layout Plain Layout
22360 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22363 \begin_layout Plain Layout
22369 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22372 \begin_layout Plain Layout
22391 \begin_layout Section
22396 \begin_layout Plain Layout
22397 Caption ! Placement
22406 \begin_layout Plain Layout
22407 Floats ! Caption Placement
22413 \begin_inset CommandInset label
22415 name "sec:Caption-Placement"
22422 \begin_layout Standard
22423 The common caption placement rule is:
22426 \begin_layout Description
22427 Figure: Caption is set below the figure
22430 \begin_layout Description
22431 Table: Caption is set above the table
22434 \begin_layout Standard
22435 Having the caption above the table is unfortunately not supported in LaTeX's
22437 That means if you are using the document classes
22453 there will be no space between the caption and the table.
22454 To insert the needed space, add the following option to the load command
22455 of the LaTeX-package
22459 in your document preamble
22463 \begin_layout Plain Layout
22465 \begin_inset space ~
22469 \begin_inset CommandInset ref
22471 reference "sec:Caption-Formatting"
22475 for more information of the package
22487 \begin_layout Standard
22493 \begin_layout Standard
22502 \begin_layout Plain Layout
22503 LaTeX-packages ! koma-script
22510 article (koma-script)
22518 letter (koma-script)
22522 report (koma-script)
22525 \begin_inset space \thinspace{}
22528 ), you can alternatively to the
22532 package set the document class option
22539 \begin_layout Standard
22540 \begin_inset VSpace bigskip
22543 It is also possible to set the caption beside a figure or table.
22544 To get this the LaTeX-package
22552 \begin_layout Plain Layout
22553 LaTeX-packages ! sidecap
22558 has to be loaded in the document preamble with the line
22561 \begin_layout Standard
22566 usepackage[option]{sidecap}
22569 \begin_layout Standard
22570 If you set no option, the caption is placed on the side of the outer page
22571 margin – to the right on odd pages, to the left on even pages.
22572 You can change the placement to inner margin with the option
22577 To force the placement always to the right or left, use the option
22588 \begin_layout Standard
22592 \begin_layout Plain Layout
22602 \begin_inset Note Note
22605 \begin_layout Plain Layout
22606 The following section will only be displayed when the LaTeX-package
22618 \begin_layout Standard
22619 To place in LyX the caption of a float on the side, it is necessary to add
22620 these commands to the document preamble:
22623 \begin_layout Standard
22629 \begin_layout Standard
22637 \begin_inset Newline newline
22644 \begin_layout Plain Layout
22660 \begin_inset Newline newline
22667 \begin_layout Plain Layout
22683 \begin_inset Newline newline
22690 \begin_layout Plain Layout
22701 renewenvironment{table}{
22708 \begin_layout Standard
22716 \begin_inset Newline newline
22723 \begin_layout Plain Layout
22739 \begin_inset Newline newline
22746 \begin_layout Plain Layout
22764 \begin_layout Standard
22772 \begin_inset Newline newline
22779 \begin_layout Plain Layout
22795 \begin_inset Newline newline
22802 \begin_layout Plain Layout
22818 \begin_inset Newline newline
22825 \begin_layout Plain Layout
22836 renewenvironment{figure}{
22843 \begin_layout Standard
22851 \begin_inset Newline newline
22858 \begin_layout Plain Layout
22874 \begin_inset Newline newline
22881 \begin_layout Plain Layout
22899 \begin_layout Standard
22905 \begin_layout Standard
22906 The commands allow you to redefine the floats so that the caption is set
22908 For figure floats use the command
22911 \begin_layout Standard
22919 \begin_layout Standard
22920 in TeX-Code before the float.
22921 Behind the float insert the command
22924 \begin_layout Standard
22932 \begin_layout Standard
22933 in TeX-Code to get back to the original float definition.
22936 \begin_layout Standard
22937 For table floats use the corresponding commands
22940 \begin_layout Standard
22954 \begin_layout Standard
22956 \begin_inset space ~
22960 \begin_inset CommandInset ref
22962 reference "fig:cap-beside-fig"
22967 \begin_inset space ~
22971 \begin_inset CommandInset ref
22973 reference "tab:cap-beside-tab"
22977 are examples where the caption is set beside.
22980 \begin_layout Standard
22981 You can see in the examples that the caption text appears at the top of
22982 the floats for table floats and at the bottom for figure floats.
22983 To change this, you can use the command
22986 \begin_layout Standard
22991 sidecaptionvpos{float type}{placement}
22994 \begin_layout Standard
22995 in the document preamble or in TeX-Code before the float.
22996 The float type is either
23004 , the placement can be
23005 \begin_inset Quotes eld
23013 \begin_inset Quotes erd
23017 \begin_inset Quotes eld
23025 \begin_inset Quotes erd
23029 \begin_inset Quotes eld
23037 \begin_inset Quotes erd
23041 To have for example the caption of figure floats vertically centered, use
23045 \begin_layout Standard
23050 sidecaptionvpos{figure}{c}
23053 \begin_layout Standard
23054 This was used for Figure
23055 \begin_inset space ~
23059 \begin_inset CommandInset ref
23061 reference "fig:cap-beside-fig-2"
23068 \begin_layout Standard
23069 \begin_inset VSpace medskip
23072 For more information about the package
23076 we refer to its documentation
23077 \begin_inset CommandInset citation
23086 \begin_layout Standard
23087 \begin_inset Note Greyedout
23090 \begin_layout Plain Layout
23103 \begin_layout Plain Layout
23104 LaTeX-packages ! hypcap
23109 , described in section
23110 \begin_inset space ~
23114 \begin_inset CommandInset ref
23116 reference "sub:Reference-Position"
23120 , has no effect on floats with the caption set beside.
23128 \begin_layout Standard
23132 \begin_layout Plain Layout
23144 \begin_layout Standard
23145 \begin_inset Float figure
23150 \begin_layout Plain Layout
23151 \begin_inset Graphics
23152 filename clipart/escher-lsd.eps
23154 scaleBeforeRotation
23161 \begin_layout Plain Layout
23162 \begin_inset Caption
23164 \begin_layout Plain Layout
23165 \begin_inset CommandInset label
23167 name "fig:cap-beside-fig"
23171 This is a caption beside a figure.
23184 \begin_layout Standard
23188 \begin_layout Plain Layout
23200 \begin_layout Standard
23201 \begin_inset Float table
23206 \begin_layout Plain Layout
23207 \begin_inset Caption
23209 \begin_layout Plain Layout
23210 \begin_inset CommandInset label
23212 name "tab:cap-beside-tab"
23216 This is a caption beside a table.
23224 \begin_layout Plain Layout
23225 \begin_inset Tabular
23226 <lyxtabular version="3" rows="4" columns="5">
23228 <column alignment="center" valignment="top" width="0">
23229 <column alignment="center" valignment="top" width="0">
23230 <column alignment="center" valignment="top" width="0">
23231 <column alignment="center" valignment="top" width="0">
23232 <column alignment="center" valignment="top" width="0">
23234 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23237 \begin_layout Plain Layout
23243 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23246 \begin_layout Plain Layout
23252 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23255 \begin_layout Plain Layout
23261 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23264 \begin_layout Plain Layout
23270 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23273 \begin_layout Plain Layout
23281 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23284 \begin_layout Plain Layout
23290 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23293 \begin_layout Plain Layout
23299 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23302 \begin_layout Plain Layout
23308 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23311 \begin_layout Plain Layout
23317 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23320 \begin_layout Plain Layout
23328 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23331 \begin_layout Plain Layout
23337 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23340 \begin_layout Plain Layout
23346 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23349 \begin_layout Plain Layout
23355 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23358 \begin_layout Plain Layout
23364 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23367 \begin_layout Plain Layout
23375 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23378 \begin_layout Plain Layout
23384 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23387 \begin_layout Plain Layout
23393 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23396 \begin_layout Plain Layout
23402 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23405 \begin_layout Plain Layout
23411 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23414 \begin_layout Plain Layout
23433 \begin_layout Standard
23437 \begin_layout Plain Layout
23449 \begin_layout Standard
23453 \begin_layout Plain Layout
23457 sidecaptionvpos{figure}{c}
23463 \begin_inset Float figure
23468 \begin_layout Plain Layout
23469 \begin_inset Graphics
23470 filename clipart/escher-lsd.eps
23472 scaleBeforeRotation
23479 \begin_layout Plain Layout
23480 \begin_inset Caption
23482 \begin_layout Plain Layout
23483 \begin_inset CommandInset label
23485 name "fig:cap-beside-fig-2"
23489 This is a vertically centered caption beside a figure.
23502 \begin_layout Standard
23506 \begin_layout Plain Layout
23518 \begin_layout Standard
23522 \begin_layout Plain Layout
23532 \begin_inset Note Note
23535 \begin_layout Plain Layout
23536 The following will be displayed when the LaTeX-package
23548 \begin_layout Standard
23549 You need to install the LaTeX-package
23553 to see the following part of this section in the output.
23556 \begin_layout Standard
23560 \begin_layout Plain Layout
23572 \begin_layout Section
23577 \begin_layout Plain Layout
23578 Floats ! Float Lists
23586 \begin_layout Standard
23587 Similar to the the table of contents where the sections of the document
23588 are listed, there are listings for all float types, like the figures of
23590 You can insert them via the
23592 Insert\SpecialChar \menuseparator
23594 \begin_inset space ~
23598 \begin_inset space ~
23606 \begin_layout Standard
23607 The list entries are the float captions or its short title, the float number,
23608 and the page number where they appear in the document.
23611 \begin_layout Standard
23612 You can find the list of figures and tables at the end of this document.
23615 \begin_layout Chapter
23619 \begin_layout Section
23624 \begin_layout Plain Layout
23633 \begin_layout Standard
23634 Notes are inserted with the toolbar button
23635 \begin_inset Graphics
23636 filename ../images/note-insert.png
23638 scaleBeforeRotation
23644 Insert\SpecialChar \menuseparator
23648 There are three types of notes:
23651 \begin_layout Description
23653 \begin_inset space ~
23656 Note This note type is for internal notes that won't appear in the output.
23657 Its note-box looks like this:
23658 \begin_inset Newline newline
23662 \begin_inset Newline newline
23666 \begin_inset Graphics
23667 filename clipart/LyXNoteImageQt4.png
23670 scaleBeforeRotation
23675 \begin_inset Note Note
23678 \begin_layout Plain Layout
23679 This is text in a note box that doesn't appear in the output.
23687 \begin_layout Description
23688 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
23689 ent, when you export the document to LaTeX via the menu
23691 File\SpecialChar \menuseparator
23692 Export\SpecialChar \menuseparator
23693 LaTeX (pdflatex) / (plain)
23696 Its note-box looks like this:
23697 \begin_inset Newline newline
23701 \begin_inset Newline newline
23705 \begin_inset Graphics
23706 filename clipart/CommentNoteImageQt4.png
23709 scaleBeforeRotation
23714 \begin_inset Note Comment
23717 \begin_layout Plain Layout
23718 This is text in a note box that only appears as comment in LaTeX-files.
23726 \begin_layout Description
23728 \begin_inset space ~
23731 Out This note will appear in the output as grey text.
23732 Its note-box looks like this:
23733 \begin_inset Newline newline
23737 \begin_inset Newline newline
23741 \begin_inset Graphics
23742 filename clipart/GreyedOutNoteImageQt4.png
23745 scaleBeforeRotation
23750 \begin_inset Newline newline
23757 \begin_layout Plain Layout
23761 renewenvironment{lyxgreyedout}
23764 \begin_layout Plain Layout
23768 textcolor[gray]{0.8}
23778 \begin_inset Note Greyedout
23781 \begin_layout Plain Layout
23786 \begin_layout Plain Layout
23787 This is an example footnote within a greyed out note.
23792 of a comment that appears in the output as grey text.
23801 \begin_layout Plain Layout
23805 renewenvironment{lyxgreyedout}
23808 \begin_layout Plain Layout
23822 \begin_inset Note Note
23825 \begin_layout Plain Layout
23826 The greyed out note is here redefined to show it with the original LyX definitio
23827 n because greyed out notes are redefined in the preamble of this document,
23828 as described below, to have blue text.
23834 \begin_inset Newline newline
23838 \begin_inset Newline newline
23841 As you can see in the example, the first line of greyed out notes is a bit
23842 indented and greyed out notes can have footnotes.
23845 \begin_layout Standard
23846 \begin_inset VSpace bigskip
23849 When you use the toolbar button
23850 \begin_inset Graphics
23851 filename ../images/note-insert.png
23853 scaleBeforeRotation
23860 \begin_inset space ~
23866 You can switch between the five note types by right-clicking on the note-box.
23871 If you want to turn existing text into a note, mark it and click on the
23885 To change a note to text, press the backspace key when the cursor is in
23886 the first position of a note, or press the deletey key when the cursor
23887 is in the very last position of the note, respectively.
23890 \begin_layout Standard
23891 \begin_inset VSpace bigskip
23894 You can change the text color of the greyed out notes in the preamble with
23895 the following command:
23898 \begin_layout Standard
23903 renewenvironment{lyxgreyedout}
23904 \begin_inset Newline newline
23911 \begin_layout Plain Layout
23929 \begin_layout Standard
23930 The available colors and the method to define own colors is explained in
23932 \begin_inset space ~
23936 \begin_inset CommandInset ref
23938 reference "sec:Colored-Tables"
23945 \begin_layout Standard
23946 Notes that appear in blue in this document are set using greyed out notes
23950 \begin_layout Section
23952 \begin_inset CommandInset label
23954 name "sec:Footnotes"
23962 \begin_layout Plain Layout
23972 \begin_layout Plain Layout
23981 \begin_layout Standard
23982 Footnotes can be inserted using the toolbar button
23983 \begin_inset Graphics
23984 filename ../images/footnote-insert.png
23986 scaleBeforeRotation
23992 Insert\SpecialChar \menuseparator
24004 then the following footnote-box:
24005 \begin_inset Graphics
24006 filename clipart/footnoteQt4.png
24008 scaleBeforeRotation
24016 where you can enter the footnote text.
24017 If you want to turn existing text into a footnote, mark it and click on
24039 to text, press the Backspace key when the cursor is in the first position
24048 , or press the Delete key when the cursor is in the very last position of
24060 \begin_layout Standard
24061 Here is an example footnote:
24069 \begin_layout Plain Layout
24070 \begin_inset CommandInset label
24072 name "foot:This-is-an"
24076 This is an example footnote.
24089 \begin_layout Plain Layout
24093 newcounter{MyRepeatFoot}
24096 \begin_layout Plain Layout
24100 setcounter{MyRepeatFoot}{
24110 \begin_layout Standard
24111 The footnote will appear in the output as a superscript number at the text
24112 position where the footnote box is placed.
24113 The footnote text is placed at the bottom of the current page.
24114 The footnote number is calculated by LaTeX, the numbers are consecutive.
24115 It depends on your document-class, if the footnote number is reset for
24119 \begin_layout Standard
24120 Footnotes can be referenced like floats: Insert a label into the footnote
24121 and cross-reference this label in the text as described in section
24122 \begin_inset space ~
24126 \begin_inset CommandInset ref
24128 reference "sec:Referencing-Floats"
24133 \begin_inset Newline newline
24136 This is a cross-reference of Footnote
24137 \begin_inset space ~
24141 \begin_inset CommandInset ref
24143 reference "foot:This-is-an"
24150 \begin_layout Standard
24151 \begin_inset VSpace defskip
24154 To use footnotes within tables, you have to use minipages, see section
24155 \begin_inset space ~
24159 \begin_inset CommandInset ref
24161 reference "sec:Minipages"
24166 Footnotes within longtables are described in section
24167 \begin_inset space ~
24171 \begin_inset CommandInset ref
24173 reference "sub:Footnotes-in-Longtables"
24180 \begin_layout Standard
24181 \begin_inset VSpace defskip
24184 To create only a mark for a footnote, use the command
24188 footnotemark[number]
24191 This is used when you have the same annotation several times in a text
24192 but doesn't want to print the footnote text every time.
24193 \begin_inset Newline newline
24196 As you don't know the number of the repeating footnote while you are writing
24197 the text, you have to store its number.
24198 For the following footnote mark example, these commands were inserted in
24199 TeX-Code behind Footnote
24200 \begin_inset space ~
24204 \begin_inset CommandInset ref
24206 reference "foot:This-is-an"
24210 to store the footnote number:
24213 \begin_layout Standard
24218 newcounter{MyRepeatFoot}
24219 \begin_inset Newline newline
24224 setcounter{MyRepeatFoot}{
24229 \begin_layout Standard
24230 The footnote mark was then created with this command:
24233 \begin_layout Standard
24243 \begin_layout Standard
24244 Here is an example footnote mark:
24252 \begin_layout Plain Layout
24266 \begin_layout Subsection
24268 \begin_inset CommandInset label
24270 name "sub:Footnote-Numbering"
24278 \begin_layout Plain Layout
24279 Footnotes ! Numbering
24287 \begin_layout Standard
24288 To reset the footnote number back to 1 after each section
24290 , add this command to your document preamble:
24293 \begin_layout Standard
24298 @addtoreset{footnote}{section}
24301 \begin_layout Standard
24302 \begin_inset VSpace bigskip
24305 The following preamble command changes the footnote numbering style to small
24309 \begin_layout Standard
24321 \begin_layout Standard
24325 \begin_layout Plain Layout
24338 This is a footnote with roman numbering:
24342 \begin_layout Plain Layout
24343 This is an example footnote with roman numbering.
24351 \begin_layout Standard
24352 To change the numbering style to capital roman numerals replace in the command
24367 \begin_inset Quotes eld
24371 \begin_inset Quotes erd
24374 footnotes with capital or small Latin letters use
24388 \begin_inset Quotes eld
24392 \begin_inset Quotes erd
24395 footnotes with symbols use
24404 \begin_layout Standard
24405 \begin_inset Note Greyedout
24408 \begin_layout Plain Layout
24413 You can only number 26 footnotes with Latin letters, because this numbering
24414 is limited to single letters.
24420 \begin_inset Newline newline
24424 \begin_inset Note Greyedout
24427 \begin_layout Plain Layout
24432 You can only number 9 footnotes with symbols.
24440 \begin_layout Standard
24441 To return to the default numbering style when you changed to another one,
24454 in the command above.
24458 \begin_layout Plain Layout
24474 \begin_layout Standard
24475 \begin_inset VSpace bigskip
24481 \begin_layout Standard
24482 If you want to have footnotes numbered in the scheme
24483 \begin_inset Quotes eld
24487 \begin_inset Quotes erd
24490 , add the following command to your document preamble:
24493 \begin_layout Standard
24498 numberwithin{footnote}{chapter}
24501 \begin_layout Standard
24502 To be able to use the command
24511 \begin_inset space ~
24516 in the document settings the option
24519 \begin_inset space ~
24523 \begin_inset space ~
24527 \begin_inset space ~
24535 \begin_layout Standard
24539 \begin_layout Plain Layout
24543 numberwithin{footnote}{chapter}
24548 This is another example footnote:
24554 \begin_layout Plain Layout
24555 This is a footnote numbered in the scheme
24556 \begin_inset Quotes eld
24560 \begin_inset Quotes erd
24574 \begin_layout Plain Layout
24590 \begin_layout Standard
24591 \begin_inset Note Greyedout
24594 \begin_layout Plain Layout
24605 always prints out the footnote number as arabic number; previous redefinitions
24606 to get non-arabic numbers are overwritten.
24614 \begin_layout Standard
24615 So to get for example the scheme
24616 \begin_inset Quotes eld
24622 \begin_inset Quotes erd
24625 , use this command instead of
24634 \begin_layout Standard
24648 \begin_layout Subsection
24653 \begin_layout Plain Layout
24654 Footnotes ! Placement
24662 \begin_layout Standard
24663 If you have several footnotes in one page, they appear without vertical
24664 space between them at the bottom of the page.
24665 To make them better readable you can e.
24666 \begin_inset space \thinspace{}
24670 \begin_inset space \space{}
24674 \begin_inset space \thinspace{}
24677 mm space with the following preamble command:
24680 \begin_layout Standard
24690 \begin_inset Newline newline
24704 \begin_layout Standard
24705 \begin_inset VSpace bigskip
24708 In a two-column document the footnotes appear at the bottom of every column,
24710 \begin_inset space ~
24714 \begin_inset CommandInset ref
24716 reference "fig:Standard-footnote-placement"
24721 If the footnotes should only appear at the bottom of the right column,
24723 \begin_inset space ~
24727 \begin_inset CommandInset ref
24729 reference "fig:Footnote-placement-in"
24733 , use the LaTeX-package
24741 \begin_layout Plain Layout
24742 LaTeX-packages ! ftnright
24747 with this command in the document preamble:
24750 \begin_layout Standard
24755 usepackage{ftnright}
24758 \begin_layout Standard
24759 \begin_inset Float figure
24765 \begin_layout Plain Layout
24769 \begin_layout Plain Layout
24779 \begin_inset Graphics
24780 filename clipart/without_fntright.pdf
24782 scaleBeforeRotation
24790 \begin_layout Plain Layout
24800 \begin_layout Plain Layout
24801 \begin_inset Caption
24803 \begin_layout Plain Layout
24804 \begin_inset CommandInset label
24806 name "fig:Standard-footnote-placement"
24810 Standard footnote placement in two-column documents.
24823 \begin_layout Standard
24824 \begin_inset Float figure
24830 \begin_layout Plain Layout
24834 \begin_layout Plain Layout
24844 \begin_inset Graphics
24845 filename clipart/with_fntright.pdf
24847 scaleBeforeRotation
24855 \begin_layout Plain Layout
24865 \begin_layout Plain Layout
24866 \begin_inset Caption
24868 \begin_layout Plain Layout
24869 \begin_inset CommandInset label
24871 name "fig:Footnote-placement-in"
24875 Footnote placement in two-column documents when the LaTeX-package
24892 \begin_layout Standard
24893 \begin_inset VSpace bigskip
24896 In some scientific literature it is usual to collect the footnotes and print
24897 them in a separate paragraph at the the end of a section, like in Figure
24898 \begin_inset space ~
24902 \begin_inset CommandInset ref
24904 reference "fig:Endnotes----footnotes"
24909 They are then so called
24910 \begin_inset Quotes eld
24914 \begin_inset Quotes erd
24921 \begin_layout Plain Layout
24927 To use endnotes instead of footnotes in your document, load the LaTeX-package
24936 \begin_layout Plain Layout
24937 LaTeX-packages ! endnotes
24942 with the document preamble lines
24945 \begin_layout Standard
24950 usepackage{endnotes}
24951 \begin_inset Newline newline
24963 \begin_layout Standard
24964 To insert the collected footnotes, insert the command
24967 \begin_layout Standard
24975 \begin_layout Standard
24976 in TeX-Code at the the end of a section or chapter.
24979 \begin_layout Standard
24980 \begin_inset Float figure
24985 \begin_layout Plain Layout
24990 \begin_layout Plain Layout
25000 \begin_inset Graphics
25001 filename clipart/endnotes.pdf
25002 scaleBeforeRotation
25010 \begin_layout Plain Layout
25020 \begin_layout Plain Layout
25021 \begin_inset Caption
25023 \begin_layout Plain Layout
25024 \begin_inset CommandInset label
25026 name "fig:Endnotes----footnotes"
25030 Endnotes – footnotes are printed in a separate paragraph at the end of sections
25044 \begin_layout Standard
25045 \begin_inset VSpace medskip
25048 The paragraph heading for the endnotes isn't automatically translated into
25049 the document language, this must be done manually.
25050 The following preamble command translate the default English name
25051 \begin_inset Quotes eld
25055 \begin_inset Quotes erd
25058 to the German translation
25059 \begin_inset Quotes eld
25063 \begin_inset Quotes erd
25069 \begin_layout Standard
25076 notesname}{Anmerkungen}
25079 \begin_layout Standard
25080 \begin_inset VSpace medskip
25083 The numbering of endnotes can be changed like the footnote numbering as
25084 described in section
25085 \begin_inset space ~
25089 \begin_inset CommandInset ref
25091 reference "sub:Footnote-Numbering"
25095 ; just replace the command
25108 To reset the endnote number use the command
25114 as described in section
25115 \begin_inset space ~
25119 \begin_inset CommandInset ref
25121 reference "sub:Footnote-Numbering"
25125 and replace the command parameter
25136 \begin_layout Standard
25137 To create only a mark for an endnote, use the command
25141 endnotemark[number]
25143 similar to the command
25149 , described in section
25150 \begin_inset space ~
25154 \begin_inset CommandInset ref
25156 reference "sec:Footnotes"
25163 \begin_layout Standard
25164 \begin_inset VSpace bigskip
25167 Footnotes can also be placed in the page margin and the footnote text alignment
25168 can be changed, see the LaTeX-package
25176 \begin_layout Plain Layout
25177 LaTeX-packages ! footmisc
25183 \begin_inset CommandInset citation
25189 for more information about this.
25192 \begin_layout Standard
25193 For various further footnote formatting issues have a look at LaTeX-books,
25195 \begin_inset CommandInset citation
25197 key "latexcompanion,latexguide,latexbook"
25204 \begin_layout Section
25209 \begin_layout Plain Layout
25210 Notes ! Margin Notes
25218 \begin_layout Standard
25219 Margin notes look and behave in LyX like footnotes.
25220 They are inserted via the menu
25222 Insert\SpecialChar \menuseparator
25224 \begin_inset space ~
25229 or the toolbar button
25230 \begin_inset Graphics
25231 filename ../images/marginalnote-insert.png
25233 scaleBeforeRotation
25248 \begin_inset Quotes eld
25252 \begin_inset Quotes erd
25255 appears where you can enter the text of the margin note.
25258 \begin_layout Standard
25259 At the side is an example margin note.
25264 \begin_inset Marginal
25267 \begin_layout Plain Layout
25268 This is a margin note.
25276 \begin_layout Standard
25277 Margin notes appear at the right side in single-sided documents.
25278 In double-sided documents they appear in the outer margin – left on even
25279 pages, right on odd pages.
25280 The text of margin notes is aligned opposite to the outer margin – right-aligne
25281 d when the note appears in the left margin.
25282 The first line of the margin note is placed at the position of the text
25283 line where it is inserted in the document.
25286 \begin_layout Standard
25287 \begin_inset VSpace bigskip
25290 To place the margin note in the inner margin, add the command
25293 \begin_layout Standard
25301 \begin_layout Standard
25302 in TeX-Code before a margin note.
25303 The new placement is valid for all following margin notes.
25308 \begin_layout Plain Layout
25318 \begin_inset Marginal
25321 \begin_layout Plain Layout
25322 This is a margin note in the inner margin.
25330 \begin_inset Newline newline
25336 \begin_inset Note Greyedout
25339 \begin_layout Plain Layout
25344 There is often not enough space in the inner margin so that the notes are
25345 not correctly displayed in the output.
25353 \begin_layout Standard
25354 To return to the default placement insert the command
25357 \begin_layout Standard
25365 \begin_layout Standard
25370 \begin_layout Plain Layout
25380 \begin_inset Note Greyedout
25383 \begin_layout Plain Layout
25388 The command is ignored when it is within a paragraph where also the command
25403 \begin_layout Standard
25404 \begin_inset VSpace bigskip
25411 \begin_inset Marginal
25414 \begin_layout Plain Layout
25415 AVeryLongMarginParWord that isn't hyphenated.
25423 Similar to the case described in section
25424 \begin_inset space ~
25428 \begin_inset CommandInset ref
25430 reference "sub:Multiple-Lines-in"
25434 , long words cannot be hyphenated when they are the first word in a margin
25436 To avoid this, insert 0
25437 \begin_inset space \thinspace{}
25440 pt horizontal space before the word
25445 \begin_inset Marginal
25448 \begin_layout Plain Layout
25449 \begin_inset space \hspace*{}
25453 AVeryLongMarginParWord that is hyphenated.
25461 \begin_layout Standard
25462 \begin_inset VSpace bigskip
25468 \begin_layout Standard
25469 \begin_inset Note Greyedout
25472 \begin_layout Plain Layout
25477 Margin notes can normally not be used inside tables, floats, and footnotes.
25485 \begin_layout Standard
25486 \begin_inset VSpace bigskip
25492 \begin_layout Standard
25496 \begin_layout Plain Layout
25506 \begin_inset Note Note
25509 \begin_layout Plain Layout
25510 The following section will only be displayed when the LaTeX-package
25522 \begin_layout Standard
25523 This restriction can be evaded by using the LaTeX-package
25531 \begin_layout Plain Layout
25532 LaTeX-packages ! marginnote
25538 By adding these two lines to your document preamble, the command used by
25539 LyX for margin notes is redefined to use the command provided by the
25546 \begin_layout Standard
25551 usepackage{marginnote}
25552 \begin_inset Newline newline
25564 \begin_layout Standard
25565 This is also used in this document because
25569 has another useful feature: You can set a vertical offset for the note.
25570 This is often needed when too many margin notes are too close together
25571 or for a better page layout.
25572 The offset is set in LyX as TeX-Code directly behind the margin note in
25576 \begin_layout Standard
25582 \begin_layout Standard
25583 where the offset is a length with one of the units listed in Table
25584 \begin_inset space ~
25588 \begin_inset CommandInset ref
25590 reference "tab:Units"
25595 A negative value shifts the note up, a positive value shifts it down.
25599 For example the margin note beside this text line is shifted up 1.5
25600 \begin_inset space \thinspace{}
25603 cm with the TeX-Code-command
25604 \begin_inset Quotes eld
25614 \begin_inset Quotes erd
25618 \begin_inset Marginal
25621 \begin_layout Plain Layout
25622 This margin note is shifted up 1.5
25623 \begin_inset space \thinspace{}
25626 cm from its original position.
25638 \begin_layout Plain Layout
25648 \begin_layout Standard
25649 \begin_inset VSpace medskip
25656 you can also change the alignment of the text in the margin note.
25657 For example the commands
25660 \begin_layout Standard
25667 raggedleftmarginnote}{
25670 \begin_inset Newline newline
25677 raggedrightmarginnote}{
25682 \begin_layout Standard
25683 set the alignment to centered.
25688 raggedleftmarginnote
25690 denotes margin notes that appear at the left side.
25697 \begin_layout Plain Layout
25703 raggedleftmarginnote}{
25708 \begin_layout Plain Layout
25714 raggedrightmarginnote}{
25722 \begin_inset Marginal
25725 \begin_layout Plain Layout
25726 The text of this margin note is centered.
25737 \begin_layout Standard
25744 raggedleftmarginnote}{
25747 \begin_inset Newline newline
25754 raggedrightmarginnote}{
25763 \begin_layout Plain Layout
25769 raggedleftmarginnote}{
25774 \begin_layout Plain Layout
25780 raggedrightmarginnote}{
25790 \begin_layout Standard
25791 \begin_inset VSpace medskip
25794 For the other features of
25798 we refer to its documentation
25799 \begin_inset CommandInset citation
25808 \begin_layout Standard
25809 \begin_inset VSpace bigskip
25812 You can adjust the layout of margin notes by changing its definition.
25813 To create for example a header for all margin notes with the underlined,
25814 sans-serif, and bold header text
25815 \begin_inset Quotes eld
25827 \begin_inset Quotes erd
25830 , add this to your document preamble:
25833 \begin_layout Standard
25843 \begin_inset Newline newline
25853 \begin_inset Newline newline
25860 \begin_layout Plain Layout
25877 underbar{Attention!}}}%
25878 \begin_inset Newline newline
25885 \begin_layout Plain Layout
25903 \begin_layout Standard
25910 \begin_layout Plain Layout
25921 \begin_layout Plain Layout
25932 \begin_layout Plain Layout
25940 underbar{Attention!}}}%
25943 \begin_layout Plain Layout
25957 \begin_inset Marginal
25960 \begin_layout Plain Layout
25961 This is a margin note with a defined heading.
25973 \begin_layout Plain Layout
25987 \begin_layout Plain Layout
26004 \begin_inset Note Note
26007 \begin_layout Plain Layout
26008 The margin note format is changed only for this example.
26016 \begin_layout Standard
26020 \begin_layout Plain Layout
26030 \begin_inset Note Note
26033 \begin_layout Plain Layout
26034 The following will be displayed when the LaTeX-package
26046 \begin_layout Standard
26047 You need to install the LaTeX-package
26051 to see the following part of this section in the output.
26054 \begin_layout Standard
26058 \begin_layout Plain Layout
26070 \begin_layout Chapter
26074 \begin_layout Section
26079 \begin_layout Plain Layout
26080 Boxes ! Introduction
26088 \begin_layout Standard
26089 Boxes are used to format a block of text.
26090 Boxes can be used to write documents with multiple languages, see section
26091 \begin_inset space ~
26095 \begin_inset CommandInset ref
26097 reference "sec:Minipages"
26101 , to frame texts, see section
26102 \begin_inset space ~
26106 \begin_inset CommandInset ref
26108 reference "sec:Decoration"
26112 , to prevent words to be hyphenated, see section
26113 \begin_inset space ~
26117 \begin_inset CommandInset ref
26119 reference "sec:Prevent-Hyphenation"
26123 , to align text, see section
26124 \begin_inset space ~
26128 \begin_inset CommandInset ref
26130 reference "sub:Vertical-Alignment"
26134 , or to set the background color of texts, see section
26135 \begin_inset space ~
26139 \begin_inset CommandInset ref
26141 reference "sec:Colored-Boxes"
26148 \begin_layout Standard
26149 Boxes can be inserted with the menu
26151 Insert\SpecialChar \menuseparator
26154 or the toolbar button
26155 \begin_inset Graphics
26156 filename ../images/box-insert.png
26158 scaleBeforeRotation
26163 A grey box with the label
26168 \begin_inset Graphics
26169 filename clipart/BoxInsetDefaultQt4.png
26171 scaleBeforeRotation
26176 The box type can be specified by right-clicking on the box.
26177 The appearing box dialog offers the
26180 \begin_inset space ~
26198 is the default for new boxes and is explained in section
26199 \begin_inset space ~
26203 \begin_inset CommandInset ref
26205 reference "sec:Minipages"
26213 is described in section
26214 \begin_inset space ~
26218 \begin_inset CommandInset ref
26220 reference "sec:Parboxes"
26227 \begin_layout Standard
26228 Boxes aren't numbered and can therefore not be referenced like floats or
26232 \begin_layout Standard
26233 \begin_inset Note Greyedout
26236 \begin_layout Plain Layout
26241 Boxes must not be the item in an
26257 \begin_layout Standard
26258 \begin_inset Note Greyedout
26261 \begin_layout Plain Layout
26266 For an unknown reason you can only set the
26269 \begin_inset space ~
26278 when you use a framed box.
26282 \begin_inset space ~
26287 type and without frames are explained in section
26288 \begin_inset space ~
26292 \begin_inset CommandInset ref
26294 reference "sec:Prevent-Hyphenation"
26306 \begin_layout Section
26308 \begin_inset CommandInset label
26310 name "sec:Box-Dialog"
26318 \begin_layout Plain Layout
26327 \begin_layout Subsection
26332 \begin_layout Plain Layout
26341 \begin_layout Standard
26342 In the box dialog you can adjust the box geometry in the fields
26351 The available units for the geometry are explained in Table
26352 \begin_inset space ~
26356 \begin_inset CommandInset ref
26358 reference "tab:Units"
26367 offers the following additional sizes:
26370 \begin_layout Description
26371 Depth This is the plain text
26372 \begin_inset Quotes eld
26376 \begin_inset Quotes erd
26380 It ignores the total depth when there are multiple text lines in the box:
26381 \begin_inset Newline newline
26385 \begin_inset Newline newline
26389 \begin_inset Newline newline
26393 \begin_inset Box Boxed
26402 height_special "depth"
26405 \begin_layout Plain Layout
26407 Box height set to 1
26408 \begin_inset space \thinspace{}
26417 \begin_inset Newline newline
26421 \begin_inset Newline newline
26427 \begin_layout Description
26428 Height This is the heigth of the text that is inside the box.
26430 \begin_inset space \thinspace{}
26434 \begin_inset space \space{}
26437 2 for this size will set the box heigth to 2 times the text height:
26438 \begin_inset Box Boxed
26447 height_special "height"
26450 \begin_layout Plain Layout
26452 Box height set to 2
26453 \begin_inset space \thinspace{}
26464 \begin_layout Description
26466 \begin_inset space ~
26469 Height This is the Height
26470 \begin_inset space \thinspace{}
26474 \begin_inset space \thinspace{}
26478 \begin_inset Box Boxed
26487 height_special "totalheight"
26490 \begin_layout Plain Layout
26492 Box height set to 1
26493 \begin_inset space \thinspace{}
26497 \begin_inset space ~
26508 \begin_layout Description
26509 Width This sets the width of the box as heigth:
26510 \begin_inset Box Boxed
26519 height_special "width"
26522 \begin_layout Plain Layout
26524 Box height set to 1
26525 \begin_inset space \thinspace{}
26536 \begin_layout Subsection
26541 \begin_layout Plain Layout
26550 \begin_layout Standard
26551 When you have chosen an
26554 \begin_inset space ~
26559 , the vertical box alignment can be:
26562 \begin_layout Description
26563 Top This is an example text line.
26565 \begin_inset Box Boxed
26574 height_special "totalheight"
26577 \begin_layout Plain Layout
26579 This box is top-aligned.
26584 This is an example text line.
26587 \begin_layout Description
26588 Middle This is an example text line.
26590 \begin_inset Box Boxed
26599 height_special "totalheight"
26602 \begin_layout Plain Layout
26604 This box is middle-aligned.
26609 This is an example text line.
26612 \begin_layout Description
26613 Bottom This is an example text line.
26615 \begin_inset Box Boxed
26624 height_special "totalheight"
26627 \begin_layout Plain Layout
26629 This box is bottom-aligned.
26634 This is an example text line.
26637 \begin_layout Standard
26638 \begin_inset Note Greyedout
26641 \begin_layout Plain Layout
26646 The vertical box aligment can be lost in the output when you have two boxes
26647 in a line and one has e.
26648 \begin_inset space \thinspace{}
26652 \begin_inset space \space{}
26655 a shadow and the other one not.
26663 \begin_layout Standard
26664 The horizontal box alignment can be set via LyX's paragraph dialog when
26665 you set the box into its own paragraph.
26668 \begin_layout Standard
26669 \begin_inset VSpace bigskip
26672 When you have chosen an
26675 \begin_inset space ~
26680 , the box content can be vertical aligned to:
26683 \begin_layout Description
26684 top This is an example text line.
26686 \begin_inset Box Boxed
26695 height_special "totalheight"
26698 \begin_layout Plain Layout
26700 This box text is top-aligned.
26705 This is an example text line.
26708 \begin_layout Description
26709 middle This is an example text line.
26711 \begin_inset Box Boxed
26720 height_special "totalheight"
26723 \begin_layout Plain Layout
26725 This box text is middle-aligned.
26730 This is an example text line.
26733 \begin_layout Description
26734 bottom This is an example text line.
26736 \begin_inset Box Boxed
26745 height_special "totalheight"
26748 \begin_layout Plain Layout
26750 This box text is bottom-aligned.
26755 This is an example text line.
26758 \begin_layout Description
26759 stretch This is an example text line.
26761 \begin_inset Box Boxed
26770 height_special "totalheight"
26773 \begin_layout Plain Layout
26778 \begin_layout Plain Layout
26783 \begin_layout Plain Layout
26790 This is an example text line.
26793 \begin_layout Standard
26794 To stretch the box content, it must consist of more than one paragraph.
26795 In the example above every text line is in an own paragraph.
26798 \begin_layout Standard
26799 \begin_inset VSpace bigskip
26802 To align the box content horizontally you can use LyX's paragraph dialog
26803 when you have chosen an
26806 \begin_inset space ~
26814 \begin_layout Standard
26816 \begin_inset Box Boxed
26825 height_special "totalheight"
26828 \begin_layout Plain Layout
26833 \begin_layout Plain Layout
26838 \begin_layout Plain Layout
26848 \begin_layout Standard
26849 If you haven't set an
26852 \begin_inset space ~
26857 , you can align the box content horizontally in the box dialog.
26860 \begin_layout Standard
26862 \begin_inset Box Boxed
26871 height_special "totalheight"
26874 \begin_layout Plain Layout
26876 This box text is horizontally stretched.
26884 \begin_layout Subsection
26886 \begin_inset CommandInset label
26888 name "sec:Decoration"
26896 \begin_layout Plain Layout
26905 \begin_layout Standard
26906 The type of the box can be specified in the box-dialog in the drop-down
26912 The following types are possible:
26915 \begin_layout Description
26917 \begin_inset space ~
26921 \begin_inset space ~
26924 frame This draws a rectangle frame around the box.
26925 The frame line thickness has the size of
26933 \begin_inset Box Boxed
26942 height_special "totalheight"
26945 \begin_layout Plain Layout
26955 \begin_layout Description
26957 \begin_inset space ~
26961 \begin_inset space ~
26964 break When you use the decoration
26966 simple rectangular frame
26968 and no inner box, you can allow page breaks within a box.
26969 Note that then, in contrary to other framed boxes, the frame always uses
26970 the whole column width, the box is set as its own paragraph, and
26982 has no effect on this box type.
26983 The frame line thickness has the size of
26991 \begin_inset Box Framed
27000 height_special "totalheight"
27003 \begin_layout Plain Layout
27004 Allow page break box
27012 \begin_layout Description
27014 \begin_inset space ~
27018 \begin_inset space ~
27021 thin This draws an oval frame around the box.
27022 The frame line thickness has the size 0.4
27023 \begin_inset space \thinspace{}
27028 \begin_inset Box ovalbox
27037 height_special "totalheight"
27040 \begin_layout Plain Layout
27050 \begin_layout Description
27052 \begin_inset space ~
27056 \begin_inset space ~
27059 thick This draws an oval frame around the box.
27060 The frame line thickness has the size 0.8
27061 \begin_inset space \thinspace{}
27066 \begin_inset Box Ovalbox
27075 height_special "totalheight"
27078 \begin_layout Plain Layout
27088 \begin_layout Description
27090 \begin_inset space ~
27093 shadow This draws a rectangle frame with a shadow around the box.
27094 The frame line thickness has the size of
27100 , the shadow has a width of 4
27101 \begin_inset space \thinspace{}
27106 \begin_inset Box Shadowbox
27115 height_special "totalheight"
27118 \begin_layout Plain Layout
27128 \begin_layout Description
27130 \begin_inset space ~
27133 background This draws a box with red background color.
27134 In contrary to colored boxes
27138 \begin_layout Plain Layout
27140 \begin_inset space \thinspace{}
27144 \begin_inset CommandInset ref
27146 reference "sec:Colored-Boxes"
27155 , it always uses the whole column width and the box is set as its own paragraph.
27157 \begin_inset Box Shaded
27166 height_special "totalheight"
27169 \begin_layout Plain Layout
27170 Shaded background box
27178 \begin_layout Description
27180 \begin_inset space ~
27184 \begin_inset space ~
27187 frame This draws a double-line rectangle frame around the box.
27188 The line thickness of the inner frame is 0.75
27189 \begin_inset space \thinspace{}
27198 , the thickness of the outer frame is 1.5
27199 \begin_inset space \thinspace{}
27209 The distance between the lines is 1.5
27210 \begin_inset space \thinspace{}
27220 \begin_inset space \thinspace{}
27224 \begin_inset space \thinspace{}
27228 \begin_inset space \thinspace{}
27233 \begin_inset Box Doublebox
27242 height_special "totalheight"
27245 \begin_layout Plain Layout
27247 Double rectangular box
27255 \begin_layout Standard
27256 \begin_inset VSpace bigskip
27259 LyX's box label will reflect the different frame types.
27260 To be able to use all types, the LaTeX-package
27268 \begin_layout Plain Layout
27269 LaTeX-packages ! fancybox
27277 \begin_layout Section
27282 \begin_layout Plain Layout
27283 Boxes ! Customization
27291 \begin_layout Standard
27292 The default value for the size
27299 \begin_inset space \thinspace{}
27303 It can be changed with the following command in TeX-Code to e.
27304 \begin_inset space \thinspace{}
27308 \begin_inset space \space{}
27312 \begin_inset space \thinspace{}
27318 \begin_layout Standard
27328 \begin_layout Standard
27332 \begin_layout Plain Layout
27344 \begin_inset Box Boxed
27353 height_special "totalheight"
27356 \begin_layout Plain Layout
27358 Rectangular box with
27365 \begin_inset space \thinspace{}
27369 \begin_inset space \thinspace{}
27373 \begin_inset space \thinspace{}
27385 \begin_layout Plain Layout
27399 \begin_layout Standard
27400 \begin_inset VSpace bigskip
27403 The space between the frame and the box content is for all frame styles
27405 \begin_inset space \thinspace{}
27409 You can change it by setting the length
27416 For example the command
27419 \begin_layout Standard
27429 \begin_layout Standard
27430 sets the value to 10
27431 \begin_inset space \thinspace{}
27434 pt, like for the following box:
27437 \begin_layout Standard
27441 \begin_layout Plain Layout
27453 \begin_inset Box Boxed
27462 height_special "totalheight"
27465 \begin_layout Plain Layout
27467 Rectangular box with
27474 \begin_inset space \thinspace{}
27478 \begin_inset space \thinspace{}
27482 \begin_inset space \thinspace{}
27494 \begin_layout Plain Layout
27508 \begin_layout Standard
27509 \begin_inset VSpace bigskip
27512 The diameter of the round corners of the oval boxes can be set with the
27523 \begin_layout Standard
27531 \begin_layout Standard
27532 sets the diameter to 1
27533 \begin_inset space \thinspace{}
27540 \begin_layout Standard
27548 \begin_layout Standard
27549 sets the diameter to
27552 \begin_inset space \thinspace{}
27556 \begin_inset space \thinspace{}
27559 minimum(width and heigth of box)
27571 \begin_layout Standard
27575 \begin_layout Plain Layout
27585 \begin_inset Box Ovalbox
27594 height_special "totalheight"
27597 \begin_layout Plain Layout
27606 \begin_inset space \thinspace{}
27610 \begin_inset space \thinspace{}
27614 \begin_inset space \thinspace{}
27626 \begin_layout Plain Layout
27638 \begin_layout Standard
27639 \begin_inset VSpace bigskip
27642 The size of the shadow can be adjusted by changing the length
27650 \begin_inset space \thinspace{}
27653 pt for the following box by this command:
27656 \begin_layout Standard
27666 \begin_layout Standard
27670 \begin_layout Plain Layout
27682 \begin_inset Box Shadowbox
27691 height_special "totalheight"
27694 \begin_layout Plain Layout
27703 \begin_inset space \thinspace{}
27707 \begin_inset space \thinspace{}
27711 \begin_inset space \thinspace{}
27723 \begin_layout Plain Layout
27737 \begin_layout Standard
27738 \begin_inset VSpace bigskip
27744 \begin_layout Standard
27745 The default value for the size
27752 \begin_inset space \thinspace{}
27756 The default space between the note content and the frame is 9
27757 \begin_inset space \thinspace{}
27760 pt and can be changed with the value of
27767 For example the frame appearance of the following
27771 is set with the TeX-Code commands
27774 \begin_layout Standard
27782 \begin_inset Newline newline
27792 \begin_layout Standard
27796 \begin_layout Plain Layout
27805 \begin_layout Plain Layout
27817 \begin_inset Box Framed
27826 height_special "totalheight"
27829 \begin_layout Plain Layout
27843 \begin_layout Plain Layout
27852 \begin_layout Plain Layout
27866 \begin_layout Standard
27867 \begin_inset VSpace bigskip
27873 \begin_layout Standard
27878 boxes the default space between the box content and the box border is 3
27879 \begin_inset space \thinspace{}
27882 pt and can be changed with the value of
27889 The default background color red can either be changed locally with the
27894 definecolor{shadebox}
27896 or globally with the menu
27898 Tools\SpecialChar \menuseparator
27899 Preferences\SpecialChar \menuseparator
27900 Colors\SpecialChar \menuseparator
27902 \begin_inset space ~
27914 command is explained in section
27915 \begin_inset space ~
27919 \begin_inset CommandInset ref
27921 reference "sec:Colored-Tables"
27929 \begin_layout Plain Layout
27936 requires the LaTeX-package
27940 in the preamble, see section
27941 \begin_inset space ~
27945 \begin_inset CommandInset ref
27947 reference "sec:Colored-Boxes"
27956 For example the appearance of the following shaded background note is set
27957 with the TeX-Code commands
27960 \begin_layout Standard
27970 \begin_inset Newline newline
27977 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
27980 \begin_layout Standard
27984 \begin_layout Plain Layout
27993 \begin_layout Plain Layout
27997 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
28003 \begin_inset Box Shaded
28012 height_special "totalheight"
28015 \begin_layout Plain Layout
28018 This is yellow text in a
28028 box with dark green background.
28037 \begin_layout Plain Layout
28046 \begin_layout Plain Layout
28050 definecolor{shadecolor}{rgb}{1,0,0}
28058 \begin_layout Standard
28059 \begin_inset VSpace bigskip
28062 Changed lengths and widths are valid for all boxes following the commands
28066 \begin_layout Section
28068 \begin_inset CommandInset label
28070 name "sec:Minipages"
28078 \begin_layout Plain Layout
28087 \begin_layout Standard
28088 Minipages are treated by LaTeX as pages within pages and can therefore for
28089 example have their own footnotes.
28092 \begin_layout Standard
28093 Minipages are useful when you write documents with different languages.
28096 \begin_layout Standard
28097 Below are two example minipages side by side.
28098 Their width is set to 45
28099 \begin_inset space \thinspace{}
28102 col% and they are separated by a horizontal fill, that was inserted via
28105 Insert\SpecialChar \menuseparator
28107 \begin_inset space ~
28110 Formatting\SpecialChar \menuseparator
28112 \begin_inset space ~
28118 \begin_inset Newpage newpage
28124 \begin_layout Standard
28125 \begin_inset Box Frameless
28134 height_special "totalheight"
28137 \begin_layout Plain Layout
28140 Dies ist ein deutscher Text.
28141 Dies ist ein deutscher Text.
28142 Dies ist ein deutscher Text.
28143 Dies ist ein deutscher Text.
28144 Dies ist ein deutscher Text.
28145 Dies ist ein deutscher Text.
28146 Dies ist ein deutscher Text.
28147 Dies ist ein deutscher Text.
28148 Dies ist ein deutscher Text.
28149 Dies ist ein deutscher Text.
28150 Dies ist ein deutscher Text.
28151 Dies ist ein deutscher Text.
28152 Dies ist ein deutscher Text
28156 \begin_layout Plain Layout
28159 Dies ist eine deutsche Fußnote.
28165 Dies ist ein deutscher Text.
28166 Dies ist ein deutscher Text.
28172 \begin_inset space \hfill{}
28176 \begin_inset Box Frameless
28185 height_special "totalheight"
28188 \begin_layout Plain Layout
28189 This is an English Text.
28190 This is an English Text.
28191 This is an English Text.
28192 This is an English Text.
28193 This is an English Text.
28194 This is an English Text.
28195 This is an English Text.
28196 This is an English Text.
28197 This is an English Text.
28198 This is an English Text.
28199 This is an English Text.
28200 This is an English Text.
28201 This is an English Text.
28202 This is an English Text.
28203 This is an English Text.
28204 This is an English Text.
28208 \begin_layout Plain Layout
28209 This is an English footnote.
28214 This is an English Text.
28223 \begin_layout Standard
28224 \begin_inset VSpace bigskip
28227 Another application for minipages are footnotes within tables.
28228 Due to a LaTeX restriction footnotes within tables doesn't appear at the
28229 bottom of the current page.
28230 But when you put the table with the footnote to a minipage, the footnote
28231 will appear at its bottom, numbered with Latin letters.
28232 The footnote number is reset to 1 in every minipage but not outside the
28236 \begin_layout Standard
28237 The footnote of this table doesn't appear:
28238 \begin_inset Tabular
28239 <lyxtabular version="3" rows="3" columns="4">
28241 <column alignment="center" valignment="top" width="0pt">
28242 <column alignment="center" valignment="top" width="0pt">
28243 <column alignment="center" valignment="top" width="0pt">
28244 <column alignment="center" valignment="top" width="0pt">
28246 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28249 \begin_layout Plain Layout
28255 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28258 \begin_layout Plain Layout
28264 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28267 \begin_layout Plain Layout
28272 \begin_layout Plain Layout
28273 This is a footnote within a table.
28283 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28286 \begin_layout Plain Layout
28294 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28297 \begin_layout Plain Layout
28303 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28306 \begin_layout Plain Layout
28312 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28315 \begin_layout Plain Layout
28321 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28324 \begin_layout Plain Layout
28332 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28335 \begin_layout Plain Layout
28341 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28344 \begin_layout Plain Layout
28350 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28353 \begin_layout Plain Layout
28359 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28362 \begin_layout Plain Layout
28376 \begin_layout Standard
28378 \begin_inset Box Frameless
28387 height_special "totalheight"
28390 \begin_layout Plain Layout
28392 \begin_inset Tabular
28393 <lyxtabular version="3" rows="3" columns="4">
28395 <column alignment="center" valignment="top" width="0pt">
28396 <column alignment="center" valignment="top" width="0pt">
28397 <column alignment="center" valignment="top" width="0pt">
28398 <column alignment="center" valignment="top" width="0pt">
28400 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28403 \begin_layout Plain Layout
28409 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28412 \begin_layout Plain Layout
28418 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28421 \begin_layout Plain Layout
28426 \begin_layout Plain Layout
28427 This is a footnote within a table.
28437 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28440 \begin_layout Plain Layout
28448 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28451 \begin_layout Plain Layout
28457 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28460 \begin_layout Plain Layout
28466 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28469 \begin_layout Plain Layout
28475 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28478 \begin_layout Plain Layout
28486 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28489 \begin_layout Plain Layout
28495 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28498 \begin_layout Plain Layout
28504 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28507 \begin_layout Plain Layout
28513 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28516 \begin_layout Plain Layout
28535 \begin_layout Standard
28536 \begin_inset VSpace bigskip
28539 The document-wide paragraph settings are ignored within minipages.
28540 That means that there will be no space between paragraphs in minipages
28541 although you set it to e.
28542 \begin_inset space \thinspace{}
28546 \begin_inset space \space{}
28553 in the document settings.
28556 \begin_layout Standard
28557 Minipages can also be used to set a background color for text parts, see
28559 \begin_inset space ~
28563 \begin_inset CommandInset ref
28565 reference "sub:Color-for-Paragraphs"
28572 \begin_layout Standard
28573 \begin_inset Note Greyedout
28576 \begin_layout Plain Layout
28581 You cannot have floats or margin notes inside minipages but minipages can
28582 be used inside tables, floats, and other boxes.
28590 \begin_layout Section
28592 \begin_inset CommandInset label
28594 name "sec:Parboxes"
28602 \begin_layout Plain Layout
28611 \begin_layout Standard
28612 Parboxes are very similar to minipages with the difference that they cannot
28614 The main difference to minipages is that minipages are in contrary to parboxes
28615 no real boxes but LaTeX-environments.
28618 \begin_layout Standard
28620 \begin_inset Box Frameless
28629 height_special "totalheight"
28632 \begin_layout Plain Layout
28633 This a text within a parbox.
28634 This a text within a parbox.
28637 \begin_layout Plain Layout
28638 This footnote won't appear:
28642 \begin_layout Plain Layout
28643 This footnote is inside a parbox and will therefore not appear.
28656 \begin_layout Section
28657 Boxes for Words and Characters
28661 \begin_layout Plain Layout
28662 Boxes ! for Characters
28670 \begin_layout Subsection
28671 Prevent Hyphenation
28672 \begin_inset CommandInset label
28674 name "sec:Prevent-Hyphenation"
28682 \begin_layout Plain Layout
28683 Boxes ! to Prevent Hyphenation
28691 \begin_layout Standard
28692 You can use a special kind of boxes to prevent words or text to be hyphenated.
28693 \begin_inset Newline newline
28696 Here is an example text:
28699 \begin_layout Standard
28700 This line is an example to show how you can prevent the hyphenation of
28701 \begin_inset Quotes eld
28705 \begin_inset Quotes erd
28711 \begin_layout Standard
28712 To prevent the hyphenation of the word
28713 \begin_inset Quotes eld
28717 \begin_inset Quotes erd
28723 \begin_layout Standard
28731 \begin_layout Standard
28732 in TeX-Code before the word.
28733 Behind the word insert a closing brace
28734 \begin_inset Quotes eld
28742 \begin_inset Quotes erd
28748 \begin_layout Standard
28749 This is the result:
28752 \begin_layout Standard
28753 This line is an example to show how you can prevent the hyphenation of
28757 \begin_layout Plain Layout
28767 \begin_inset Quotes eld
28771 \begin_inset Quotes erd
28778 \begin_layout Plain Layout
28788 \begin_layout Standard
28789 You can alternatively set the command
28790 \begin_inset Quotes eld
28800 \begin_inset Quotes grd
28803 as TeX-Code directly before the word:
28806 \begin_layout Standard
28807 This line is an example to show how you can prevent the hyphenation of
28808 \begin_inset Quotes eld
28815 \begin_layout Plain Layout
28825 \begin_inset Quotes erd
28831 \begin_layout Standard
28832 Of course the word now protrudes over the side margin.
28833 To avoid this, add via the menu
28835 Insert\SpecialChar \menuseparator
28837 \begin_inset space ~
28840 Formatting\SpecialChar \menuseparator
28842 \begin_inset space ~
28850 arg "newline-insert newline"
28853 ) a line break before the word:
28856 \begin_layout Standard
28857 This line is an example to show how you can prevent the hyphenation of
28858 \begin_inset Newline newline
28865 \begin_layout Plain Layout
28875 \begin_inset Quotes eld
28879 \begin_inset Quotes erd
28886 \begin_layout Plain Layout
28896 \begin_layout Subsection
28898 \begin_inset CommandInset label
28900 name "sub:Vertical-Alignment"
28908 \begin_layout Plain Layout
28909 Boxes ! for Vertical Alignment
28918 \begin_layout Plain Layout
28927 \begin_layout Standard
28928 With the help of the command
28934 you can align words, characters or other boxes vertically to the surrounding
28942 is used with the following scheme:
28945 \begin_layout Standard
28950 raisebox{lift}[height][depth]{box content}
28953 \begin_layout Standard
28954 The lift can be a positive value to raise the box or a negative value to
28958 \begin_layout Standard
28959 To align for example the word
28960 \begin_inset Quotes eld
28964 \begin_inset Quotes erd
28967 so that the bottom of the
28968 \begin_inset Quotes eld
28972 \begin_inset Quotes erd
28976 \begin_inset Quotes eld
28980 \begin_inset Quotes erd
28983 is at the baseline, insert the command
28986 \begin_layout Standard
28996 \begin_layout Standard
28997 in TeX-Code before the word.
28998 Behind the word insert a closing brace
28999 \begin_inset Quotes eld
29007 \begin_inset Quotes erd
29011 \begin_inset Newline newline
29014 This is the result:
29017 \begin_layout Standard
29018 This is a text line with the word
29022 \begin_layout Plain Layout
29034 \begin_inset Quotes eld
29038 \begin_inset Quotes erd
29045 \begin_layout Plain Layout
29055 \begin_layout Standard
29056 \begin_inset VSpace bigskip
29059 When you raise or lower characters in a line, the line distance will be
29063 \begin_layout Standard
29064 This is a text line with the word
29068 \begin_layout Plain Layout
29080 \begin_inset Quotes eld
29084 \begin_inset Quotes erd
29091 \begin_layout Plain Layout
29099 \begin_inset Newline newline
29102 This is a text line with the word
29106 \begin_layout Plain Layout
29116 \begin_inset Quotes eld
29120 \begin_inset Quotes erd
29127 \begin_layout Plain Layout
29137 \begin_layout Standard
29138 If you want to prevent this for a certain reason, set the box height to
29143 \begin_layout Standard
29153 \begin_layout Standard
29154 This is a text line with the word
29158 \begin_layout Plain Layout
29170 \begin_inset Quotes eld
29174 \begin_inset Quotes erd
29181 \begin_layout Plain Layout
29189 \begin_inset Newline newline
29192 This is a text line with the word
29196 \begin_layout Plain Layout
29200 raisebox{0.5cm}[0pt]{
29206 \begin_inset Quotes eld
29210 \begin_inset Quotes erd
29217 \begin_layout Plain Layout
29227 \begin_layout Section
29229 \begin_inset CommandInset label
29231 name "sec:Colored-Boxes"
29239 \begin_layout Plain Layout
29248 \begin_layout Subsection
29253 \begin_layout Plain Layout
29262 \begin_layout Standard
29263 To color the background of text the text must be put into a so called
29264 \begin_inset Quotes eld
29268 \begin_inset Quotes erd
29272 This requires that the LaTeX-package
29280 \begin_layout Plain Layout
29281 LaTeX-packages ! color
29286 is loaded in the document preamble with the command
29289 \begin_layout Standard
29294 @ifundefined{textcolor}
29295 \begin_inset Newline newline
29302 \begin_layout Plain Layout
29313 usepackage{color}}{}
29316 \begin_layout Standard
29321 will be loaded automatically by LyX when you color text
29325 \begin_layout Plain Layout
29326 To avoid that it is loaded twice the command
29340 \begin_layout Standard
29341 \begin_inset VSpace medskip
29344 Colorboxes are created with the command
29351 This will be used with the following scheme:
29354 \begin_layout Standard
29359 colorbox{color}{box content}
29362 \begin_layout Standard
29363 The box content can also be a box and colorboxes can also be within other
29367 \begin_layout Standard
29368 The following colors are predefined:
29369 \begin_inset Newline newline
29408 \begin_inset Newline newline
29411 You can also define your own color as described in section
29412 \begin_inset space ~
29416 \begin_inset CommandInset ref
29418 reference "sec:Colored-Tables"
29425 \begin_layout Standard
29427 \begin_inset space \thinspace{}
29431 \begin_inset space \space{}
29434 a red background for a word, insert the command
29437 \begin_layout Standard
29445 \begin_layout Standard
29446 before the word in TeX-Code.
29447 Behind the word insert a closing brace
29448 \begin_inset Quotes eld
29456 \begin_inset Quotes erd
29460 \begin_inset Newline newline
29463 This is the result:
29466 \begin_layout Standard
29467 This is a line where the word
29471 \begin_layout Plain Layout
29481 \begin_inset Quotes eld
29485 \begin_inset Quotes erd
29492 \begin_layout Plain Layout
29499 has a red background.
29502 \begin_layout Standard
29503 \begin_inset VSpace bigskip
29506 If you would have the box frame in a different color, you can use the command
29513 with the following scheme:
29516 \begin_layout Standard
29521 fcolorbox{frame color}{box color}{box content}
29524 \begin_layout Standard
29538 The frame thickness and the space between the frame and the box content
29539 can be adjusted with the lengths
29551 , respectively, as described in section
29552 \begin_inset space ~
29556 \begin_inset CommandInset ref
29558 reference "sec:Decoration"
29565 \begin_layout Standard
29566 For the following example the command
29569 \begin_layout Standard
29574 fcolorbox{cyan}{magenta}{
29577 \begin_layout Standard
29581 \begin_layout Standard
29582 Here is an example where the frame line thickness was set to 1
29583 \begin_inset space \thinspace{}
29587 \begin_inset Newline newline
29594 \begin_layout Plain Layout
29609 \begin_layout Plain Layout
29613 fcolorbox{cyan}{magenta}{
29618 This is text within a colored, framed box.
29622 \begin_layout Plain Layout
29632 \begin_layout Standard
29633 \begin_inset VSpace bigskip
29636 Of course you can also have colored text inside a colorbox:
29637 \begin_inset Newline newline
29644 \begin_layout Plain Layout
29648 fcolorbox{cyan}{magenta}{
29655 This is colored text within a colored, framed box.
29661 \begin_layout Plain Layout
29672 \begin_layout Plain Layout
29686 \begin_layout Standard
29689 \begin_inset VSpace medskip
29695 \begin_layout Standard
29696 \begin_inset Note Greyedout
29699 \begin_layout Plain Layout
29704 Text in colorboxes cannot have line breaks.
29705 To color multiple text lines or paragraphs, use a box inside a colorbox
29706 as described in the following.
29714 \begin_layout Subsection
29715 Color for Paragraphs
29716 \begin_inset CommandInset label
29718 name "sub:Color-for-Paragraphs"
29726 \begin_layout Plain Layout
29727 Color ! for Paragraphs
29735 \begin_layout Standard
29736 To set the background color for more than one text line, put the text into
29738 Before the minipage insert the
29747 \begin_layout Standard
29755 \begin_layout Standard
29757 Behind the minipage insert a closing brace
29758 \begin_inset Quotes eld
29766 \begin_inset Quotes erd
29772 \begin_layout Standard
29776 \begin_layout Plain Layout
29780 colorbox{lightgrey}{
29786 \begin_inset Box Frameless
29795 height_special "totalheight"
29798 \begin_layout Plain Layout
29799 This is text with background color.
29800 This is text with background color.
29803 \begin_layout Plain Layout
29804 \begin_inset VSpace defskip
29807 The text can have footnotes
29811 \begin_layout Plain Layout
29812 Another example footnote
29817 and can include tables and figures.
29820 \begin_layout Plain Layout
29822 \begin_inset Tabular
29823 <lyxtabular version="3" rows="3" columns="3">
29825 <column alignment="center" valignment="top" width="0">
29826 <column alignment="center" valignment="top" width="0">
29827 <column alignment="center" valignment="top" width="0">
29829 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29832 \begin_layout Plain Layout
29838 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29841 \begin_layout Plain Layout
29847 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29850 \begin_layout Plain Layout
29858 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29861 \begin_layout Plain Layout
29867 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29870 \begin_layout Plain Layout
29872 \begin_inset Quotes erd
29880 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29883 \begin_layout Plain Layout
29891 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29894 \begin_layout Plain Layout
29900 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29903 \begin_layout Plain Layout
29909 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29912 \begin_layout Plain Layout
29932 \begin_layout Plain Layout
29942 \begin_layout Section
29943 Rotated and Scaled Boxes
29946 \begin_layout Standard
29947 To use the the commands described in this section, the LaTeX-package
29955 \begin_layout Plain Layout
29956 LaTeX-packages ! graphicx
29961 needs to be loaded in the document preamble with the command
29964 \begin_layout Standard
29969 @ifundefined{rotatebox}
29970 \begin_inset Newline newline
29977 \begin_layout Plain Layout
29988 usepackage{graphicx}}{}
29991 \begin_layout Standard
29992 \begin_inset Note Greyedout
29995 \begin_layout Plain Layout
30000 Some DVI-viewers can't display rotated or scaled material.
30008 \begin_layout Standard
30009 \begin_inset Note Greyedout
30012 \begin_layout Plain Layout
30017 Floats mustn't be inside a rotated or scaled box.
30025 \begin_layout Subsection
30030 \begin_layout Plain Layout
30040 \begin_layout Plain Layout
30050 \begin_layout Plain Layout
30060 \begin_layout Plain Layout
30061 Table Customization ! Rotating
30069 \begin_layout Standard
30070 To rotate material, you can put it into a rotated box.
30071 Such a box is created using the command
30077 in TeX-Code with the following scheme:
30080 \begin_layout Standard
30085 rotatebox[rotation origin]{rotation angle}{box content}
30088 \begin_layout Standard
30089 The rotation origin is specified in the form
30094 The following positions are possible:
30114 (top), and also expedient combinations of the four base positions.
30119 means, that the rotation origin is at the top left corner of the box.
30120 When no rotation origin is specified, the position
30125 The rotation angle is a number that can be negative that specifies the
30127 The rotation direction is counterclockwise.
30130 \begin_layout Standard
30131 In the following example the command
30135 rotatebox[origin=c]{60}{
30137 was inserted as TeX-Code before the text
30138 \begin_inset Quotes eld
30142 \begin_inset Quotes erd
30145 ; after the text the box was closed by a closing brace
30152 \begin_layout Standard
30157 \begin_layout Plain Layout
30161 rotatebox[origin=c]{60}{
30170 \begin_layout Plain Layout
30180 \begin_layout Standard
30181 The box content can also be another box or an inline formula:
30184 \begin_layout Standard
30189 \begin_layout Plain Layout
30193 rotatebox[origin=r]{-60}{
30199 \begin_inset Box Doublebox
30208 height_special "totalheight"
30211 \begin_layout Plain Layout
30221 \begin_layout Plain Layout
30232 \begin_layout Plain Layout
30236 rotatebox[origin=lb]{60}{
30242 \begin_inset Formula $\int A\,\mathrm{d}x=B$
30249 \begin_layout Plain Layout
30259 \begin_layout Standard
30260 or an image or table:
30263 \begin_layout Standard
30268 \begin_layout Plain Layout
30272 rotatebox[origin=lb]{90}{
30278 \begin_inset Graphics
30279 filename clipart/platypus.eps
30289 \begin_layout Plain Layout
30296 with a rotated image
30300 \begin_layout Plain Layout
30304 rotatebox[origin=l]{-90}{
30310 \begin_inset Tabular
30311 <lyxtabular version="3" rows="2" columns="2">
30313 <column alignment="center" valignment="top" width="0">
30314 <column alignment="center" valignment="top" width="0">
30316 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30319 \begin_layout Plain Layout
30325 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30328 \begin_layout Plain Layout
30336 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30339 \begin_layout Plain Layout
30345 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30348 \begin_layout Plain Layout
30363 \begin_layout Plain Layout
30373 \begin_layout Subsection
30378 \begin_layout Plain Layout
30388 \begin_layout Plain Layout
30398 \begin_layout Plain Layout
30408 \begin_layout Plain Layout
30409 Table Customization ! Scaling
30417 \begin_layout Standard
30418 To scale material the commands
30430 can be used as TeX-Code.
30433 \begin_layout Standard
30440 is used with the following scheme:
30443 \begin_layout Standard
30448 scalebox{horizontal}[vertical]{box content}
30451 \begin_layout Standard
30452 Horizontal and vertical are the corresponding scaling factors.
30453 If no vertical scaling factor is given, the horizontal factor will also
30454 be used as vertical one.
30457 \begin_layout Standard
30464 creates for example a double size
30468 \begin_layout Plain Layout
30481 \begin_layout Plain Layout
30488 , compared to the document text size.
30491 \begin_layout Standard
30496 scalebox{2}[1]{Hello}
30498 in contrary distorts the
30502 \begin_layout Plain Layout
30515 \begin_layout Plain Layout
30525 \begin_layout Standard
30526 If a the scaling factor is negative, the box content will be mirrored.
30527 Therefore the command
30531 scalebox{-1}[1]{Hello}
30533 can be used to create mirror writing:
30537 \begin_layout Plain Layout
30550 \begin_layout Plain Layout
30560 \begin_layout Standard
30565 scalebox{1}[-1]{Hello}
30571 \begin_layout Plain Layout
30584 \begin_layout Plain Layout
30594 \begin_layout Standard
30599 scalebox{-1}[1]{box content}
30601 there exists the command
30602 \begin_inset Newline newline
30609 reflectbox{box content}
30614 \begin_layout Standard
30615 \begin_inset VSpace bigskip
30624 is used to scale the box to a defined width and height.
30625 The command scheme is:
30628 \begin_layout Standard
30633 resizebox{width}{height}{box content}
30636 \begin_layout Standard
30637 Is one of the two command arguments given as exclamation mark
30641 , the size is set so that the aspect ratio of the box content is kept.
30644 \begin_layout Standard
30649 resizebox{2cm}{1cm}{Hello}
30655 \begin_layout Plain Layout
30659 resizebox{2cm}{1cm}{
30668 \begin_layout Plain Layout
30676 \begin_inset Newline newline
30683 resizebox{2cm}{!}{Hello}
30689 \begin_layout Plain Layout
30702 \begin_layout Plain Layout
30712 \begin_layout Standard
30713 \begin_inset VSpace bigskip
30717 \begin_inset Note Greyedout
30720 \begin_layout Plain Layout
30737 are set to zero, no LaTeX-errors occur when exporting the document but
30738 the exported files can not or only partly be displayed.
30746 \begin_layout Standard
30747 \begin_inset VSpace bigskip
30753 \begin_layout Standard
30754 The boxes can be combined in any order.
30756 \begin_inset space \thinspace{}
30760 \begin_inset space \space{}
30764 \begin_inset Newline newline
30771 rotatebox[origin=c]{-45}{
30775 reflectbox{Hello}}}
30776 \begin_inset Newline newline
30784 \begin_layout Standard
30789 \begin_layout Plain Layout
30793 rotatebox[origin=c]{-45}{
30806 \begin_layout Plain Layout
30816 \begin_layout Standard
30818 Images, tables, and inline formulas are allowed as box content:
30821 \begin_layout Standard
30826 \begin_layout Plain Layout
30830 rotatebox[origin=c]{-30}{
30840 \begin_inset Graphics
30841 filename clipart/platypus.eps
30851 \begin_layout Plain Layout
30862 \begin_layout Plain Layout
30866 rotatebox[origin=c]{-45}{
30876 \begin_inset Tabular
30877 <lyxtabular version="3" rows="2" columns="2">
30879 <column alignment="center" valignment="top" width="0">
30880 <column alignment="center" valignment="top" width="0">
30882 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30885 \begin_layout Plain Layout
30891 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30894 \begin_layout Plain Layout
30902 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30905 \begin_layout Plain Layout
30911 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30914 \begin_layout Plain Layout
30929 \begin_layout Plain Layout
30940 \begin_layout Plain Layout
30944 rotatebox[origin=c]{-45}{
30954 \begin_inset Formula $\int A\,\mathrm{d}x=B$
30961 \begin_layout Plain Layout
30971 \begin_layout Standard
30972 When the global formula style
30976 is used in the document
30980 \begin_layout Plain Layout
30982 \begin_inset Quotes eld
30986 \begin_inset Quotes erd
30989 is added to the document class options.
30994 , also display formulas can be scaled.
30997 \begin_layout Chapter
31002 \begin_layout Plain Layout
31011 \begin_layout Standard
31014 Insert\SpecialChar \menuseparator
31017 you can insert external material to your document.
31021 \begin_layout Description
31023 \begin_inset space ~
31026 Document Another LyX document; its content is directly inserted to your
31030 \begin_layout Description
31032 \begin_inset space ~
31035 Text A text document; every of its text lines is inserted to your document
31039 \begin_layout Description
31041 \begin_inset space ~
31045 \begin_inset space ~
31049 \begin_inset space ~
31052 Lines A text document; its text lines are inserted as they are.
31053 Empty text lines creates a new paragraph in your document.
31056 \begin_layout Description
31058 \begin_inset space ~
31061 Material Files in various formats.
31064 \begin_layout Description
31066 \begin_inset space ~
31069 Document LyX or LaTeX-documents.
31072 \begin_layout Section
31077 \begin_layout Plain Layout
31078 External Stuff ! External Material
31086 \begin_layout Standard
31087 The external material feature allows you to insert files to your document
31088 without converting them previously to a format that can be read by the
31089 document output format because LyX takes care of needed conversions.
31090 This is similar to images that can be inserted in various image formats
31092 When you have enabled Instant Preview in LyX's preferences under
31095 \begin_inset space ~
31099 \begin_inset space ~
31102 feel\SpecialChar \menuseparator
31105 , the external material types Dia and Xfig is directly shown in LyX.
31108 \begin_layout Standard
31109 External material can be inserted via the
31113 dialog that is accessible with the menu
31115 Insert\SpecialChar \menuseparator
31116 File\SpecialChar \menuseparator
31118 \begin_inset space ~
31124 Currently the following file types (
31131 \begin_layout Description
31132 ChessDiagram This template supports chess position diagrams made with the
31136 \begin_inset CommandInset href
31139 target "http://en.wikipedia.org/wiki/XBoard"
31148 \begin_layout Description
31149 Date This inserts the date in the form
31154 This is a date inserted as external material:
31155 \begin_inset External
31162 \begin_inset space ~
31166 \begin_inset Note Note
31169 \begin_layout Plain Layout
31170 Remove the protected space when bug 4398 is fixed!
31176 \begin_inset Newline newline
31179 The date is not shown within LyX, only in the output.
31180 There are two other methods of inserting a date: Via menu
31182 Insert\SpecialChar \menuseparator
31185 and with the LaTeX command
31192 The different methods are compared in Table
31193 \begin_inset space ~
31197 \begin_inset CommandInset ref
31199 reference "tab:Comparison-of-the"
31206 \begin_layout Description
31207 Dia This template supports diagrams created with the program
31210 \begin_inset CommandInset href
31213 target "http://en.wikipedia.org/wiki/Dia_(software)"
31222 \begin_layout Description
31223 LilyPond This template is used for music notation typeset with the program
31224 \begin_inset Newline linebreak
31230 \begin_inset CommandInset href
31233 target "http://en.wikipedia.org/wiki/LilyPond"
31242 \begin_layout Description
31243 PDFPages With this template you can insert PDF documents to your document.
31244 To insert certain or all pages of a PDF, use the
31254 LaTeX and LyX options
31256 tab according to the template description in the dialog.
31261 option is given, only the first page of the PDF will be inserted.
31264 \begin_layout Description
31265 RasterImage This can be used for bitmap images.
31266 Nearly all popular image formats are supported.
31267 The image can be treated in the
31271 dialog like the images that are usually included via the
31275 dialog as described in section
31276 \begin_inset space ~
31280 \begin_inset CommandInset ref
31282 reference "sec:Graphics-Dialog"
31287 The difference is that only raster images are allowed, that means that
31288 PDF and EPS-images are not supported.
31291 \begin_layout Description
31292 XFig This template supports images created with the program
31295 \begin_inset CommandInset href
31298 target "http://en.wikipedia.org/wiki/Xfig"
31307 \begin_layout Standard
31308 \begin_inset Float table
31314 \begin_layout Plain Layout
31315 \begin_inset Caption
31317 \begin_layout Plain Layout
31318 \begin_inset CommandInset label
31320 name "tab:Comparison-of-the"
31324 Comparison of the date input methods.
31332 \begin_layout Plain Layout
31334 \begin_inset Tabular
31335 <lyxtabular version="3" rows="4" columns="4">
31337 <column alignment="center" valignment="top" width="0">
31338 <column alignment="center" valignment="top" width="0">
31339 <column alignment="center" valignment="top" width="0">
31340 <column alignment="center" valignment="top" width="0">
31342 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31345 \begin_layout Plain Layout
31351 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31354 \begin_layout Plain Layout
31357 External Material\SpecialChar \menuseparator
31363 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31366 \begin_layout Plain Layout
31369 Insert\SpecialChar \menuseparator
31375 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31378 \begin_layout Plain Layout
31390 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31393 \begin_layout Plain Layout
31399 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31402 \begin_layout Plain Layout
31408 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31411 \begin_layout Plain Layout
31417 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31420 \begin_layout Plain Layout
31421 as TeX-Code inset box
31428 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31431 \begin_layout Plain Layout
31437 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31440 \begin_layout Plain Layout
31446 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31449 \begin_layout Plain Layout
31455 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31458 \begin_layout Plain Layout
31466 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31469 \begin_layout Plain Layout
31475 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31478 \begin_layout Plain Layout
31484 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31487 \begin_layout Plain Layout
31493 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31496 \begin_layout Plain Layout
31515 \begin_layout Standard
31516 When you use the option
31528 dialog, only the path to the inserted file is shown in the output.
31529 \begin_inset Newline newline
31532 External material is displayed in LyX either as box like this:
31533 \begin_inset Graphics
31534 filename clipart/ExternalMaterialQt4.png
31536 scaleBeforeRotation
31540 or as image, depending on the option
31546 LaTeX and LyX options
31551 \begin_layout Standard
31558 manual explains how you can define your own templates.
31561 \begin_layout Section
31563 \begin_inset CommandInset label
31565 name "sec:Child-Documents"
31573 \begin_layout Plain Layout
31574 External Stuff ! Child Documents
31583 \begin_layout Plain Layout
31592 \begin_layout Standard
31593 Child documents are used when you have a long document consisting of several
31594 larger parts or sections.
31595 For maintenance it is often useful and sometimes even required to split
31596 the document in several files that can be revised separately.
31597 The different documents are then the so called child documents and a master
31598 document connects them to print the full document or parts of it.
31599 A child documents inherits contents of its master, for example the bibliography
31600 and the labels for cross-references.
31603 \begin_layout Standard
31604 To be able to work on child documents without the need to open its master,
31605 specify in the child document the master in the menu
31607 Document\SpecialChar \menuseparator
31608 Settings\SpecialChar \menuseparator
31610 \begin_inset space ~
31616 This master file will then be used in the background by LyX when you edit
31617 the child document.
31620 \begin_layout Standard
31621 Included documents are displayed in LyX as a box like this:
31622 \begin_inset Graphics
31623 filename clipart/ChildDocumentQt4.png
31625 scaleBeforeRotation
31629 To include child documents to a master document use the menu
31631 Insert\SpecialChar \menuseparator
31632 File\SpecialChar \menuseparator
31634 \begin_inset space ~
31640 A dialog pops up where you can choose between four include methods:
31643 \begin_layout Description
31644 Include You can include LyX and LaTeX-documents.
31653 dialog, the included documents will be opened in LyX in a new file tab
31654 so that you can modify it.
31655 \begin_inset Newline newline
31661 \begin_layout Standard
31662 Here is a child document inserted using
31667 \begin_inset CommandInset include
31668 LatexCommand include
31669 filename "DummyDocument1.lyx"
31676 \begin_layout Standard
31677 The section numbering includes the sections of the included files in the
31678 order they are inserted in the master document.
31679 The included example document has for example a subsection that is numbered
31680 as subsection of this section.
31681 Labels of included documents can be referenced: Subsection
31682 \begin_inset space ~
31686 \begin_inset CommandInset ref
31688 reference "sub:External-Subsection-1"
31695 \begin_layout Standard
31696 The preamble of the child document is ignored, only the preamble of the
31697 master document is used.
31698 Included documents are inserted starting on a new page and end with a page
31702 \begin_layout Standard
31703 With the LaTeX-command
31709 you can specify which included child documents are processed when the output
31711 This is useful when you are perhaps only working on a certain chapter of
31712 your large document as this saves compiling time.
31719 is inserted to the master document preamble.
31720 It takes a comma-separated list of the filenames as argument, e.
31721 \begin_inset space \thinspace{}
31727 \begin_layout Standard
31732 includeonly{chapter1,chapter5}
31735 \begin_layout Standard
31736 will only process the included files named
31737 \begin_inset Quotes eld
31741 \begin_inset Quotes erd
31745 \begin_inset Quotes eld
31749 \begin_inset Quotes erd
31753 \begin_inset Quotes eld
31757 \begin_inset Quotes erd
31763 \begin_layout Standard
31764 \begin_inset Note Greyedout
31767 \begin_layout Plain Layout
31772 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
31773 w the document in case that the child document uses another document class
31774 than the master document as this will lead to unexpected outputs.
31782 \begin_layout Description
31783 Input This method is very similar to the Include method.
31784 The differences are:
31788 \begin_layout Itemize
31789 Input files don't start with a new page and don't end with a page break.
31792 \begin_layout Itemize
31793 Input files can be previewed in LyX when
31796 \begin_inset space ~
31801 is enabled in LyX's preferences under
31804 \begin_inset space ~
31808 \begin_inset space ~
31811 feel\SpecialChar \menuseparator
31817 \begin_layout Itemize
31828 \begin_layout Standard
31829 Here is a child document inserted using
31834 \begin_inset CommandInset include
31836 filename "DummyDocument2.lyx"
31843 \begin_layout Description
31844 Verbatim With this method every text file can be included.
31845 The file is shown in the output with its source code, no command used in
31846 the text is invoked.
31847 You can use the option
31849 Mark spaces in output
31851 that displays the character
31852 \begin_inset Quotes eld
31859 \begin_layout Plain Layout
31869 \begin_inset Quotes erd
31872 for every space character in the source code.
31873 The difference to the method via the menu
31875 Insert\SpecialChar \menuseparator
31876 File\SpecialChar \menuseparator
31878 \begin_inset space ~
31883 is that the document content is not shown in LyX.
31886 \begin_layout Standard
31887 Here is a child document inserted as Verbatim:
31888 \begin_inset CommandInset include
31889 LatexCommand verbatiminput
31890 filename "DummyTextDocument.txt"
31895 \begin_inset VSpace bigskip
31898 Here is a child document inserted as Verbatim using the
31900 Mark spaces in output
31903 \begin_inset CommandInset include
31904 LatexCommand verbatiminput*
31905 filename "DummyTextDocument.txt"
31912 \begin_layout Standard
31913 \begin_inset VSpace bigskip
31919 \begin_layout Standard
31920 \begin_inset Note Greyedout
31923 \begin_layout Plain Layout
31928 As you can see in the examples above, the text of the documents included
31933 is not broken at the end of the document lines.
31941 \begin_layout Description
31942 Listings This type is described in chapter
31943 \begin_inset space ~
31947 \begin_inset CommandInset ref
31949 reference "cha:Program-Code-Listings"
31956 \begin_layout Standard
31957 \begin_inset Note Greyedout
31960 \begin_layout Plain Layout
31965 Including the same document twice in a document using different methods
31966 could cause LaTeX-problems.
31974 \begin_layout Chapter
31975 Program Code Listings
31976 \begin_inset CommandInset label
31978 name "cha:Program-Code-Listings"
31986 \begin_layout Plain Layout
31996 \begin_layout Plain Layout
32006 \begin_layout Plain Layout
32015 \begin_layout Standard
32016 To include and typeset program code you can use the
32020 inset that can be inserted via the menu
32022 Insert\SpecialChar \menuseparator
32034 \begin_layout Plain Layout
32035 LaTeX-packages ! listings
32040 provides a powerful and flexible way to insert program source code to your
32044 \begin_layout Standard
32045 Right-clicking on a listings inset opens the context menu containing where
32046 you can set the listings format.
32049 \begin_layout Standard
32050 By default, a listing starts a new paragraph in the output.
32051 The placement option
32054 \begin_inset space ~
32059 prints the listing inline like this:
32060 \begin_inset listings
32061 lstparams "language={C++}"
32065 \begin_layout Plain Layout
32073 \begin_inset Newline newline
32080 creates a listings float where you can specify the placement options
32081 \begin_inset Quotes eld
32089 \begin_inset Quotes erd
32093 \begin_inset Quotes eld
32101 \begin_inset Quotes erd
32105 \begin_inset Quotes eld
32113 \begin_inset Quotes erd
32117 \begin_inset Quotes eld
32125 \begin_inset Quotes erd
32128 corresponding to the float placement options described in section
32129 \begin_inset space ~
32133 \begin_inset CommandInset ref
32135 reference "sec:Float-Placement"
32140 The placement options can be mixed and are inserted without any separation,
32142 \begin_inset space \thinspace{}
32146 \begin_inset space \space{}
32150 \begin_inset Quotes eld
32158 \begin_inset Quotes erd
32163 \begin_inset Quotes eld
32167 \begin_inset Quotes erd
32170 has sometimes no effect, but you don't need to use the
32174 option in this case as also non-float listings can have captions and be
32178 \begin_layout Standard
32179 You can add captions to listings with the menu
32181 Insert\SpecialChar \menuseparator
32185 Listings can be referenced like floats: Listing
32186 \begin_inset space ~
32190 \begin_inset CommandInset ref
32192 reference "lst:Example-Listing"
32199 \begin_layout Standard
32200 \begin_inset listings
32201 lstparams "language=Python"
32205 \begin_layout Plain Layout
32207 \begin_inset Caption
32209 \begin_layout Plain Layout
32210 \begin_inset CommandInset label
32212 name "lst:Example-Listing"
32216 Example Listing float
32221 # Example listing float
32224 \begin_layout Plain Layout
32229 \begin_layout Plain Layout
32231 'this is a python function'
32234 \begin_layout Plain Layout
32244 \begin_layout Standard
32245 When you have set a programming language in the listings dialog, the keywords
32246 of this language will be recognized and specially typeset in the output.
32247 In the example listings the Python keyword
32248 \begin_inset Quotes eld
32252 \begin_inset Quotes erd
32255 is recognized and printed bold in the output.
32258 \begin_layout Standard
32259 \begin_inset Note Greyedout
32262 \begin_layout Plain Layout
32267 If you don't get bold keywords when using typewriter fonts, your
32271 font probably doesn't provide a bold shape.
32272 In this case select a different one in the menu
32274 Document\SpecialChar \menuseparator
32275 Settings\SpecialChar \menuseparator
32287 provide bold shapes.)
32295 \begin_layout Standard
32299 \begin_inset space ~
32304 of the listings dialog you can specify the line numbering style.
32305 You can insert a number to specify which lines are numbered to the field
32312 \begin_inset space \thinspace{}
32316 \begin_inset space \space{}
32320 \begin_inset Quotes eld
32324 \begin_inset Quotes erd
32327 , only every 3rd line will be numbered.
32330 \begin_layout Standard
32331 You can furthermore specify a range of lines, only these will then appear
32335 Extended character table
32337 should be used when you use national characters like the German umlauts
32339 \begin_inset Newline newline
32342 Here is an example listing with left line numbering, step
32343 \begin_inset Quotes eld
32347 \begin_inset Quotes erd
32351 \begin_inset Quotes eld
32355 \begin_inset Quotes erd
32359 \begin_inset Quotes eld
32362 Extended character table
32363 \begin_inset Quotes erd
32367 \begin_inset Quotes eld
32371 \begin_inset space ~
32375 \begin_inset space ~
32379 \begin_inset Quotes erd
32383 \begin_inset space \thinspace{}
32387 \begin_inset space \thinspace{}
32393 \begin_layout Standard
32394 \begin_inset listings
32395 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
32399 \begin_layout Plain Layout
32404 \begin_layout Plain Layout
32406 'this is a python function'
32409 \begin_layout Plain Layout
32414 \begin_layout Plain Layout
32419 \begin_layout Plain Layout
32421 'This is a German word: Tschüß'
32424 \begin_layout Plain Layout
32429 \begin_layout Plain Layout
32434 \begin_layout Plain Layout
32436 'this is a python function'
32439 \begin_layout Plain Layout
32449 \begin_layout Standard
32450 When you have tabulators in your listing, you can specify the number of
32451 characters that are spanned by a tabulator in the field
32454 \begin_inset space ~
32462 \begin_layout Standard
32463 \begin_inset Note Greyedout
32466 \begin_layout Plain Layout
32471 Due to a bug in the
32475 package the line numbering is shifted by a line by every previous listing.
32476 That's the reason why the lines 2 and 5 are numbered in the above listing
32477 and not the lines 3 and 6.
32485 \begin_layout Standard
32486 \begin_inset VSpace bigskip
32492 \begin_layout Standard
32493 It is also possible to print lines from a file as listing.
32494 To do this, use the menu
32496 Insert\SpecialChar \menuseparator
32497 File\SpecialChar \menuseparator
32500 and choose the type
32508 \begin_layout Plain Layout
32509 The other child document types are described in section
32510 \begin_inset space ~
32514 \begin_inset CommandInset ref
32516 reference "sec:Child-Documents"
32525 In the child document dialog you can specify the listing parameters in
32527 To show a list of all available parameters, type in a question mark
32528 \begin_inset Quotes eld
32532 \begin_inset Quotes erd
32538 \begin_layout Standard
32539 To reference child document listings, write a label text into the corresponding
32540 field of the child document dialog.
32541 The label can then be referenced using the menu
32543 Insert\SpecialChar \menuseparator
32549 \begin_layout Standard
32551 \begin_inset space ~
32555 \begin_inset CommandInset ref
32557 reference "lst:file-listing"
32561 is an example for a listing of a file; there the lines 10
32562 \begin_inset space \thinspace{}
32566 \begin_inset space \thinspace{}
32569 15 of this LyX file are listed.
32572 \begin_layout Standard
32573 \begin_inset CommandInset include
32574 LatexCommand lstinputlisting
32575 filename "EmbeddedObjects.lyx"
32576 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
32583 \begin_layout Standard
32584 \begin_inset VSpace bigskip
32590 \begin_layout Standard
32591 Global listings settings can be set in the
32593 Document\SpecialChar \menuseparator
32594 Settings\SpecialChar \menuseparator
32598 To get there a list of available options, type in a question mark
32599 \begin_inset Quotes eld
32603 \begin_inset Quotes erd
32609 \begin_inset space ~
32617 \begin_layout Standard
32618 For more information about the
32622 package, we refer to its documentation
32623 \begin_inset CommandInset citation
32632 \begin_layout Standard
32633 \begin_inset Newpage newpage
32639 \begin_layout Chapter
32641 Units available in LyX
32645 \begin_layout Plain Layout
32652 \begin_inset CommandInset label
32654 name "cha:Units-available-in"
32661 \begin_layout Standard
32662 To understand the units described in this documentation, Table
32663 \begin_inset space ~
32667 \begin_inset CommandInset ref
32669 reference "tab:Units"
32673 explains all units available in LyX.
32676 \begin_layout Standard
32677 \begin_inset Float table
32683 \begin_layout Plain Layout
32684 \begin_inset Caption
32686 \begin_layout Plain Layout
32687 \begin_inset CommandInset label
32701 \begin_layout Plain Layout
32702 \begin_inset VSpace medskip
32708 \begin_layout Plain Layout
32710 \begin_inset Tabular
32711 <lyxtabular version="3" rows="20" columns="2">
32713 <column alignment="center" valignment="top" width="0">
32714 <column alignment="center" valignment="top" width="0">
32716 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32719 \begin_layout Plain Layout
32725 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
32728 \begin_layout Plain Layout
32736 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32739 \begin_layout Plain Layout
32745 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32748 \begin_layout Plain Layout
32756 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32759 \begin_layout Plain Layout
32765 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32768 \begin_layout Plain Layout
32776 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32779 \begin_layout Plain Layout
32785 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32788 \begin_layout Plain Layout
32796 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32799 \begin_layout Plain Layout
32805 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32808 \begin_layout Plain Layout
32810 \begin_inset space \thinspace{}
32814 \begin_inset space \thinspace{}
32824 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32827 \begin_layout Plain Layout
32833 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32836 \begin_layout Plain Layout
32838 \begin_inset space \thinspace{}
32842 \begin_inset space \thinspace{}
32852 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32855 \begin_layout Plain Layout
32861 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32864 \begin_layout Plain Layout
32865 scaled point (65536
32866 \begin_inset space \thinspace{}
32870 \begin_inset space \thinspace{}
32880 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32883 \begin_layout Plain Layout
32889 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32892 \begin_layout Plain Layout
32894 \begin_inset space \thinspace{}
32898 \begin_inset space \thinspace{}
32908 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32911 \begin_layout Plain Layout
32917 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32920 \begin_layout Plain Layout
32922 \begin_inset space \thinspace{}
32926 \begin_inset Formula $\approx$
32930 \begin_inset space \thinspace{}
32940 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32943 \begin_layout Plain Layout
32949 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32952 \begin_layout Plain Layout
32954 \begin_inset space \thinspace{}
32958 \begin_inset space \thinspace{}
32968 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32971 \begin_layout Plain Layout
32977 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32980 \begin_layout Plain Layout
32981 % of original image width
32988 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32991 \begin_layout Plain Layout
32997 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33000 \begin_layout Plain Layout
33008 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33011 \begin_layout Plain Layout
33017 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33020 \begin_layout Plain Layout
33028 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33031 \begin_layout Plain Layout
33037 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33040 \begin_layout Plain Layout
33048 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33051 \begin_layout Plain Layout
33057 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33060 \begin_layout Plain Layout
33068 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33071 \begin_layout Plain Layout
33077 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33080 \begin_layout Plain Layout
33088 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33091 \begin_layout Plain Layout
33097 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33100 \begin_layout Plain Layout
33108 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33111 \begin_layout Plain Layout
33117 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33120 \begin_layout Plain Layout
33132 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33135 \begin_layout Plain Layout
33141 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33144 \begin_layout Plain Layout
33156 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
33159 \begin_layout Plain Layout
33165 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
33168 \begin_layout Plain Layout
33170 \begin_inset space \thinspace{}
33174 \begin_inset space \thinspace{}
33195 \begin_layout Chapter
33196 Output File Formats with Graphics
33197 \begin_inset CommandInset label
33199 name "cha:Output-File-Formats"
33206 \begin_layout Section
33211 \begin_layout Plain Layout
33221 \begin_layout Plain Layout
33226 \begin_layout Plain Layout
33237 \begin_layout Plain Layout
33252 \begin_layout Standard
33253 This file type has the extension
33254 \begin_inset Quotes eld
33262 \begin_inset Quotes erd
33267 \begin_inset Quotes eld
33271 \begin_inset Quotes erd
33274 (DVI), because it is completely portable; you can move them from one machine
33275 to another without needing to do any sort of conversion.
33276 At the time when this file-format was developed, this was no matter of
33278 DVIs are used for quick previews and as pre-stage for other output formats,
33282 \begin_layout Standard
33283 \begin_inset Note Greyedout
33286 \begin_layout Plain Layout
33291 DVI-files doesn't contain images, they will only be a linked.
33296 So don't forget this, if you move your
33300 file to another computer.
33301 This property can also slow down your computer when you view the DVI.
33302 Because the DVI-viewer has to convert the image in the background to make
33303 it visible when you scroll in the DVI.
33304 So we recommend to use PDF for files with many images.
33307 \begin_layout Standard
33308 You can export your document to DVI by using the menu
33310 File\SpecialChar \menuseparator
33311 Export\SpecialChar \menuseparator
33315 You can view your document as DVI via the
33319 menu or by using the toolbar button
33320 \begin_inset Graphics
33321 filename ../images/buffer-view_dvi.png
33323 scaleBeforeRotation
33330 \begin_layout Section
33332 \begin_inset CommandInset label
33334 name "sec:PostScript"
33342 \begin_layout Plain Layout
33343 File Formats ! PostScript
33352 \begin_layout Plain Layout
33357 \begin_layout Plain Layout
33368 \begin_layout Plain Layout
33383 \begin_layout Standard
33384 This file type has the extension
33385 \begin_inset Quotes eld
33393 \begin_inset Quotes erd
33397 PostScript was developed by the company
33401 as printer language.
33402 The file contains therefore commands that the printer uses to print the
33404 PostScript can be seen as
33405 \begin_inset Quotes eld
33408 programming language
33409 \begin_inset Quotes erd
33412 ; you can calculate with it and draw diagrams and images
33416 \begin_layout Plain Layout
33417 If you are interested to learn more about this, have a look at the LaTeX-package
33423 \begin_inset CommandInset citation
33435 Due to this ability, the files are often bigger than PDFs.
33438 \begin_layout Standard
33439 PostScript can only contain images in the format
33440 \begin_inset Quotes eld
33443 Encapsulated PostScript
33444 \begin_inset Quotes erd
33447 (EPS, file extension
33448 \begin_inset Quotes eld
33456 \begin_inset Quotes erd
33460 As LyX allows you to use any known image format in your document, it has
33461 to convert images in the background to EPS.
33462 If you have e.g 50 images in your document, LyX has to do 50 conversions
33463 whenever you view or export your document.
33464 This will slow down your work flow with LyX drastically.
33465 So if you plan to use PostScript, you can insert your images directly as
33466 EPS to avoid this problem.
33469 \begin_layout Standard
33470 You can export your document to PostScript using the menu
33472 File\SpecialChar \menuseparator
33473 Export\SpecialChar \menuseparator
33477 You can view your document as PostScript via the
33481 menu or by using the toolbar button
33482 \begin_inset Graphics
33483 filename ../images/buffer-view_ps.png
33485 scaleBeforeRotation
33492 \begin_layout Section
33497 \begin_layout Plain Layout
33507 \begin_layout Plain Layout
33516 \begin_layout Standard
33517 This file type has the extension
33518 \begin_inset Quotes eld
33526 \begin_inset Quotes erd
33531 \begin_inset Quotes eld
33534 Portable Document Format
33535 \begin_inset Quotes erd
33538 (PDF) is developed by
33542 as derivative from PostScript.
33543 It is more compressed and it uses much less commands than PostScript.
33545 \begin_inset Quotes eld
33549 \begin_inset Quotes erd
33552 implies, it can be processed at any computer system and the printed output
33553 looks exactly the same.
33556 \begin_layout Standard
33557 PDF can contain images in its own PDF format, in the format
33558 \begin_inset Quotes eld
33561 Joint Photographic Experts Group
33562 \begin_inset Quotes erd
33565 (JPG, file extension
33566 \begin_inset Quotes eld
33574 \begin_inset Quotes erd
33578 \begin_inset Quotes eld
33586 \begin_inset Quotes erd
33589 ), and in the format
33590 \begin_inset Quotes eld
33593 Portable Network Graphics
33594 \begin_inset Quotes erd
33597 (PNG, file extension
33598 \begin_inset Quotes eld
33606 \begin_inset Quotes erd
33610 Nevertheless you can use any other image format, because LyX converts them
33611 in the background to one of these formats.
33612 But as described in the section about PostScript, the image conversion
33613 will slow down your work flow.
33614 So it is recommended to use images in one of the three mentioned formats.
33617 \begin_layout Standard
33618 You can export your document to PDF via the menu
33620 File\SpecialChar \menuseparator
33623 in three different ways:
33626 \begin_layout Description
33628 \begin_inset space ~
33631 (ps2pdf) This uses the program
33635 that creates a PDF from a PostScript-version of your file.
33636 The PostScript-version is produced by the program
33640 which uses a DVI-version as intermediate step.
33641 So this export variant consist of three conversions.
33644 \begin_layout Description
33646 \begin_inset space ~
33649 (dvipdfm) This uses the program
33653 that converts your file in the background to DVI and in a second step to
33657 \begin_layout Description
33659 \begin_inset space ~
33662 (pdflatex) This uses the program
33666 that converts your file directly to PDF.
33669 \begin_layout Standard
33670 It is recommended to use
33673 \begin_inset space ~
33682 supports all features of actual PDF-versions, is quick and works stable
33688 is not under development and therefore a bit outdated.
33691 \begin_layout Standard
33692 You can view your document as PDF via the
33696 menu or by using the toolbar button
33697 \begin_inset Graphics
33698 filename ../images/buffer-view_pdf2.png
33700 scaleBeforeRotation
33711 \begin_inset space ~
33719 \begin_layout Chapter
33720 Explanation of Equation
33721 \begin_inset space ~
33725 \begin_inset CommandInset ref
33732 \begin_inset CommandInset label
33734 name "cha:Explanation-of-Equation"
33741 \begin_layout Standard
33747 \begin_inset Formula $W_{\mathrm{tot\, n}}$
33750 can be calculated to
33753 \begin_layout Standard
33754 \begin_inset Formula \begin{equation}
33755 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}
33762 \begin_layout Standard
33764 \begin_inset Formula $W_{g\, n}$
33767 is the given width of all cells.
33774 is the LaTeX-length between the cell text and the cell border, its default
33776 \begin_inset space \thinspace{}
33786 is the thickness of the cell border line, the default is 0.4
33787 \begin_inset space \thinspace{}
33793 \begin_layout Standard
33795 \begin_inset space ~
33799 \begin_inset CommandInset ref
33801 reference "eq:Wtot_n"
33805 , the total width of a multicolumn
33806 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
33812 \begin_layout Standard
33813 \begin_inset Formula \begin{equation}
33814 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
33821 \begin_layout Standard
33822 By setting equation
33823 \begin_inset space ~
33827 \begin_inset CommandInset ref
33829 reference "eq:Wtot_n"
33834 \begin_inset CommandInset ref
33836 reference "eq:Wtot_mult"
33840 equal we can calculate the needed given width
33841 \begin_inset Formula $W_{g\, n}$
33848 columns are spanned, so that each column has a total width of
33849 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
33855 \begin_layout Standard
33856 \begin_inset Formula \begin{equation}
33857 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
33864 \begin_layout Bibliography
33865 \begin_inset CommandInset bibitem
33866 LatexCommand bibitem
33867 key "latexcompanion"
33871 Frank Mittelbach and Michel Goossens:
33873 The LaTeX Companion Second Edition.
33876 Addison-Wesley, 2004
33879 \begin_layout Bibliography
33880 \begin_inset CommandInset bibitem
33881 LatexCommand bibitem
33886 Helmut Kopka and Patrick W.
33889 A Guide to LaTeX Fourth Edition.
33892 Addison-Wesley, 2003
33895 \begin_layout Bibliography
33896 \begin_inset CommandInset bibitem
33897 LatexCommand bibitem
33904 LaTeX: A Document Preparation System.
33907 Addison-Wesley, second edition, 1994
33910 \begin_layout Bibliography
33911 \begin_inset CommandInset bibitem
33912 LatexCommand bibitem
33917 Documentation of the LaTeX-package
33920 \begin_inset CommandInset href
33923 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
33933 \begin_layout Plain Layout
33934 LaTeX-packages ! booktabs
33942 \begin_layout Bibliography
33943 \begin_inset CommandInset bibitem
33944 LatexCommand bibitem
33949 Documentation of the LaTeX-package
33952 \begin_inset CommandInset href
33955 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf"
33965 \begin_layout Plain Layout
33966 LaTeX-packages ! caption
33974 \begin_layout Bibliography
33975 \begin_inset CommandInset bibitem
33976 LatexCommand bibitem
33981 Documentation of the LaTeX-package
33984 \begin_inset CommandInset href
33987 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
33997 \begin_layout Plain Layout
33998 LaTeX-packages ! endfloat
34006 \begin_layout Bibliography
34007 \begin_inset CommandInset bibitem
34008 LatexCommand bibitem
34013 Documentation of the LaTeX-package
34016 \begin_inset CommandInset href
34019 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/wrapfig/wrapfig.sty"
34029 \begin_layout Plain Layout
34030 LaTeX-packages ! wrapfig
34034 \begin_layout Plain Layout
34051 \begin_layout Bibliography
34052 \begin_inset CommandInset bibitem
34053 LatexCommand bibitem
34058 Documentation of the LaTeX-package
34061 \begin_inset CommandInset href
34064 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
34074 \begin_layout Plain Layout
34075 LaTeX-packages ! footmisc
34083 \begin_layout Bibliography
34084 \begin_inset CommandInset bibitem
34085 LatexCommand bibitem
34090 Documentation of the LaTeX-package
34093 \begin_inset CommandInset href
34096 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
34106 \begin_layout Plain Layout
34107 LaTeX-packages ! hyperref
34115 \begin_layout Bibliography
34116 \begin_inset CommandInset bibitem
34117 LatexCommand bibitem
34122 Documentation of the LaTeX-package
34125 \begin_inset CommandInset href
34128 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
34138 \begin_layout Plain Layout
34139 LaTeX-packages ! hyperref
34147 \begin_layout Bibliography
34148 \begin_inset CommandInset bibitem
34149 LatexCommand bibitem
34154 Documentation of the LaTeX-package
34157 \begin_inset CommandInset href
34160 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf"
34170 \begin_layout Plain Layout
34171 LaTeX-packages ! koma-script
34179 \begin_layout Bibliography
34180 \begin_inset CommandInset bibitem
34181 LatexCommand bibitem
34186 Documentation of the LaTeX-package
34189 \begin_inset CommandInset href
34192 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
34202 \begin_layout Plain Layout
34203 LaTeX-packages ! listings
34211 \begin_layout Bibliography
34212 \begin_inset CommandInset bibitem
34213 LatexCommand bibitem
34218 Documentation of the LaTeX-package
34221 \begin_inset CommandInset href
34224 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
34234 \begin_layout Plain Layout
34235 LaTeX-packages ! marginnote
34243 \begin_layout Bibliography
34244 \begin_inset CommandInset bibitem
34245 LatexCommand bibitem
34250 Web page of the LaTeX-package
34253 \begin_inset CommandInset href
34256 target "http://tug.org/PSTricks/"
34266 \begin_layout Plain Layout
34267 LaTeX-packages ! PSTricks
34275 \begin_layout Bibliography
34276 \begin_inset CommandInset bibitem
34277 LatexCommand bibitem
34282 Documentation of the LaTeX-package
34285 \begin_inset CommandInset href
34288 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
34298 \begin_layout Plain Layout
34299 LaTeX-packages ! sidecap
34307 \begin_layout Bibliography
34308 \begin_inset CommandInset bibitem
34309 LatexCommand bibitem
34315 \begin_inset CommandInset href
34318 target "http://wiki.lyx.org/LyX/NewInLyX16"
34322 about new features in
34329 \begin_layout Standard
34330 \begin_inset CommandInset index_print
34331 LatexCommand printindex
34338 \begin_layout Standard
34339 \begin_inset FloatList figure
34346 \begin_layout Standard
34347 \begin_inset FloatList table
34354 \begin_layout Standard
34355 \begin_inset FloatList algorithm