1 #LyX 1.6.1svn 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
2981 : The current row and all rows above, that don't have any special options
2982 defined, are defined to be the header rows of all pages of the longtable;
2983 except for the first page, if
2986 \begin_inset space ~
2992 This therefore called the main header.
2995 \begin_layout Description
2999 \begin_inset space ~
3004 : The current row and all rows above, that don't have any special options
3005 defined, are defined to be the header rows of the first page of the longtable.
3008 \begin_layout Description
3013 : The current row and all rows below, that don't have any special options
3014 defined, are defined to be the footer rows of all pages of the longtable;
3015 except for the last page, if
3018 \begin_inset space ~
3026 \begin_layout Description
3030 \begin_inset space ~
3035 : The current row and all rows below, that don't have any special options
3036 defined, are defined to be the footer rows of the last page of the longtable.
3039 \begin_layout Description
3040 Caption: The first row is reset as single column.
3041 You can now insert there the table caption via the menu
3043 Insert\SpecialChar \menuseparator
3047 More about longtable captions is explained in sec.
3048 \begin_inset space \thinspace{}
3052 \begin_inset CommandInset ref
3054 reference "sub:Longtable-Captions"
3061 \begin_layout Standard
3062 You can also specify a row where the table is splitted.
3063 If you set more than one option in the same table row, you should be aware
3064 of the fact that only the first one is used in the given table row.
3065 The others will then be defined as
3070 In this context, first means first in this order:
3077 \begin_inset space ~
3080 header, Footer, Last
3081 \begin_inset space ~
3087 See the following longtable to see how it works:
3090 \begin_layout Standard
3092 \begin_inset Tabular
3093 <lyxtabular version="3" rows="69" columns="3">
3094 <features islongtable="true">
3095 <column alignment="left" valignment="top" width="0cm">
3096 <column alignment="left" valignment="top" width="0pt">
3097 <column alignment="center" valignment="top" width="0pt">
3098 <row endfirsthead="true">
3099 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3102 \begin_layout Plain Layout
3105 Example Phone List (ignore the names)
3110 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3113 \begin_layout Plain Layout
3119 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3122 \begin_layout Plain Layout
3129 <row endfirsthead="true">
3130 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3133 \begin_layout Plain Layout
3141 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3144 \begin_layout Plain Layout
3150 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3153 \begin_layout Plain Layout
3162 <row endhead="true">
3163 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3166 \begin_layout Plain Layout
3174 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3177 \begin_layout Plain Layout
3183 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3186 \begin_layout Plain Layout
3193 <row endhead="true">
3194 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3197 \begin_layout Plain Layout
3205 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3208 \begin_layout Plain Layout
3214 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3217 \begin_layout Plain Layout
3226 <row endfoot="true">
3227 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
3230 \begin_layout Plain Layout
3231 continued on next page
3236 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3239 \begin_layout Plain Layout
3245 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3248 \begin_layout Plain Layout
3256 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3259 \begin_layout Plain Layout
3267 <cell alignment="center" valignment="top" usebox="none">
3270 \begin_layout Plain Layout
3276 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3279 \begin_layout Plain Layout
3287 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3290 \begin_layout Plain Layout
3298 <cell alignment="center" valignment="top" usebox="none">
3301 \begin_layout Plain Layout
3307 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3310 \begin_layout Plain Layout
3318 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3321 \begin_layout Plain Layout
3329 <cell alignment="center" valignment="top" usebox="none">
3332 \begin_layout Plain Layout
3338 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3341 \begin_layout Plain Layout
3349 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3352 \begin_layout Plain Layout
3360 <cell alignment="center" valignment="top" usebox="none">
3363 \begin_layout Plain Layout
3369 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3372 \begin_layout Plain Layout
3380 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3383 \begin_layout Plain Layout
3391 <cell alignment="center" valignment="top" usebox="none">
3394 \begin_layout Plain Layout
3400 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3403 \begin_layout Plain Layout
3411 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3414 \begin_layout Plain Layout
3422 <cell alignment="center" valignment="top" usebox="none">
3425 \begin_layout Plain Layout
3431 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3434 \begin_layout Plain Layout
3442 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3445 \begin_layout Plain Layout
3453 <cell alignment="center" valignment="top" usebox="none">
3456 \begin_layout Plain Layout
3462 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3465 \begin_layout Plain Layout
3473 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3476 \begin_layout Plain Layout
3484 <cell alignment="center" valignment="top" usebox="none">
3487 \begin_layout Plain Layout
3493 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3496 \begin_layout Plain Layout
3504 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3507 \begin_layout Plain Layout
3515 <cell alignment="center" valignment="top" usebox="none">
3518 \begin_layout Plain Layout
3524 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3527 \begin_layout Plain Layout
3535 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3538 \begin_layout Plain Layout
3546 <cell alignment="center" valignment="top" usebox="none">
3549 \begin_layout Plain Layout
3555 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3558 \begin_layout Plain Layout
3566 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3569 \begin_layout Plain Layout
3577 <cell alignment="center" valignment="top" usebox="none">
3580 \begin_layout Plain Layout
3586 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3589 \begin_layout Plain Layout
3597 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3600 \begin_layout Plain Layout
3608 <cell alignment="center" valignment="top" usebox="none">
3611 \begin_layout Plain Layout
3617 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3620 \begin_layout Plain Layout
3628 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3631 \begin_layout Plain Layout
3639 <cell alignment="center" valignment="top" usebox="none">
3642 \begin_layout Plain Layout
3648 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3651 \begin_layout Plain Layout
3659 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3662 \begin_layout Plain Layout
3670 <cell alignment="center" valignment="top" usebox="none">
3673 \begin_layout Plain Layout
3679 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3682 \begin_layout Plain Layout
3690 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3693 \begin_layout Plain Layout
3701 <cell alignment="center" valignment="top" usebox="none">
3704 \begin_layout Plain Layout
3710 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3713 \begin_layout Plain Layout
3721 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3724 \begin_layout Plain Layout
3732 <cell alignment="center" valignment="top" usebox="none">
3735 \begin_layout Plain Layout
3741 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3744 \begin_layout Plain Layout
3752 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3755 \begin_layout Plain Layout
3763 <cell alignment="center" valignment="top" usebox="none">
3766 \begin_layout Plain Layout
3772 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3775 \begin_layout Plain Layout
3783 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3786 \begin_layout Plain Layout
3794 <cell alignment="center" valignment="top" usebox="none">
3797 \begin_layout Plain Layout
3803 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3806 \begin_layout Plain Layout
3814 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3817 \begin_layout Plain Layout
3825 <cell alignment="center" valignment="top" usebox="none">
3828 \begin_layout Plain Layout
3834 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3837 \begin_layout Plain Layout
3845 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3848 \begin_layout Plain Layout
3856 <cell alignment="center" valignment="top" usebox="none">
3859 \begin_layout Plain Layout
3865 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3868 \begin_layout Plain Layout
3876 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3879 \begin_layout Plain Layout
3887 <cell alignment="center" valignment="top" usebox="none">
3890 \begin_layout Plain Layout
3896 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3899 \begin_layout Plain Layout
3907 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3910 \begin_layout Plain Layout
3918 <cell alignment="center" valignment="top" usebox="none">
3921 \begin_layout Plain Layout
3927 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3930 \begin_layout Plain Layout
3938 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3941 \begin_layout Plain Layout
3949 <cell alignment="center" valignment="top" usebox="none">
3952 \begin_layout Plain Layout
3958 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3961 \begin_layout Plain Layout
3969 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3972 \begin_layout Plain Layout
3980 <cell alignment="center" valignment="top" usebox="none">
3983 \begin_layout Plain Layout
3989 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3992 \begin_layout Plain Layout
4000 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4003 \begin_layout Plain Layout
4011 <cell alignment="center" valignment="top" usebox="none">
4014 \begin_layout Plain Layout
4020 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4023 \begin_layout Plain Layout
4031 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4034 \begin_layout Plain Layout
4042 <cell alignment="center" valignment="top" usebox="none">
4045 \begin_layout Plain Layout
4051 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4054 \begin_layout Plain Layout
4062 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4065 \begin_layout Plain Layout
4073 <cell alignment="center" valignment="top" usebox="none">
4076 \begin_layout Plain Layout
4082 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4085 \begin_layout Plain Layout
4093 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4096 \begin_layout Plain Layout
4104 <cell alignment="center" valignment="top" usebox="none">
4107 \begin_layout Plain Layout
4113 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4116 \begin_layout Plain Layout
4124 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4127 \begin_layout Plain Layout
4135 <cell alignment="center" valignment="top" usebox="none">
4138 \begin_layout Plain Layout
4144 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4147 \begin_layout Plain Layout
4155 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4158 \begin_layout Plain Layout
4166 <cell alignment="center" valignment="top" usebox="none">
4169 \begin_layout Plain Layout
4175 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4178 \begin_layout Plain Layout
4186 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4189 \begin_layout Plain Layout
4197 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4200 \begin_layout Plain Layout
4206 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4209 \begin_layout Plain Layout
4217 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4220 \begin_layout Plain Layout
4226 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4229 \begin_layout Plain Layout
4235 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4238 \begin_layout Plain Layout
4246 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4249 \begin_layout Plain Layout
4257 <cell alignment="center" valignment="top" usebox="none">
4260 \begin_layout Plain Layout
4266 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4269 \begin_layout Plain Layout
4277 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4280 \begin_layout Plain Layout
4288 <cell alignment="center" valignment="top" usebox="none">
4291 \begin_layout Plain Layout
4297 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4300 \begin_layout Plain Layout
4308 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4311 \begin_layout Plain Layout
4319 <cell alignment="center" valignment="top" usebox="none">
4322 \begin_layout Plain Layout
4328 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4331 \begin_layout Plain Layout
4339 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4342 \begin_layout Plain Layout
4350 <cell alignment="center" valignment="top" usebox="none">
4353 \begin_layout Plain Layout
4359 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4362 \begin_layout Plain Layout
4370 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4373 \begin_layout Plain Layout
4381 <cell alignment="center" valignment="top" usebox="none">
4384 \begin_layout Plain Layout
4390 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4393 \begin_layout Plain Layout
4401 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4404 \begin_layout Plain Layout
4412 <cell alignment="center" valignment="top" usebox="none">
4415 \begin_layout Plain Layout
4421 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4424 \begin_layout Plain Layout
4432 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4435 \begin_layout Plain Layout
4443 <cell alignment="center" valignment="top" usebox="none">
4446 \begin_layout Plain Layout
4452 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4455 \begin_layout Plain Layout
4463 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4466 \begin_layout Plain Layout
4474 <cell alignment="center" valignment="top" usebox="none">
4477 \begin_layout Plain Layout
4483 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4486 \begin_layout Plain Layout
4494 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4497 \begin_layout Plain Layout
4505 <cell alignment="center" valignment="top" usebox="none">
4508 \begin_layout Plain Layout
4514 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4517 \begin_layout Plain Layout
4525 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4528 \begin_layout Plain Layout
4536 <cell alignment="center" valignment="top" usebox="none">
4539 \begin_layout Plain Layout
4545 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4548 \begin_layout Plain Layout
4556 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4559 \begin_layout Plain Layout
4567 <cell alignment="center" valignment="top" usebox="none">
4570 \begin_layout Plain Layout
4576 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4579 \begin_layout Plain Layout
4587 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4590 \begin_layout Plain Layout
4598 <cell alignment="center" valignment="top" usebox="none">
4601 \begin_layout Plain Layout
4607 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4610 \begin_layout Plain Layout
4618 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4621 \begin_layout Plain Layout
4629 <cell alignment="center" valignment="top" usebox="none">
4632 \begin_layout Plain Layout
4638 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4641 \begin_layout Plain Layout
4649 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4652 \begin_layout Plain Layout
4660 <cell alignment="center" valignment="top" usebox="none">
4663 \begin_layout Plain Layout
4669 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4672 \begin_layout Plain Layout
4680 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4683 \begin_layout Plain Layout
4691 <cell alignment="center" valignment="top" usebox="none">
4694 \begin_layout Plain Layout
4700 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4703 \begin_layout Plain Layout
4711 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4714 \begin_layout Plain Layout
4722 <cell alignment="center" valignment="top" usebox="none">
4725 \begin_layout Plain Layout
4731 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4734 \begin_layout Plain Layout
4742 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4745 \begin_layout Plain Layout
4753 <cell alignment="center" valignment="top" usebox="none">
4756 \begin_layout Plain Layout
4762 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4765 \begin_layout Plain Layout
4773 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4776 \begin_layout Plain Layout
4784 <cell alignment="center" valignment="top" usebox="none">
4787 \begin_layout Plain Layout
4793 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4796 \begin_layout Plain Layout
4804 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4807 \begin_layout Plain Layout
4815 <cell alignment="center" valignment="top" usebox="none">
4818 \begin_layout Plain Layout
4824 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4827 \begin_layout Plain Layout
4835 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4838 \begin_layout Plain Layout
4846 <cell alignment="center" valignment="top" usebox="none">
4849 \begin_layout Plain Layout
4855 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4858 \begin_layout Plain Layout
4866 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4869 \begin_layout Plain Layout
4877 <cell alignment="center" valignment="top" usebox="none">
4880 \begin_layout Plain Layout
4886 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4889 \begin_layout Plain Layout
4897 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4900 \begin_layout Plain Layout
4908 <cell alignment="center" valignment="top" usebox="none">
4911 \begin_layout Plain Layout
4917 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4920 \begin_layout Plain Layout
4928 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4931 \begin_layout Plain Layout
4939 <cell alignment="center" valignment="top" usebox="none">
4942 \begin_layout Plain Layout
4948 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4951 \begin_layout Plain Layout
4959 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4962 \begin_layout Plain Layout
4970 <cell alignment="center" valignment="top" usebox="none">
4973 \begin_layout Plain Layout
4979 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4982 \begin_layout Plain Layout
4990 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4993 \begin_layout Plain Layout
5001 <cell alignment="center" valignment="top" usebox="none">
5004 \begin_layout Plain Layout
5010 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5013 \begin_layout Plain Layout
5021 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5024 \begin_layout Plain Layout
5032 <cell alignment="center" valignment="top" usebox="none">
5035 \begin_layout Plain Layout
5041 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5044 \begin_layout Plain Layout
5052 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5055 \begin_layout Plain Layout
5063 <cell alignment="center" valignment="top" usebox="none">
5066 \begin_layout Plain Layout
5072 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5075 \begin_layout Plain Layout
5083 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5086 \begin_layout Plain Layout
5094 <cell alignment="center" valignment="top" usebox="none">
5097 \begin_layout Plain Layout
5103 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5106 \begin_layout Plain Layout
5114 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5117 \begin_layout Plain Layout
5125 <cell alignment="center" valignment="top" usebox="none">
5128 \begin_layout Plain Layout
5134 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5137 \begin_layout Plain Layout
5145 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5148 \begin_layout Plain Layout
5156 <cell alignment="center" valignment="top" usebox="none">
5159 \begin_layout Plain Layout
5165 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5168 \begin_layout Plain Layout
5176 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5179 \begin_layout Plain Layout
5187 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5190 \begin_layout Plain Layout
5196 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5199 \begin_layout Plain Layout
5206 <row endlastfoot="true">
5207 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5210 \begin_layout Plain Layout
5216 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5219 \begin_layout Plain Layout
5225 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5228 \begin_layout Plain Layout
5243 \begin_layout Plain Layout
5247 addtocounter{table}{-1}
5253 \begin_inset Note Note
5256 \begin_layout Plain Layout
5257 See greyed-out note in section
5258 \begin_inset space ~
5262 \begin_inset CommandInset ref
5264 reference "sub:Longtable-Captions"
5268 for an explanation of this command.
5276 \begin_layout Subsection
5277 Footnotes in Longtables
5278 \begin_inset CommandInset label
5280 name "sub:Footnotes-in-Longtables"
5288 \begin_layout Plain Layout
5289 Longtables ! Footnotes
5297 \begin_layout Standard
5298 Footnotes can be inserted to every longtable cell.
5299 They appear at the bottom of the page where the table cell with the footnote
5302 \begin_inset space ~
5306 \begin_inset CommandInset ref
5308 reference "tab:DiffCaptions"
5312 has for example a footnote.
5315 \begin_layout Subsection
5320 \begin_layout Plain Layout
5321 Longtables ! Alignment
5329 \begin_layout Standard
5330 Longtables are by default centered.
5331 In contrary to the alignment of the table columns and row, the table alignment
5332 can currently not be changed in the table dialog.
5333 To change the alignment of longtables you have to change the value of the
5346 by inserting this line as TeX-Code before the corresponding longtable:
5349 \begin_layout Standard
5359 \begin_layout Standard
5360 Where the value can have any of the units listed in Table
5361 \begin_inset space ~
5365 \begin_inset CommandInset ref
5367 reference "tab:Units"
5378 controls the horizontal distance from the left page border to the longtable,
5385 the distance from the right side.
5386 The default value for both lengths is
5392 , which is in this case the same as an horizontal fill in LyX.
5395 \begin_layout Standard
5396 The following longtable was left-aligned by setting
5403 \begin_inset space \thinspace{}
5410 \begin_layout Plain Layout
5424 \begin_layout Standard
5425 \begin_inset Tabular
5426 <lyxtabular version="3" rows="5" columns="5">
5427 <features islongtable="true">
5428 <column alignment="center" valignment="top" width="0">
5429 <column alignment="center" valignment="top" width="0">
5430 <column alignment="center" valignment="top" width="0">
5431 <column alignment="center" valignment="top" width="0">
5432 <column alignment="center" valignment="top" width="0">
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" leftline="true" usebox="none">
5578 \begin_layout Plain Layout
5584 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5587 \begin_layout Plain Layout
5593 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5596 \begin_layout Plain Layout
5602 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5605 \begin_layout Plain Layout
5611 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5614 \begin_layout Plain Layout
5622 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5625 \begin_layout Plain Layout
5631 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5634 \begin_layout Plain Layout
5640 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5643 \begin_layout Plain Layout
5649 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5652 \begin_layout Plain Layout
5658 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5661 \begin_layout Plain Layout
5676 \begin_layout Plain Layout
5692 \begin_layout Subsection
5697 \begin_layout Plain Layout
5698 Longtables ! Captions
5704 \begin_inset CommandInset label
5706 name "sub:Longtable-Captions"
5713 \begin_layout Standard
5714 A longtable cannot be put into a table float because floats can only be
5715 on one page but the caption environment of floats can also be used for
5717 Therefore the caption is inserted as first row of the table, as explained
5719 \begin_inset space \thinspace{}
5723 \begin_inset CommandInset ref
5725 reference "sec:Longtables"
5730 The first table row is then only a dummy row for the caption, the actual
5731 table starts with the second row.
5734 \begin_layout Standard
5735 Here is a short longtable to see how it works:
5738 \begin_layout Standard
5739 \begin_inset Tabular
5740 <lyxtabular version="3" rows="6" columns="5">
5741 <features islongtable="true">
5742 <column alignment="center" valignment="top" width="0">
5743 <column alignment="center" valignment="top" width="0">
5744 <column alignment="center" valignment="top" width="0">
5745 <column alignment="center" valignment="top" width="0">
5746 <column alignment="center" valignment="top" width="0">
5747 <row caption="true">
5748 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
5751 \begin_layout Plain Layout
5752 \begin_inset Caption
5754 \begin_layout Plain Layout
5755 Longtable with caption
5759 \begin_layout Plain Layout
5775 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5778 \begin_layout Plain Layout
5784 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5787 \begin_layout Plain Layout
5793 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5796 \begin_layout Plain Layout
5802 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5805 \begin_layout Plain Layout
5813 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5816 \begin_layout Plain Layout
5822 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5825 \begin_layout Plain Layout
5831 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5834 \begin_layout Plain Layout
5840 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5843 \begin_layout Plain Layout
5849 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5852 \begin_layout Plain Layout
5860 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5863 \begin_layout Plain Layout
5869 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5872 \begin_layout Plain Layout
5878 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5881 \begin_layout Plain Layout
5887 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5890 \begin_layout Plain Layout
5896 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5899 \begin_layout Plain Layout
5907 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5910 \begin_layout Plain Layout
5916 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5919 \begin_layout Plain Layout
5925 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5928 \begin_layout Plain Layout
5934 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5937 \begin_layout Plain Layout
5943 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5946 \begin_layout Plain Layout
5954 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5957 \begin_layout Plain Layout
5963 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5966 \begin_layout Plain Layout
5972 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5975 \begin_layout Plain Layout
5981 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5984 \begin_layout Plain Layout
5990 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5993 \begin_layout Plain Layout
6001 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6004 \begin_layout Plain Layout
6010 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6013 \begin_layout Plain Layout
6019 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6022 \begin_layout Plain Layout
6028 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6031 \begin_layout Plain Layout
6037 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6040 \begin_layout Plain Layout
6054 \begin_layout Standard
6055 \begin_inset VSpace medskip
6059 \begin_inset Note Greyedout
6062 \begin_layout Plain Layout
6067 The table number is increased for every longtable, also if you didn't set
6069 For this reason you could have the case that e.
6070 \begin_inset space \thinspace{}
6074 \begin_inset space \space{}
6078 \begin_inset space ~
6081 2.4 follows on Table
6082 \begin_inset space ~
6085 2.1 in the list of tables if there are two longtables without captions.
6086 To avoid this you can add the following command in TeX-Code behind every
6087 longtable without a caption:
6090 \begin_layout Plain Layout
6095 addtocounter{table}{-1}
6103 \begin_layout Standard
6104 \begin_inset Note Greyedout
6107 \begin_layout Plain Layout
6120 \begin_layout Plain Layout
6121 LaTeX-packages ! hyperref
6134 dialog to link cross-references, the link to a longtable caption will always
6135 point to the beginning of the document.
6143 \begin_layout Standard
6144 \begin_inset Newpage newpage
6150 \begin_layout Subsubsection
6151 References to Longtables
6155 \begin_layout Plain Layout
6156 Longtables ! References
6164 \begin_layout Standard
6165 \begin_inset Tabular
6166 <lyxtabular version="3" rows="6" columns="5">
6167 <features islongtable="true">
6168 <column alignment="center" valignment="top" width="0">
6169 <column alignment="center" valignment="top" width="0">
6170 <column alignment="center" valignment="top" width="0">
6171 <column alignment="center" valignment="top" width="0">
6172 <column alignment="center" valignment="top" width="0">
6173 <row caption="true">
6174 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6177 \begin_layout Plain Layout
6178 \begin_inset Caption
6180 \begin_layout Plain Layout
6181 Referenced longtable
6182 \begin_inset CommandInset label
6184 name "tab:RefExample"
6198 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6201 \begin_layout Plain Layout
6207 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6210 \begin_layout Plain Layout
6216 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6219 \begin_layout Plain Layout
6225 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6228 \begin_layout Plain Layout
6236 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6239 \begin_layout Plain Layout
6245 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6248 \begin_layout Plain Layout
6254 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6257 \begin_layout Plain Layout
6263 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6266 \begin_layout Plain Layout
6272 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6275 \begin_layout Plain Layout
6283 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6286 \begin_layout Plain Layout
6292 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6295 \begin_layout Plain Layout
6301 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6304 \begin_layout Plain Layout
6310 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6313 \begin_layout Plain Layout
6319 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6322 \begin_layout Plain Layout
6330 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6333 \begin_layout Plain Layout
6339 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6342 \begin_layout Plain Layout
6348 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6351 \begin_layout Plain Layout
6357 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6360 \begin_layout Plain Layout
6366 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6369 \begin_layout Plain Layout
6377 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6380 \begin_layout Plain Layout
6386 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6389 \begin_layout Plain Layout
6395 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6398 \begin_layout Plain Layout
6404 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6407 \begin_layout Plain Layout
6413 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6416 \begin_layout Plain Layout
6424 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6427 \begin_layout Plain Layout
6433 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6436 \begin_layout Plain Layout
6442 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6445 \begin_layout Plain Layout
6451 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6454 \begin_layout Plain Layout
6460 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6463 \begin_layout Plain Layout
6477 \begin_layout Standard
6478 To reference a longtable, insert a label into the caption.
6481 \begin_layout Standard
6482 This is a reference to Table
6483 \begin_inset space ~
6487 \begin_inset CommandInset ref
6489 reference "tab:RefExample"
6496 \begin_layout Standard
6497 The caption layout can be set together with all other captions of your document
6498 using the LaTeX-package
6506 \begin_layout Plain Layout
6507 LaTeX-packages ! caption
6513 \begin_inset space ~
6517 \begin_inset CommandInset ref
6519 reference "sec:Caption-Formatting"
6526 \begin_layout Subsubsection
6531 \begin_layout Plain Layout
6532 Longtables ! Caption Width
6540 \begin_layout Standard
6541 The maximal width of of caption lines is defined by the length
6548 Its default value is 4
6549 \begin_inset space \thinspace{}
6553 To change it add the following command to your document preamble or as
6554 TeX-Code into your document before the longtable that should be affected
6557 \begin_layout Standard
6567 \begin_layout Standard
6568 where the width could have one of the units listed in appendix
6569 \begin_inset space ~
6573 \begin_inset CommandInset ref
6575 reference "cha:Units-available-in"
6582 \begin_layout Standard
6583 The following tables show the difference:
6586 \begin_layout Standard
6587 \begin_inset Tabular
6588 <lyxtabular version="3" rows="6" columns="5">
6589 <features islongtable="true">
6590 <column alignment="center" valignment="top" width="0">
6591 <column alignment="center" valignment="top" width="0">
6592 <column alignment="center" valignment="top" width="0">
6593 <column alignment="center" valignment="top" width="0">
6594 <column alignment="center" valignment="top" width="0">
6595 <row caption="true">
6596 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6599 \begin_layout Plain Layout
6600 \begin_inset Caption
6602 \begin_layout Plain Layout
6603 long full title with default width long full title with default width long
6604 full title with default width
6608 \begin_layout Plain Layout
6609 caption with default width
6624 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6627 \begin_layout Plain Layout
6633 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6636 \begin_layout Plain Layout
6642 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6645 \begin_layout Plain Layout
6651 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6654 \begin_layout Plain Layout
6662 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6665 \begin_layout Plain Layout
6671 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6674 \begin_layout Plain Layout
6680 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6683 \begin_layout Plain Layout
6689 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6692 \begin_layout Plain Layout
6698 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6701 \begin_layout Plain Layout
6709 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6712 \begin_layout Plain Layout
6718 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6721 \begin_layout Plain Layout
6727 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6730 \begin_layout Plain Layout
6736 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6739 \begin_layout Plain Layout
6745 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6748 \begin_layout Plain Layout
6756 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6759 \begin_layout Plain Layout
6765 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6768 \begin_layout Plain Layout
6774 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6777 \begin_layout Plain Layout
6783 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6786 \begin_layout Plain Layout
6792 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6795 \begin_layout Plain Layout
6803 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6806 \begin_layout Plain Layout
6812 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6815 \begin_layout Plain Layout
6821 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6824 \begin_layout Plain Layout
6830 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6833 \begin_layout Plain Layout
6839 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6842 \begin_layout Plain Layout
6850 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6853 \begin_layout Plain Layout
6859 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6862 \begin_layout Plain Layout
6868 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6871 \begin_layout Plain Layout
6877 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6880 \begin_layout Plain Layout
6886 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6889 \begin_layout Plain Layout
6903 \begin_layout Standard
6907 \begin_layout Plain Layout
6919 \begin_inset Tabular
6920 <lyxtabular version="3" rows="6" columns="5">
6921 <features islongtable="true">
6922 <column alignment="center" valignment="top" width="0">
6923 <column alignment="center" valignment="top" width="0">
6924 <column alignment="center" valignment="top" width="0">
6925 <column alignment="center" valignment="top" width="0">
6926 <column alignment="center" valignment="top" width="0">
6927 <row caption="true">
6928 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6931 \begin_layout Plain Layout
6932 \begin_inset Caption
6934 \begin_layout Plain Layout
6935 long full title with width set to 5
6936 \begin_inset space \thinspace{}
6939 cm long full title with width set to 5
6940 \begin_inset space \thinspace{}
6943 cm long full title with width set to 5
6944 \begin_inset space \thinspace{}
6951 \begin_layout Plain Layout
6953 \begin_inset space \thinspace{}
6957 \begin_inset space \thinspace{}
6961 \begin_inset space \thinspace{}
6979 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6982 \begin_layout Plain Layout
6988 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6991 \begin_layout Plain Layout
6997 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7000 \begin_layout Plain Layout
7006 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7009 \begin_layout Plain Layout
7017 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7020 \begin_layout Plain Layout
7026 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7029 \begin_layout Plain Layout
7035 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7038 \begin_layout Plain Layout
7044 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7047 \begin_layout Plain Layout
7053 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7056 \begin_layout Plain Layout
7064 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7067 \begin_layout Plain Layout
7073 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7076 \begin_layout Plain Layout
7082 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7085 \begin_layout Plain Layout
7091 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7094 \begin_layout Plain Layout
7100 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7103 \begin_layout Plain Layout
7111 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7114 \begin_layout Plain Layout
7120 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7123 \begin_layout Plain Layout
7129 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7132 \begin_layout Plain Layout
7138 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7141 \begin_layout Plain Layout
7147 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7150 \begin_layout Plain Layout
7158 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7161 \begin_layout Plain Layout
7167 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7170 \begin_layout Plain Layout
7176 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7179 \begin_layout Plain Layout
7185 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7188 \begin_layout Plain Layout
7194 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7197 \begin_layout Plain Layout
7205 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7208 \begin_layout Plain Layout
7214 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7217 \begin_layout Plain Layout
7223 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7226 \begin_layout Plain Layout
7232 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7235 \begin_layout Plain Layout
7241 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7244 \begin_layout Plain Layout
7258 \begin_layout Standard
7262 \begin_layout Plain Layout
7276 \begin_layout Standard
7277 \begin_inset Note Greyedout
7280 \begin_layout Plain Layout
7285 When the LaTeX-package
7293 \begin_layout Plain Layout
7294 LaTeX-packages ! caption
7299 is used, as in this document, the full page width is used for the caption
7300 when you use the default value of 4
7301 \begin_inset space \thinspace{}
7311 To get in this case exactly a 4
7312 \begin_inset space \thinspace{}
7315 in wide caption, you can either use a value slightly different from 4.0
7316 \begin_inset space \thinspace{}
7320 \begin_inset space \thinspace{}
7324 \begin_inset space \space{}
7328 \begin_inset space \thinspace{}
7331 in, or the LaTeX-command
7335 captionsetup{width=value}
7337 that is provided by the
7349 \begin_layout Subsubsection
7350 Different Captions for Table Pages
7354 \begin_layout Plain Layout
7355 Longtables ! Different Captions for Pages
7363 \begin_layout Standard
7364 When the other captions should differ from the one of the first table page,
7365 insert a caption with a non-empty short title in a dummy caption row marked
7367 The caption used for the other table pages is inserted as caption without
7368 a short title in a dummy caption row that is marked as main header.
7369 When this caption shouldn't include the table number, use the command
7372 \begin_layout Standard
7377 caption*{caption text}
7380 \begin_layout Standard
7381 instead of LyX's caption box.
7382 The label to reference the table is inserted into the caption of the first
7385 \begin_inset space ~
7389 \begin_inset CommandInset ref
7391 reference "tab:DiffCaptions"
7395 is an example for a longtable with different heading where the second caption
7396 doesn't include the table number.
7399 \begin_layout Standard
7401 \begin_inset Tabular
7402 <lyxtabular version="3" rows="60" columns="3">
7403 <features islongtable="true">
7404 <column alignment="left" valignment="top" width="0cm">
7405 <column alignment="left" valignment="top" width="0pt">
7406 <column alignment="center" valignment="top" width="0pt">
7407 <row endfirsthead="true" caption="true">
7408 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7411 \begin_layout Plain Layout
7412 \begin_inset Caption
7414 \begin_layout Plain Layout
7416 \begin_inset CommandInset label
7418 name "tab:DiffCaptions"
7426 \begin_layout Plain Layout
7442 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7445 \begin_layout Plain Layout
7451 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7454 \begin_layout Plain Layout
7461 <row endfirsthead="true">
7462 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7465 \begin_layout Plain Layout
7468 Example Phone List (ignore the names)
7473 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7476 \begin_layout Plain Layout
7482 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7485 \begin_layout Plain Layout
7492 <row endfirsthead="true">
7493 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7496 \begin_layout Plain Layout
7504 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7507 \begin_layout Plain Layout
7513 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7516 \begin_layout Plain Layout
7525 <row endhead="true" caption="true">
7526 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7529 \begin_layout Plain Layout
7533 \begin_layout Plain Layout
7537 caption*{Continued Example Phone List}
7551 <cell multicolumn="2" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7554 \begin_layout Plain Layout
7560 <cell multicolumn="2" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7563 \begin_layout Plain Layout
7570 <row endhead="true">
7571 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7574 \begin_layout Plain Layout
7582 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7585 \begin_layout Plain Layout
7591 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7594 \begin_layout Plain Layout
7601 <row endhead="true">
7602 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
7605 \begin_layout Plain Layout
7613 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7616 \begin_layout Plain Layout
7622 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7625 \begin_layout Plain Layout
7634 <row endfoot="true">
7635 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
7638 \begin_layout Plain Layout
7639 continued on next page
7644 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7647 \begin_layout Plain Layout
7653 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7656 \begin_layout Plain Layout
7664 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7667 \begin_layout Plain Layout
7675 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7678 \begin_layout Plain Layout
7684 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
7687 \begin_layout Plain Layout
7695 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7698 \begin_layout Plain Layout
7706 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7709 \begin_layout Plain Layout
7715 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7718 \begin_layout Plain Layout
7726 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7729 \begin_layout Plain Layout
7737 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7740 \begin_layout Plain Layout
7746 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7749 \begin_layout Plain Layout
7757 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7760 \begin_layout Plain Layout
7768 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7771 \begin_layout Plain Layout
7777 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7780 \begin_layout Plain Layout
7788 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7791 \begin_layout Plain Layout
7799 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7802 \begin_layout Plain Layout
7808 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7811 \begin_layout Plain Layout
7819 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7822 \begin_layout Plain Layout
7830 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7833 \begin_layout Plain Layout
7839 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7842 \begin_layout Plain Layout
7850 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7853 \begin_layout Plain Layout
7861 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7864 \begin_layout Plain Layout
7870 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7873 \begin_layout Plain Layout
7881 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7884 \begin_layout Plain Layout
7892 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7895 \begin_layout Plain Layout
7901 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7904 \begin_layout Plain Layout
7912 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7915 \begin_layout Plain Layout
7923 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7926 \begin_layout Plain Layout
7932 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7935 \begin_layout Plain Layout
7943 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7946 \begin_layout Plain Layout
7954 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7957 \begin_layout Plain Layout
7963 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7966 \begin_layout Plain Layout
7974 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7977 \begin_layout Plain Layout
7985 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7988 \begin_layout Plain Layout
7994 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7997 \begin_layout Plain Layout
8005 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8008 \begin_layout Plain Layout
8016 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8019 \begin_layout Plain Layout
8025 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8028 \begin_layout Plain Layout
8036 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8039 \begin_layout Plain Layout
8047 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8050 \begin_layout Plain Layout
8056 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8059 \begin_layout Plain Layout
8067 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8070 \begin_layout Plain Layout
8078 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8081 \begin_layout Plain Layout
8087 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8090 \begin_layout Plain Layout
8098 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8101 \begin_layout Plain Layout
8110 \begin_layout Plain Layout
8121 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8124 \begin_layout Plain Layout
8130 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8133 \begin_layout Plain Layout
8141 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8144 \begin_layout Plain Layout
8152 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8155 \begin_layout Plain Layout
8161 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8164 \begin_layout Plain Layout
8172 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8175 \begin_layout Plain Layout
8183 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8186 \begin_layout Plain Layout
8192 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8195 \begin_layout Plain Layout
8203 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8206 \begin_layout Plain Layout
8214 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8217 \begin_layout Plain Layout
8223 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8226 \begin_layout Plain Layout
8234 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8237 \begin_layout Plain Layout
8245 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8248 \begin_layout Plain Layout
8254 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8257 \begin_layout Plain Layout
8265 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8268 \begin_layout Plain Layout
8276 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8279 \begin_layout Plain Layout
8285 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8288 \begin_layout Plain Layout
8296 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8299 \begin_layout Plain Layout
8307 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8310 \begin_layout Plain Layout
8316 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8319 \begin_layout Plain Layout
8327 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8330 \begin_layout Plain Layout
8338 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8341 \begin_layout Plain Layout
8347 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8350 \begin_layout Plain Layout
8358 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8361 \begin_layout Plain Layout
8369 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8372 \begin_layout Plain Layout
8378 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8381 \begin_layout Plain Layout
8389 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8392 \begin_layout Plain Layout
8400 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8403 \begin_layout Plain Layout
8409 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8412 \begin_layout Plain Layout
8420 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8423 \begin_layout Plain Layout
8431 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8434 \begin_layout Plain Layout
8440 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8443 \begin_layout Plain Layout
8451 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8454 \begin_layout Plain Layout
8462 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8465 \begin_layout Plain Layout
8471 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8474 \begin_layout Plain Layout
8482 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8485 \begin_layout Plain Layout
8493 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8496 \begin_layout Plain Layout
8502 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8505 \begin_layout Plain Layout
8513 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8516 \begin_layout Plain Layout
8524 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8527 \begin_layout Plain Layout
8533 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8536 \begin_layout Plain Layout
8544 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8547 \begin_layout Plain Layout
8555 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8558 \begin_layout Plain Layout
8564 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8567 \begin_layout Plain Layout
8575 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8578 \begin_layout Plain Layout
8586 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8589 \begin_layout Plain Layout
8595 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8598 \begin_layout Plain Layout
8606 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8609 \begin_layout Plain Layout
8617 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8620 \begin_layout Plain Layout
8626 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8629 \begin_layout Plain Layout
8637 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8640 \begin_layout Plain Layout
8646 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8649 \begin_layout Plain Layout
8655 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8658 \begin_layout Plain Layout
8666 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8669 \begin_layout Plain Layout
8677 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8680 \begin_layout Plain Layout
8686 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8689 \begin_layout Plain Layout
8697 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8700 \begin_layout Plain Layout
8708 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8711 \begin_layout Plain Layout
8717 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8720 \begin_layout Plain Layout
8728 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8731 \begin_layout Plain Layout
8739 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8742 \begin_layout Plain Layout
8748 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8751 \begin_layout Plain Layout
8759 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8762 \begin_layout Plain Layout
8770 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8773 \begin_layout Plain Layout
8779 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8782 \begin_layout Plain Layout
8790 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8793 \begin_layout Plain Layout
8801 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8804 \begin_layout Plain Layout
8810 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8813 \begin_layout Plain Layout
8821 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8824 \begin_layout Plain Layout
8832 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8835 \begin_layout Plain Layout
8841 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8844 \begin_layout Plain Layout
8852 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8855 \begin_layout Plain Layout
8863 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8866 \begin_layout Plain Layout
8872 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8875 \begin_layout Plain Layout
8883 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8886 \begin_layout Plain Layout
8894 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8897 \begin_layout Plain Layout
8903 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8906 \begin_layout Plain Layout
8914 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8917 \begin_layout Plain Layout
8925 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8928 \begin_layout Plain Layout
8934 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8937 \begin_layout Plain Layout
8945 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8948 \begin_layout Plain Layout
8956 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8959 \begin_layout Plain Layout
8965 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8968 \begin_layout Plain Layout
8976 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8979 \begin_layout Plain Layout
8987 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8990 \begin_layout Plain Layout
8996 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8999 \begin_layout Plain Layout
9007 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9010 \begin_layout Plain Layout
9018 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9021 \begin_layout Plain Layout
9027 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9030 \begin_layout Plain Layout
9038 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9041 \begin_layout Plain Layout
9049 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9052 \begin_layout Plain Layout
9058 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9061 \begin_layout Plain Layout
9069 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9072 \begin_layout Plain Layout
9080 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9083 \begin_layout Plain Layout
9089 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9092 \begin_layout Plain Layout
9100 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9103 \begin_layout Plain Layout
9111 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9114 \begin_layout Plain Layout
9120 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9123 \begin_layout Plain Layout
9131 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9134 \begin_layout Plain Layout
9142 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9145 \begin_layout Plain Layout
9151 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9154 \begin_layout Plain Layout
9162 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9165 \begin_layout Plain Layout
9173 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9176 \begin_layout Plain Layout
9182 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9185 \begin_layout Plain Layout
9193 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9196 \begin_layout Plain Layout
9204 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9207 \begin_layout Plain Layout
9213 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9216 \begin_layout Plain Layout
9224 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9227 \begin_layout Plain Layout
9235 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9238 \begin_layout Plain Layout
9244 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9247 \begin_layout Plain Layout
9255 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9258 \begin_layout Plain Layout
9266 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9269 \begin_layout Plain Layout
9275 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9278 \begin_layout Plain Layout
9285 <row endlastfoot="true">
9286 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9289 \begin_layout Plain Layout
9295 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
9298 \begin_layout Plain Layout
9304 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9307 \begin_layout Plain Layout
9321 \begin_layout Section
9322 Special Longtable Issues
9323 \begin_inset CommandInset label
9325 name "sec:Special-Longtable-Issues"
9332 \begin_layout Subsection
9333 Longtable Calculation
9337 \begin_layout Plain Layout
9338 Longtables ! Calculation
9346 \begin_layout Standard
9347 LaTeX calculates the height of table pages and their page breaks using so
9349 Chunks are pieces of the tables that are at once in LaTeX's memory.
9350 The default value is historically set to only 20 table rows.
9351 If you are using longtables with many pages this may slow down the creation
9353 You can safely increase the chunk size to values of 100-1000 by adding
9354 this command line to your document preamble:
9357 \begin_layout Standard
9362 setcounter{LTchunksize}{100}
9365 \begin_layout Subsection
9366 Floats and Longtables
9370 \begin_layout Plain Layout
9379 \begin_layout Standard
9380 There might be problems when a float appears on the same page where a longtable
9382 To avoid such situation, add the command
9388 as TeX-Code before your longtable.
9391 \begin_layout Subsection
9396 \begin_layout Plain Layout
9397 Longtables ! Forced Page Breaks
9405 \begin_layout Standard
9406 By default tables are only broken between rows.
9407 If you have a cell with multiples lines and want to have a page break within
9408 the cell, insert the new line command
9409 \begin_inset Quotes eld
9421 \begin_inset Quotes erd
9424 as TeX-Code at this point of the cell where it should be broken.
9433 command you have to insert in TeX-Code so many
9434 \begin_inset Quotes eld
9442 \begin_inset Quotes erd
9445 characters like the number of the following table columns.
9450 is the character to separate table cells.
9451 Write in TeX-Code after each
9455 the content of the corresponding following cell and delete the content
9457 \begin_inset Newline newline
9468 command, insert so many
9472 characters like the number of table columns before the current column.
9474 \begin_inset space ~
9478 \begin_inset CommandInset ref
9480 reference "tab:ForcedPagebreak"
9484 the cell that should be broken is in the second column followed by another
9486 Therefore the following command was inserted in the cell as TeX-Code behind
9488 \begin_inset Quotes eld
9496 \begin_inset Quotes erd
9502 \begin_layout Standard
9510 \begin_inset Newline newline
9516 \begin_layout Standard
9518 \begin_inset Quotes eld
9522 \begin_inset Quotes erd
9525 in the third columns of the row was deleted.
9526 If your footer row of the longtable has for a certain reason no upper line
9527 but you would have a horizontal line where the cell is broken, use this
9531 \begin_layout Standard
9539 \begin_inset Newline newline
9547 \begin_layout Standard
9548 When the cell to be broken is in the last column, the command
9551 \begin_layout Standard
9561 \begin_layout Standard
9562 must be inserted as TeX-Code at the beginning of the cell.
9563 This assures that the part of the cell that will be displayed on the new
9564 page appears with the full width.
9567 \begin_layout Standard
9569 \begin_inset Tabular
9570 <lyxtabular version="3" rows="39" columns="3">
9571 <features islongtable="true">
9572 <column alignment="left" valignment="top" width="0cm">
9573 <column alignment="left" valignment="top" width="3cm">
9574 <column alignment="center" valignment="top" width="0pt">
9575 <row endfirsthead="true" caption="true">
9576 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
9579 \begin_layout Plain Layout
9580 \begin_inset Caption
9582 \begin_layout Plain Layout
9583 Table with forced page break in table cell
9584 \begin_inset CommandInset label
9586 name "tab:ForcedPagebreak"
9594 \begin_layout Plain Layout
9595 Table with forced page break in table cell
9610 <cell multicolumn="2" alignment="center" valignment="top" rightline="true" usebox="none">
9613 \begin_layout Plain Layout
9619 <cell multicolumn="2" alignment="center" valignment="top" rightline="true" usebox="none">
9622 \begin_layout Plain Layout
9629 <row endfirsthead="true">
9630 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9633 \begin_layout Plain Layout
9636 Example Phone List (ignore the names)
9641 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9644 \begin_layout Plain Layout
9650 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9653 \begin_layout Plain Layout
9660 <row endfirsthead="true">
9661 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9664 \begin_layout Plain Layout
9672 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9675 \begin_layout Plain Layout
9681 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9684 \begin_layout Plain Layout
9693 <row endhead="true" caption="true">
9694 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
9697 \begin_layout Plain Layout
9701 \begin_layout Plain Layout
9705 caption*{Continued table with forced page break in table cell}
9719 <cell multicolumn="2" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
9722 \begin_layout Plain Layout
9728 <cell multicolumn="2" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
9731 \begin_layout Plain Layout
9738 <row endhead="true">
9739 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9742 \begin_layout Plain Layout
9750 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9753 \begin_layout Plain Layout
9759 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9762 \begin_layout Plain Layout
9769 <row endhead="true">
9770 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9773 \begin_layout Plain Layout
9781 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9784 \begin_layout Plain Layout
9790 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9793 \begin_layout Plain Layout
9802 <row endfoot="true">
9803 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
9806 \begin_layout Plain Layout
9807 continued on next page
9812 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9815 \begin_layout Plain Layout
9821 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9824 \begin_layout Plain Layout
9832 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9835 \begin_layout Plain Layout
9843 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9846 \begin_layout Plain Layout
9852 <cell alignment="right" valignment="top" rightline="true" usebox="none">
9855 \begin_layout Plain Layout
9863 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9866 \begin_layout Plain Layout
9874 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9877 \begin_layout Plain Layout
9883 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9886 \begin_layout Plain Layout
9894 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9897 \begin_layout Plain Layout
9905 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9908 \begin_layout Plain Layout
9914 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9917 \begin_layout Plain Layout
9925 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9928 \begin_layout Plain Layout
9936 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9939 \begin_layout Plain Layout
9945 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9948 \begin_layout Plain Layout
9956 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9959 \begin_layout Plain Layout
9967 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9970 \begin_layout Plain Layout
9976 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9979 \begin_layout Plain Layout
9987 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9990 \begin_layout Plain Layout
9998 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10001 \begin_layout Plain Layout
10007 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10010 \begin_layout Plain Layout
10018 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10021 \begin_layout Plain Layout
10029 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10032 \begin_layout Plain Layout
10038 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10041 \begin_layout Plain Layout
10049 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10052 \begin_layout Plain Layout
10060 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10063 \begin_layout Plain Layout
10069 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10072 \begin_layout Plain Layout
10080 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10083 \begin_layout Plain Layout
10091 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10094 \begin_layout Plain Layout
10100 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10103 \begin_layout Plain Layout
10111 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10114 \begin_layout Plain Layout
10122 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10125 \begin_layout Plain Layout
10131 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10134 \begin_layout Plain Layout
10142 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10145 \begin_layout Plain Layout
10153 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10156 \begin_layout Plain Layout
10162 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10165 \begin_layout Plain Layout
10173 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10176 \begin_layout Plain Layout
10184 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10187 \begin_layout Plain Layout
10193 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10196 \begin_layout Plain Layout
10204 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10207 \begin_layout Plain Layout
10215 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10218 \begin_layout Plain Layout
10224 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10227 \begin_layout Plain Layout
10235 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10238 \begin_layout Plain Layout
10246 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10249 \begin_layout Plain Layout
10255 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10258 \begin_layout Plain Layout
10266 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10269 \begin_layout Plain Layout
10277 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10280 \begin_layout Plain Layout
10286 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10289 \begin_layout Plain Layout
10297 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10300 \begin_layout Plain Layout
10308 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10311 \begin_layout Plain Layout
10317 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10320 \begin_layout Plain Layout
10328 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10331 \begin_layout Plain Layout
10339 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10342 \begin_layout Plain Layout
10348 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10351 \begin_layout Plain Layout
10359 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10362 \begin_layout Plain Layout
10370 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10373 \begin_layout Plain Layout
10379 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10382 \begin_layout Plain Layout
10390 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10393 \begin_layout Plain Layout
10401 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10404 \begin_layout Plain Layout
10410 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10413 \begin_layout Plain Layout
10421 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10424 \begin_layout Plain Layout
10432 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10435 \begin_layout Plain Layout
10441 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10444 \begin_layout Plain Layout
10452 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10455 \begin_layout Plain Layout
10463 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10466 \begin_layout Plain Layout
10472 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10475 \begin_layout Plain Layout
10483 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10486 \begin_layout Plain Layout
10494 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10497 \begin_layout Plain Layout
10503 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10506 \begin_layout Plain Layout
10514 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10517 \begin_layout Plain Layout
10525 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10528 \begin_layout Plain Layout
10530 Fürst von Montecompatri, 11.
10531 Fürst von Sulmona und Vivaro, 10.
10532 Fürst von Rossano, 5.
10533 Herzog von Canemorte, 11.
10534 Herzog von Palombara, 5.
10535 Herzog von Castelchiodato,
10539 \begin_layout Plain Layout
10548 \begin_layout Plain Layout
10556 Herzog von Poggionativo, 11.
10557 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10558 Graf von Valinfreda, 11.
10559 Baron von Cropalati, 11.
10560 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10565 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10568 \begin_layout Plain Layout
10576 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10579 \begin_layout Plain Layout
10587 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10590 \begin_layout Plain Layout
10596 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10599 \begin_layout Plain Layout
10607 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10610 \begin_layout Plain Layout
10618 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10621 \begin_layout Plain Layout
10627 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10630 \begin_layout Plain Layout
10638 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10641 \begin_layout Plain Layout
10649 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10652 \begin_layout Plain Layout
10658 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10661 \begin_layout Plain Layout
10669 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10672 \begin_layout Plain Layout
10680 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10683 \begin_layout Plain Layout
10689 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10692 \begin_layout Plain Layout
10700 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10703 \begin_layout Plain Layout
10711 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10714 \begin_layout Plain Layout
10720 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10723 \begin_layout Plain Layout
10731 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10734 \begin_layout Plain Layout
10742 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10745 \begin_layout Plain Layout
10751 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10754 \begin_layout Plain Layout
10762 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10765 \begin_layout Plain Layout
10773 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10776 \begin_layout Plain Layout
10782 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10785 \begin_layout Plain Layout
10793 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10796 \begin_layout Plain Layout
10804 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
10807 \begin_layout Plain Layout
10813 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
10816 \begin_layout Plain Layout
10823 <row endlastfoot="true">
10824 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
10827 \begin_layout Plain Layout
10833 <cell multicolumn="2" alignment="center" valignment="top" rightline="true" usebox="none">
10836 \begin_layout Plain Layout
10842 <cell multicolumn="2" alignment="center" valignment="top" rightline="true" usebox="none">
10845 \begin_layout Plain Layout
10859 \begin_layout Standard
10860 \begin_inset Newpage newpage
10866 \begin_layout Section
10867 Multiple Lines Columns and Rows
10870 \begin_layout Subsection
10871 Multiple Lines in Table Cells
10872 \begin_inset CommandInset label
10874 name "sub:Multiple-Lines-in"
10882 \begin_layout Plain Layout
10883 Multiple Lines in Table Cells
10892 \begin_layout Plain Layout
10901 \begin_layout Standard
10903 \begin_inset Float table
10909 \begin_layout Plain Layout
10910 \begin_inset Caption
10912 \begin_layout Plain Layout
10913 \begin_inset CommandInset label
10915 name "tab:Table-with-multiple"
10919 Table with multiple lines in cells
10927 \begin_layout Plain Layout
10929 \begin_inset Tabular
10930 <lyxtabular version="3" rows="3" columns="3">
10932 <column alignment="center" valignment="middle" width="2.5cm">
10933 <column alignment="center" valignment="middle" width="0">
10934 <column alignment="center" valignment="middle" width="0">
10936 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10939 \begin_layout Plain Layout
10941 \begin_inset Newline linebreak
10949 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10952 \begin_layout Plain Layout
10958 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10961 \begin_layout Plain Layout
10969 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10972 \begin_layout Plain Layout
10978 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10981 \begin_layout Plain Layout
10987 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10990 \begin_layout Plain Layout
10998 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11001 \begin_layout Plain Layout
11007 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11010 \begin_layout Plain Layout
11016 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11019 \begin_layout Plain Layout
11038 \begin_layout Standard
11039 Adjusting a fixed width for a column, enables to enter text as a paragraph
11040 with multiple lines and hyphenations.
11043 \begin_layout Standard
11045 \begin_inset space ~
11049 \begin_inset CommandInset ref
11051 reference "tab:Table-with-multiple"
11055 , create a 3×3 table, mark the first cell and right-click on it.
11056 In the appearing table dialog we set a cell width of 2.5
11057 \begin_inset space \thinspace{}
11060 cm and choose centered for the vertical and horizontal alignment.
11061 The vertical alignment is used for all cells of the row.
11062 As our text is smaller than than 2.5
11063 \begin_inset space \thinspace{}
11066 cm, only one line will appear.
11067 To get two lines, a justified line break (shortcut
11070 arg "newline-insert linebreak"
11074 If the text is wider than the set cell width, it will automatically be
11075 broken to several lines.
11078 \begin_layout Standard
11079 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11080 by LaTeX if it is the first entry.
11081 Therefore you need to insert something, to make the word not being the
11083 So add a horizontal space of 0
11084 \begin_inset space \thinspace{}
11087 pt before the word.
11088 As the space is zero, it doesn't change the output.
11090 \begin_inset space ~
11094 \begin_inset CommandInset ref
11096 reference "tab:Table-with-and"
11103 \begin_layout Standard
11104 \begin_inset Float table
11110 \begin_layout Plain Layout
11111 \begin_inset Caption
11113 \begin_layout Plain Layout
11114 \begin_inset CommandInset label
11116 name "tab:Table-with-and"
11120 Table with and without hyphenation
11128 \begin_layout Plain Layout
11129 \begin_inset space \hfill{}
11133 \begin_inset Tabular
11134 <lyxtabular version="3" rows="3" columns="3">
11136 <column alignment="center" valignment="middle" width="2.5cm">
11137 <column alignment="center" valignment="middle" width="0">
11138 <column alignment="center" valignment="middle" width="0">
11140 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11143 \begin_layout Plain Layout
11144 verylongtablecellword
11149 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11152 \begin_layout Plain Layout
11158 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11161 \begin_layout Plain Layout
11169 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11172 \begin_layout Plain Layout
11178 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11181 \begin_layout Plain Layout
11187 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11190 \begin_layout Plain Layout
11198 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11201 \begin_layout Plain Layout
11207 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11210 \begin_layout Plain Layout
11216 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11219 \begin_layout Plain Layout
11231 \begin_inset space \hfill{}
11235 \begin_inset Tabular
11236 <lyxtabular version="3" rows="3" columns="3">
11238 <column alignment="center" valignment="middle" width="2.5cm">
11239 <column alignment="center" valignment="middle" width="0">
11240 <column alignment="center" valignment="middle" width="0">
11242 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11245 \begin_layout Plain Layout
11246 \begin_inset space \hspace{}
11250 verylongtablecellword
11255 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11258 \begin_layout Plain Layout
11264 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11267 \begin_layout Plain Layout
11275 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11278 \begin_layout Plain Layout
11284 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11287 \begin_layout Plain Layout
11293 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11296 \begin_layout Plain Layout
11304 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11307 \begin_layout Plain Layout
11313 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11316 \begin_layout Plain Layout
11322 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11325 \begin_layout Plain Layout
11337 \begin_inset space \hfill{}
11348 \begin_layout Subsection
11350 \begin_inset CommandInset label
11352 name "sub:Multicolumns"
11360 \begin_layout Plain Layout
11370 \begin_layout Plain Layout
11371 Table ! Multicolumns
11379 \begin_layout Subsubsection
11383 \begin_layout Standard
11384 To span a cell over multiple columns, mark as much cells within a line that
11385 should be one spanned cell and use either the table-toolbar button
11386 \begin_inset Graphics
11387 filename ../images/tabular-feature_multicolumn.png
11389 scaleBeforeRotation
11395 Edit\SpecialChar \menuseparator
11396 Table\SpecialChar \menuseparator
11399 , or right click on the marked cells and choose multicolumn in the appearing
11400 table dialog under the tab
11407 \begin_layout Standard
11408 Multicolumns have there own cell settings.
11409 That means changing cell borders, cell alignment, and the width only affects
11411 Here is an example table with a multicolumn cell in the first row and one
11412 in the last row without the upper border:
11415 \begin_layout Standard
11417 \begin_inset Tabular
11418 <lyxtabular version="3" rows="3" columns="4">
11419 <features firstHeadTopDL="true" firstHeadBottomDL="true">
11420 <column alignment="center" valignment="top" width="0pt">
11421 <column alignment="center" valignment="middle" width="0">
11422 <column alignment="center" valignment="top" width="0in">
11423 <column alignment="center" valignment="top" width="0pt">
11425 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11428 \begin_layout Plain Layout
11434 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11437 \begin_layout Plain Layout
11443 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11446 \begin_layout Plain Layout
11452 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11455 \begin_layout Plain Layout
11463 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11466 \begin_layout Plain Layout
11481 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11484 \begin_layout Plain Layout
11490 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11493 \begin_layout Plain Layout
11499 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11502 \begin_layout Plain Layout
11510 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11513 \begin_layout Plain Layout
11519 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11522 \begin_layout Plain Layout
11528 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11531 \begin_layout Plain Layout
11537 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11540 \begin_layout Plain Layout
11554 \begin_layout Subsubsection
11555 Multicolumn Calculations
11556 \begin_inset CommandInset label
11558 name "sub:Multicolumn-Calculations"
11566 \begin_layout Plain Layout
11567 Multicolumns ! Calculations
11575 \begin_layout Standard
11576 LyX supports multicolumns directly, but we have to take notice of the cell
11577 width of the columns spanned by the multicolumn cell.
11580 \begin_layout Standard
11581 \begin_inset Float table
11587 \begin_layout Plain Layout
11588 \begin_inset Caption
11590 \begin_layout Plain Layout
11591 \begin_inset CommandInset label
11593 name "tab:Table-with-centered"
11597 Table with centered multicolumn text above two columns that have exactly
11598 half the width of the multicolumn cell
11599 \begin_inset OptArg
11602 \begin_layout Plain Layout
11603 Perfect multicolumn table
11616 \begin_layout Plain Layout
11618 \begin_inset Tabular
11619 <lyxtabular version="3" rows="3" columns="3">
11621 <column alignment="center" valignment="middle" width="0" special=">{\centering}m{1.25cm-6.2pt}">
11622 <column alignment="center" valignment="middle" width="0">
11623 <column alignment="center" valignment="top" width="0">
11625 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11628 \begin_layout Plain Layout
11629 multiple lines multicolumn
11634 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11637 \begin_layout Plain Layout
11643 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11646 \begin_layout Plain Layout
11654 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11657 \begin_layout Plain Layout
11663 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11666 \begin_layout Plain Layout
11672 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11675 \begin_layout Plain Layout
11683 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11686 \begin_layout Plain Layout
11692 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11695 \begin_layout Plain Layout
11701 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11704 \begin_layout Plain Layout
11723 \begin_layout Standard
11724 To create for example Table
11725 \begin_inset space ~
11729 \begin_inset CommandInset ref
11731 reference "tab:Table-with-centered"
11735 , mark the first two cells in the first row of a 3×3 table and right-click
11737 Now choose for this cell
11746 \begin_inset space \thinspace{}
11749 cm in the table dialog.
11750 The spanned columns should have exactly half the width of the multicolumn
11751 cell, so that you would adjust a width of 1.25
11752 \begin_inset space \thinspace{}
11755 cm for the first column.
11756 The second column has then automatically a width of 1.25
11757 \begin_inset space \thinspace{}
11760 cm (multicolumn width - width of first column).
11761 This was done for Table
11762 \begin_inset space ~
11766 \begin_inset CommandInset ref
11768 reference "tab:Table-without-half"
11775 \begin_layout Standard
11776 \begin_inset Float table
11781 \begin_layout Plain Layout
11782 \begin_inset Caption
11784 \begin_layout Plain Layout
11785 \begin_inset CommandInset label
11787 name "tab:Table-without-half"
11791 Table where the spanned table columns have not exactly half the width of
11792 the multicolumn cell
11793 \begin_inset OptArg
11796 \begin_layout Plain Layout
11797 Imperfect multicolumn table
11810 \begin_layout Plain Layout
11812 \begin_inset Tabular
11813 <lyxtabular version="3" rows="3" columns="3">
11815 <column alignment="center" valignment="top" width="1.25cm">
11816 <column alignment="center" valignment="top" width="0">
11817 <column alignment="center" valignment="top" width="0">
11819 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
11822 \begin_layout Plain Layout
11823 multiple lines multicolumn
11828 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11831 \begin_layout Plain Layout
11837 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11840 \begin_layout Plain Layout
11848 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11851 \begin_layout Plain Layout
11857 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11860 \begin_layout Plain Layout
11866 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11869 \begin_layout Plain Layout
11877 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11880 \begin_layout Plain Layout
11886 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11889 \begin_layout Plain Layout
11895 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11898 \begin_layout Plain Layout
11917 \begin_layout Standard
11918 You can see that the first column has not the half width of the multicolumn
11919 cell, it is a bit bigger.
11920 The reason is that the given width of a cell
11921 \begin_inset Formula $W_{g}$
11924 is not its total width
11925 \begin_inset Formula $W_{\mathrm{tot}}$
11928 because a cell is always a bit larger than its given width.
11930 \begin_inset space ~
11934 \begin_inset CommandInset ref
11936 reference "cha:Explanation-of-Equation"
11940 explains it in detail.
11943 \begin_layout Standard
11944 The needed given width
11945 \begin_inset Formula $W_{g\, n}$
11952 columns are spanned can be calculated, so that each column has a total
11954 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
11958 \begin_inset Formula \begin{equation}
11959 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}\end{equation}
11966 \begin_layout Standard
11967 In our case we have
11968 \begin_inset Formula $n=2$
11972 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
11975 cm and the default values for the lengths, so that equation
11976 \begin_inset CommandInset ref
11983 \begin_inset Formula \begin{equation}
11984 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}\end{equation}
11991 \begin_layout Standard
11992 To enable calculations in LaTeX, the LaTeX-package
11996 must be loaded with the document preamble line
12000 \begin_layout Plain Layout
12001 LaTeX-packages ! calc
12009 \begin_layout Standard
12017 \begin_layout Standard
12018 LyX does not allow to calculate lengths in the width-field of the table
12020 Therefore you have to format the column by inserting a LaTeX-argument in
12022 Here is an overview about the arguments:
12025 \begin_layout Itemize
12030 creates cell with a fixed width, its text is vertically top-aligned
12033 \begin_layout Itemize
12038 creates cell with a fixed width, its text is vertically centered
12041 \begin_layout Itemize
12046 creates cell with a fixed width, its text is vertically bottom-aligned
12049 \begin_layout Standard
12050 By entering a LaTeX-argument, all cell settings set in the table dialog
12054 \begin_layout Standard
12055 \begin_inset Note Greyedout
12058 \begin_layout Plain Layout
12063 Due to a bug, LyX shows the overwritten settings anyway.
12071 \begin_layout Standard
12072 As the text should be horizontally centered, the command
12079 You can now enter the following LaTeX-argument for the first spanned column:
12082 \begin_layout Standard
12087 centering}m{1.25cm-6.2pt}
12090 \begin_layout Standard
12095 means, that the commands inside the braces are applied before the cell
12099 \begin_layout Standard
12100 Although we have chosen centered alignment for the text of the multicolumn
12101 cell, it is still left aligned.
12102 This is because LyX only applies the alignment to single columns.
12103 So we have to use for the multicolumn the LaTeX-argument
12106 \begin_layout Standard
12114 \begin_layout Subsection
12119 \begin_layout Plain Layout
12129 \begin_layout Plain Layout
12138 \begin_layout Standard
12139 In contrary to multicolumns multirows are not yet supported by LyX so a
12140 bit of TeX-Code needs to be used.
12141 To use multirows load the LaTeX-package
12149 \begin_layout Plain Layout
12150 LaTeX-packages ! multirow
12155 in your document preamble with the command
12158 \begin_layout Standard
12163 usepackage{multirow}
12166 \begin_layout Standard
12167 Multirows are created with the command
12170 \begin_layout Standard
12175 multirow{number of rows}{cell width}{cell entry}
12178 \begin_layout Standard
12179 To create the following table:
12182 \begin_layout Standard
12187 \begin_layout Plain Layout
12201 \begin_inset Tabular
12202 <lyxtabular version="3" rows="3" columns="3">
12204 <column alignment="center" valignment="top" width="0">
12205 <column alignment="center" valignment="top" width="0">
12206 <column alignment="center" valignment="top" width="0">
12208 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12211 \begin_layout Plain Layout
12217 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12220 \begin_layout Plain Layout
12226 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12229 \begin_layout Plain Layout
12237 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12240 \begin_layout Plain Layout
12244 \begin_layout Plain Layout
12248 multirow{2}{2.5cm}{
12257 \begin_layout Plain Layout
12269 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12272 \begin_layout Plain Layout
12278 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12281 \begin_layout Plain Layout
12289 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
12292 \begin_layout Plain Layout
12298 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12301 \begin_layout Plain Layout
12307 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12310 \begin_layout Plain Layout
12325 \begin_layout Plain Layout
12341 \begin_layout Standard
12342 create a 3×3 table.
12343 To get rid of the line above the last cell in the first column, the cell
12344 is marked as multicolumn and the upper border is unset.
12345 The multirow is now created in the second row of the first column by inserting
12349 \begin_layout Standard
12354 multirow{2}{2.5cm}{
12357 \begin_layout Standard
12359 According to the command parameters the multirow spans now two rows and
12361 \begin_inset space \thinspace{}
12365 The content of the multirow cell follows outside the TeX-Code box and the
12366 command is finished with a right brace
12370 in another TeX-Code-box behind the text.
12373 \begin_layout Standard
12380 left-aligns its content by default.
12381 To override the default, renew the command
12390 \begin_layout Standard
12402 \begin_layout Standard
12403 in TeX-Code in the document preamble.
12404 Then all entries of multirow cells in the document are centered.
12405 If centering is only needed for several tables, you can renew the command
12406 in an TeX-Code box just before the table instead of the preamble.
12407 If the text should be right-aligned, replace
12420 To return to left-alignment
12429 \begin_layout Section
12431 \begin_inset CommandInset label
12433 name "sec:Formal-Tables"
12441 \begin_layout Plain Layout
12450 \begin_layout Standard
12451 Tables are often typeset in books similar to Table
12452 \begin_inset space ~
12456 \begin_inset CommandInset ref
12458 reference "tab:Example-booktabs-table"
12463 This kind of tables is called
12464 \begin_inset Quotes eld
12472 \begin_inset Quotes erd
12476 To make a table a formal table use the option
12484 tab of the table dialog.
12487 \begin_layout Standard
12488 \begin_inset Float table
12494 \begin_layout Plain Layout
12495 \begin_inset Caption
12497 \begin_layout Plain Layout
12498 \begin_inset CommandInset label
12500 name "tab:Example-booktabs-table"
12504 Example booktabs-table
12512 \begin_layout Plain Layout
12514 \begin_inset Tabular
12515 <lyxtabular version="3" rows="8" columns="4">
12516 <features booktabs="true">
12517 <column alignment="center" valignment="top" width="0">
12518 <column alignment="center" valignment="top" width="0">
12519 <column alignment="center" valignment="top" width="0">
12520 <column alignment="center" valignment="top" width="0">
12522 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12525 \begin_layout Plain Layout
12531 <cell alignment="center" valignment="top" topline="true" usebox="none">
12534 \begin_layout Plain Layout
12536 \begin_inset space \thinspace{}
12544 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
12547 \begin_layout Plain Layout
12549 \begin_inset space \thinspace{}
12557 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12560 \begin_layout Plain Layout
12568 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12571 \begin_layout Plain Layout
12575 \begin_layout Plain Layout
12588 \begin_layout Plain Layout
12597 Detector thickness [µm]
12602 <cell alignment="center" valignment="top" usebox="none">
12605 \begin_layout Plain Layout
12611 <cell alignment="center" valignment="top" usebox="none">
12614 \begin_layout Plain Layout
12620 <cell alignment="center" valignment="top" usebox="none">
12623 \begin_layout Plain Layout
12631 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12634 \begin_layout Plain Layout
12640 <cell alignment="center" valignment="top" topline="true" usebox="none">
12643 \begin_layout Plain Layout
12649 <cell alignment="center" valignment="top" topline="true" usebox="none">
12652 \begin_layout Plain Layout
12658 <cell alignment="center" valignment="top" topline="true" usebox="none">
12661 \begin_layout Plain Layout
12668 <row topspace="default">
12669 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12672 \begin_layout Plain Layout
12673 Spatial resolution [µm]
12678 <cell alignment="center" valignment="top" usebox="none">
12681 \begin_layout Plain Layout
12687 <cell alignment="center" valignment="top" usebox="none">
12690 \begin_layout Plain Layout
12696 <cell alignment="center" valignment="top" usebox="none">
12699 \begin_layout Plain Layout
12706 <row topspace="default">
12707 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12710 \begin_layout Plain Layout
12712 \begin_inset Formula $f_{\mathrm{max}}$
12720 <cell alignment="center" valignment="top" usebox="none">
12723 \begin_layout Plain Layout
12729 <cell alignment="center" valignment="top" usebox="none">
12732 \begin_layout Plain Layout
12738 <cell alignment="center" valignment="top" usebox="none">
12741 \begin_layout Plain Layout
12748 <row topspace="default">
12749 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12752 \begin_layout Plain Layout
12756 \begin_layout Plain Layout
12760 cmidrule(l{10pt}){1-1}
12765 LSF-spatial resolution
12770 <cell alignment="center" valignment="top" usebox="none">
12773 \begin_layout Plain Layout
12779 <cell alignment="center" valignment="top" usebox="none">
12782 \begin_layout Plain Layout
12788 <cell alignment="center" valignment="top" usebox="none">
12791 \begin_layout Plain Layout
12799 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12802 \begin_layout Plain Layout
12808 <cell alignment="center" valignment="top" usebox="none">
12811 \begin_layout Plain Layout
12817 <cell alignment="center" valignment="top" usebox="none">
12820 \begin_layout Plain Layout
12826 <cell alignment="center" valignment="top" usebox="none">
12829 \begin_layout Plain Layout
12837 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
12840 \begin_layout Plain Layout
12846 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12849 \begin_layout Plain Layout
12855 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12858 \begin_layout Plain Layout
12864 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12867 \begin_layout Plain Layout
12886 \begin_layout Standard
12887 Spaces to table rows can be added using the
12891 tab of the table dialog as described in section
12892 \begin_inset space ~
12896 \begin_inset CommandInset ref
12898 reference "sub:Row-Spacing"
12905 \begin_layout Standard
12906 In contrary to normal tables, formal tables have no vertical table lines.
12907 The horizontal table lines can be set like for normal tables but they appear
12908 with different width in the output:
12909 \begin_inset Newline newline
12912 The first and the last table line have a default width of 0.08
12913 \begin_inset space \thinspace{}
12916 em while the other lines have a default width of 0.05
12917 \begin_inset space \thinspace{}
12923 \begin_layout Standard
12924 The default widths can be changed with the following preamble lines
12927 \begin_layout Standard
12937 \begin_inset Newline newline
12949 \begin_layout Standard
12950 This example is for the first line, the so called
12955 If you want to change the width for the last line, replace
12964 To change the width for the other lines replace
12973 You can use all units listed in appendix
12974 \begin_inset space ~
12978 \begin_inset CommandInset ref
12980 reference "cha:Units-available-in"
12987 \begin_layout Standard
12988 Lines that don't span over all table columns can be created by setting a
12989 table line for multicolumn cells.
12990 LyX will then internally use the command
12996 to create this line.
13000 \begin_layout Standard
13005 cmidrule[width](trim){startcol-endcol}
13008 \begin_layout Standard
13015 are are currently not supported by LyX so you have to use TeX-Code to be
13023 s can manually be created by inserting the command as TeX-Code as first
13024 cell entry of the first cell of a row.
13025 The line is then drawn in the output above the current row.
13028 \begin_layout Standard
13029 The default for the width is 0.03
13030 \begin_inset space \thinspace{}
13034 Startcol is the number of the column where the line starts and endcol the
13035 column number where the line ends.
13036 The endcol always needs to be specified, also when the line should span
13038 The optional parameter trim could be either
13046 where the trimwidth is also optional.
13047 Using for example the parameter
13051 means that the line is trimmed from its left end by 2
13052 \begin_inset space \thinspace{}
13056 If you don't specify the trimwidth the lines are trimmed by the default
13058 \begin_inset space \thinspace{}
13064 \begin_layout Standard
13065 \begin_inset VSpace bigskip
13069 \begin_inset space ~
13073 \begin_inset CommandInset ref
13075 reference "tab:Example-booktabs-table"
13079 was created using the commands
13082 \begin_layout Standard
13092 \begin_layout Standard
13093 at the beginning of the in the second row and
13096 \begin_layout Standard
13101 cmidrule(l{10pt}){1-1}
13104 \begin_layout Standard
13108 \begin_layout Standard
13109 \begin_inset VSpace bigskip
13115 \begin_layout Standard
13116 You might want to have overlapping
13123 \begin_inset space ~
13127 \begin_inset CommandInset ref
13129 reference "tab:Special-booktabs-table"
13134 This can be achieved with the TeX-Code command
13137 \begin_layout Standard
13145 \begin_layout Standard
13146 The command that was used for the second row of Table
13147 \begin_inset space ~
13151 \begin_inset CommandInset ref
13153 reference "tab:Special-booktabs-table"
13160 \begin_layout Standard
13174 \begin_layout Standard
13175 The command for the sixth row is
13178 \begin_layout Standard
13190 \begin_layout Standard
13191 \begin_inset VSpace bigskip
13197 \begin_layout Standard
13198 If you are anyway not satisfied with the border line spacing, you can use
13199 the following command to produce lines that span over all table columns
13204 \begin_layout Standard
13209 specialrule{width}{space above}{space below}
13212 \begin_layout Standard
13213 For more informations about these specialties, we refer to the manual of
13219 \begin_inset CommandInset citation
13229 \begin_layout Plain Layout
13230 LaTeX-packages ! booktabs
13238 \begin_layout Standard
13239 \begin_inset Float table
13245 \begin_layout Plain Layout
13246 \begin_inset Caption
13248 \begin_layout Plain Layout
13249 \begin_inset CommandInset label
13251 name "tab:Special-booktabs-table"
13255 Special booktabs-table
13263 \begin_layout Plain Layout
13265 \begin_inset Tabular
13266 <lyxtabular version="3" rows="8" columns="4">
13267 <features booktabs="true">
13268 <column alignment="center" valignment="top" width="0">
13269 <column alignment="center" valignment="top" width="0">
13270 <column alignment="center" valignment="top" width="0">
13271 <column alignment="center" valignment="top" width="0">
13273 <cell alignment="center" valignment="top" topline="true" usebox="none">
13276 \begin_layout Plain Layout
13282 <cell alignment="center" valignment="top" topline="true" usebox="none">
13285 \begin_layout Plain Layout
13287 \begin_inset space \thinspace{}
13295 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
13298 \begin_layout Plain Layout
13300 \begin_inset space \thinspace{}
13308 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13311 \begin_layout Plain Layout
13319 <cell alignment="center" valignment="top" usebox="none">
13322 \begin_layout Plain Layout
13326 \begin_layout Plain Layout
13339 \begin_layout Plain Layout
13352 \begin_layout Plain Layout
13365 \begin_layout Plain Layout
13374 Detector thickness [µm]
13379 <cell alignment="center" valignment="top" usebox="none">
13382 \begin_layout Plain Layout
13388 <cell alignment="center" valignment="top" usebox="none">
13391 \begin_layout Plain Layout
13397 <cell alignment="center" valignment="top" usebox="none">
13400 \begin_layout Plain Layout
13408 <cell alignment="center" valignment="top" topline="true" usebox="none">
13411 \begin_layout Plain Layout
13417 <cell alignment="center" valignment="top" topline="true" usebox="none">
13420 \begin_layout Plain Layout
13426 <cell alignment="center" valignment="top" topline="true" usebox="none">
13429 \begin_layout Plain Layout
13435 <cell alignment="center" valignment="top" topline="true" usebox="none">
13438 \begin_layout Plain Layout
13445 <row topspace="default">
13446 <cell alignment="center" valignment="top" usebox="none">
13449 \begin_layout Plain Layout
13450 Spatial resolution [µm]
13455 <cell alignment="center" valignment="top" usebox="none">
13458 \begin_layout Plain Layout
13464 <cell alignment="center" valignment="top" usebox="none">
13467 \begin_layout Plain Layout
13473 <cell alignment="center" valignment="top" usebox="none">
13476 \begin_layout Plain Layout
13483 <row topspace="default">
13484 <cell alignment="center" valignment="top" usebox="none">
13487 \begin_layout Plain Layout
13489 \begin_inset Formula $f_{\mathrm{max}}$
13497 <cell alignment="center" valignment="top" usebox="none">
13500 \begin_layout Plain Layout
13506 <cell alignment="center" valignment="top" usebox="none">
13509 \begin_layout Plain Layout
13515 <cell alignment="center" valignment="top" usebox="none">
13518 \begin_layout Plain Layout
13526 <cell alignment="center" valignment="top" topline="true" usebox="none">
13529 \begin_layout Plain Layout
13533 \begin_layout Plain Layout
13546 \begin_layout Plain Layout
13555 LSF-spatial resolution
13560 <cell alignment="center" valignment="top" topline="true" usebox="none">
13563 \begin_layout Plain Layout
13569 <cell alignment="center" valignment="top" topline="true" usebox="none">
13572 \begin_layout Plain Layout
13578 <cell alignment="center" valignment="top" topline="true" usebox="none">
13581 \begin_layout Plain Layout
13589 <cell alignment="center" valignment="top" usebox="none">
13592 \begin_layout Plain Layout
13598 <cell alignment="center" valignment="top" usebox="none">
13601 \begin_layout Plain Layout
13607 <cell alignment="center" valignment="top" usebox="none">
13610 \begin_layout Plain Layout
13616 <cell alignment="center" valignment="top" usebox="none">
13619 \begin_layout Plain Layout
13627 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13630 \begin_layout Plain Layout
13636 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13639 \begin_layout Plain Layout
13645 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13648 \begin_layout Plain Layout
13654 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13657 \begin_layout Plain Layout
13676 \begin_layout Section
13677 Vertical Table Alignment
13681 \begin_layout Plain Layout
13690 \begin_layout Standard
13691 To align tables vertically in a text line the table must be inside a box.
13692 The box can then be vertically aligned as described in section
13693 \begin_inset space ~
13697 \begin_inset CommandInset ref
13699 reference "sec:Box-Dialog"
13706 \begin_layout Standard
13707 In the following example the tables are inside a minipage
13711 \begin_layout Plain Layout
13712 Minipages are described in section
13713 \begin_inset space ~
13717 \begin_inset CommandInset ref
13719 reference "sec:Minipages"
13728 box that has a width of 15
13729 \begin_inset space \thinspace{}
13735 \begin_layout Itemize
13737 \begin_inset Box Frameless
13746 height_special "totalheight"
13749 \begin_layout Plain Layout
13750 \begin_inset Tabular
13751 <lyxtabular version="3" rows="3" columns="3">
13753 <column alignment="center" valignment="top" width="0">
13754 <column alignment="center" valignment="top" width="0">
13755 <column alignment="center" valignment="top" width="0">
13757 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13760 \begin_layout Plain Layout
13766 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13769 \begin_layout Plain Layout
13775 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13778 \begin_layout Plain Layout
13786 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13789 \begin_layout Plain Layout
13795 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13798 \begin_layout Plain Layout
13804 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13807 \begin_layout Plain Layout
13815 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13818 \begin_layout Plain Layout
13824 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13827 \begin_layout Plain Layout
13833 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13836 \begin_layout Plain Layout
13856 \begin_layout Plain Layout
13868 \begin_inset Box Frameless
13877 height_special "totalheight"
13880 \begin_layout Plain Layout
13881 \begin_inset Tabular
13882 <lyxtabular version="3" rows="3" columns="3">
13884 <column alignment="center" valignment="top" width="0">
13885 <column alignment="center" valignment="top" width="0">
13886 <column alignment="center" valignment="top" width="0">
13888 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13891 \begin_layout Plain Layout
13897 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13900 \begin_layout Plain Layout
13906 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13909 \begin_layout Plain Layout
13917 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13920 \begin_layout Plain Layout
13926 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13929 \begin_layout Plain Layout
13935 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13938 \begin_layout Plain Layout
13946 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13949 \begin_layout Plain Layout
13955 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13958 \begin_layout Plain Layout
13964 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13967 \begin_layout Plain Layout
13987 \begin_layout Plain Layout
13997 \begin_layout Itemize
13999 \begin_inset Box Frameless
14008 height_special "totalheight"
14011 \begin_layout Plain Layout
14012 \begin_inset Tabular
14013 <lyxtabular version="3" rows="3" columns="3">
14015 <column alignment="center" valignment="top" width="0">
14016 <column alignment="center" valignment="top" width="0">
14017 <column alignment="center" valignment="top" width="0">
14019 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14022 \begin_layout Plain Layout
14028 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14031 \begin_layout Plain Layout
14037 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14040 \begin_layout Plain Layout
14048 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14051 \begin_layout Plain Layout
14057 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14060 \begin_layout Plain Layout
14066 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14069 \begin_layout Plain Layout
14077 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14080 \begin_layout Plain Layout
14086 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14089 \begin_layout Plain Layout
14095 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14098 \begin_layout Plain Layout
14117 \begin_layout Itemize
14119 \begin_inset Box Frameless
14128 height_special "totalheight"
14131 \begin_layout Plain Layout
14132 \begin_inset Tabular
14133 <lyxtabular version="3" rows="3" columns="3">
14135 <column alignment="center" valignment="top" width="0">
14136 <column alignment="center" valignment="top" width="0">
14137 <column alignment="center" valignment="top" width="0">
14139 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14142 \begin_layout Plain Layout
14148 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14151 \begin_layout Plain Layout
14157 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14160 \begin_layout Plain Layout
14168 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14171 \begin_layout Plain Layout
14177 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14180 \begin_layout Plain Layout
14186 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14189 \begin_layout Plain Layout
14197 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14200 \begin_layout Plain Layout
14206 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14209 \begin_layout Plain Layout
14215 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14218 \begin_layout Plain Layout
14238 \begin_layout Plain Layout
14250 \begin_inset Box Frameless
14259 height_special "totalheight"
14262 \begin_layout Plain Layout
14263 \begin_inset Tabular
14264 <lyxtabular version="3" rows="3" columns="3">
14266 <column alignment="center" valignment="top" width="0">
14267 <column alignment="center" valignment="top" width="0">
14268 <column alignment="center" valignment="top" width="0">
14270 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14273 \begin_layout Plain Layout
14279 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14282 \begin_layout Plain Layout
14288 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14291 \begin_layout Plain Layout
14299 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14302 \begin_layout Plain Layout
14308 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14311 \begin_layout Plain Layout
14317 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14320 \begin_layout Plain Layout
14328 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14331 \begin_layout Plain Layout
14337 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14340 \begin_layout Plain Layout
14346 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14349 \begin_layout Plain Layout
14369 \begin_layout Plain Layout
14379 \begin_layout Standard
14380 As you can see, the content of the first and last table row is not correctly
14381 aligned with the text line where the table is in.
14382 To get this alignment, the minipage box must be set into a raisebox
14386 \begin_layout Plain Layout
14387 Raiseboxes are described in section
14388 \begin_inset space ~
14392 \begin_inset CommandInset ref
14394 reference "sub:Vertical-Alignment"
14404 In the example above the second table in the first item is aligned using
14405 the TeX-Code-command
14408 \begin_layout Standard
14418 \begin_layout Standard
14420 Behind the box the closing brace
14424 is inserted as TeX-Code.
14425 For the second table in the last item the command
14428 \begin_layout Standard
14438 \begin_layout Standard
14442 \begin_layout Standard
14443 \begin_inset Note Greyedout
14446 \begin_layout Plain Layout
14451 The alignment of the table row content to the surrounding text line is
14453 The needed factor of the
14459 command for this alignment depends on the document font, the font size,
14460 and the table line thickness.
14468 \begin_layout Section
14470 \begin_inset CommandInset label
14472 name "sec:Colored-Tables"
14480 \begin_layout Plain Layout
14489 \begin_layout Subsection
14494 \begin_layout Plain Layout
14495 Table Color ! for Cells
14504 \begin_layout Plain Layout
14505 Color ! for Table Cells
14513 \begin_layout Standard
14514 \begin_inset Float table
14520 \begin_layout Plain Layout
14521 \begin_inset Caption
14523 \begin_layout Plain Layout
14524 \begin_inset CommandInset label
14526 name "tab:Table-colored-without"
14530 Table colored without using the package
14535 \begin_inset OptArg
14538 \begin_layout Plain Layout
14539 Table without colortbl
14552 \begin_layout Plain Layout
14554 \begin_inset Tabular
14555 <lyxtabular version="3" rows="3" columns="3">
14557 <column alignment="center" valignment="top" width="0">
14558 <column alignment="center" valignment="top" width="0">
14559 <column alignment="center" valignment="top" width="0">
14561 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14564 \begin_layout Plain Layout
14572 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14575 \begin_layout Plain Layout
14583 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14586 \begin_layout Plain Layout
14596 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14599 \begin_layout Plain Layout
14607 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14610 \begin_layout Plain Layout
14618 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14621 \begin_layout Plain Layout
14631 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14634 \begin_layout Plain Layout
14642 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14645 \begin_layout Plain Layout
14653 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14656 \begin_layout Plain Layout
14677 \begin_layout Standard
14678 If you only need colored text, mark the cells and choose a color in the
14681 Edit\SpecialChar \menuseparator
14683 \begin_inset space ~
14689 This was used to create Table
14690 \begin_inset space ~
14694 \begin_inset CommandInset ref
14696 reference "tab:Table-colored-without"
14701 In any other case you have to use the LaTeX-package
14709 \begin_layout Plain Layout
14710 LaTeX-packages ! colortbl
14718 \begin_layout Standard
14722 \begin_layout Plain Layout
14732 \begin_inset Note Note
14735 \begin_layout Plain Layout
14736 The following section part will only be displayed when the LaTeX-package
14749 \begin_layout Standard
14750 To create colored tables,
14754 must be loaded in the preamble with the line
14757 \begin_layout Standard
14762 usepackage{colortbl}
14765 \begin_layout Standard
14766 The color of a column is adjusted with the command
14769 \begin_layout Standard
14774 columncolor{name of color}
14777 \begin_layout Standard
14783 More about the command
14787 is described in section
14788 \begin_inset space ~
14792 \begin_inset CommandInset ref
14794 reference "sub:Multicolumn-Calculations"
14801 \begin_layout Standard
14802 The following color names are predefined:
14805 \begin_layout Standard
14839 \begin_layout Standard
14840 \begin_inset VSpace medskip
14846 \begin_layout Standard
14847 You can also define your own color with the command
14850 \begin_layout Standard
14855 definecolor{color name}{color model}{color values}
14858 \begin_layout Standard
14859 The color model can be
14862 \begin_layout Labeling
14863 \labelwidthstring 00.00.0000
14864 cmyk: cyan, magenta, yellow, black
14867 \begin_layout Labeling
14868 \labelwidthstring 00.00.0000
14869 rgb: red, green blue
14872 \begin_layout Labeling
14873 \labelwidthstring 00.00.0000
14877 \begin_layout Standard
14878 and the color values are comma separated numbers between 0 and 1 describing
14879 the factor for the corresponding color of the color model.
14882 \begin_layout Standard
14884 \begin_inset space \thinspace{}
14888 \begin_inset space \space{}
14895 " in the preamble with
14898 \begin_layout Standard
14903 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
14906 \begin_layout Standard
14914 \begin_layout Standard
14919 definecolor{lightgray}{gray}{0.8}
14922 \begin_layout Standard
14923 \begin_inset VSpace medskip
14929 \begin_layout Standard
14930 Lines are colored with the command
14933 \begin_layout Standard
14938 rowcolor{name of color}
14941 \begin_layout Standard
14942 and cells are colored with the command
14945 \begin_layout Standard
14950 cellcolor{name of color}
14953 \begin_layout Standard
14954 Both commands are inserted at the beginning of a cell as TeX-Code.
14957 \begin_layout Standard
14958 To color characters in the table, mark the cells and use the LyX menu
14960 Edit\SpecialChar \menuseparator
14962 \begin_inset space ~
14968 If a cell contains TeX-Code mark only the characters, otherwise the colored
14969 TeX-Code will cause LaTeX-errors.
14972 \begin_layout Standard
14973 \begin_inset Note Greyedout
14976 \begin_layout Plain Layout
14981 Not all DVI-viewers are able to display self-defined colors.
14989 \begin_layout Standard
14990 \begin_inset VSpace bigskip
14996 \begin_layout Standard
14998 \begin_inset space ~
15002 \begin_inset CommandInset ref
15004 reference "tab:Table-colored-using"
15008 do the following: The color of the first column should be
15016 \begin_layout Standard
15021 columncolor{darkgreen}
15026 \begin_layout Standard
15027 as LaTeX-argument for this column.
15028 The first row should be blue, therefore the TeX-Code command
15031 \begin_layout Standard
15039 \begin_layout Standard
15040 is inserted to the first cell of this row.
15041 Note that this overwrites the column color for the first cell.
15042 The last cell of the last row is colored magenta by inserting the TeX-Code
15046 \begin_layout Standard
15054 \begin_layout Standard
15055 The characters could now be colored using the menu
15057 Edit\SpecialChar \menuseparator
15059 \begin_inset space ~
15067 \begin_layout Standard
15068 \begin_inset Float table
15074 \begin_layout Plain Layout
15075 \begin_inset Caption
15077 \begin_layout Plain Layout
15078 \begin_inset CommandInset label
15080 name "tab:Table-colored-using"
15084 Table colored using the package
15089 \begin_inset OptArg
15092 \begin_layout Plain Layout
15093 Table with colortbl
15106 \begin_layout Plain Layout
15108 \begin_inset Tabular
15109 <lyxtabular version="3" rows="3" columns="3">
15111 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
15112 <column alignment="center" valignment="top" width="0">
15113 <column alignment="center" valignment="top" width="0">
15115 <cell alignment="center" valignment="top" usebox="none">
15118 \begin_layout Plain Layout
15122 \begin_layout Plain Layout
15138 <cell alignment="center" valignment="top" usebox="none">
15141 \begin_layout Plain Layout
15149 <cell alignment="center" valignment="top" usebox="none">
15152 \begin_layout Plain Layout
15162 <cell alignment="center" valignment="top" usebox="none">
15165 \begin_layout Plain Layout
15173 <cell alignment="center" valignment="top" usebox="none">
15176 \begin_layout Plain Layout
15184 <cell alignment="center" valignment="top" usebox="none">
15187 \begin_layout Plain Layout
15197 <cell alignment="center" valignment="top" usebox="none">
15200 \begin_layout Plain Layout
15208 <cell alignment="center" valignment="top" usebox="none">
15211 \begin_layout Plain Layout
15219 <cell alignment="center" valignment="top" usebox="none">
15222 \begin_layout Plain Layout
15226 \begin_layout Plain Layout
15255 \begin_layout Standard
15259 \begin_layout Plain Layout
15269 \begin_inset Note Note
15272 \begin_layout Plain Layout
15273 The following will be displayed when the LaTeX-package
15285 \begin_layout Standard
15286 You need to install the package
15290 to see the content of this section in the output.
15293 \begin_layout Standard
15297 \begin_layout Plain Layout
15309 \begin_layout Subsection
15314 \begin_layout Plain Layout
15315 Table Color ! for Lines
15324 \begin_layout Plain Layout
15325 Color ! for Table Lines
15333 \begin_layout Standard
15334 As described in section
15335 \begin_inset space ~
15339 \begin_inset CommandInset ref
15341 reference "sub:Line-Thickness"
15345 , the line thickness for all lines in a table can be adjusted with the length
15354 \begin_inset space \thinspace{}
15357 pt for all tables of this section.
15361 \begin_layout Plain Layout
15367 arrayrulewidth}{1.5pt}
15375 \begin_layout Standard
15376 To color vertical lines for example with green, create the following column
15377 format in the document preamble, according to the description in section
15378 \begin_inset space ~
15382 \begin_inset CommandInset ref
15384 reference "sub:Customized-Format"
15391 \begin_layout Standard
15396 newcolumntype{W}{!{
15403 \begin_layout Standard
15405 \begin_inset space ~
15409 \begin_inset CommandInset ref
15411 reference "tab:Table-with-vertical-colored"
15419 was used for the last column and
15423 for the other columns.
15426 \begin_layout Standard
15427 If you want to have several colors, define more column formats.
15430 \begin_layout Standard
15431 \begin_inset Float table
15437 \begin_layout Plain Layout
15438 \begin_inset Caption
15440 \begin_layout Plain Layout
15441 \begin_inset CommandInset label
15443 name "tab:Table-with-vertical-colored"
15447 Table with colored vertical lines
15455 \begin_layout Plain Layout
15457 \begin_inset Tabular
15458 <lyxtabular version="3" rows="3" columns="3">
15460 <column alignment="center" valignment="top" width="0" special="Wc">
15461 <column alignment="center" valignment="top" width="0" special="Wc">
15462 <column alignment="center" valignment="top" width="0" special="WcW">
15464 <cell alignment="center" valignment="top" topline="true" usebox="none">
15467 \begin_layout Plain Layout
15473 <cell alignment="center" valignment="top" topline="true" usebox="none">
15476 \begin_layout Plain Layout
15482 <cell alignment="center" valignment="top" topline="true" usebox="none">
15485 \begin_layout Plain Layout
15493 <cell alignment="center" valignment="top" topline="true" usebox="none">
15496 \begin_layout Plain Layout
15502 <cell alignment="center" valignment="top" topline="true" usebox="none">
15505 \begin_layout Plain Layout
15511 <cell alignment="center" valignment="top" topline="true" usebox="none">
15514 \begin_layout Plain Layout
15522 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15525 \begin_layout Plain Layout
15531 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15534 \begin_layout Plain Layout
15540 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15543 \begin_layout Plain Layout
15562 \begin_layout Standard
15563 \begin_inset VSpace bigskip
15566 To color horizontal lines for example with red, like in Table
15567 \begin_inset space ~
15571 \begin_inset CommandInset ref
15573 reference "tab:Table-with-horizontal-colored"
15577 , insert these commands in TeX-Code before the table or table float:
15580 \begin_layout Standard
15590 \begin_inset Newline newline
15598 \begin_inset Newline newline
15605 \begin_layout Plain Layout
15616 arrayrulecolor{red}
15620 arrayrulecolor{black}}
15623 \begin_layout Standard
15627 \begin_layout Plain Layout
15638 \begin_layout Plain Layout
15647 \begin_layout Plain Layout
15651 arrayrulecolor{red}
15655 arrayrulecolor{black}}
15661 \begin_inset Float table
15667 \begin_layout Plain Layout
15668 \begin_inset Caption
15670 \begin_layout Plain Layout
15671 \begin_inset CommandInset label
15673 name "tab:Table-with-horizontal-colored"
15677 Table with colored horizontal lines
15685 \begin_layout Plain Layout
15687 \begin_inset Tabular
15688 <lyxtabular version="3" rows="3" columns="3">
15690 <column alignment="center" valignment="top" width="0">
15691 <column alignment="center" valignment="top" width="0">
15692 <column alignment="center" valignment="top" width="0">
15694 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15697 \begin_layout Plain Layout
15703 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15706 \begin_layout Plain Layout
15712 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15715 \begin_layout Plain Layout
15723 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15726 \begin_layout Plain Layout
15732 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15735 \begin_layout Plain Layout
15741 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15744 \begin_layout Plain Layout
15752 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15755 \begin_layout Plain Layout
15761 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15764 \begin_layout Plain Layout
15770 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
15773 \begin_layout Plain Layout
15792 \begin_layout Standard
15793 To return to the default line color black, insert this command in TeX-Code
15794 behind the table or table float:
15797 \begin_layout Standard
15809 \begin_layout Standard
15811 \begin_inset space ~
15815 \begin_inset CommandInset ref
15817 reference "tab:Table-with-colored"
15821 is an example with colored vertical and horizontal lines.
15824 \begin_layout Standard
15825 \begin_inset Float table
15831 \begin_layout Plain Layout
15832 \begin_inset Caption
15834 \begin_layout Plain Layout
15835 \begin_inset CommandInset label
15837 name "tab:Table-with-colored"
15841 Table with colored lines
15849 \begin_layout Plain Layout
15851 \begin_inset Tabular
15852 <lyxtabular version="3" rows="3" columns="3">
15854 <column alignment="center" valignment="top" width="0" special="Wc">
15855 <column alignment="center" valignment="top" width="0" special="Wc">
15856 <column alignment="center" valignment="top" width="0" special="WcW">
15858 <cell alignment="center" valignment="top" topline="true" usebox="none">
15861 \begin_layout Plain Layout
15867 <cell alignment="center" valignment="top" topline="true" usebox="none">
15870 \begin_layout Plain Layout
15876 <cell alignment="center" valignment="top" topline="true" usebox="none">
15879 \begin_layout Plain Layout
15887 <cell alignment="center" valignment="top" topline="true" usebox="none">
15890 \begin_layout Plain Layout
15896 <cell alignment="center" valignment="top" topline="true" usebox="none">
15899 \begin_layout Plain Layout
15905 <cell alignment="center" valignment="top" topline="true" usebox="none">
15908 \begin_layout Plain Layout
15915 <row topspace="default">
15916 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15919 \begin_layout Plain Layout
15925 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15928 \begin_layout Plain Layout
15934 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15937 \begin_layout Plain Layout
15956 \begin_layout Standard
15960 \begin_layout Plain Layout
15976 \begin_layout Standard
15980 \begin_layout Plain Layout
15986 arrayrulewidth}{0.4pt}
15994 \begin_layout Section
15995 Table Customization
15999 \begin_layout Plain Layout
16000 Table Customization
16009 \begin_layout Plain Layout
16010 Table ! Customization
16018 \begin_layout Subsection
16020 \begin_inset CommandInset label
16022 name "sub:Row-Spacing"
16030 \begin_layout Plain Layout
16031 Table Customization ! Row Spacing
16039 \begin_layout Standard
16040 You can add vertical space to table rows in the
16044 tab of the table dialog.
16045 You find there three possibilities:
16048 \begin_layout Description
16050 \begin_inset space ~
16054 \begin_inset space ~
16057 row will add space above the characters of the table row.
16058 If the table is a formal table
16062 \begin_layout Plain Layout
16063 Formal tables are explained in section
16064 \begin_inset space ~
16068 \begin_inset CommandInset ref
16070 reference "sec:Formal-Tables"
16079 LyX will insert as default 0.5
16080 \begin_inset space \thinspace{}
16084 For normal tables the inserted space will unfortunately destroy the vertical
16085 table lines as in the following table:
16086 \begin_inset VSpace medskip
16090 \begin_inset Newline newline
16094 \begin_inset space \hspace*{}
16099 \begin_inset space \hfill{}
16103 \begin_inset Tabular
16104 <lyxtabular version="3" rows="3" columns="1">
16106 <column alignment="center" valignment="top" width="0">
16108 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16111 \begin_layout Plain Layout
16118 <row topspace="3mm">
16119 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16122 \begin_layout Plain Layout
16124 \begin_inset space \thinspace{}
16127 mm space top of row
16134 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16137 \begin_layout Plain Layout
16149 \begin_inset space \hfill{}
16153 \begin_inset space \hspace*{}
16158 \begin_inset VSpace medskip
16162 \begin_inset Newline newline
16165 So inserting space to the top of row for normal tables is only useful when
16166 you don't have vertical lines.
16169 \begin_layout Description
16171 \begin_inset space ~
16175 \begin_inset space ~
16178 row will add space below the characters of the table row.
16179 If the table is a formal table LyX will insert as default 0.5
16180 \begin_inset space \thinspace{}
16183 em space, for normal tables the default size is 2
16184 \begin_inset space \thinspace{}
16190 \begin_layout Description
16192 \begin_inset space ~
16195 rows adds space between the current and the following row.
16196 If the table is a formal table LyX will insert as default 0.5
16197 \begin_inset space \thinspace{}
16201 For normal tables the inserted space will unfortunately destroy the vertical
16202 table lines as in the following table:
16203 \begin_inset VSpace medskip
16207 \begin_inset Newline newline
16211 \begin_inset space \hspace*{}
16216 \begin_inset space \hfill{}
16220 \begin_inset Tabular
16221 <lyxtabular version="3" rows="3" columns="1">
16223 <column alignment="center" valignment="top" width="0">
16225 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16228 \begin_layout Plain Layout
16235 <row interlinespace="3mm">
16236 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16239 \begin_layout Plain Layout
16240 \begin_inset Formula $\downarrow$
16244 \begin_inset space \thinspace{}
16247 mm space between row
16248 \begin_inset Formula $\downarrow$
16258 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16261 \begin_layout Plain Layout
16262 \begin_inset Formula $\uparrow$
16266 \begin_inset space \thinspace{}
16269 mm space between row
16270 \begin_inset Formula $\uparrow$
16284 \begin_inset space \hfill{}
16288 \begin_inset space \hspace*{}
16293 \begin_inset VSpace medskip
16297 \begin_inset Newline newline
16300 So inserting space between rows for normal tables is only useful when you
16301 don't have vertical lines.
16304 \begin_layout Standard
16305 \begin_inset VSpace bigskip
16308 When you want to add extra height to all cells of all tables, you can do
16309 this with the following preamble lines:
16312 \begin_layout Standard
16317 @ifundefined{extrarowheight}
16318 \begin_inset Newline newline
16325 \begin_layout Plain Layout
16336 usepackage{array}}{}
16337 \begin_inset Newline newline
16344 extrarowheight}{height}
16347 \begin_layout Standard
16348 But this has the disadvantage that the cell texts are no longer exactly
16349 vertically centered.
16354 will be loaded automatically by LyX when you use self defined table formats.
16355 To avoid that it is loaded twice the command
16361 is used in the above command.)
16364 \begin_layout Standard
16365 In case you are using font sizes larger than the normal size, the table
16366 borders are often too close to the letters.
16367 This can be corrected by inserting the command
16373 in TeX code at the beginning of a table row.
16375 \begin_inset space ~
16379 \begin_inset CommandInset ref
16381 reference "tab:Vertical-alignment-of"
16385 visualizes the effect.
16388 \begin_layout Standard
16390 \begin_inset Float table
16396 \begin_layout Plain Layout
16397 \begin_inset Caption
16399 \begin_layout Plain Layout
16400 \begin_inset CommandInset label
16402 name "tab:Vertical-alignment-of"
16406 Vertical alignment of text with large font sizes.
16414 \begin_layout Plain Layout
16415 \begin_inset space \hfill{}
16419 \begin_inset Float table
16424 \begin_layout Plain Layout
16425 \begin_inset Caption
16427 \begin_layout Plain Layout
16436 \begin_layout Plain Layout
16439 \begin_inset Tabular
16440 <lyxtabular version="3" rows="6" columns="1">
16442 <column alignment="left" valignment="top" width="0">
16444 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16447 \begin_layout Plain Layout
16455 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16458 \begin_layout Plain Layout
16468 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16471 \begin_layout Plain Layout
16481 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16484 \begin_layout Plain Layout
16494 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16497 \begin_layout Plain Layout
16507 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16510 \begin_layout Plain Layout
16529 \begin_inset space \hfill{}
16533 \begin_inset Float table
16538 \begin_layout Plain Layout
16539 \begin_inset Caption
16541 \begin_layout Plain Layout
16542 Table using the command
16556 \begin_layout Plain Layout
16559 \begin_inset Tabular
16560 <lyxtabular version="3" rows="6" columns="1">
16562 <column alignment="left" valignment="top" width="0">
16564 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16567 \begin_layout Plain Layout
16575 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16578 \begin_layout Plain Layout
16584 \begin_layout Plain Layout
16600 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16603 \begin_layout Plain Layout
16609 \begin_layout Plain Layout
16625 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16628 \begin_layout Plain Layout
16634 \begin_layout Plain Layout
16650 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16653 \begin_layout Plain Layout
16659 \begin_layout Plain Layout
16675 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16678 \begin_layout Plain Layout
16684 \begin_layout Plain Layout
16711 \begin_inset space \hfill{}
16722 \begin_layout Subsection
16723 Special Cell Alignment
16727 \begin_layout Plain Layout
16728 Table Customization ! Special Cell Alignment
16736 \begin_layout Standard
16737 Sometimes it looks better when the cell entries of a column are aligned
16738 with a special character, e.
16739 \begin_inset space \thinspace{}
16743 \begin_inset space \space{}
16746 with the decimal separator as in Table
16747 \begin_inset space ~
16751 \begin_inset CommandInset ref
16753 reference "tab:Table-cells-of"
16760 \begin_layout Standard
16761 \begin_inset Float table
16767 \begin_layout Plain Layout
16768 \begin_inset Caption
16770 \begin_layout Plain Layout
16771 \begin_inset CommandInset label
16773 name "tab:Table-cells-of"
16777 Table cells of a column aligned with the decimal separator.
16785 \begin_layout Plain Layout
16787 \begin_inset Tabular
16788 <lyxtabular version="3" rows="4" columns="2">
16790 <column alignment="right" valignment="top" width="0">
16791 <column alignment="left" valignment="top" width="0" special="@{}l">
16793 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16796 \begin_layout Plain Layout
16802 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16805 \begin_layout Plain Layout
16813 <cell alignment="center" valignment="top" usebox="none">
16816 \begin_layout Plain Layout
16822 <cell alignment="center" valignment="top" usebox="none">
16825 \begin_layout Plain Layout
16833 <cell alignment="center" valignment="top" usebox="none">
16836 \begin_layout Plain Layout
16842 <cell alignment="center" valignment="top" usebox="none">
16845 \begin_layout Plain Layout
16853 <cell alignment="center" valignment="top" usebox="none">
16856 \begin_layout Plain Layout
16862 <cell alignment="center" valignment="top" usebox="none">
16865 \begin_layout Plain Layout
16884 \begin_layout Standard
16885 This table was created with a 4×2 table.
16886 The heading is a centered multicolumn.
16887 The first column is right-aligned and contains the digits before the decimal
16888 point and the decimal point.
16889 The second column is left aligned and contains the digits after the decimal
16891 To omit the space that is normally between two table columns, use the following
16892 LaTeX-argument for the second column:
16895 \begin_layout Standard
16901 \begin_layout Standard
16903 \begin_inset space ~
16907 \begin_inset CommandInset ref
16909 reference "tab:Several-table-cell"
16913 shows some example alignments.
16914 For the alignment with the relation sign, you must add the second smallest
16915 math-space at the beginning of the last column to get the correct space
16916 surrounding the relation sign.
16919 \begin_layout Standard
16920 \begin_inset Float table
16925 \begin_layout Plain Layout
16926 \begin_inset Caption
16928 \begin_layout Plain Layout
16929 \begin_inset CommandInset label
16931 name "tab:Several-table-cell"
16935 Several table cell alignments.
16943 \begin_layout Plain Layout
16945 \begin_inset Tabular
16946 <lyxtabular version="3" rows="4" columns="6">
16948 <column alignment="right" valignment="top" width="0">
16949 <column alignment="left" valignment="top" width="0" special="@{}l">
16950 <column alignment="right" valignment="top" width="0">
16951 <column alignment="left" valignment="top" width="0" special="@{}l">
16952 <column alignment="right" valignment="top" width="0">
16953 <column alignment="left" valignment="top" width="0" special="@{}l">
16955 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="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
16973 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16976 \begin_layout Plain Layout
16982 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16985 \begin_layout Plain Layout
16991 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16994 \begin_layout Plain Layout
17000 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17003 \begin_layout Plain Layout
17011 <cell alignment="center" valignment="top" usebox="none">
17014 \begin_layout Plain Layout
17020 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17023 \begin_layout Plain Layout
17025 \begin_inset space \thinspace{}
17033 <cell alignment="center" valignment="top" usebox="none">
17036 \begin_layout Plain Layout
17037 \begin_inset Formula $10\cdot$
17045 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17048 \begin_layout Plain Layout
17049 \begin_inset Formula $10^{\mbox{-}17}$
17057 <cell alignment="center" valignment="top" usebox="none">
17060 \begin_layout Plain Layout
17061 \begin_inset Formula $\Gamma(t)\propto$
17069 <cell alignment="center" valignment="top" usebox="none">
17072 \begin_layout Plain Layout
17073 \begin_inset Formula $\:\Upsilon(t)$
17083 <cell alignment="center" valignment="top" usebox="none">
17086 \begin_layout Plain Layout
17092 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17095 \begin_layout Plain Layout
17097 \begin_inset space \thinspace{}
17105 <cell alignment="center" valignment="top" usebox="none">
17108 \begin_layout Plain Layout
17109 \begin_inset Formula $5.78\cdot$
17117 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17120 \begin_layout Plain Layout
17121 \begin_inset Formula $10^{7}$
17129 <cell alignment="center" valignment="top" usebox="none">
17132 \begin_layout Plain Layout
17133 \begin_inset Formula $A\ne$
17141 <cell alignment="center" valignment="top" usebox="none">
17144 \begin_layout Plain Layout
17145 \begin_inset Formula $\: B_{\mathrm{red}}$
17155 <cell alignment="center" valignment="top" usebox="none">
17158 \begin_layout Plain Layout
17164 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17167 \begin_layout Plain Layout
17169 \begin_inset space \thinspace{}
17177 <cell alignment="center" valignment="top" usebox="none">
17180 \begin_layout Plain Layout
17182 \begin_inset Formula $33.5\cdot$
17190 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17193 \begin_layout Plain Layout
17194 \begin_inset Formula $10^{4}$
17202 <cell alignment="center" valignment="top" usebox="none">
17205 \begin_layout Plain Layout
17206 \begin_inset Formula $\sin(\alpha)\ge$
17214 <cell alignment="center" valignment="top" usebox="none">
17217 \begin_layout Plain Layout
17218 \begin_inset Formula $\:\sin(\beta)$
17239 \begin_layout Standard
17240 \begin_inset VSpace bigskip
17243 There is also the LaTeX-package
17251 \begin_layout Plain Layout
17252 LaTeX-packages ! dcolumn
17257 that provides table cell alignments.
17258 But this unfortunately treats the cell entries as math and doesn't allow
17259 formulas in table cells: The first column of Table
17260 \begin_inset space ~
17264 \begin_inset CommandInset ref
17266 reference "tab:Several-table-cell"
17274 like the first column in Table
17275 \begin_inset space ~
17279 \begin_inset CommandInset ref
17281 reference "tab:Alignments-when"
17285 and only with some tricks like the expected.
17286 The alignment of the second and third column of Table
17287 \begin_inset space ~
17291 \begin_inset CommandInset ref
17293 reference "tab:Several-table-cell"
17297 is not possible with
17304 \begin_layout Standard
17305 \begin_inset Float table
17311 \begin_layout Plain Layout
17312 \begin_inset Caption
17314 \begin_layout Plain Layout
17315 \begin_inset CommandInset label
17317 name "tab:Alignments-when"
17321 Alignments when LaTeX-package dcolumn is used.
17322 For all column alignments tricks have to be used to get the output.
17330 \begin_layout Plain Layout
17332 \begin_inset Tabular
17333 <lyxtabular version="3" rows="4" columns="3">
17335 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{-1}">
17336 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{4.9}">
17337 <column alignment="center" valignment="top" width="0" special="D{~}{\,}{9.7}">
17339 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17342 \begin_layout Plain Layout
17348 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17351 \begin_layout Plain Layout
17357 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
17360 \begin_layout Plain Layout
17368 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17371 \begin_layout Plain Layout
17373 \begin_inset space \thinspace{}
17381 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17384 \begin_layout Plain Layout
17386 \begin_inset space \thinspace{}
17390 \begin_inset Formula $\mbox{bottles}$
17398 <cell alignment="center" valignment="top" usebox="none">
17401 \begin_layout Plain Layout
17406 \begin_layout Plain Layout
17416 \begin_inset Formula $\mbox{bottles}$
17426 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17429 \begin_layout Plain Layout
17431 \begin_inset space \thinspace{}
17439 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17442 \begin_layout Plain Layout
17444 \begin_inset space \thinspace{}
17448 \begin_inset Formula $\mbox{Pixels}$
17456 <cell alignment="center" valignment="top" usebox="none">
17459 \begin_layout Plain Layout
17464 \begin_layout Plain Layout
17474 \begin_inset Formula $\mbox{Pixels}$
17484 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17487 \begin_layout Plain Layout
17489 \begin_inset space \thinspace{}
17497 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17500 \begin_layout Plain Layout
17502 \begin_inset space \thinspace{}
17506 \begin_inset Formula $\mbox{cm}$
17514 <cell alignment="center" valignment="top" usebox="none">
17517 \begin_layout Plain Layout
17522 \begin_layout Plain Layout
17532 \begin_inset Formula $\mbox{cm}$
17553 \begin_layout Subsection
17554 Customized Cell/Column Format
17555 \begin_inset CommandInset label
17557 name "sub:Customized-Format"
17565 \begin_layout Plain Layout
17566 Table Customization ! Cell/Column Format
17574 \begin_layout Standard
17575 Calculating the needed width for spanned columns like in section
17576 \begin_inset space ~
17580 \begin_inset CommandInset ref
17582 reference "sub:Multicolumn-Calculations"
17586 is very annoying if you have several tables with multicolumn cells.
17587 To make life easier, you can define a cell/column format in the preamble,
17588 so that it can be used in all tables of the document.
17589 The format is defined with the command
17592 \begin_layout Standard
17597 newcolumntype{name of format}[number of arguments]{commands}
17600 \begin_layout Standard
17601 The format name may only consist of one letter.
17626 are predefined and cannot be used.
17627 But all letters are allowed as capitals.
17630 \begin_layout Standard
17631 \begin_inset VSpace medskip
17637 \begin_layout Standard
17638 For vertically and horizontally centered multicolumn cells with a fixed
17639 width you can define the cell format
17642 \begin_layout Standard
17647 newcolumntype{M}[1]{>{
17654 \begin_layout Standard
17661 avoids the problem of hyphenating the first word, as described in section
17662 \begin_inset space ~
17666 \begin_inset CommandInset ref
17668 reference "sub:Multiple-Lines-in"
17673 Now you can simply enter
17676 \begin_layout Standard
17682 \begin_layout Standard
17683 as LaTeX-argument in the table dialog to create a multicolumn.
17686 \begin_layout Standard
17687 \begin_inset VSpace bigskip
17693 \begin_layout Standard
17694 For cells spanned by a multicolumn cell, you can define the format
17697 \begin_layout Standard
17702 newcolumntype{S}[2]{>{
17707 \begin_inset Newline newline
17714 \begin_layout Plain Layout
17729 \begin_layout Plain Layout
17740 arrayrulewidth)*(1-#2))/#2}}
17743 \begin_layout Standard
17744 This format uses equation
17745 \begin_inset CommandInset ref
17751 to calculate the needed width so that each spanned cell has the same width.
17754 \begin_layout Standard
17758 \begin_layout Standard
17761 S{width of multicolumn cell}{number of spanned columns}
17764 \begin_layout Standard
17765 as LaTeX-argument of the column.
17768 \begin_layout Standard
17769 \begin_inset VSpace bigskip
17775 \begin_layout Standard
17776 For colored columns, you can define
17779 \begin_layout Standard
17784 newcolumntype{K}[1]{>{
17791 \begin_layout Standard
17793 \begin_inset Quotes eld
17797 \begin_inset Quotes erd
17800 at the end creates a column with a flexible width whose text is horizontally
17805 \begin_layout Standard
17811 \begin_layout Standard
17815 \begin_layout Standard
17816 \begin_inset VSpace bigskip
17822 \begin_layout Standard
17824 \begin_inset space ~
17828 \begin_inset CommandInset ref
17830 reference "tab:Table-using-user-defined"
17834 use the LaTeX-arguments
17837 \begin_layout Standard
17843 \begin_layout Standard
17844 for the first column and the multicolumn,
17847 \begin_layout Standard
17853 \begin_layout Standard
17854 for the the last column, and
17857 \begin_layout Standard
17863 \begin_layout Standard
17864 for the cells in the second column.
17867 \begin_layout Standard
17868 \begin_inset Float table
17874 \begin_layout Plain Layout
17875 \begin_inset Caption
17877 \begin_layout Plain Layout
17878 \begin_inset CommandInset label
17880 name "tab:Table-using-user-defined"
17884 Table using user-defined table formats
17892 \begin_layout Plain Layout
17894 \begin_inset Tabular
17895 <lyxtabular version="3" rows="3" columns="4">
17897 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
17898 <column alignment="center" valignment="middle" width="0" special="S{2.5cm}{2}">
17899 <column alignment="center" valignment="middle" width="0">
17900 <column alignment="center" valignment="middle" width="0" special="K{red}">
17902 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17905 \begin_layout Plain Layout
17906 verylongtablecellword
17911 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
17914 \begin_layout Plain Layout
17915 multiple lines multicolumn
17920 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17923 \begin_layout Plain Layout
17929 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17932 \begin_layout Plain Layout
17940 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17943 \begin_layout Plain Layout
17949 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17952 \begin_layout Plain Layout
17958 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17961 \begin_layout Plain Layout
17967 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17970 \begin_layout Plain Layout
17978 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17981 \begin_layout Plain Layout
17987 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17990 \begin_layout Plain Layout
17996 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17999 \begin_layout Plain Layout
18005 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18008 \begin_layout Plain Layout
18027 \begin_layout Subsection
18029 \begin_inset CommandInset label
18031 name "sub:Line-Thickness"
18039 \begin_layout Plain Layout
18040 Table Customization ! Line Thickness
18048 \begin_layout Standard
18049 The line thickness for all lines in a table can be adjusted with the length
18057 To set for example a line thickness of 1.5
18058 \begin_inset space \thinspace{}
18062 \begin_inset space ~
18066 \begin_inset CommandInset ref
18068 reference "tab:Table-with-1.5"
18072 , insert the command
18075 \begin_layout Standard
18082 arrayrulewidth}{1.5pt}
18085 \begin_layout Standard
18086 in TeX-Code before the table or table float.
18087 The changed thickness is valid for all following tables.
18088 To use the default value again, set
18095 \begin_inset space \thinspace{}
18098 pt in TeX-Code behind the table or table float.
18101 \begin_layout Standard
18105 \begin_layout Plain Layout
18111 arrayrulewidth}{1.5pt}
18117 \begin_inset Float table
18122 \begin_layout Plain Layout
18123 \begin_inset Caption
18125 \begin_layout Plain Layout
18126 \begin_inset CommandInset label
18128 name "tab:Table-with-1.5"
18133 \begin_inset space \thinspace{}
18144 \begin_layout Plain Layout
18146 \begin_inset Tabular
18147 <lyxtabular version="3" rows="3" columns="3">
18149 <column alignment="center" valignment="top" width="0">
18150 <column alignment="center" valignment="top" width="0">
18151 <column alignment="center" valignment="top" width="0">
18153 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18156 \begin_layout Plain Layout
18162 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18165 \begin_layout Plain Layout
18171 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18174 \begin_layout Plain Layout
18182 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18185 \begin_layout Plain Layout
18191 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18194 \begin_layout Plain Layout
18200 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18203 \begin_layout Plain Layout
18211 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18214 \begin_layout Plain Layout
18220 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18223 \begin_layout Plain Layout
18229 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18232 \begin_layout Plain Layout
18252 \begin_layout Plain Layout
18258 arrayrulewidth}{0.4pt}
18266 \begin_layout Standard
18267 \begin_inset VSpace bigskip
18270 To set the line thickness to 1.5
18271 \begin_inset space \thinspace{}
18274 pt only for horizontal lines, like in Table
18275 \begin_inset space ~
18279 \begin_inset CommandInset ref
18281 reference "tab:Table-with-horizontal"
18285 , insert these commands in TeX-Code before the table or table float:
18288 \begin_layout Standard
18298 \begin_inset Newline newline
18306 \begin_inset Newline newline
18315 arrayrulewidth 1.5pt}
18316 \begin_inset Newline newline
18327 arrayrulewidth 0.4pt}}
18330 \begin_layout Standard
18331 To return to the default line thickness, insert this command in TeX-Code
18332 behind the table or table float:
18335 \begin_layout Standard
18347 \begin_layout Standard
18351 \begin_layout Plain Layout
18362 \begin_layout Plain Layout
18371 \begin_layout Plain Layout
18379 arrayrulewidth 1.5pt}
18382 \begin_layout Plain Layout
18392 arrayrulewidth 0.4pt}}
18398 \begin_inset Float table
18403 \begin_layout Plain Layout
18404 \begin_inset Caption
18406 \begin_layout Plain Layout
18407 \begin_inset CommandInset label
18409 name "tab:Table-with-horizontal"
18414 \begin_inset space \thinspace{}
18417 pt thick horizontal lines
18425 \begin_layout Plain Layout
18427 \begin_inset Tabular
18428 <lyxtabular version="3" rows="3" columns="3">
18430 <column alignment="center" valignment="top" width="0">
18431 <column alignment="center" valignment="top" width="0">
18432 <column alignment="center" valignment="top" width="0">
18434 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18437 \begin_layout Plain Layout
18443 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18446 \begin_layout Plain Layout
18452 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18455 \begin_layout Plain Layout
18463 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18466 \begin_layout Plain Layout
18472 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18475 \begin_layout Plain Layout
18481 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18484 \begin_layout Plain Layout
18492 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18495 \begin_layout Plain Layout
18501 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18504 \begin_layout Plain Layout
18510 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18513 \begin_layout Plain Layout
18533 \begin_layout Plain Layout
18549 \begin_layout Standard
18550 \begin_inset VSpace bigskip
18553 To set the line thickness to 1.5
18554 \begin_inset space \thinspace{}
18557 pt only for vertical lines, create the following column format in the document
18558 preamble, according to the description in section
18559 \begin_inset space ~
18563 \begin_inset CommandInset ref
18565 reference "sub:Customized-Format"
18572 \begin_layout Standard
18577 newcolumntype{V}{!{
18579 vrule width 1.5pt}}
18582 \begin_layout Standard
18584 \begin_inset space ~
18588 \begin_inset CommandInset ref
18590 reference "tab:Table-with-vertical"
18597 \begin_layout Standard
18603 \begin_layout Standard
18604 was used for the last column and
18607 \begin_layout Standard
18613 \begin_layout Standard
18614 for the other columns.
18617 \begin_layout Standard
18618 \begin_inset Float table
18623 \begin_layout Plain Layout
18624 \begin_inset Caption
18626 \begin_layout Plain Layout
18627 \begin_inset CommandInset label
18629 name "tab:Table-with-vertical"
18634 \begin_inset space \thinspace{}
18637 pt thick vertical lines
18645 \begin_layout Plain Layout
18647 \begin_inset Tabular
18648 <lyxtabular version="3" rows="3" columns="3">
18650 <column alignment="center" valignment="top" width="0" special="Vc">
18651 <column alignment="center" valignment="top" width="0" special="Vc">
18652 <column alignment="center" valignment="top" width="0" special="VcV">
18654 <cell alignment="center" valignment="top" topline="true" usebox="none">
18657 \begin_layout Plain Layout
18663 <cell alignment="center" valignment="top" topline="true" usebox="none">
18666 \begin_layout Plain Layout
18672 <cell alignment="center" valignment="top" topline="true" usebox="none">
18675 \begin_layout Plain Layout
18683 <cell alignment="center" valignment="top" topline="true" usebox="none">
18686 \begin_layout Plain Layout
18692 <cell alignment="center" valignment="top" topline="true" usebox="none">
18695 \begin_layout Plain Layout
18701 <cell alignment="center" valignment="top" topline="true" usebox="none">
18704 \begin_layout Plain Layout
18712 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18715 \begin_layout Plain Layout
18721 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18724 \begin_layout Plain Layout
18730 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18733 \begin_layout Plain Layout
18752 \begin_layout Subsection
18757 \begin_layout Plain Layout
18758 Table Customization ! Dashed Lines
18766 \begin_layout Standard
18770 \begin_layout Plain Layout
18780 \begin_inset Note Note
18783 \begin_layout Plain Layout
18784 The following section will only be displayed when the LaTeX-package
18796 \begin_layout Standard
18797 \begin_inset Float table
18803 \begin_layout Plain Layout
18804 \begin_inset Caption
18806 \begin_layout Plain Layout
18807 \begin_inset CommandInset label
18809 name "tab:Table-with-dashed"
18813 Table with dashed lines
18821 \begin_layout Plain Layout
18823 \begin_inset Tabular
18824 <lyxtabular version="3" rows="5" columns="5">
18826 <column alignment="center" valignment="top" width="0">
18827 <column alignment="center" valignment="top" width="0">
18828 <column alignment="center" valignment="top" width="0" special=":c">
18829 <column alignment="center" valignment="top" width="0">
18830 <column alignment="center" valignment="top" width="0">
18832 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18835 \begin_layout Plain Layout
18841 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18844 \begin_layout Plain Layout
18850 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18853 \begin_layout Plain Layout
18859 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18862 \begin_layout Plain Layout
18868 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18871 \begin_layout Plain Layout
18879 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18882 \begin_layout Plain Layout
18888 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18891 \begin_layout Plain Layout
18897 <cell alignment="center" valignment="top" topline="true" usebox="none">
18900 \begin_layout Plain Layout
18906 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18909 \begin_layout Plain Layout
18915 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18918 \begin_layout Plain Layout
18926 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18929 \begin_layout Plain Layout
18933 \begin_layout Plain Layout
18947 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18950 \begin_layout Plain Layout
18956 <cell alignment="center" valignment="top" usebox="none">
18959 \begin_layout Plain Layout
18965 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18968 \begin_layout Plain Layout
18974 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
18977 \begin_layout Plain Layout
18985 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18988 \begin_layout Plain Layout
18992 \begin_layout Plain Layout
19006 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19009 \begin_layout Plain Layout
19015 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
19018 \begin_layout Plain Layout
19024 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none" special="c:">
19027 \begin_layout Plain Layout
19033 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19036 \begin_layout Plain Layout
19044 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19047 \begin_layout Plain Layout
19053 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19056 \begin_layout Plain Layout
19062 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19065 \begin_layout Plain Layout
19071 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19074 \begin_layout Plain Layout
19080 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19083 \begin_layout Plain Layout
19102 \begin_layout Standard
19103 LyX doesn't natively support dashed lines, so you have to use TeX-Code.
19104 As prerequisite the LaTeX-package
19112 \begin_layout Plain Layout
19113 LaTeX-packages ! arydshln
19118 must be loaded in the document preamble with the command
19121 \begin_layout Standard
19126 usepackage{arydshln}
19129 \begin_layout Standard
19130 To make a vertical line dashed, enter the colon
19131 \begin_inset Quotes eld
19135 \begin_inset Quotes erd
19138 together with the character for the horizontal alignment as LaTeX-argument
19139 in the table cell dialog.
19142 \begin_layout Standard
19143 For a horizontal dashed line add the command
19146 \begin_layout Standard
19154 \begin_layout Standard
19155 in TeX-Code as first element of the first cell in the table row.
19158 \begin_layout Standard
19159 For dashed multicolumn lines use the command
19162 \begin_layout Standard
19167 cdashline{line number
19172 \begin_layout Standard
19173 in TeX-Code as first element of the first cell in the table row.
19174 If you have for example a multicolumn spanning over columns 2 to 4 and
19175 you want to have a dashed line above, add the command
19178 \begin_layout Standard
19186 \begin_layout Standard
19187 as first element of the first cell in the row of the multicolumn.
19190 \begin_layout Standard
19191 \begin_inset VSpace bigskip
19197 \begin_layout Standard
19199 \begin_inset space ~
19203 \begin_inset CommandInset ref
19205 reference "tab:Table-with-dashed"
19210 \begin_inset Quotes eld
19218 \begin_inset Quotes erd
19221 as LaTeX-argument of the third column.
19222 The TeX-Code command
19228 was inserted to the first cell of the third row and the the TeX-Code command
19229 \begin_inset Newline newline
19238 was inserted to the first cell of the fourth row.
19241 \begin_layout Standard
19242 \begin_inset Note Greyedout
19245 \begin_layout Plain Layout
19250 The used LaTeX-package
19254 is apparently not compatible with the LaTeX-package
19262 \begin_layout Plain Layout
19263 LaTeX-packages ! colortbl
19268 that is used for colored tables in section
19269 \begin_inset space ~
19273 \begin_inset CommandInset ref
19275 reference "sec:Colored-Tables"
19280 That means colored tables cannot have dashed lines.
19288 \begin_layout Standard
19292 \begin_layout Plain Layout
19302 \begin_inset Note Note
19305 \begin_layout Plain Layout
19306 The following will be displayed when the LaTeX-package
19318 \begin_layout Standard
19319 You need to install the package
19323 to see the content of this section in the output.
19326 \begin_layout Standard
19330 \begin_layout Plain Layout
19342 \begin_layout Chapter
19347 \begin_layout Plain Layout
19356 \begin_layout Section
19358 \begin_inset CommandInset label
19360 name "sec:FloatIntroduction"
19368 \begin_layout Plain Layout
19369 Floats ! Introduction
19377 \begin_layout Standard
19378 A float is a block of text associated with some sort of label, which doesn't
19379 have a fixed location.
19381 \begin_inset Quotes eld
19385 \begin_inset Quotes erd
19388 forward or backward a page or two, to wherever it fits best.
19396 \begin_inset space ~
19401 are also floats, because they can float to the next page when there are
19402 too many notes at the page.
19405 \begin_layout Standard
19406 Floats allow a high quality layout.
19407 Images and tables can evenly be spread to the pages to avoid white space
19408 and pages without text.
19409 As the floating often destroys the context between the text and the image/table
19410 , every float can be referenced in the text.
19411 Floats are therefore numbered.
19412 Referencing is described in section
19413 \begin_inset space ~
19417 \begin_inset CommandInset ref
19419 reference "sec:Referencing-Floats"
19426 \begin_layout Standard
19427 To insert a float, use the menu
19429 Insert\SpecialChar \menuseparator
19437 inset, a box with a label.
19438 The label will automatically be translated to the document language in
19440 Behind the label you can insert the caption text.
19441 The image or table is inserted above or below the caption in a separate
19442 paragraph within the float.
19443 More about the caption placement is described in section
19444 \begin_inset space ~
19448 \begin_inset CommandInset ref
19450 reference "sec:Caption-Placement"
19455 To keep your LyX-document readable, you can open and close the float box
19456 by left-clicking on the box label.
19457 A closed float box looks like this:
19458 \begin_inset Graphics
19459 filename clipart/floatQt4.png
19461 scaleBeforeRotation
19465 -- a gray button with a red label.
19468 \begin_layout Standard
19469 It is recommended to insert floats as a separate paragraph to avoid possible
19470 LaTeX-errors that can occur when the surrounding text is specially formatted.
19473 \begin_layout Standard
19474 Existing figures or tables can be put into a float by marking them and then
19475 pressing the corresponding toolbar button for a new float.
19478 \begin_layout Section
19482 \begin_layout Standard
19483 Besides figure and table floats that are described in section
19484 \begin_inset space ~
19488 \begin_inset CommandInset ref
19490 reference "sec:Figure-Floats"
19495 \begin_inset CommandInset ref
19497 reference "sec:Table-Floats"
19501 , respectively, LyX offers the float types
19512 \begin_layout Subsection
19517 \begin_layout Plain Layout
19518 Floats ! Algorithms
19526 \begin_layout Standard
19527 \begin_inset Float algorithm
19533 \begin_layout Plain Layout
19534 \begin_inset Caption
19536 \begin_layout Plain Layout
19537 \begin_inset CommandInset label
19539 name "alg:Example-Algorithm-float"
19543 Example Algorithm float
19551 \begin_layout LyX-Code
19553 \begin_inset Newline newline
19556 Sum:= Sum + A(I); /*comment*/
19557 \begin_inset Newline newline
19561 \begin_inset VSpace -4mm
19572 \begin_layout Standard
19573 This float type is inserted with the menu
19575 Insert\SpecialChar \menuseparator
19576 Floats\SpecialChar \menuseparator
19580 It is used for program codes and descriptions of algorithms.
19581 A possible environment for algorithms is the
19585 , described in LyX's
19591 \begin_inset space ~
19595 \begin_inset CommandInset ref
19597 reference "alg:Example-Algorithm-float"
19601 is an example of an algorithm float where -4
19602 \begin_inset space \thinspace{}
19605 mm vertical space was added at the end of the float to have the bottom rule
19606 exactly below the last text line.
19609 \begin_layout Standard
19610 The float label is not automatically translated into the document language.
19611 If your document is not in English, you have to do this manually by adding
19612 the following line to the document preamble
19617 \begin_layout Standard
19622 floatname{algorithm}{your
19623 \begin_inset space ~
19629 \begin_layout Standard
19633 \begin_inset space ~
19639 \begin_inset Quotes eld
19647 \begin_inset Quotes erd
19653 \begin_layout Standard
19654 To insert the list of algorithms you can not use the menu
19656 Insert\SpecialChar \menuseparator
19658 \begin_inset space \thinspace{}
19662 \begin_inset space \thinspace{}
19665 TOC\SpecialChar \menuseparator
19668 when your document is a non-English one.
19669 In this case use this command in TeX-Code instead:
19672 \begin_layout Standard
19677 listof{algorithm}{your
19678 \begin_inset space ~
19684 \begin_layout Standard
19688 \begin_inset space ~
19694 \begin_inset Quotes eld
19702 \begin_inset Quotes erd
19708 \begin_layout Standard
19709 Algorithm floats are not by default numbered in the scheme
19710 \begin_inset Quotes eld
19714 \begin_inset Quotes erd
19717 like it is the case for table and figure floats in many document-classes.
19718 To number algorithm floats in the same scheme, add this command to your
19722 \begin_layout Standard
19727 numberwithin{algorithm}{chapter}
19730 \begin_layout Standard
19731 To be able to use the command
19740 \begin_inset space ~
19745 in the document settings the option
19748 \begin_inset space ~
19752 \begin_inset space ~
19756 \begin_inset space ~
19764 \begin_layout Subsection
19769 \begin_layout Plain Layout
19770 Floats ! Wrap Floats
19778 \begin_layout Standard
19779 \begin_inset Wrap figure
19786 \begin_layout Plain Layout
19787 \begin_inset Graphics
19788 filename clipart/mobius.eps
19790 scaleBeforeRotation
19791 rotateOrigin center
19798 \begin_layout Plain Layout
19799 \begin_inset Caption
19801 \begin_layout Plain Layout
19802 \begin_inset CommandInset label
19804 name "fig:This-is-a"
19808 This is a figure wrap float.
19818 This float type is used if you want to wrap text around a figure or table
19819 so that it only occupies some fraction of the column width.
19820 It can be inserted using the menu
19822 Insert\SpecialChar \menuseparator
19823 Floats\SpecialChar \menuseparator
19825 \begin_inset space ~
19829 \begin_inset space ~
19837 \begin_inset space ~
19841 \begin_inset space ~
19846 if the LaTeX-package
19854 \begin_layout Plain Layout
19855 LaTeX-packages ! wrapfig
19859 \begin_layout Plain Layout
19877 \begin_layout Plain Layout
19878 Installing a LaTeX-package is explained it in the
19881 \begin_inset space ~
19891 The settings of the float can be modified by right-clicking on the float
19893 The mandatory settings are the float
19906 that specifies how much the float is set into the paragraph
19907 \begin_inset space \thinspace{}
19911 \begin_inset space \thinspace{}
19914 page margin, and the
19917 \begin_inset space ~
19922 that specifies how many text lines the float will approximately need.
19923 The line span is often hard to be approximated, so better only use it when
19924 you encounter float placement problems.
19925 You can furthermore decide if LaTeX is allowed to let the float float within
19926 the paragraph or to surrounding paragraphs.
19928 \begin_inset space ~
19932 \begin_inset CommandInset ref
19934 reference "fig:This-is-a"
19938 is an example text wrap float with a width of 40
19939 \begin_inset space \thinspace{}
19943 \begin_inset space \thinspace{}
19946 cm overhang, set to the left.
19950 \begin_layout Plain Layout
19951 Available units are explained in appendix
19952 \begin_inset space ~
19956 \begin_inset CommandInset ref
19958 reference "cha:Units-available-in"
19970 \begin_layout Standard
19971 \begin_inset Note Greyedout
19974 \begin_layout Plain Layout
19980 \begin_inset space ~
19983 wrap float floats are fragile! E.
19984 \begin_inset space \thinspace{}
19988 \begin_inset space \space{}
19991 having a figure too close to the bottom of the page can mess things up in
19992 the way that the float doesn't appear in the output or that it is placed
19993 over some other text.
20001 \begin_layout Standard
20005 \begin_layout Itemize
20006 Wrap floats should not be placed in paragraphs that run over a page break.
20007 That means that wrap floats should better be inserted to the exact place
20008 when the document is nearly finished and you are able to estimate where
20009 page breaks will appear.
20012 \begin_layout Itemize
20013 Wrap floats should either be placed in an own paragraph before the paragraph
20014 where they should wrap into or within a paragraph.
20017 \begin_layout Itemize
20018 Wrap floats in consecutive paragraphs may cause troubles, so assure that
20019 there is a text paragraph between them as separator.
20022 \begin_layout Itemize
20023 Wrap floats are not allowed in section headings or tables.
20026 \begin_layout Section
20031 \begin_layout Plain Layout
20040 \begin_layout Standard
20041 Floats are usually numbered either independent from the sections the floats
20042 are in, or in the scheme
20043 \begin_inset Quotes eld
20047 \begin_inset Quotes erd
20051 \begin_inset Quotes eld
20055 \begin_inset Quotes erd
20059 This depends on the used document class.
20062 \begin_layout Standard
20063 To change the section independent numbering, you can use this command in
20064 the document preamble:
20067 \begin_layout Standard
20079 \begin_layout Standard
20086 is the command that prints the table number, for figure floats, the command
20100 prints in the command above the table number as small roman number.
20103 \begin_layout Standard
20104 To change the numbering scheme for example to
20105 \begin_inset Quotes eld
20109 \begin_inset Quotes erd
20112 , use this command in the preamble:
20115 \begin_layout Standard
20120 numberwithin{table}{subsection}
20123 \begin_layout Standard
20124 To be able to use the command
20133 \begin_inset space ~
20138 in the document settings the option
20141 \begin_inset space ~
20145 \begin_inset space ~
20149 \begin_inset space ~
20157 \begin_layout Standard
20158 Please also have a look at section
20159 \begin_inset space ~
20163 \begin_inset CommandInset ref
20165 reference "sub:Footnote-Numbering"
20169 for the details and important notes about the numbering commands.
20172 \begin_layout Section
20174 \begin_inset CommandInset label
20176 name "sec:Referencing-Floats"
20184 \begin_layout Plain Layout
20185 Floats ! References
20194 \begin_layout Plain Layout
20195 References ! to Floats
20203 \begin_layout Standard
20204 To reference a float, insert a label into its caption using the menu
20206 Insert\SpecialChar \menuseparator
20209 or the toolbar button
20210 \begin_inset Graphics
20211 filename ../images/label-insert.png
20213 scaleBeforeRotation
20218 A grey label box like this one:
20219 \begin_inset Graphics
20220 filename clipart/labelQt4.png
20222 scaleBeforeRotation
20226 will be inserted and the label window pops up asking for the label text.
20227 LyX offers as text the first words of the caption with a prefix.
20228 The prefix depends on the float type, e.
20229 \begin_inset space \thinspace{}
20233 \begin_inset space \space{}
20236 for figure floats the prefix will be "
20243 \begin_layout Standard
20244 The label is used as anchor and name for the reference.
20245 You can refer to the label using the menu
20247 Insert\SpecialChar \menuseparator
20250 or the toolbar button
20251 \begin_inset Graphics
20252 filename ../images/dialog-show-new-inset_ref.png
20254 scaleBeforeRotation
20259 A grey cross-reference box like this one:
20260 \begin_inset Graphics
20261 filename clipart/referenceQt4.png
20263 scaleBeforeRotation
20267 will be inserted and the cross-reference window appear showing all labels
20269 If you have multiple LyX-documents opened, choose the one you are working
20270 on from the drop-list at the top of the dialog.
20271 You can now sort the labels alphabetically and then choose one.
20272 At the position of the cross-reference box the float number will appear
20276 \begin_layout Standard
20277 It is recommended to use a protected space between the cross-reference name
20278 and its number to avoid line breaks between them.
20279 If a cross-reference refers to a non-existing label, you will see two question
20280 marks in the output instead of the reference.
20283 \begin_layout Standard
20284 You can change labels at any time by clicking on the label box.
20285 References to the changed label will automatically change its link to the
20286 new label text, so that you don't need to take care about this.
20289 \begin_layout Standard
20293 \begin_inset space ~
20297 \begin_inset space ~
20302 in the cross-reference window sets the cursor before the referred label.
20303 The button text changes then to Go
20304 \begin_inset space ~
20307 Back and you can use it to set the cursor back to the cross-reference.
20308 Right-clicking on a cross-reference box also sets the cursor before the
20309 referenced label but without a possibility to go back.
20312 \begin_layout Subsection
20313 Cross-Reference Formats
20314 \begin_inset CommandInset label
20316 name "sub:Cross-Reference-Formats"
20324 \begin_layout Plain Layout
20325 References ! Formats
20333 \begin_layout Standard
20334 There are six varieties of cross-references:
20337 \begin_layout Description
20338 <reference>: prints the float number, this is the default:
20339 \begin_inset CommandInset ref
20341 reference "fig:Two-distorted-images"
20348 \begin_layout Description
20349 (<reference>): prints the float number within two parentheses, this is the
20350 style normally used to reference formulas, especially when the reference
20352 \begin_inset Quotes eld
20356 \begin_inset Quotes erd
20360 \begin_inset CommandInset ref
20369 \begin_layout Description
20370 <page>: prints the page number: Page
20371 \begin_inset space ~
20375 \begin_inset CommandInset ref
20376 LatexCommand pageref
20377 reference "fig:Two-distorted-images"
20384 \begin_layout Description
20386 \begin_inset space ~
20390 \begin_inset space ~
20393 <page>: prints the text "on page" and the page number:
20394 \begin_inset CommandInset ref
20395 LatexCommand vpageref
20396 reference "fig:Two-distorted-images"
20403 \begin_layout Description
20405 \begin_inset space ~
20409 \begin_inset space ~
20413 \begin_inset space ~
20416 <page>: prints the float number, the text "on page", and the page number:
20418 \begin_inset CommandInset ref
20420 reference "fig:Two-distorted-images"
20427 \begin_layout Description
20429 \begin_inset space ~
20432 reference: prints a self defined cross-reference format.
20434 \begin_inset Note Greyedout
20437 \begin_layout Plain Layout
20442 This feature is only available when you have the LaTeX-package
20454 \begin_layout Standard
20455 Note that the style <page> won't print the page number if the label is on
20456 the previous, the same, or the next page.
20458 \begin_inset space \thinspace{}
20462 \begin_inset space \space{}
20466 \begin_inset Quotes eld
20474 \begin_inset Quotes erd
20480 \begin_layout Standard
20481 The number and current page of the referred document part in the output,
20482 is automatically calculated by LaTeX.
20483 The varieties are adjusted in the field
20487 of the cross-reference window, that appear when you click on the cross-referenc
20491 \begin_layout Subsection
20492 Automatic Reference Naming
20496 \begin_layout Plain Layout
20497 References ! Automatic Reference Naming
20505 \begin_layout Standard
20514 \begin_layout Plain Layout
20515 LaTeX-packages ! hyperref
20520 , that is enabled in the
20528 dialog, provides a very useful feature that cross-references automatically
20529 include the name of the referenced floats (or text parts like
20534 So you will save to write e.
20535 \begin_inset space \thinspace{}
20539 \begin_inset space \space{}
20543 \begin_inset Quotes eld
20547 \begin_inset Quotes erd
20550 before every reference to a figure.
20551 To use this feature, enable
20555 and insert this line to the LaTeX preamble:
20558 \begin_layout Standard
20574 \begin_layout Standard
20575 When you prefer other reference names than the default ones, for example
20576 you want instead of
20577 \begin_inset Quotes eld
20581 \begin_inset Quotes erd
20585 \begin_inset Quotes eld
20589 \begin_inset space \thinspace{}
20593 \begin_inset Quotes eld
20596 , you can redefine the name by inserting this to the preamble:
20599 \begin_layout Standard
20610 sectionautorefname}
20611 \begin_inset Newline newline
20618 \begin_layout Plain Layout
20632 \begin_layout Standard
20633 When you are using another document language than English, replace
20634 \begin_inset Newline newline
20649 , where *** is the name of the used language.
20652 \begin_layout Standard
20653 To get automatic names, but not for certain reference types, for example
20654 not for equations, use this preamble code:
20657 \begin_layout Standard
20665 \begin_inset Newline newline
20675 \begin_inset Newline newline
20686 equationautorefname}
20687 \begin_inset Newline newline
20694 \begin_layout Plain Layout
20710 \begin_layout Standard
20711 More about this topic can be found in
20716 \begin_inset CommandInset citation
20725 \begin_layout Standard
20726 \begin_inset Note Greyedout
20729 \begin_layout Plain Layout
20734 Automatic reference naming cannot be used when you use cross-references
20738 \begin_inset space ~
20743 style, as described in section
20744 \begin_inset space ~
20748 \begin_inset CommandInset ref
20750 reference "sub:Cross-Reference-Formats"
20762 \begin_layout Standard
20767 manual is an example where automatic reference naming is used.
20770 \begin_layout Subsection
20772 \begin_inset CommandInset label
20774 name "sub:Reference-Position"
20782 \begin_layout Plain Layout
20783 References ! Reference Position
20791 \begin_layout Standard
20800 \begin_layout Plain Layout
20801 LaTeX-packages ! hyperref
20814 dialog to link cross-references in the output, you will see that clicking
20815 on an image float reference jumps to the image label.
20816 The caption will be the first text part on the screen, so that you cannot
20817 see the image without scrolling.
20818 This is because the reference link anchor is placed at the position of
20820 With the use of the package
20828 \begin_layout Plain Layout
20829 LaTeX-packages ! hypcap
20834 , which is part of the LaTeX-package
20842 \begin_layout Plain Layout
20843 LaTeX-packages ! oberdiek
20848 , the link anchor is placed at the beginning of a float.
20849 To use this feature for figure floats, load
20853 in the document preamble with the line
20856 \begin_layout Standard
20861 usepackage[figure]{hypcap}
20864 \begin_layout Standard
20869 for all float types but this is not recommended for stability reasons.
20870 For more informations, have a look at
20875 \begin_inset CommandInset citation
20884 \begin_layout Standard
20885 \begin_inset Note Greyedout
20888 \begin_layout Plain Layout
20897 has no effect for references to subfigures.
20905 \begin_layout Section
20907 \begin_inset CommandInset label
20909 name "sec:Float-Placement"
20917 \begin_layout Plain Layout
20926 \begin_layout Standard
20927 Right-clicking on a float-box opens a dialog where you can alter the placement
20928 options that LaTeX uses for positioning the float.
20929 \begin_inset Newline newline
20935 \begin_inset space ~
20940 is only useful for two-column documents: If you select it, the float will
20941 span across both columns on the page instead of being confined to just
20943 \begin_inset Newline newline
20949 \begin_inset space ~
20954 is used to rotate floats, see section
20955 \begin_inset CommandInset ref
20957 reference "sec:Rotated-Floats"
20964 \begin_layout Standard
20965 You can use one ore more of the following options in the float dialog to
20966 set the placement for a particular float when you uncheck the option
20969 \begin_inset space ~
20973 \begin_inset space ~
20981 \begin_layout Description
20983 \begin_inset space ~
20987 \begin_inset space ~
20990 possible try to place the float on the position where it is inserted
20993 \begin_layout Description
20995 \begin_inset space ~
20999 \begin_inset space ~
21002 page try to place the float on the top of the current page
21005 \begin_layout Description
21007 \begin_inset space ~
21011 \begin_inset space ~
21014 page try to place the float on the bottom of the current page
21017 \begin_layout Description
21019 \begin_inset space ~
21023 \begin_inset space ~
21026 floats try to place the float on an own page
21029 \begin_layout Standard
21030 The order of the above option is
21035 That means, if you use the default placement, LaTeX will first try out
21039 \begin_inset space ~
21043 \begin_inset space ~
21051 \begin_inset space ~
21055 \begin_inset space ~
21060 , and then the others.
21061 If you don't use the default, LaTeX will try only the checked options but
21063 If none of the 4 placements are possible the procedure is internally repeated
21064 but it is tried to put the float on the following page.
21067 \begin_layout Standard
21068 By default, each option has its own rules:
21071 \begin_layout Labeling
21072 \labelwidthstring 00.00.0000
21076 \begin_inset space ~
21080 \begin_inset space ~
21085 only floats occupying less than 70
21086 \begin_inset space \thinspace{}
21089 % of the page can be placed at the top of a page (
21098 \begin_layout Labeling
21099 \labelwidthstring 00.00.0000
21103 \begin_inset space ~
21107 \begin_inset space ~
21112 : only floats occupying less than 30
21113 \begin_inset space \thinspace{}
21116 % of the page can be placed at the bottom of a page.
21126 \begin_layout Labeling
21127 \labelwidthstring 00.00.0000
21131 \begin_inset space ~
21135 \begin_inset space ~
21140 : only if more than 50
21141 \begin_inset space \thinspace{}
21144 % of the page are occupied by floats, several floats can be set together
21155 \begin_layout Standard
21156 If you don't like these rules, you can ignore them by using the additional
21160 \begin_inset space ~
21164 \begin_inset space ~
21170 \begin_inset Newline newline
21173 You can also redefine the rules with LaTeX-commands that are given in parenthese
21174 s behind the rules description above.
21175 To increase for example the often too small default of the bottom-rule
21177 \begin_inset space \thinspace{}
21180 % of the page, add this line to your document preamble:
21183 \begin_layout Standard
21190 bottomfraction}{0.5}
21193 \begin_layout Standard
21194 Sometimes you might need, under all circumstances, a float to be placed
21195 exactly at the position where it is inserted.
21196 For this case you can use the option
21199 \begin_inset space ~
21205 Use this option very rarely and only if the document is nearly ready to
21207 Because the float is then no longer able to
21208 \begin_inset Quotes eld
21212 \begin_inset Quotes erd
21215 when you change your document and this will often destroy the page layout.
21218 \begin_layout Standard
21219 There are no placement options for text wrap floats, because they are always
21220 surrounded by the text of a certain paragraph.
21221 \begin_inset VSpace bigskip
21227 \begin_layout Standard
21228 Sometimes you have the problem that a float is placed at the top of a page
21229 while its corresponding section starts at the middle of the page, so that
21230 the reader could think the float is part of the previous section.
21231 To avoid this the LaTeX-command
21238 It suppresses a given float placement for the page where it is inserted
21239 and can therefore be used to avoid that floats could be set before a section
21241 To get this, add these commands to your document preamble:
21244 \begin_layout Standard
21254 \begin_inset Newline newline
21268 \begin_layout Standard
21269 You can define the same for all section headings, like chapters and subsections.
21270 This definition is not recommended to be used for small text parts like
21271 subsubsections because LaTeX may then have problems to find a suitable
21275 \begin_layout Standard
21276 \begin_inset VSpace bigskip
21279 In some cases it is required to have all figures/tables at the end of the
21281 For this purpose the LaTeX-package
21289 \begin_layout Plain Layout
21290 LaTeX-packages ! endfloat
21296 It puts all figure and table floats at the end of the document into own
21298 At the original float position a text hint like
21299 \begin_inset Quotes eld
21305 \begin_inset space ~
21311 \begin_inset Quotes erd
21315 The endfloat-package is loaded in the preamble with the line
21318 \begin_layout Standard
21323 usepackage[options]{endfloat}
21326 \begin_layout Standard
21327 There are various package options to format the created figure/table sections.
21328 For more information we refer to the
21333 \begin_inset CommandInset citation
21340 \begin_inset Newline newline
21344 \begin_inset Note Greyedout
21347 \begin_layout Plain Layout
21352 doesn't provide an automatic translation for the text hint, you have to
21353 do this manually, see section
21354 \begin_inset space ~
21358 \begin_inset CommandInset citation
21370 \begin_inset Newline newline
21374 \begin_inset Note Greyedout
21377 \begin_layout Plain Layout
21382 There is currently a bug in
21386 when the caption contains a German
21387 \begin_inset Quotes eld
21391 \begin_inset Quotes erd
21395 Use in this case the command
21396 \begin_inset Quotes eld
21406 \begin_inset Quotes erd
21409 in TeX-Code instead of
21410 \begin_inset Quotes eld
21414 \begin_inset Quotes erd
21425 \begin_layout Standard
21426 \begin_inset VSpace bigskip
21429 For more details about float placements, have a look at LaTeX books,
21430 \begin_inset CommandInset citation
21432 key "latexcompanion,latexguide,latexbook"
21439 \begin_layout Section
21441 \begin_inset CommandInset label
21443 name "sec:Rotated-Floats"
21451 \begin_layout Plain Layout
21460 \begin_layout Standard
21461 Especially for wide tables you might have floats rotated.
21462 To rotate a whole float including the caption, right-click on the float-box
21466 \begin_inset space ~
21474 \begin_layout Standard
21475 Rotated floats are always placed on its own page (or column, in case you
21476 have a multi-column document).
21477 You can let them span several columns using the float settings option
21480 \begin_inset space ~
21486 Floats are rotated so that you can read them from the outside margin.
21487 To force a certain rotation direction for all pages, you can add either
21496 to the document class options.
21499 \begin_layout Standard
21500 Referencing rotated floats is the same like for normal floats, the caption
21501 format is also the same: Table
21502 \begin_inset space ~
21506 \begin_inset CommandInset ref
21508 reference "tab:Rotated-table"
21512 is an example of a rotated table float.
21515 \begin_layout Standard
21516 \begin_inset Note Greyedout
21519 \begin_layout Plain Layout
21524 Not all DVI-viewers are able to display rotated floats.
21532 \begin_layout Standard
21533 \begin_inset Float table
21538 \begin_layout Plain Layout
21539 \begin_inset Caption
21541 \begin_layout Plain Layout
21542 \begin_inset CommandInset label
21544 name "tab:Rotated-table"
21556 \begin_layout Plain Layout
21558 \begin_inset Tabular
21559 <lyxtabular version="3" rows="1" columns="5">
21561 <column alignment="center" valignment="top" width="0">
21562 <column alignment="center" valignment="top" width="0">
21563 <column alignment="center" valignment="top" width="0">
21564 <column alignment="center" valignment="top" width="0">
21565 <column alignment="center" valignment="top" width="0">
21567 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21570 \begin_layout Plain Layout
21576 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21579 \begin_layout Plain Layout
21585 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21588 \begin_layout Plain Layout
21594 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21597 \begin_layout Plain Layout
21603 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21606 \begin_layout Plain Layout
21625 \begin_layout Section
21626 Floats Side by Side
21630 \begin_layout Plain Layout
21631 Floats ! Side by side
21639 \begin_layout Standard
21640 To place floats side by side, like for Figure
21641 \begin_inset space ~
21645 \begin_inset CommandInset ref
21647 reference "fig:Float-left"
21652 \begin_inset CommandInset ref
21654 reference "fig:Float-right"
21663 In it two minipage boxes are inserted.
21667 \begin_layout Plain Layout
21668 Minipages are explained in section
21669 \begin_inset space ~
21673 \begin_inset CommandInset ref
21675 reference "sec:Minipages"
21684 The width is set to 45
21685 \begin_inset space \thinspace{}
21689 \begin_inset space \thinspace{}
21692 column% and the box alignment to
21697 The minipage boxes contain the image and the caption in the same way as
21698 they are in a float.
21699 The only difference is that the image unit
21702 \begin_inset space ~
21706 \begin_inset space ~
21711 is now calculated according to the width of the minipage boxes.
21714 \begin_layout Standard
21715 \begin_inset Float figure
21720 \begin_layout Plain Layout
21721 \begin_inset Box Frameless
21730 height_special "totalheight"
21733 \begin_layout Plain Layout
21735 \begin_inset Graphics
21736 filename clipart/mobius.eps
21739 scaleBeforeRotation
21746 \begin_layout Plain Layout
21747 \begin_inset Caption
21749 \begin_layout Plain Layout
21750 \begin_inset CommandInset label
21752 name "fig:Float-left"
21756 Float on the left side.
21767 \begin_inset space \hfill{}
21771 \begin_inset Box Frameless
21780 height_special "totalheight"
21783 \begin_layout Plain Layout
21785 \begin_inset Graphics
21786 filename clipart/platypus.eps
21789 scaleBeforeRotation
21796 \begin_layout Plain Layout
21797 \begin_inset Caption
21799 \begin_layout Plain Layout
21800 \begin_inset CommandInset label
21802 name "fig:Float-right"
21806 Float on the right side.
21819 \begin_layout Plain Layout
21828 \begin_layout Section
21833 \begin_layout Plain Layout
21834 Caption ! Formatting
21843 \begin_layout Plain Layout
21844 Floats ! Caption Formatting
21850 \begin_inset CommandInset label
21852 name "sec:Caption-Formatting"
21859 \begin_layout Standard
21864 environment is the default paragraph environment for
21869 On the LyX screen captions appear as label, e.
21870 \begin_inset space \thinspace{}
21874 \begin_inset space \space{}
21878 \begin_inset Quotes eld
21886 \begin_inset Quotes erd
21889 followed by the caption text.
21891 \begin_inset Quotes eld
21895 \begin_inset Quotes erd
21898 is the actual reference number.
21899 By default the label and the number are in the same font as the caption
21900 text and a colon follows the number to divide the label from the text.
21901 This caption format is not suitable for all document formats.
21905 \begin_layout Standard
21906 To change the default caption format, load the LaTeX-package
21914 \begin_layout Plain Layout
21915 LaTeX-packages ! caption
21920 in the document preamble with this line:
21923 \begin_layout Standard
21928 usepackage[format definition]{caption}
21931 \begin_layout Standard
21932 To have for example the label and the number in sans-serif bold font and
21933 the table captions always above the table like in this document, use the
21937 \begin_layout Standard
21942 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
21945 \begin_layout Standard
21946 You can also define different caption formats for the different float types.
21947 In this case load the
21951 package without format specific options and define the different formats
21952 with the help of the command
21955 \begin_layout Standard
21960 captionsetup[float type]{format definition}
21963 \begin_layout Standard
21964 in the document preamble.
21965 For example the caption formats of Figure
21966 \begin_inset space ~
21970 \begin_inset CommandInset ref
21972 reference "fig:This-is-an-fig"
21977 \begin_inset space ~
21981 \begin_inset CommandInset ref
21983 reference "tab:This-is-an-tab"
21987 can be created using these commands in the document preamble:
21990 \begin_layout Standard
21995 usepackage[tableposition=top]{caption}
21998 \begin_inset Newline newline
22005 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
22006 \begin_inset Newline newline
22013 \begin_layout Plain Layout
22021 captionsetup[figure]
22029 \begin_inset Newline newline
22034 captionsetup[table]{labelfont={bf,sf}}
22037 \begin_layout Standard
22038 \begin_inset Note Greyedout
22041 \begin_layout Plain Layout
22050 has no effect when a
22058 \begin_layout Plain Layout
22059 LaTeX-packages ! koma-script
22064 document class is used.
22065 In this case the document class option
22077 \begin_layout Standard
22078 For more information about the package
22082 we refer to its documentation
22083 \begin_inset CommandInset citation
22092 \begin_layout Standard
22093 To change the label name from e.
22094 \begin_inset space \thinspace{}
22098 \begin_inset space \space{}
22102 \begin_inset Quotes eld
22106 \begin_inset Quotes erd
22110 \begin_inset Quotes eld
22114 \begin_inset Quotes erd
22117 use this preamble command:
22120 \begin_layout Standard
22127 fnum@figure}{Image~
22132 \begin_layout Standard
22139 inserts the figure number and
22142 \begin_inset Quotes eld
22148 \begin_inset Quotes erd
22151 creates a protected space.
22154 \begin_layout Standard
22155 \begin_inset VSpace bigskip
22166 \begin_layout Plain Layout
22167 LaTeX-packages ! koma-script
22174 article (koma-script)
22182 letter (koma-script)
22186 report (koma-script)
22189 \begin_inset space \thinspace{}
22192 ), you can alternatively to the
22200 's built-in command
22207 For example, to have the caption label in bold, add this command to your
22211 \begin_layout Standard
22216 setkomafont{captionlabel}{
22221 \begin_layout Standard
22222 For more information about
22233 \begin_inset CommandInset citation
22242 \begin_layout Standard
22246 \begin_layout Plain Layout
22250 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
22257 \begin_inset Note Note
22260 \begin_layout Plain Layout
22261 The caption format is changed only for this example.
22269 \begin_layout Standard
22270 \begin_inset Float figure
22276 \begin_layout Plain Layout
22278 \begin_inset Graphics
22279 filename clipart/mobius.eps
22282 scaleBeforeRotation
22289 \begin_layout Plain Layout
22290 \begin_inset Caption
22292 \begin_layout Plain Layout
22293 \begin_inset CommandInset label
22295 name "fig:This-is-an-fig"
22299 This is an example figure caption that is longer than one line to show the
22300 different caption format.
22301 Here a self-defined caption format is used.
22314 \begin_layout Standard
22318 \begin_layout Plain Layout
22322 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
22331 \begin_layout Standard
22332 \begin_inset Float table
22338 \begin_layout Plain Layout
22339 \begin_inset Caption
22341 \begin_layout Plain Layout
22342 \begin_inset CommandInset label
22344 name "tab:This-is-an-tab"
22348 This is an example table caption that is longer than one line to show the
22349 different caption format.
22350 Here the standard caption format for tables in this document is used.
22358 \begin_layout Plain Layout
22360 \begin_inset Tabular
22361 <lyxtabular version="3" rows="1" columns="5">
22363 <column alignment="center" valignment="top" width="0">
22364 <column alignment="center" valignment="top" width="0">
22365 <column alignment="center" valignment="top" width="0">
22366 <column alignment="center" valignment="top" width="0">
22367 <column alignment="center" valignment="top" width="0">
22369 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22372 \begin_layout Plain Layout
22378 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22381 \begin_layout Plain Layout
22387 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22390 \begin_layout Plain Layout
22396 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22399 \begin_layout Plain Layout
22405 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22408 \begin_layout Plain Layout
22427 \begin_layout Section
22432 \begin_layout Plain Layout
22433 Caption ! Placement
22442 \begin_layout Plain Layout
22443 Floats ! Caption Placement
22449 \begin_inset CommandInset label
22451 name "sec:Caption-Placement"
22458 \begin_layout Standard
22459 The common caption placement rule is:
22462 \begin_layout Description
22463 Figure: Caption is set below the figure
22466 \begin_layout Description
22467 Table: Caption is set above the table
22470 \begin_layout Standard
22471 Having the caption above the table is unfortunately not supported in LaTeX's
22473 That means if you are using the document classes
22489 there will be no space between the caption and the table.
22490 To insert the needed space, add the following option to the load command
22491 of the LaTeX-package
22495 in your document preamble
22499 \begin_layout Plain Layout
22501 \begin_inset space ~
22505 \begin_inset CommandInset ref
22507 reference "sec:Caption-Formatting"
22511 for more information of the package
22523 \begin_layout Standard
22529 \begin_layout Standard
22538 \begin_layout Plain Layout
22539 LaTeX-packages ! koma-script
22546 article (koma-script)
22554 letter (koma-script)
22558 report (koma-script)
22561 \begin_inset space \thinspace{}
22564 ), you can alternatively to the
22568 package set the document class option
22575 \begin_layout Standard
22576 \begin_inset VSpace bigskip
22579 It is also possible to set the caption beside a figure or table.
22580 To get this the LaTeX-package
22588 \begin_layout Plain Layout
22589 LaTeX-packages ! sidecap
22594 has to be loaded in the document preamble with the line
22597 \begin_layout Standard
22602 usepackage[option]{sidecap}
22605 \begin_layout Standard
22606 If you set no option, the caption is placed on the side of the outer page
22607 margin -- to the right on odd pages, to the left on even pages.
22608 You can change the placement to inner margin with the option
22613 To force the placement always to the right or left, use the option
22624 \begin_layout Standard
22628 \begin_layout Plain Layout
22638 \begin_inset Note Note
22641 \begin_layout Plain Layout
22642 The following section will only be displayed when the LaTeX-package
22654 \begin_layout Standard
22655 To place in LyX the caption of a float on the side, it is necessary to add
22656 these commands to the document preamble:
22659 \begin_layout Standard
22665 \begin_layout Standard
22673 \begin_inset Newline newline
22680 \begin_layout Plain Layout
22696 \begin_inset Newline newline
22703 \begin_layout Plain Layout
22719 \begin_inset Newline newline
22726 \begin_layout Plain Layout
22737 renewenvironment{table}{
22744 \begin_layout Standard
22752 \begin_inset Newline newline
22759 \begin_layout Plain Layout
22775 \begin_inset Newline newline
22782 \begin_layout Plain Layout
22800 \begin_layout Standard
22808 \begin_inset Newline newline
22815 \begin_layout Plain Layout
22831 \begin_inset Newline newline
22838 \begin_layout Plain Layout
22854 \begin_inset Newline newline
22861 \begin_layout Plain Layout
22872 renewenvironment{figure}{
22879 \begin_layout Standard
22887 \begin_inset Newline newline
22894 \begin_layout Plain Layout
22910 \begin_inset Newline newline
22917 \begin_layout Plain Layout
22935 \begin_layout Standard
22941 \begin_layout Standard
22942 The commands allow you to redefine the floats so that the caption is set
22944 For figure floats use the command
22947 \begin_layout Standard
22955 \begin_layout Standard
22956 in TeX-Code before the float.
22957 Behind the float insert the command
22960 \begin_layout Standard
22968 \begin_layout Standard
22969 in TeX-Code to get back to the original float definition.
22972 \begin_layout Standard
22973 For table floats use the corresponding commands
22976 \begin_layout Standard
22990 \begin_layout Standard
22992 \begin_inset space ~
22996 \begin_inset CommandInset ref
22998 reference "fig:cap-beside-fig"
23003 \begin_inset space ~
23007 \begin_inset CommandInset ref
23009 reference "tab:cap-beside-tab"
23013 are examples where the caption is set beside.
23016 \begin_layout Standard
23017 You can see in the examples that the caption text appears at the top of
23018 the floats for table floats and at the bottom for figure floats.
23019 To change this, you can use the command
23022 \begin_layout Standard
23027 sidecaptionvpos{float type}{placement}
23030 \begin_layout Standard
23031 in the document preamble or in TeX-Code before the float.
23032 The float type is either
23040 , the placement can be
23041 \begin_inset Quotes eld
23049 \begin_inset Quotes erd
23053 \begin_inset Quotes eld
23061 \begin_inset Quotes erd
23065 \begin_inset Quotes eld
23073 \begin_inset Quotes erd
23077 To have for example the caption of figure floats vertically centered, use
23081 \begin_layout Standard
23086 sidecaptionvpos{figure}{c}
23089 \begin_layout Standard
23090 This was used for Figure
23091 \begin_inset space ~
23095 \begin_inset CommandInset ref
23097 reference "fig:cap-beside-fig-2"
23104 \begin_layout Standard
23105 \begin_inset VSpace medskip
23108 For more information about the package
23112 we refer to its documentation
23113 \begin_inset CommandInset citation
23122 \begin_layout Standard
23123 \begin_inset Note Greyedout
23126 \begin_layout Plain Layout
23139 \begin_layout Plain Layout
23140 LaTeX-packages ! hypcap
23145 , described in section
23146 \begin_inset space ~
23150 \begin_inset CommandInset ref
23152 reference "sub:Reference-Position"
23156 , has no effect on floats with the caption set beside.
23164 \begin_layout Standard
23168 \begin_layout Plain Layout
23180 \begin_layout Standard
23181 \begin_inset Float figure
23186 \begin_layout Plain Layout
23187 \begin_inset Graphics
23188 filename clipart/escher-lsd.eps
23190 scaleBeforeRotation
23197 \begin_layout Plain Layout
23198 \begin_inset Caption
23200 \begin_layout Plain Layout
23201 \begin_inset CommandInset label
23203 name "fig:cap-beside-fig"
23207 This is a caption beside a figure.
23220 \begin_layout Standard
23224 \begin_layout Plain Layout
23236 \begin_layout Standard
23237 \begin_inset Float table
23242 \begin_layout Plain Layout
23243 \begin_inset Caption
23245 \begin_layout Plain Layout
23246 \begin_inset CommandInset label
23248 name "tab:cap-beside-tab"
23252 This is a caption beside a table.
23260 \begin_layout Plain Layout
23261 \begin_inset Tabular
23262 <lyxtabular version="3" rows="4" columns="5">
23264 <column alignment="center" valignment="top" width="0">
23265 <column alignment="center" valignment="top" width="0">
23266 <column alignment="center" valignment="top" width="0">
23267 <column alignment="center" valignment="top" width="0">
23268 <column alignment="center" valignment="top" width="0">
23270 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23273 \begin_layout Plain Layout
23279 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23282 \begin_layout Plain Layout
23288 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23291 \begin_layout Plain Layout
23297 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23300 \begin_layout Plain Layout
23306 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23309 \begin_layout Plain Layout
23317 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23320 \begin_layout Plain Layout
23326 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23329 \begin_layout Plain Layout
23335 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23338 \begin_layout Plain Layout
23344 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23347 \begin_layout Plain Layout
23353 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23356 \begin_layout Plain Layout
23364 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23367 \begin_layout Plain Layout
23373 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23376 \begin_layout Plain Layout
23382 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23385 \begin_layout Plain Layout
23391 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23394 \begin_layout Plain Layout
23400 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23403 \begin_layout Plain Layout
23411 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23414 \begin_layout Plain Layout
23420 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23423 \begin_layout Plain Layout
23429 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23432 \begin_layout Plain Layout
23438 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23441 \begin_layout Plain Layout
23447 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23450 \begin_layout Plain Layout
23469 \begin_layout Standard
23473 \begin_layout Plain Layout
23485 \begin_layout Standard
23489 \begin_layout Plain Layout
23493 sidecaptionvpos{figure}{c}
23499 \begin_inset Float figure
23504 \begin_layout Plain Layout
23505 \begin_inset Graphics
23506 filename clipart/escher-lsd.eps
23508 scaleBeforeRotation
23515 \begin_layout Plain Layout
23516 \begin_inset Caption
23518 \begin_layout Plain Layout
23519 \begin_inset CommandInset label
23521 name "fig:cap-beside-fig-2"
23525 This is a vertically centered caption beside a figure.
23538 \begin_layout Standard
23542 \begin_layout Plain Layout
23554 \begin_layout Standard
23558 \begin_layout Plain Layout
23568 \begin_inset Note Note
23571 \begin_layout Plain Layout
23572 The following will be displayed when the LaTeX-package
23584 \begin_layout Standard
23585 You need to install the LaTeX-package
23589 to see the following part of this section in the output.
23592 \begin_layout Standard
23596 \begin_layout Plain Layout
23608 \begin_layout Section
23613 \begin_layout Plain Layout
23614 Floats ! Float Lists
23622 \begin_layout Standard
23623 Similar to the the table of contents where the sections of the document
23624 are listed, there are listings for all float types, like the figures of
23626 You can insert them via the
23628 Insert\SpecialChar \menuseparator
23630 \begin_inset space ~
23634 \begin_inset space ~
23642 \begin_layout Standard
23643 The list entries are the float captions or its short title, the float number,
23644 and the page number where they appear in the document.
23647 \begin_layout Standard
23648 You can find the list of figures and tables at the end of this document.
23651 \begin_layout Chapter
23655 \begin_layout Section
23660 \begin_layout Plain Layout
23669 \begin_layout Standard
23670 Notes are inserted with the toolbar button
23671 \begin_inset Graphics
23672 filename ../images/note-insert.png
23674 scaleBeforeRotation
23680 Insert\SpecialChar \menuseparator
23684 There are three types of notes:
23687 \begin_layout Description
23689 \begin_inset space ~
23692 Note This note type is for internal notes that won't appear in the output.
23693 Its note-box looks like this:
23694 \begin_inset Newline newline
23698 \begin_inset Newline newline
23702 \begin_inset Graphics
23703 filename clipart/LyXNoteImageQt4.png
23706 scaleBeforeRotation
23711 \begin_inset Note Note
23714 \begin_layout Plain Layout
23715 This is text in a note box that doesn't appear in the output.
23723 \begin_layout Description
23724 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
23725 ent, when you export the document to LaTeX via the menu
23727 File\SpecialChar \menuseparator
23728 Export\SpecialChar \menuseparator
23729 LaTeX (pdflatex) / (plain)
23732 Its note-box looks like this:
23733 \begin_inset Newline newline
23737 \begin_inset Newline newline
23741 \begin_inset Graphics
23742 filename clipart/CommentNoteImageQt4.png
23745 scaleBeforeRotation
23750 \begin_inset Note Comment
23753 \begin_layout Plain Layout
23754 This is text in a note box that only appears as comment in LaTeX-files.
23762 \begin_layout Description
23764 \begin_inset space ~
23767 Out This note will appear in the output as grey text.
23768 Its note-box looks like this:
23769 \begin_inset Newline newline
23773 \begin_inset Newline newline
23777 \begin_inset Graphics
23778 filename clipart/GreyedOutNoteImageQt4.png
23781 scaleBeforeRotation
23786 \begin_inset Newline newline
23793 \begin_layout Plain Layout
23797 renewenvironment{lyxgreyedout}
23800 \begin_layout Plain Layout
23804 textcolor[gray]{0.8}
23814 \begin_inset Note Greyedout
23817 \begin_layout Plain Layout
23822 \begin_layout Plain Layout
23823 This is an example footnote within a greyed out note.
23828 of a comment that appears in the output as grey text.
23837 \begin_layout Plain Layout
23841 renewenvironment{lyxgreyedout}
23844 \begin_layout Plain Layout
23858 \begin_inset Note Note
23861 \begin_layout Plain Layout
23862 The greyed out note is here redefined to show it with the original LyX definitio
23863 n because greyed out notes are redefined in the preamble of this document,
23864 as described below, to have blue text.
23870 \begin_inset Newline newline
23874 \begin_inset Newline newline
23877 As you can see in the example, the first line of greyed out notes is a bit
23878 indented and greyed out notes can have footnotes.
23881 \begin_layout Standard
23882 \begin_inset VSpace bigskip
23885 When you use the toolbar button
23886 \begin_inset Graphics
23887 filename ../images/note-insert.png
23889 scaleBeforeRotation
23896 \begin_inset space ~
23902 You can switch between the five note types by right-clicking on the note-box.
23907 If you want to turn existing text into a note, mark it and click on the
23921 To change a note to text, press the backspace key when the cursor is in
23922 the first position of a note, or press the deletey key when the cursor
23923 is in the very last position of the note, respectively.
23926 \begin_layout Standard
23927 \begin_inset VSpace bigskip
23930 You can change the text color of the greyed out notes in the preamble with
23931 the following command:
23934 \begin_layout Standard
23939 renewenvironment{lyxgreyedout}
23940 \begin_inset Newline newline
23947 \begin_layout Plain Layout
23965 \begin_layout Standard
23966 The available colors and the method to define own colors is explained in
23968 \begin_inset space ~
23972 \begin_inset CommandInset ref
23974 reference "sec:Colored-Tables"
23981 \begin_layout Standard
23982 Notes that appear in blue in this document are set using greyed out notes
23986 \begin_layout Section
23988 \begin_inset CommandInset label
23990 name "sec:Footnotes"
23998 \begin_layout Plain Layout
24008 \begin_layout Plain Layout
24017 \begin_layout Standard
24018 Footnotes can be inserted using the toolbar button
24019 \begin_inset Graphics
24020 filename ../images/footnote-insert.png
24022 scaleBeforeRotation
24028 Insert\SpecialChar \menuseparator
24040 then the following footnote-box:
24041 \begin_inset Graphics
24042 filename clipart/footnoteQt4.png
24044 scaleBeforeRotation
24052 where you can enter the footnote text.
24053 If you want to turn existing text into a footnote, mark it and click on
24075 to text, press the Backspace key when the cursor is in the first position
24084 , or press the Delete key when the cursor is in the very last position of
24096 \begin_layout Standard
24097 Here is an example footnote:
24105 \begin_layout Plain Layout
24106 \begin_inset CommandInset label
24108 name "foot:This-is-an"
24112 This is an example footnote.
24125 \begin_layout Plain Layout
24129 newcounter{MyRepeatFoot}
24132 \begin_layout Plain Layout
24136 setcounter{MyRepeatFoot}{
24146 \begin_layout Standard
24147 The footnote will appear in the output as a superscript number at the text
24148 position where the footnote box is placed.
24149 The footnote text is placed at the bottom of the current page.
24150 The footnote number is calculated by LaTeX, the numbers are consecutive.
24151 It depends on your document-class, if the footnote number is reset for
24155 \begin_layout Standard
24156 Footnotes can be referenced like floats: Insert a label into the footnote
24157 and cross-reference this label in the text as described in section
24158 \begin_inset space ~
24162 \begin_inset CommandInset ref
24164 reference "sec:Referencing-Floats"
24169 \begin_inset Newline newline
24172 This is a cross-reference of Footnote
24173 \begin_inset space ~
24177 \begin_inset CommandInset ref
24179 reference "foot:This-is-an"
24186 \begin_layout Standard
24187 \begin_inset VSpace defskip
24190 To use footnotes within tables, you have to use minipages, see section
24191 \begin_inset space ~
24195 \begin_inset CommandInset ref
24197 reference "sec:Minipages"
24202 Footnotes within longtables are described in section
24203 \begin_inset space ~
24207 \begin_inset CommandInset ref
24209 reference "sub:Footnotes-in-Longtables"
24216 \begin_layout Standard
24217 \begin_inset VSpace defskip
24220 To create only a mark for a footnote, use the command
24224 footnotemark[number]
24227 This is used when you have the same annotation several times in a text
24228 but doesn't want to print the footnote text every time.
24229 \begin_inset Newline newline
24232 As you don't know the number of the repeating footnote while you are writing
24233 the text, you have to store its number.
24234 For the following footnote mark example, these commands were inserted in
24235 TeX-Code behind Footnote
24236 \begin_inset space ~
24240 \begin_inset CommandInset ref
24242 reference "foot:This-is-an"
24246 to store the footnote number:
24249 \begin_layout Standard
24254 newcounter{MyRepeatFoot}
24255 \begin_inset Newline newline
24260 setcounter{MyRepeatFoot}{
24265 \begin_layout Standard
24266 The footnote mark was then created with this command:
24269 \begin_layout Standard
24279 \begin_layout Standard
24280 Here is an example footnote mark:
24288 \begin_layout Plain Layout
24302 \begin_layout Subsection
24304 \begin_inset CommandInset label
24306 name "sub:Footnote-Numbering"
24314 \begin_layout Plain Layout
24315 Footnotes ! Numbering
24323 \begin_layout Standard
24324 To reset the footnote number back to 1 after each section
24326 , add this command to your document preamble:
24329 \begin_layout Standard
24334 @addtoreset{footnote}{section}
24337 \begin_layout Standard
24338 \begin_inset VSpace bigskip
24341 The following preamble command changes the footnote numbering style to small
24345 \begin_layout Standard
24357 \begin_layout Standard
24361 \begin_layout Plain Layout
24374 This is a footnote with roman numbering:
24378 \begin_layout Plain Layout
24379 This is an example footnote with roman numbering.
24387 \begin_layout Standard
24388 To change the numbering style to capital roman numerals replace in the command
24403 \begin_inset Quotes eld
24407 \begin_inset Quotes erd
24410 footnotes with capital or small Latin letters use
24424 \begin_inset Quotes eld
24428 \begin_inset Quotes erd
24431 footnotes with symbols use
24440 \begin_layout Standard
24441 \begin_inset Note Greyedout
24444 \begin_layout Plain Layout
24449 You can only number 26 footnotes with Latin letters, because this numbering
24450 is limited to single letters.
24456 \begin_inset Newline newline
24460 \begin_inset Note Greyedout
24463 \begin_layout Plain Layout
24468 You can only number 9 footnotes with symbols.
24476 \begin_layout Standard
24477 To return to the default numbering style when you changed to another one,
24490 in the command above.
24494 \begin_layout Plain Layout
24510 \begin_layout Standard
24511 \begin_inset VSpace bigskip
24517 \begin_layout Standard
24518 If you want to have footnotes numbered in the scheme
24519 \begin_inset Quotes eld
24523 \begin_inset Quotes erd
24526 , add the following command to your document preamble:
24529 \begin_layout Standard
24534 numberwithin{footnote}{chapter}
24537 \begin_layout Standard
24538 To be able to use the command
24547 \begin_inset space ~
24552 in the document settings the option
24555 \begin_inset space ~
24559 \begin_inset space ~
24563 \begin_inset space ~
24571 \begin_layout Standard
24575 \begin_layout Plain Layout
24579 numberwithin{footnote}{chapter}
24584 This is another example footnote:
24590 \begin_layout Plain Layout
24591 This is a footnote numbered in the scheme
24592 \begin_inset Quotes eld
24596 \begin_inset Quotes erd
24610 \begin_layout Plain Layout
24626 \begin_layout Standard
24627 \begin_inset Note Greyedout
24630 \begin_layout Plain Layout
24641 always prints out the footnote number as arabic number; previous redefinitions
24642 to get non-arabic numbers are overwritten.
24650 \begin_layout Standard
24651 So to get for example the scheme
24652 \begin_inset Quotes eld
24658 \begin_inset Quotes erd
24661 , use this command instead of
24670 \begin_layout Standard
24684 \begin_layout Subsection
24689 \begin_layout Plain Layout
24690 Footnotes ! Placement
24698 \begin_layout Standard
24699 If you have several footnotes in one page, they appear without vertical
24700 space between them at the bottom of the page.
24701 To make them better readable you can e.
24702 \begin_inset space \thinspace{}
24706 \begin_inset space \space{}
24710 \begin_inset space \thinspace{}
24713 mm space with the following preamble command:
24716 \begin_layout Standard
24726 \begin_inset Newline newline
24740 \begin_layout Standard
24741 \begin_inset VSpace bigskip
24744 In a two-column document the footnotes appear at the bottom of every column,
24746 \begin_inset space ~
24750 \begin_inset CommandInset ref
24752 reference "fig:Standard-footnote-placement"
24757 If the footnotes should only appear at the bottom of the right column,
24759 \begin_inset space ~
24763 \begin_inset CommandInset ref
24765 reference "fig:Footnote-placement-in"
24769 , use the LaTeX-package
24777 \begin_layout Plain Layout
24778 LaTeX-packages ! ftnright
24783 with this command in the document preamble:
24786 \begin_layout Standard
24791 usepackage{ftnright}
24794 \begin_layout Standard
24795 \begin_inset Float figure
24801 \begin_layout Plain Layout
24805 \begin_layout Plain Layout
24815 \begin_inset Graphics
24816 filename clipart/without_fntright.pdf
24818 scaleBeforeRotation
24826 \begin_layout Plain Layout
24836 \begin_layout Plain Layout
24837 \begin_inset Caption
24839 \begin_layout Plain Layout
24840 \begin_inset CommandInset label
24842 name "fig:Standard-footnote-placement"
24846 Standard footnote placement in two-column documents.
24859 \begin_layout Standard
24860 \begin_inset Float figure
24866 \begin_layout Plain Layout
24870 \begin_layout Plain Layout
24880 \begin_inset Graphics
24881 filename clipart/with_fntright.pdf
24883 scaleBeforeRotation
24891 \begin_layout Plain Layout
24901 \begin_layout Plain Layout
24902 \begin_inset Caption
24904 \begin_layout Plain Layout
24905 \begin_inset CommandInset label
24907 name "fig:Footnote-placement-in"
24911 Footnote placement in two-column documents when the LaTeX-package
24928 \begin_layout Standard
24929 \begin_inset VSpace bigskip
24932 In some scientific literature it is usual to collect the footnotes and print
24933 them in a separate paragraph at the the end of a section, like in Figure
24934 \begin_inset space ~
24938 \begin_inset CommandInset ref
24940 reference "fig:Endnotes----footnotes"
24945 They are then so called
24946 \begin_inset Quotes eld
24950 \begin_inset Quotes erd
24957 \begin_layout Plain Layout
24963 To use endnotes instead of footnotes in your document, load the LaTeX-package
24972 \begin_layout Plain Layout
24973 LaTeX-packages ! endnotes
24978 with the document preamble lines
24981 \begin_layout Standard
24986 usepackage{endnotes}
24987 \begin_inset Newline newline
24999 \begin_layout Standard
25000 To insert the collected footnotes, insert the command
25003 \begin_layout Standard
25011 \begin_layout Standard
25012 in TeX-Code at the the end of a section or chapter.
25015 \begin_layout Standard
25016 \begin_inset Float figure
25021 \begin_layout Plain Layout
25026 \begin_layout Plain Layout
25036 \begin_inset Graphics
25037 filename clipart/endnotes.pdf
25038 scaleBeforeRotation
25046 \begin_layout Plain Layout
25056 \begin_layout Plain Layout
25057 \begin_inset Caption
25059 \begin_layout Plain Layout
25060 \begin_inset CommandInset label
25062 name "fig:Endnotes----footnotes"
25066 Endnotes -- footnotes are printed in a separate paragraph at the end of
25067 sections or chapters.
25080 \begin_layout Standard
25081 \begin_inset VSpace medskip
25084 The paragraph heading for the endnotes isn't automatically translated into
25085 the document language, this must be done manually.
25086 The following preamble command translate the default English name
25087 \begin_inset Quotes eld
25091 \begin_inset Quotes erd
25094 to the German translation
25095 \begin_inset Quotes eld
25099 \begin_inset Quotes erd
25105 \begin_layout Standard
25112 notesname}{Anmerkungen}
25115 \begin_layout Standard
25116 \begin_inset VSpace medskip
25119 The numbering of endnotes can be changed like the footnote numbering as
25120 described in section
25121 \begin_inset space ~
25125 \begin_inset CommandInset ref
25127 reference "sub:Footnote-Numbering"
25131 ; just replace the command
25144 To reset the endnote number use the command
25150 as described in section
25151 \begin_inset space ~
25155 \begin_inset CommandInset ref
25157 reference "sub:Footnote-Numbering"
25161 and replace the command parameter
25172 \begin_layout Standard
25173 To create only a mark for an endnote, use the command
25177 endnotemark[number]
25179 similar to the command
25185 , described in section
25186 \begin_inset space ~
25190 \begin_inset CommandInset ref
25192 reference "sec:Footnotes"
25199 \begin_layout Standard
25200 \begin_inset VSpace bigskip
25203 Footnotes can also be placed in the page margin and the footnote text alignment
25204 can be changed, see the LaTeX-package
25212 \begin_layout Plain Layout
25213 LaTeX-packages ! footmisc
25219 \begin_inset CommandInset citation
25225 for more information about this.
25228 \begin_layout Standard
25229 For various further footnote formatting issues have a look at LaTeX-books,
25231 \begin_inset CommandInset citation
25233 key "latexcompanion,latexguide,latexbook"
25240 \begin_layout Section
25245 \begin_layout Plain Layout
25246 Notes ! Margin Notes
25254 \begin_layout Standard
25255 Margin notes look and behave in LyX like footnotes.
25256 They are inserted via the menu
25258 Insert\SpecialChar \menuseparator
25260 \begin_inset space ~
25265 or the toolbar button
25266 \begin_inset Graphics
25267 filename ../images/marginalnote-insert.png
25269 scaleBeforeRotation
25284 \begin_inset Quotes eld
25288 \begin_inset Quotes erd
25291 appears where you can enter the text of the margin note.
25294 \begin_layout Standard
25295 At the side is an example margin note.
25300 \begin_inset Marginal
25303 \begin_layout Plain Layout
25304 This is a margin note.
25312 \begin_layout Standard
25313 Margin notes appear at the right side in single-sided documents.
25314 In double-sided documents they appear in the outer margin -- left on even
25315 pages, right on odd pages.
25316 The text of margin notes is aligned opposite to the outer margin -- right-align
25317 ed when the note appears in the left margin.
25318 The first line of the margin note is placed at the position of the text
25319 line where it is inserted in the document.
25322 \begin_layout Standard
25323 \begin_inset VSpace bigskip
25326 To place the margin note in the inner margin, add the command
25329 \begin_layout Standard
25337 \begin_layout Standard
25338 in TeX-Code before a margin note.
25339 The new placement is valid for all following margin notes.
25344 \begin_layout Plain Layout
25354 \begin_inset Marginal
25357 \begin_layout Plain Layout
25358 This is a margin note in the inner margin.
25366 \begin_inset Newline newline
25372 \begin_inset Note Greyedout
25375 \begin_layout Plain Layout
25380 There is often not enough space in the inner margin so that the notes are
25381 not correctly displayed in the output.
25389 \begin_layout Standard
25390 To return to the default placement insert the command
25393 \begin_layout Standard
25401 \begin_layout Standard
25406 \begin_layout Plain Layout
25416 \begin_inset Note Greyedout
25419 \begin_layout Plain Layout
25424 The command is ignored when it is within a paragraph where also the command
25439 \begin_layout Standard
25440 \begin_inset VSpace bigskip
25447 \begin_inset Marginal
25450 \begin_layout Plain Layout
25451 AVeryLongMarginParWord that isn't hyphenated.
25459 Similar to the case described in section
25460 \begin_inset space ~
25464 \begin_inset CommandInset ref
25466 reference "sub:Multiple-Lines-in"
25470 , long words cannot be hyphenated when they are the first word in a margin
25472 To avoid this, insert 0
25473 \begin_inset space \thinspace{}
25476 pt horizontal space before the word
25481 \begin_inset Marginal
25484 \begin_layout Plain Layout
25485 \begin_inset space \hspace*{}
25489 AVeryLongMarginParWord that is hyphenated.
25497 \begin_layout Standard
25498 \begin_inset VSpace bigskip
25504 \begin_layout Standard
25505 \begin_inset Note Greyedout
25508 \begin_layout Plain Layout
25513 Margin notes can normally not be used inside tables, floats, and footnotes.
25521 \begin_layout Standard
25522 \begin_inset VSpace bigskip
25528 \begin_layout Standard
25532 \begin_layout Plain Layout
25542 \begin_inset Note Note
25545 \begin_layout Plain Layout
25546 The following section will only be displayed when the LaTeX-package
25558 \begin_layout Standard
25559 This restriction can be evaded by using the LaTeX-package
25567 \begin_layout Plain Layout
25568 LaTeX-packages ! marginnote
25574 By adding these two lines to your document preamble, the command used by
25575 LyX for margin notes is redefined to use the command provided by the
25582 \begin_layout Standard
25587 usepackage{marginnote}
25588 \begin_inset Newline newline
25600 \begin_layout Standard
25601 This is also used in this document because
25605 has another useful feature: You can set a vertical offset for the note.
25606 This is often needed when too many margin notes are too close together
25607 or for a better page layout.
25608 The offset is set in LyX as TeX-Code directly behind the margin note in
25612 \begin_layout Standard
25618 \begin_layout Standard
25619 where the offset is a length with one of the units listed in Table
25620 \begin_inset space ~
25624 \begin_inset CommandInset ref
25626 reference "tab:Units"
25631 A negative value shifts the note up, a positive value shifts it down.
25635 For example the margin note beside this text line is shifted up 1.5
25636 \begin_inset space \thinspace{}
25639 cm with the TeX-Code-command
25640 \begin_inset Quotes eld
25650 \begin_inset Quotes erd
25654 \begin_inset Marginal
25657 \begin_layout Plain Layout
25658 This margin note is shifted up 1.5
25659 \begin_inset space \thinspace{}
25662 cm from its original position.
25674 \begin_layout Plain Layout
25684 \begin_layout Standard
25685 \begin_inset VSpace medskip
25692 you can also change the alignment of the text in the margin note.
25693 For example the commands
25696 \begin_layout Standard
25703 raggedleftmarginnote}{
25706 \begin_inset Newline newline
25713 raggedrightmarginnote}{
25718 \begin_layout Standard
25719 set the alignment to centered.
25724 raggedleftmarginnote
25726 denotes margin notes that appear at the left side.
25733 \begin_layout Plain Layout
25739 raggedleftmarginnote}{
25744 \begin_layout Plain Layout
25750 raggedrightmarginnote}{
25758 \begin_inset Marginal
25761 \begin_layout Plain Layout
25762 The text of this margin note is centered.
25773 \begin_layout Standard
25780 raggedleftmarginnote}{
25783 \begin_inset Newline newline
25790 raggedrightmarginnote}{
25799 \begin_layout Plain Layout
25805 raggedleftmarginnote}{
25810 \begin_layout Plain Layout
25816 raggedrightmarginnote}{
25826 \begin_layout Standard
25827 \begin_inset VSpace medskip
25830 For the other features of
25834 we refer to its documentation
25835 \begin_inset CommandInset citation
25844 \begin_layout Standard
25845 \begin_inset VSpace bigskip
25848 You can adjust the layout of margin notes by changing its definition.
25849 To create for example a header for all margin notes with the underlined,
25850 sans-serif, and bold header text
25851 \begin_inset Quotes eld
25863 \begin_inset Quotes erd
25866 , add this to your document preamble:
25869 \begin_layout Standard
25879 \begin_inset Newline newline
25889 \begin_inset Newline newline
25896 \begin_layout Plain Layout
25913 underbar{Attention!}}}%
25914 \begin_inset Newline newline
25921 \begin_layout Plain Layout
25939 \begin_layout Standard
25946 \begin_layout Plain Layout
25957 \begin_layout Plain Layout
25968 \begin_layout Plain Layout
25976 underbar{Attention!}}}%
25979 \begin_layout Plain Layout
25993 \begin_inset Marginal
25996 \begin_layout Plain Layout
25997 This is a margin note with a defined heading.
26009 \begin_layout Plain Layout
26023 \begin_layout Plain Layout
26040 \begin_inset Note Note
26043 \begin_layout Plain Layout
26044 The margin note format is changed only for this example.
26052 \begin_layout Standard
26056 \begin_layout Plain Layout
26066 \begin_inset Note Note
26069 \begin_layout Plain Layout
26070 The following will be displayed when the LaTeX-package
26082 \begin_layout Standard
26083 You need to install the LaTeX-package
26087 to see the following part of this section in the output.
26090 \begin_layout Standard
26094 \begin_layout Plain Layout
26106 \begin_layout Chapter
26110 \begin_layout Section
26115 \begin_layout Plain Layout
26116 Boxes ! Introduction
26124 \begin_layout Standard
26125 Boxes are used to format a block of text.
26126 Boxes can be used to write documents with multiple languages, see section
26127 \begin_inset space ~
26131 \begin_inset CommandInset ref
26133 reference "sec:Minipages"
26137 , to frame texts, see section
26138 \begin_inset space ~
26142 \begin_inset CommandInset ref
26144 reference "sec:Decoration"
26148 , to prevent words to be hyphenated, see section
26149 \begin_inset space ~
26153 \begin_inset CommandInset ref
26155 reference "sec:Prevent-Hyphenation"
26159 , to align text, see section
26160 \begin_inset space ~
26164 \begin_inset CommandInset ref
26166 reference "sub:Vertical-Alignment"
26170 , or to set the background color of texts, see section
26171 \begin_inset space ~
26175 \begin_inset CommandInset ref
26177 reference "sec:Colored-Boxes"
26184 \begin_layout Standard
26185 Boxes can be inserted with the menu
26187 Insert\SpecialChar \menuseparator
26190 or the toolbar button
26191 \begin_inset Graphics
26192 filename ../images/box-insert.png
26194 scaleBeforeRotation
26199 A grey box with the label
26204 \begin_inset Graphics
26205 filename clipart/BoxInsetDefaultQt4.png
26207 scaleBeforeRotation
26212 The box type can be specified by right-clicking on the box.
26213 The appearing box dialog offers the
26216 \begin_inset space ~
26234 is the default for new boxes and is explained in section
26235 \begin_inset space ~
26239 \begin_inset CommandInset ref
26241 reference "sec:Minipages"
26249 is described in section
26250 \begin_inset space ~
26254 \begin_inset CommandInset ref
26256 reference "sec:Parboxes"
26263 \begin_layout Standard
26264 Boxes aren't numbered and can therefore not be referenced like floats or
26268 \begin_layout Standard
26269 \begin_inset Note Greyedout
26272 \begin_layout Plain Layout
26277 Boxes must not be the item in an
26293 \begin_layout Standard
26294 \begin_inset Note Greyedout
26297 \begin_layout Plain Layout
26302 For an unknown reason you can only set the
26305 \begin_inset space ~
26314 when you use a framed box.
26318 \begin_inset space ~
26323 type and without frames are explained in section
26324 \begin_inset space ~
26328 \begin_inset CommandInset ref
26330 reference "sec:Prevent-Hyphenation"
26342 \begin_layout Section
26344 \begin_inset CommandInset label
26346 name "sec:Box-Dialog"
26354 \begin_layout Plain Layout
26363 \begin_layout Subsection
26368 \begin_layout Plain Layout
26377 \begin_layout Standard
26378 In the box dialog you can adjust the box geometry in the fields
26387 The available units for the geometry are explained in Table
26388 \begin_inset space ~
26392 \begin_inset CommandInset ref
26394 reference "tab:Units"
26403 offers the following additional sizes:
26406 \begin_layout Description
26407 Depth This is the plain text
26408 \begin_inset Quotes eld
26412 \begin_inset Quotes erd
26416 It ignores the total depth when there are multiple text lines in the box:
26417 \begin_inset Newline newline
26421 \begin_inset Newline newline
26425 \begin_inset Newline newline
26429 \begin_inset Box Boxed
26438 height_special "depth"
26441 \begin_layout Plain Layout
26443 Box height set to 1
26444 \begin_inset space \thinspace{}
26453 \begin_inset Newline newline
26457 \begin_inset Newline newline
26463 \begin_layout Description
26464 Height This is the heigth of the text that is inside the box.
26466 \begin_inset space \thinspace{}
26470 \begin_inset space \space{}
26473 2 for this size will set the box heigth to 2 times the text height:
26474 \begin_inset Box Boxed
26483 height_special "height"
26486 \begin_layout Plain Layout
26488 Box height set to 2
26489 \begin_inset space \thinspace{}
26500 \begin_layout Description
26502 \begin_inset space ~
26505 Height This is the Height
26506 \begin_inset space \thinspace{}
26510 \begin_inset space \thinspace{}
26514 \begin_inset Box Boxed
26523 height_special "totalheight"
26526 \begin_layout Plain Layout
26528 Box height set to 1
26529 \begin_inset space \thinspace{}
26533 \begin_inset space ~
26544 \begin_layout Description
26545 Width This sets the width of the box as heigth:
26546 \begin_inset Box Boxed
26555 height_special "width"
26558 \begin_layout Plain Layout
26560 Box height set to 1
26561 \begin_inset space \thinspace{}
26572 \begin_layout Subsection
26577 \begin_layout Plain Layout
26586 \begin_layout Standard
26587 When you have chosen an
26590 \begin_inset space ~
26595 , the vertical box alignment can be:
26598 \begin_layout Description
26599 Top This is an example text line.
26601 \begin_inset Box Boxed
26610 height_special "totalheight"
26613 \begin_layout Plain Layout
26615 This box is top-aligned.
26620 This is an example text line.
26623 \begin_layout Description
26624 Middle This is an example text line.
26626 \begin_inset Box Boxed
26635 height_special "totalheight"
26638 \begin_layout Plain Layout
26640 This box is middle-aligned.
26645 This is an example text line.
26648 \begin_layout Description
26649 Bottom This is an example text line.
26651 \begin_inset Box Boxed
26660 height_special "totalheight"
26663 \begin_layout Plain Layout
26665 This box is bottom-aligned.
26670 This is an example text line.
26673 \begin_layout Standard
26674 \begin_inset Note Greyedout
26677 \begin_layout Plain Layout
26682 The vertical box aligment can be lost in the output when you have two boxes
26683 in a line and one has e.
26684 \begin_inset space \thinspace{}
26688 \begin_inset space \space{}
26691 a shadow and the other one not.
26699 \begin_layout Standard
26700 The horizontal box alignment can be set via LyX's paragraph dialog when
26701 you set the box into its own paragraph.
26704 \begin_layout Standard
26705 \begin_inset VSpace bigskip
26708 When you have chosen an
26711 \begin_inset space ~
26716 , the box content can be vertical aligned to:
26719 \begin_layout Description
26720 top This is an example text line.
26722 \begin_inset Box Boxed
26731 height_special "totalheight"
26734 \begin_layout Plain Layout
26736 This box text is top-aligned.
26741 This is an example text line.
26744 \begin_layout Description
26745 middle This is an example text line.
26747 \begin_inset Box Boxed
26756 height_special "totalheight"
26759 \begin_layout Plain Layout
26761 This box text is middle-aligned.
26766 This is an example text line.
26769 \begin_layout Description
26770 bottom This is an example text line.
26772 \begin_inset Box Boxed
26781 height_special "totalheight"
26784 \begin_layout Plain Layout
26786 This box text is bottom-aligned.
26791 This is an example text line.
26794 \begin_layout Description
26795 stretch This is an example text line.
26797 \begin_inset Box Boxed
26806 height_special "totalheight"
26809 \begin_layout Plain Layout
26814 \begin_layout Plain Layout
26819 \begin_layout Plain Layout
26826 This is an example text line.
26829 \begin_layout Standard
26830 To stretch the box content, it must consist of more than one paragraph.
26831 In the example above every text line is in an own paragraph.
26834 \begin_layout Standard
26835 \begin_inset VSpace bigskip
26838 To align the box content horizontally you can use LyX's paragraph dialog
26839 when you have chosen an
26842 \begin_inset space ~
26850 \begin_layout Standard
26852 \begin_inset Box Boxed
26861 height_special "totalheight"
26864 \begin_layout Plain Layout
26869 \begin_layout Plain Layout
26874 \begin_layout Plain Layout
26884 \begin_layout Standard
26885 If you haven't set an
26888 \begin_inset space ~
26893 , you can align the box content horizontally in the box dialog.
26896 \begin_layout Standard
26898 \begin_inset Box Boxed
26907 height_special "totalheight"
26910 \begin_layout Plain Layout
26912 This box text is horizontally stretched.
26920 \begin_layout Subsection
26922 \begin_inset CommandInset label
26924 name "sec:Decoration"
26932 \begin_layout Plain Layout
26941 \begin_layout Standard
26942 The type of the box can be specified in the box-dialog in the drop-down
26948 The following types are possible:
26951 \begin_layout Description
26953 \begin_inset space ~
26957 \begin_inset space ~
26960 frame This draws a rectangle frame around the box.
26961 The frame line thickness has the size of
26969 \begin_inset Box Boxed
26978 height_special "totalheight"
26981 \begin_layout Plain Layout
26991 \begin_layout Description
26993 \begin_inset space ~
26997 \begin_inset space ~
27000 break When you use the decoration
27002 simple rectangular frame
27004 and no inner box, you can allow page breaks within a box.
27005 Note that then, in contrary to other framed boxes, the frame always uses
27006 the whole column width, the box is set as its own paragraph, and
27018 has no effect on this box type.
27019 The frame line thickness has the size of
27027 \begin_inset Box Framed
27036 height_special "totalheight"
27039 \begin_layout Plain Layout
27040 Allow page break box
27048 \begin_layout Description
27050 \begin_inset space ~
27054 \begin_inset space ~
27057 thin This draws an oval frame around the box.
27058 The frame line thickness has the size 0.4
27059 \begin_inset space \thinspace{}
27064 \begin_inset Box ovalbox
27073 height_special "totalheight"
27076 \begin_layout Plain Layout
27086 \begin_layout Description
27088 \begin_inset space ~
27092 \begin_inset space ~
27095 thick This draws an oval frame around the box.
27096 The frame line thickness has the size 0.8
27097 \begin_inset space \thinspace{}
27102 \begin_inset Box Ovalbox
27111 height_special "totalheight"
27114 \begin_layout Plain Layout
27124 \begin_layout Description
27126 \begin_inset space ~
27129 shadow This draws a rectangle frame with a shadow around the box.
27130 The frame line thickness has the size of
27136 , the shadow has a width of 4
27137 \begin_inset space \thinspace{}
27142 \begin_inset Box Shadowbox
27151 height_special "totalheight"
27154 \begin_layout Plain Layout
27164 \begin_layout Description
27166 \begin_inset space ~
27169 background This draws a box with red background color.
27170 In contrary to colored boxes
27174 \begin_layout Plain Layout
27176 \begin_inset space \thinspace{}
27180 \begin_inset CommandInset ref
27182 reference "sec:Colored-Boxes"
27191 , it always uses the whole column width and the box is set as its own paragraph.
27193 \begin_inset Box Shaded
27202 height_special "totalheight"
27205 \begin_layout Plain Layout
27206 Shaded background box
27214 \begin_layout Description
27216 \begin_inset space ~
27220 \begin_inset space ~
27223 frame This draws a double-line rectangle frame around the box.
27224 The line thickness of the inner frame is 0.75
27225 \begin_inset space \thinspace{}
27234 , the thickness of the outer frame is 1.5
27235 \begin_inset space \thinspace{}
27245 The distance between the lines is 1.5
27246 \begin_inset space \thinspace{}
27256 \begin_inset space \thinspace{}
27260 \begin_inset space \thinspace{}
27264 \begin_inset space \thinspace{}
27269 \begin_inset Box Doublebox
27278 height_special "totalheight"
27281 \begin_layout Plain Layout
27283 Double rectangular box
27291 \begin_layout Standard
27292 \begin_inset VSpace bigskip
27295 LyX's box label will reflect the different frame types.
27296 To be able to use all types, the LaTeX-package
27304 \begin_layout Plain Layout
27305 LaTeX-packages ! fancybox
27313 \begin_layout Section
27318 \begin_layout Plain Layout
27319 Boxes ! Customization
27327 \begin_layout Standard
27328 The default value for the size
27335 \begin_inset space \thinspace{}
27339 It can be changed with the following command in TeX-Code to e.
27340 \begin_inset space \thinspace{}
27344 \begin_inset space \space{}
27348 \begin_inset space \thinspace{}
27354 \begin_layout Standard
27364 \begin_layout Standard
27368 \begin_layout Plain Layout
27380 \begin_inset Box Boxed
27389 height_special "totalheight"
27392 \begin_layout Plain Layout
27394 Rectangular box with
27401 \begin_inset space \thinspace{}
27405 \begin_inset space \thinspace{}
27409 \begin_inset space \thinspace{}
27421 \begin_layout Plain Layout
27435 \begin_layout Standard
27436 \begin_inset VSpace bigskip
27439 The space between the frame and the box content is for all frame styles
27441 \begin_inset space \thinspace{}
27445 You can change it by setting the length
27452 For example the command
27455 \begin_layout Standard
27465 \begin_layout Standard
27466 sets the value to 10
27467 \begin_inset space \thinspace{}
27470 pt, like for the following box:
27473 \begin_layout Standard
27477 \begin_layout Plain Layout
27489 \begin_inset Box Boxed
27498 height_special "totalheight"
27501 \begin_layout Plain Layout
27503 Rectangular box with
27510 \begin_inset space \thinspace{}
27514 \begin_inset space \thinspace{}
27518 \begin_inset space \thinspace{}
27530 \begin_layout Plain Layout
27544 \begin_layout Standard
27545 \begin_inset VSpace bigskip
27548 The diameter of the round corners of the oval boxes can be set with the
27559 \begin_layout Standard
27567 \begin_layout Standard
27568 sets the diameter to 1
27569 \begin_inset space \thinspace{}
27576 \begin_layout Standard
27584 \begin_layout Standard
27585 sets the diameter to
27588 \begin_inset space \thinspace{}
27592 \begin_inset space \thinspace{}
27595 minimum(width and heigth of box)
27607 \begin_layout Standard
27611 \begin_layout Plain Layout
27621 \begin_inset Box Ovalbox
27630 height_special "totalheight"
27633 \begin_layout Plain Layout
27642 \begin_inset space \thinspace{}
27646 \begin_inset space \thinspace{}
27650 \begin_inset space \thinspace{}
27662 \begin_layout Plain Layout
27674 \begin_layout Standard
27675 \begin_inset VSpace bigskip
27678 The size of the shadow can be adjusted by changing the length
27686 \begin_inset space \thinspace{}
27689 pt for the following box by this command:
27692 \begin_layout Standard
27702 \begin_layout Standard
27706 \begin_layout Plain Layout
27718 \begin_inset Box Shadowbox
27727 height_special "totalheight"
27730 \begin_layout Plain Layout
27739 \begin_inset space \thinspace{}
27743 \begin_inset space \thinspace{}
27747 \begin_inset space \thinspace{}
27759 \begin_layout Plain Layout
27773 \begin_layout Standard
27774 \begin_inset VSpace bigskip
27780 \begin_layout Standard
27781 The default value for the size
27788 \begin_inset space \thinspace{}
27792 The default space between the note content and the frame is 9
27793 \begin_inset space \thinspace{}
27796 pt and can be changed with the value of
27803 For example the frame appearance of the following
27807 is set with the TeX-Code commands
27810 \begin_layout Standard
27818 \begin_inset Newline newline
27828 \begin_layout Standard
27832 \begin_layout Plain Layout
27841 \begin_layout Plain Layout
27853 \begin_inset Box Framed
27862 height_special "totalheight"
27865 \begin_layout Plain Layout
27879 \begin_layout Plain Layout
27888 \begin_layout Plain Layout
27902 \begin_layout Standard
27903 \begin_inset VSpace bigskip
27909 \begin_layout Standard
27914 boxes the default space between the box content and the box border is 3
27915 \begin_inset space \thinspace{}
27918 pt and can be changed with the value of
27925 The default background color red can either be changed locally with the
27930 definecolor{shadebox}
27932 or globally with the menu
27934 Tools\SpecialChar \menuseparator
27935 Preferences\SpecialChar \menuseparator
27936 Colors\SpecialChar \menuseparator
27938 \begin_inset space ~
27950 command is explained in section
27951 \begin_inset space ~
27955 \begin_inset CommandInset ref
27957 reference "sec:Colored-Tables"
27965 \begin_layout Plain Layout
27972 requires the LaTeX-package
27976 in the preamble, see section
27977 \begin_inset space ~
27981 \begin_inset CommandInset ref
27983 reference "sec:Colored-Boxes"
27992 For example the appearance of the following shaded background note is set
27993 with the TeX-Code commands
27996 \begin_layout Standard
28006 \begin_inset Newline newline
28013 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
28016 \begin_layout Standard
28020 \begin_layout Plain Layout
28029 \begin_layout Plain Layout
28033 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
28039 \begin_inset Box Shaded
28048 height_special "totalheight"
28051 \begin_layout Plain Layout
28054 This is yellow text in a
28064 box with dark green background.
28073 \begin_layout Plain Layout
28082 \begin_layout Plain Layout
28086 definecolor{shadecolor}{rgb}{1,0,0}
28094 \begin_layout Standard
28095 \begin_inset VSpace bigskip
28098 Changed lengths and widths are valid for all boxes following the commands
28102 \begin_layout Section
28104 \begin_inset CommandInset label
28106 name "sec:Minipages"
28114 \begin_layout Plain Layout
28123 \begin_layout Standard
28124 Minipages are treated by LaTeX as pages within pages and can therefore for
28125 example have their own footnotes.
28128 \begin_layout Standard
28129 Minipages are useful when you write documents with different languages.
28132 \begin_layout Standard
28133 Below are two example minipages side by side.
28134 Their width is set to 45
28135 \begin_inset space \thinspace{}
28138 col% and they are separated by a horizontal fill, that was inserted via
28141 Insert\SpecialChar \menuseparator
28143 \begin_inset space ~
28146 Formatting\SpecialChar \menuseparator
28148 \begin_inset space ~
28154 \begin_inset Newpage newpage
28160 \begin_layout Standard
28161 \begin_inset Box Frameless
28170 height_special "totalheight"
28173 \begin_layout Plain Layout
28176 Dies ist ein deutscher Text.
28177 Dies ist ein deutscher Text.
28178 Dies ist ein deutscher Text.
28179 Dies ist ein deutscher Text.
28180 Dies ist ein deutscher Text.
28181 Dies ist ein deutscher Text.
28182 Dies ist ein deutscher Text.
28183 Dies ist ein deutscher Text.
28184 Dies ist ein deutscher Text.
28185 Dies ist ein deutscher Text.
28186 Dies ist ein deutscher Text.
28187 Dies ist ein deutscher Text.
28188 Dies ist ein deutscher Text
28192 \begin_layout Plain Layout
28195 Dies ist eine deutsche Fußnote.
28201 Dies ist ein deutscher Text.
28202 Dies ist ein deutscher Text.
28208 \begin_inset space \hfill{}
28212 \begin_inset Box Frameless
28221 height_special "totalheight"
28224 \begin_layout Plain Layout
28225 This is an English Text.
28226 This is an English Text.
28227 This is an English Text.
28228 This is an English Text.
28229 This is an English Text.
28230 This is an English Text.
28231 This is an English Text.
28232 This is an English Text.
28233 This is an English Text.
28234 This is an English Text.
28235 This is an English Text.
28236 This is an English Text.
28237 This is an English Text.
28238 This is an English Text.
28239 This is an English Text.
28240 This is an English Text.
28244 \begin_layout Plain Layout
28245 This is an English footnote.
28250 This is an English Text.
28259 \begin_layout Standard
28260 \begin_inset VSpace bigskip
28263 Another application for minipages are footnotes within tables.
28264 Due to a LaTeX restriction footnotes within tables doesn't appear at the
28265 bottom of the current page.
28266 But when you put the table with the footnote to a minipage, the footnote
28267 will appear at its bottom, numbered with Latin letters.
28268 The footnote number is reset to 1 in every minipage but not outside the
28272 \begin_layout Standard
28273 The footnote of this table doesn't appear:
28274 \begin_inset Tabular
28275 <lyxtabular version="3" rows="3" columns="4">
28277 <column alignment="center" valignment="top" width="0pt">
28278 <column alignment="center" valignment="top" width="0pt">
28279 <column alignment="center" valignment="top" width="0pt">
28280 <column alignment="center" valignment="top" width="0pt">
28282 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28285 \begin_layout Plain Layout
28291 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28294 \begin_layout Plain Layout
28300 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28303 \begin_layout Plain Layout
28308 \begin_layout Plain Layout
28309 This is a footnote within a table.
28319 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28322 \begin_layout Plain Layout
28330 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28333 \begin_layout Plain Layout
28339 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28342 \begin_layout Plain Layout
28348 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28351 \begin_layout Plain Layout
28357 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28360 \begin_layout Plain Layout
28368 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28371 \begin_layout Plain Layout
28377 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28380 \begin_layout Plain Layout
28386 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28389 \begin_layout Plain Layout
28395 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28398 \begin_layout Plain Layout
28412 \begin_layout Standard
28414 \begin_inset Box Frameless
28423 height_special "totalheight"
28426 \begin_layout Plain Layout
28428 \begin_inset Tabular
28429 <lyxtabular version="3" rows="3" columns="4">
28431 <column alignment="center" valignment="top" width="0pt">
28432 <column alignment="center" valignment="top" width="0pt">
28433 <column alignment="center" valignment="top" width="0pt">
28434 <column alignment="center" valignment="top" width="0pt">
28436 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28439 \begin_layout Plain Layout
28445 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28448 \begin_layout Plain Layout
28454 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28457 \begin_layout Plain Layout
28462 \begin_layout Plain Layout
28463 This is a footnote within a table.
28473 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28476 \begin_layout Plain Layout
28484 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28487 \begin_layout Plain Layout
28493 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28496 \begin_layout Plain Layout
28502 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28505 \begin_layout Plain Layout
28511 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28514 \begin_layout Plain Layout
28522 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28525 \begin_layout Plain Layout
28531 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28534 \begin_layout Plain Layout
28540 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28543 \begin_layout Plain Layout
28549 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28552 \begin_layout Plain Layout
28571 \begin_layout Standard
28572 \begin_inset VSpace bigskip
28575 The document-wide paragraph settings are ignored within minipages.
28576 That means that there will be no space between paragraphs in minipages
28577 although you set it to e.
28578 \begin_inset space \thinspace{}
28582 \begin_inset space \space{}
28589 in the document settings.
28592 \begin_layout Standard
28593 Minipages can also be used to set a background color for text parts, see
28595 \begin_inset space ~
28599 \begin_inset CommandInset ref
28601 reference "sub:Color-for-Paragraphs"
28608 \begin_layout Standard
28609 \begin_inset Note Greyedout
28612 \begin_layout Plain Layout
28617 You cannot have floats or margin notes inside minipages but minipages can
28618 be used inside tables, floats, and other boxes.
28626 \begin_layout Section
28628 \begin_inset CommandInset label
28630 name "sec:Parboxes"
28638 \begin_layout Plain Layout
28647 \begin_layout Standard
28648 Parboxes are very similar to minipages with the difference that they cannot
28650 The main difference to minipages is that minipages are in contrary to parboxes
28651 no real boxes but LaTeX-environments.
28654 \begin_layout Standard
28656 \begin_inset Box Frameless
28665 height_special "totalheight"
28668 \begin_layout Plain Layout
28669 This a text within a parbox.
28670 This a text within a parbox.
28673 \begin_layout Plain Layout
28674 This footnote won't appear:
28678 \begin_layout Plain Layout
28679 This footnote is inside a parbox and will therefore not appear.
28692 \begin_layout Section
28693 Boxes for Words and Characters
28697 \begin_layout Plain Layout
28698 Boxes ! for Characters
28706 \begin_layout Subsection
28707 Prevent Hyphenation
28708 \begin_inset CommandInset label
28710 name "sec:Prevent-Hyphenation"
28718 \begin_layout Plain Layout
28719 Boxes ! to Prevent Hyphenation
28727 \begin_layout Standard
28728 You can use a special kind of boxes to prevent words or text to be hyphenated.
28729 \begin_inset Newline newline
28732 Here is an example text:
28735 \begin_layout Standard
28736 This line is an example to show how you can prevent the hyphenation of
28737 \begin_inset Quotes eld
28741 \begin_inset Quotes erd
28747 \begin_layout Standard
28748 To prevent the hyphenation of the word
28749 \begin_inset Quotes eld
28753 \begin_inset Quotes erd
28759 \begin_layout Standard
28767 \begin_layout Standard
28768 in TeX-Code before the word.
28769 Behind the word insert a closing brace
28770 \begin_inset Quotes eld
28778 \begin_inset Quotes erd
28784 \begin_layout Standard
28785 This is the result:
28788 \begin_layout Standard
28789 This line is an example to show how you can prevent the hyphenation of
28793 \begin_layout Plain Layout
28803 \begin_inset Quotes eld
28807 \begin_inset Quotes erd
28814 \begin_layout Plain Layout
28824 \begin_layout Standard
28825 You can alternatively set the command
28826 \begin_inset Quotes eld
28836 \begin_inset Quotes grd
28839 as TeX-Code directly before the word:
28842 \begin_layout Standard
28843 This line is an example to show how you can prevent the hyphenation of
28844 \begin_inset Quotes eld
28851 \begin_layout Plain Layout
28861 \begin_inset Quotes erd
28867 \begin_layout Standard
28868 Of course the word now protrudes over the side margin.
28869 To avoid this, add via the menu
28871 Insert\SpecialChar \menuseparator
28873 \begin_inset space ~
28876 Formatting\SpecialChar \menuseparator
28878 \begin_inset space ~
28886 arg "newline-insert newline"
28889 ) a line break before the word:
28892 \begin_layout Standard
28893 This line is an example to show how you can prevent the hyphenation of
28894 \begin_inset Newline newline
28901 \begin_layout Plain Layout
28911 \begin_inset Quotes eld
28915 \begin_inset Quotes erd
28922 \begin_layout Plain Layout
28932 \begin_layout Subsection
28934 \begin_inset CommandInset label
28936 name "sub:Vertical-Alignment"
28944 \begin_layout Plain Layout
28945 Boxes ! for Vertical Alignment
28954 \begin_layout Plain Layout
28963 \begin_layout Standard
28964 With the help of the command
28970 you can align words, characters or other boxes vertically to the surrounding
28978 is used with the following scheme:
28981 \begin_layout Standard
28986 raisebox{lift}[height][depth]{box content}
28989 \begin_layout Standard
28990 The lift can be a positive value to raise the box or a negative value to
28994 \begin_layout Standard
28995 To align for example the word
28996 \begin_inset Quotes eld
29000 \begin_inset Quotes erd
29003 so that the bottom of the
29004 \begin_inset Quotes eld
29008 \begin_inset Quotes erd
29012 \begin_inset Quotes eld
29016 \begin_inset Quotes erd
29019 is at the baseline, insert the command
29022 \begin_layout Standard
29032 \begin_layout Standard
29033 in TeX-Code before the word.
29034 Behind the word insert a closing brace
29035 \begin_inset Quotes eld
29043 \begin_inset Quotes erd
29047 \begin_inset Newline newline
29050 This is the result:
29053 \begin_layout Standard
29054 This is a text line with the word
29058 \begin_layout Plain Layout
29070 \begin_inset Quotes eld
29074 \begin_inset Quotes erd
29081 \begin_layout Plain Layout
29091 \begin_layout Standard
29092 \begin_inset VSpace bigskip
29095 When you raise or lower characters in a line, the line distance will be
29099 \begin_layout Standard
29100 This is a text line with the word
29104 \begin_layout Plain Layout
29116 \begin_inset Quotes eld
29120 \begin_inset Quotes erd
29127 \begin_layout Plain Layout
29135 \begin_inset Newline newline
29138 This is a text line with the word
29142 \begin_layout Plain Layout
29152 \begin_inset Quotes eld
29156 \begin_inset Quotes erd
29163 \begin_layout Plain Layout
29173 \begin_layout Standard
29174 If you want to prevent this for a certain reason, set the box height to
29179 \begin_layout Standard
29189 \begin_layout Standard
29190 This is a text line with the word
29194 \begin_layout Plain Layout
29206 \begin_inset Quotes eld
29210 \begin_inset Quotes erd
29217 \begin_layout Plain Layout
29225 \begin_inset Newline newline
29228 This is a text line with the word
29232 \begin_layout Plain Layout
29236 raisebox{0.5cm}[0pt]{
29242 \begin_inset Quotes eld
29246 \begin_inset Quotes erd
29253 \begin_layout Plain Layout
29263 \begin_layout Section
29265 \begin_inset CommandInset label
29267 name "sec:Colored-Boxes"
29275 \begin_layout Plain Layout
29284 \begin_layout Subsection
29289 \begin_layout Plain Layout
29298 \begin_layout Standard
29299 To color the background of text the text must be put into a so called
29300 \begin_inset Quotes eld
29304 \begin_inset Quotes erd
29308 This requires that the LaTeX-package
29316 \begin_layout Plain Layout
29317 LaTeX-packages ! color
29322 is loaded in the document preamble with the command
29325 \begin_layout Standard
29330 @ifundefined{textcolor}
29331 \begin_inset Newline newline
29338 \begin_layout Plain Layout
29349 usepackage{color}}{}
29352 \begin_layout Standard
29357 will be loaded automatically by LyX when you color text
29361 \begin_layout Plain Layout
29362 To avoid that it is loaded twice the command
29376 \begin_layout Standard
29377 \begin_inset VSpace medskip
29380 Colorboxes are created with the command
29387 This will be used with the following scheme:
29390 \begin_layout Standard
29395 colorbox{color}{box content}
29398 \begin_layout Standard
29399 The box content can also be a box and colorboxes can also be within other
29403 \begin_layout Standard
29404 The following colors are predefined:
29405 \begin_inset Newline newline
29444 \begin_inset Newline newline
29447 You can also define your own color as described in section
29448 \begin_inset space ~
29452 \begin_inset CommandInset ref
29454 reference "sec:Colored-Tables"
29461 \begin_layout Standard
29463 \begin_inset space \thinspace{}
29467 \begin_inset space \space{}
29470 a red background for a word, insert the command
29473 \begin_layout Standard
29481 \begin_layout Standard
29482 before the word in TeX-Code.
29483 Behind the word insert a closing brace
29484 \begin_inset Quotes eld
29492 \begin_inset Quotes erd
29496 \begin_inset Newline newline
29499 This is the result:
29502 \begin_layout Standard
29503 This is a line where the word
29507 \begin_layout Plain Layout
29517 \begin_inset Quotes eld
29521 \begin_inset Quotes erd
29528 \begin_layout Plain Layout
29535 has a red background.
29538 \begin_layout Standard
29539 \begin_inset VSpace bigskip
29542 If you would have the box frame in a different color, you can use the command
29549 with the following scheme:
29552 \begin_layout Standard
29557 fcolorbox{frame color}{box color}{box content}
29560 \begin_layout Standard
29574 The frame thickness and the space between the frame and the box content
29575 can be adjusted with the lengths
29587 , respectively, as described in section
29588 \begin_inset space ~
29592 \begin_inset CommandInset ref
29594 reference "sec:Decoration"
29601 \begin_layout Standard
29602 For the following example the command
29605 \begin_layout Standard
29610 fcolorbox{cyan}{magenta}{
29613 \begin_layout Standard
29617 \begin_layout Standard
29618 Here is an example where the frame line thickness was set to 1
29619 \begin_inset space \thinspace{}
29623 \begin_inset Newline newline
29630 \begin_layout Plain Layout
29645 \begin_layout Plain Layout
29649 fcolorbox{cyan}{magenta}{
29654 This is text within a colored, framed box.
29658 \begin_layout Plain Layout
29668 \begin_layout Standard
29669 \begin_inset VSpace bigskip
29672 Of course you can also have colored text inside a colorbox:
29673 \begin_inset Newline newline
29680 \begin_layout Plain Layout
29684 fcolorbox{cyan}{magenta}{
29691 This is colored text within a colored, framed box.
29697 \begin_layout Plain Layout
29708 \begin_layout Plain Layout
29722 \begin_layout Standard
29725 \begin_inset VSpace medskip
29731 \begin_layout Standard
29732 \begin_inset Note Greyedout
29735 \begin_layout Plain Layout
29740 Text in colorboxes cannot have line breaks.
29741 To color multiple text lines or paragraphs, use a box inside a colorbox
29742 as described in the following.
29750 \begin_layout Subsection
29751 Color for Paragraphs
29752 \begin_inset CommandInset label
29754 name "sub:Color-for-Paragraphs"
29762 \begin_layout Plain Layout
29763 Color ! for Paragraphs
29771 \begin_layout Standard
29772 To set the background color for more than one text line, put the text into
29774 Before the minipage insert the
29783 \begin_layout Standard
29791 \begin_layout Standard
29793 Behind the minipage insert a closing brace
29794 \begin_inset Quotes eld
29802 \begin_inset Quotes erd
29808 \begin_layout Standard
29812 \begin_layout Plain Layout
29816 colorbox{lightgrey}{
29822 \begin_inset Box Frameless
29831 height_special "totalheight"
29834 \begin_layout Plain Layout
29835 This is text with background color.
29836 This is text with background color.
29839 \begin_layout Plain Layout
29840 \begin_inset VSpace defskip
29843 The text can have footnotes
29847 \begin_layout Plain Layout
29848 Another example footnote
29853 and can include tables and figures.
29856 \begin_layout Plain Layout
29858 \begin_inset Tabular
29859 <lyxtabular version="3" rows="3" columns="3">
29861 <column alignment="center" valignment="top" width="0">
29862 <column alignment="center" valignment="top" width="0">
29863 <column alignment="center" valignment="top" width="0">
29865 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29868 \begin_layout Plain Layout
29874 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29877 \begin_layout Plain Layout
29883 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29886 \begin_layout Plain Layout
29894 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29897 \begin_layout Plain Layout
29903 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29906 \begin_layout Plain Layout
29908 \begin_inset Quotes erd
29916 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29919 \begin_layout Plain Layout
29927 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29930 \begin_layout Plain Layout
29936 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29939 \begin_layout Plain Layout
29945 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29948 \begin_layout Plain Layout
29968 \begin_layout Plain Layout
29978 \begin_layout Section
29979 Rotated and Scaled Boxes
29982 \begin_layout Standard
29983 To use the the commands described in this section, the LaTeX-package
29991 \begin_layout Plain Layout
29992 LaTeX-packages ! graphicx
29997 needs to be loaded in the document preamble with the command
30000 \begin_layout Standard
30005 @ifundefined{rotatebox}
30006 \begin_inset Newline newline
30013 \begin_layout Plain Layout
30024 usepackage{graphicx}}{}
30027 \begin_layout Standard
30028 \begin_inset Note Greyedout
30031 \begin_layout Plain Layout
30036 Some DVI-viewers can't display rotated or scaled material.
30044 \begin_layout Standard
30045 \begin_inset Note Greyedout
30048 \begin_layout Plain Layout
30053 Floats mustn't be inside a rotated or scaled box.
30061 \begin_layout Subsection
30066 \begin_layout Plain Layout
30076 \begin_layout Plain Layout
30086 \begin_layout Plain Layout
30096 \begin_layout Plain Layout
30097 Table Customization ! Rotating
30105 \begin_layout Standard
30106 To rotate material, you can put it into a rotated box.
30107 Such a box is created using the command
30113 in TeX-Code with the following scheme:
30116 \begin_layout Standard
30121 rotatebox[rotation origin]{rotation angle}{box content}
30124 \begin_layout Standard
30125 The rotation origin is specified in the form
30130 The following positions are possible:
30150 (top), and also expedient combinations of the four base positions.
30155 means, that the rotation origin is at the top left corner of the box.
30156 When no rotation origin is specified, the position
30161 The rotation angle is a number that can be negative that specifies the
30163 The rotation direction is counterclockwise.
30166 \begin_layout Standard
30167 In the following example the command
30171 rotatebox[origin=c]{60}{
30173 was inserted as TeX-Code before the text
30174 \begin_inset Quotes eld
30178 \begin_inset Quotes erd
30181 ; after the text the box was closed by a closing brace
30188 \begin_layout Standard
30193 \begin_layout Plain Layout
30197 rotatebox[origin=c]{60}{
30206 \begin_layout Plain Layout
30216 \begin_layout Standard
30217 The box content can also be another box or an inline formula:
30220 \begin_layout Standard
30225 \begin_layout Plain Layout
30229 rotatebox[origin=r]{-60}{
30235 \begin_inset Box Doublebox
30244 height_special "totalheight"
30247 \begin_layout Plain Layout
30257 \begin_layout Plain Layout
30268 \begin_layout Plain Layout
30272 rotatebox[origin=lb]{60}{
30278 \begin_inset Formula $\int A\,\mathrm{d}x=B$
30285 \begin_layout Plain Layout
30295 \begin_layout Standard
30296 or an image or table:
30299 \begin_layout Standard
30304 \begin_layout Plain Layout
30308 rotatebox[origin=lb]{90}{
30314 \begin_inset Graphics
30315 filename clipart/platypus.eps
30325 \begin_layout Plain Layout
30332 with a rotated image
30336 \begin_layout Plain Layout
30340 rotatebox[origin=l]{-90}{
30346 \begin_inset Tabular
30347 <lyxtabular version="3" rows="2" columns="2">
30349 <column alignment="center" valignment="top" width="0">
30350 <column alignment="center" valignment="top" width="0">
30352 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30355 \begin_layout Plain Layout
30361 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30364 \begin_layout Plain Layout
30372 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30375 \begin_layout Plain Layout
30381 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30384 \begin_layout Plain Layout
30399 \begin_layout Plain Layout
30409 \begin_layout Subsection
30414 \begin_layout Plain Layout
30424 \begin_layout Plain Layout
30434 \begin_layout Plain Layout
30444 \begin_layout Plain Layout
30445 Table Customization ! Scaling
30453 \begin_layout Standard
30454 To scale material the commands
30466 can be used as TeX-Code.
30469 \begin_layout Standard
30476 is used with the following scheme:
30479 \begin_layout Standard
30484 scalebox{horizontal}[vertical]{box content}
30487 \begin_layout Standard
30488 Horizontal and vertical are the corresponding scaling factors.
30489 If no vertical scaling factor is given, the horizontal factor will also
30490 be used as vertical one.
30493 \begin_layout Standard
30500 creates for example a double size
30504 \begin_layout Plain Layout
30517 \begin_layout Plain Layout
30524 , compared to the document text size.
30527 \begin_layout Standard
30532 scalebox{2}[1]{Hello}
30534 in contrary distorts the
30538 \begin_layout Plain Layout
30551 \begin_layout Plain Layout
30561 \begin_layout Standard
30562 If a the scaling factor is negative, the box content will be mirrored.
30563 Therefore the command
30567 scalebox{-1}[1]{Hello}
30569 can be used to create mirror writing:
30573 \begin_layout Plain Layout
30586 \begin_layout Plain Layout
30596 \begin_layout Standard
30601 scalebox{1}[-1]{Hello}
30607 \begin_layout Plain Layout
30620 \begin_layout Plain Layout
30630 \begin_layout Standard
30635 scalebox{-1}[1]{box content}
30637 there exists the command
30638 \begin_inset Newline newline
30645 reflectbox{box content}
30650 \begin_layout Standard
30651 \begin_inset VSpace bigskip
30660 is used to scale the box to a defined width and height.
30661 The command scheme is:
30664 \begin_layout Standard
30669 resizebox{width}{height}{box content}
30672 \begin_layout Standard
30673 Is one of the two command arguments given as exclamation mark
30677 , the size is set so that the aspect ratio of the box content is kept.
30680 \begin_layout Standard
30685 resizebox{2cm}{1cm}{Hello}
30691 \begin_layout Plain Layout
30695 resizebox{2cm}{1cm}{
30704 \begin_layout Plain Layout
30712 \begin_inset Newline newline
30719 resizebox{2cm}{!}{Hello}
30725 \begin_layout Plain Layout
30738 \begin_layout Plain Layout
30748 \begin_layout Standard
30749 \begin_inset VSpace bigskip
30753 \begin_inset Note Greyedout
30756 \begin_layout Plain Layout
30773 are set to zero, no LaTeX-errors occur when exporting the document but
30774 the exported files can not or only partly be displayed.
30782 \begin_layout Standard
30783 \begin_inset VSpace bigskip
30789 \begin_layout Standard
30790 The boxes can be combined in any order.
30792 \begin_inset space \thinspace{}
30796 \begin_inset space \space{}
30800 \begin_inset Newline newline
30807 rotatebox[origin=c]{-45}{
30811 reflectbox{Hello}}}
30812 \begin_inset Newline newline
30820 \begin_layout Standard
30825 \begin_layout Plain Layout
30829 rotatebox[origin=c]{-45}{
30842 \begin_layout Plain Layout
30852 \begin_layout Standard
30854 Images, tables, and inline formulas are allowed as box content:
30857 \begin_layout Standard
30862 \begin_layout Plain Layout
30866 rotatebox[origin=c]{-30}{
30876 \begin_inset Graphics
30877 filename clipart/platypus.eps
30887 \begin_layout Plain Layout
30898 \begin_layout Plain Layout
30902 rotatebox[origin=c]{-45}{
30912 \begin_inset Tabular
30913 <lyxtabular version="3" rows="2" columns="2">
30915 <column alignment="center" valignment="top" width="0">
30916 <column alignment="center" valignment="top" width="0">
30918 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30921 \begin_layout Plain Layout
30927 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30930 \begin_layout Plain Layout
30938 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30941 \begin_layout Plain Layout
30947 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30950 \begin_layout Plain Layout
30965 \begin_layout Plain Layout
30976 \begin_layout Plain Layout
30980 rotatebox[origin=c]{-45}{
30990 \begin_inset Formula $\int A\,\mathrm{d}x=B$
30997 \begin_layout Plain Layout
31007 \begin_layout Standard
31008 When the global formula style
31012 is used in the document
31016 \begin_layout Plain Layout
31018 \begin_inset Quotes eld
31022 \begin_inset Quotes erd
31025 is added to the document class options.
31030 , also display formulas can be scaled.
31033 \begin_layout Chapter
31038 \begin_layout Plain Layout
31047 \begin_layout Standard
31050 Insert\SpecialChar \menuseparator
31053 you can insert external material to your document.
31057 \begin_layout Description
31059 \begin_inset space ~
31062 Document Another LyX document; its content is directly inserted to your
31066 \begin_layout Description
31068 \begin_inset space ~
31071 Text A text document; every of its text lines is inserted to your document
31075 \begin_layout Description
31077 \begin_inset space ~
31081 \begin_inset space ~
31085 \begin_inset space ~
31088 Lines A text document; its text lines are inserted as they are.
31089 Empty text lines creates a new paragraph in your document.
31092 \begin_layout Description
31094 \begin_inset space ~
31097 Material Files in various formats.
31100 \begin_layout Description
31102 \begin_inset space ~
31105 Document LyX or LaTeX-documents.
31108 \begin_layout Section
31113 \begin_layout Plain Layout
31114 External Stuff ! External Material
31122 \begin_layout Standard
31123 The external material feature allows you to insert files to your document
31124 without converting them previously to a format that can be read by the
31125 document output format because LyX takes care of needed conversions.
31126 This is similar to images that can be inserted in various image formats
31130 \begin_layout Standard
31131 External material can be inserted via the
31135 dialog that is accessible with the menu
31137 Insert\SpecialChar \menuseparator
31138 File\SpecialChar \menuseparator
31140 \begin_inset space ~
31146 Currently the following file types (
31153 \begin_layout Description
31154 ChessDiagram This template supports chess position diagrams made with the
31158 \begin_inset CommandInset href
31161 target "http://en.wikipedia.org/wiki/XBoard"
31170 \begin_layout Description
31171 Date This inserts the date in the form
31176 This is a date inserted as external material:
31177 \begin_inset External
31184 \begin_inset space ~
31188 \begin_inset Note Note
31191 \begin_layout Plain Layout
31192 Remove the protected space when bug 4398 is fixed!
31198 \begin_inset Newline newline
31201 The date is not shown within LyX, only in the output.
31202 There are two other methods of inserting a date: Via menu
31204 Insert\SpecialChar \menuseparator
31207 and with the LaTeX command
31214 The different methods are compared in Table
31215 \begin_inset space ~
31219 \begin_inset CommandInset ref
31221 reference "tab:Comparison-of-the"
31228 \begin_layout Description
31229 LilyPond This template is used for music notation typeset with the program
31230 \begin_inset Newline linebreak
31236 \begin_inset CommandInset href
31239 target "http://en.wikipedia.org/wiki/LilyPond"
31248 \begin_layout Description
31249 PDFPages With this template you can insert PDF documents to your document.
31250 To insert certain or all pages of a PDF, use the
31260 LaTeX and LyX options
31262 tab according to the template description in the dialog.
31267 option is given, only the first page of the PDF will be inserted.
31270 \begin_layout Description
31271 RasterImage This can be used for bitmap images.
31272 Nearly all popular image formats are supported.
31273 The image can be treated in the
31277 dialog like the images that are usually included via the
31281 dialog as described in section
31282 \begin_inset space ~
31286 \begin_inset CommandInset ref
31288 reference "sec:Graphics-Dialog"
31293 The difference is that only raster images are allowed, that means that
31294 PDF and EPS-images are not supported.
31297 \begin_layout Description
31298 XFig This template supports images created with the program
31301 \begin_inset CommandInset href
31304 target "http://en.wikipedia.org/wiki/Xfig"
31313 \begin_layout Standard
31314 \begin_inset Float table
31320 \begin_layout Plain Layout
31321 \begin_inset Caption
31323 \begin_layout Plain Layout
31324 \begin_inset CommandInset label
31326 name "tab:Comparison-of-the"
31330 Comparison of the date input methods.
31338 \begin_layout Plain Layout
31340 \begin_inset Tabular
31341 <lyxtabular version="3" rows="4" columns="4">
31343 <column alignment="center" valignment="top" width="0">
31344 <column alignment="center" valignment="top" width="0">
31345 <column alignment="center" valignment="top" width="0">
31346 <column alignment="center" valignment="top" width="0">
31348 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31351 \begin_layout Plain Layout
31357 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31360 \begin_layout Plain Layout
31363 External Material\SpecialChar \menuseparator
31369 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31372 \begin_layout Plain Layout
31375 Insert\SpecialChar \menuseparator
31381 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31384 \begin_layout Plain Layout
31396 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31399 \begin_layout Plain Layout
31405 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31408 \begin_layout Plain Layout
31414 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31417 \begin_layout Plain Layout
31423 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31426 \begin_layout Plain Layout
31427 as TeX-Code inset box
31434 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31437 \begin_layout Plain Layout
31443 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31446 \begin_layout Plain Layout
31452 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31455 \begin_layout Plain Layout
31461 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31464 \begin_layout Plain Layout
31472 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31475 \begin_layout Plain Layout
31481 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31484 \begin_layout Plain Layout
31490 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31493 \begin_layout Plain Layout
31499 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31502 \begin_layout Plain Layout
31521 \begin_layout Standard
31522 When you use the option
31534 dialog, only the path to the inserted file is shown in the output.
31535 \begin_inset Newline newline
31538 External material is displayed in LyX either as box like this:
31539 \begin_inset Graphics
31540 filename clipart/ExternalMaterialQt4.png
31542 scaleBeforeRotation
31546 or as image, depending on the option
31552 LaTeX and LyX options
31557 \begin_layout Standard
31564 manual explains how you can define your own templates.
31567 \begin_layout Section
31569 \begin_inset CommandInset label
31571 name "sec:Child-Documents"
31579 \begin_layout Plain Layout
31580 External Stuff ! Child Documents
31589 \begin_layout Plain Layout
31598 \begin_layout Standard
31599 Child documents are used when you have a long document consisting of several
31600 larger parts or sections.
31601 For maintenance it is often useful and sometimes even required to split
31602 the document in several files that can be revised separately.
31603 The different documents are then the so called child documents and a master
31604 document connects them to print the full document or parts of it.
31605 A child documents inherits contents of its master, for example the bibliography
31606 and the labels for cross-references.
31609 \begin_layout Standard
31610 To be able to work on child documents without the need to open its master,
31611 specify in the child document the master in the menu
31613 Document\SpecialChar \menuseparator
31614 Settings\SpecialChar \menuseparator
31616 \begin_inset space ~
31622 This master file will then be used in the background by LyX when you edit
31623 the child document.
31626 \begin_layout Standard
31627 Included documents are displayed in LyX as a box like this:
31628 \begin_inset Graphics
31629 filename clipart/ChildDocumentQt4.png
31631 scaleBeforeRotation
31635 To include child documents to a master document use the menu
31637 Insert\SpecialChar \menuseparator
31638 File\SpecialChar \menuseparator
31640 \begin_inset space ~
31646 A dialog pops up where you can choose between four include methods:
31649 \begin_layout Description
31650 Include You can include LyX and LaTeX-documents.
31659 dialog, the included documents will be opened in LyX in a new file tab
31660 so that you can modify it.
31661 \begin_inset Newline newline
31667 \begin_layout Standard
31668 Here is a child document inserted using
31673 \begin_inset CommandInset include
31674 LatexCommand include
31675 filename "DummyDocument1.lyx"
31682 \begin_layout Standard
31683 The section numbering includes the sections of the included files in the
31684 order they are inserted in the master document.
31685 The included example document has for example a subsection that is numbered
31686 as subsection of this section.
31687 Labels of included documents can be referenced: Subsection
31688 \begin_inset space ~
31692 \begin_inset CommandInset ref
31694 reference "sub:External-Subsection-1"
31701 \begin_layout Standard
31702 The preamble of the child document is ignored, only the preamble of the
31703 master document is used.
31704 Included documents are inserted starting on a new page and end with a page
31708 \begin_layout Standard
31709 With the LaTeX-command
31715 you can specify which included child documents are processed when the output
31717 This is useful when you are perhaps only working on a certain chapter of
31718 your large document as this saves compiling time.
31725 is inserted to the master document preamble.
31726 It takes a comma-separated list of the filenames as argument, e.
31727 \begin_inset space \thinspace{}
31733 \begin_layout Standard
31738 includeonly{chapter1,chapter5}
31741 \begin_layout Standard
31742 will only process the included files named
31743 \begin_inset Quotes eld
31747 \begin_inset Quotes erd
31751 \begin_inset Quotes eld
31755 \begin_inset Quotes erd
31759 \begin_inset Quotes eld
31763 \begin_inset Quotes erd
31769 \begin_layout Standard
31770 \begin_inset Note Greyedout
31773 \begin_layout Plain Layout
31778 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
31779 w the document in case that the child document uses another document class
31780 than the master document as this will lead to unexpected outputs.
31788 \begin_layout Description
31789 Input This method is very similar to the Include method.
31790 The differences are:
31794 \begin_layout Itemize
31795 Input files don't start with a new page and don't end with a page break.
31798 \begin_layout Itemize
31799 Input files can be previewed in LyX when
31802 \begin_inset space ~
31807 is enabled in LyX's preferences under
31810 \begin_inset space ~
31814 \begin_inset space ~
31817 feel\SpecialChar \menuseparator
31823 \begin_layout Itemize
31834 \begin_layout Standard
31835 Here is a child document inserted using
31840 \begin_inset CommandInset include
31842 filename "DummyDocument2.lyx"
31849 \begin_layout Description
31850 Verbatim With this method every text file can be included.
31851 The file is shown in the output with its source code, no command used in
31852 the text is invoked.
31853 You can use the option
31855 Mark spaces in output
31857 that displays the character
31858 \begin_inset Quotes eld
31865 \begin_layout Plain Layout
31875 \begin_inset Quotes erd
31878 for every space character in the source code.
31879 The difference to the method via the menu
31881 Insert\SpecialChar \menuseparator
31882 File\SpecialChar \menuseparator
31884 \begin_inset space ~
31889 is that the document content is not shown in LyX.
31892 \begin_layout Standard
31893 Here is a child document inserted as Verbatim:
31894 \begin_inset CommandInset include
31895 LatexCommand verbatiminput
31896 filename "DummyTextDocument.txt"
31901 \begin_inset VSpace bigskip
31904 Here is a child document inserted as Verbatim using the
31906 Mark spaces in output
31909 \begin_inset CommandInset include
31910 LatexCommand verbatiminput*
31911 filename "DummyTextDocument.txt"
31918 \begin_layout Standard
31919 \begin_inset VSpace bigskip
31925 \begin_layout Standard
31926 \begin_inset Note Greyedout
31929 \begin_layout Plain Layout
31934 As you can see in the examples above, the text of the documents included
31939 is not broken at the end of the document lines.
31947 \begin_layout Description
31948 Listings This type is described in chapter
31949 \begin_inset space ~
31953 \begin_inset CommandInset ref
31955 reference "cha:Program-Code-Listings"
31962 \begin_layout Standard
31963 \begin_inset Note Greyedout
31966 \begin_layout Plain Layout
31971 Including the same document twice in a document using different methods
31972 could cause LaTeX-problems.
31980 \begin_layout Chapter
31981 Program Code Listings
31982 \begin_inset CommandInset label
31984 name "cha:Program-Code-Listings"
31992 \begin_layout Plain Layout
32002 \begin_layout Plain Layout
32012 \begin_layout Plain Layout
32021 \begin_layout Standard
32022 To include and typeset program code you can use the
32026 inset that can be inserted via the menu
32028 Insert\SpecialChar \menuseparator
32040 \begin_layout Plain Layout
32041 LaTeX-packages ! listings
32046 provides a powerful and flexible way to insert program source code to your
32050 \begin_layout Standard
32051 Right-clicking on a listings inset opens the context menu containing where
32052 you can set the listings format.
32055 \begin_layout Standard
32056 By default, a listing starts a new paragraph in the output.
32057 The placement option
32060 \begin_inset space ~
32065 prints the listing inline like this:
32066 \begin_inset listings
32067 lstparams "language={C++}"
32071 \begin_layout Plain Layout
32079 \begin_inset Newline newline
32086 creates a listings float where you can specify the placement options
32087 \begin_inset Quotes eld
32095 \begin_inset Quotes erd
32099 \begin_inset Quotes eld
32107 \begin_inset Quotes erd
32111 \begin_inset Quotes eld
32119 \begin_inset Quotes erd
32123 \begin_inset Quotes eld
32131 \begin_inset Quotes erd
32134 corresponding to the float placement options described in section
32135 \begin_inset space ~
32139 \begin_inset CommandInset ref
32141 reference "sec:Float-Placement"
32146 The placement options can be mixed and are inserted without any separation,
32148 \begin_inset space \thinspace{}
32152 \begin_inset space \space{}
32156 \begin_inset Quotes eld
32164 \begin_inset Quotes erd
32169 \begin_inset Quotes eld
32173 \begin_inset Quotes erd
32176 has sometimes no effect, but you don't need to use the
32180 option in this case as also non-float listings can have captions and be
32184 \begin_layout Standard
32185 You can add captions to listings with the menu
32187 Insert\SpecialChar \menuseparator
32191 Listings can be referenced like floats: Listing
32192 \begin_inset space ~
32196 \begin_inset CommandInset ref
32198 reference "lst:Example-Listing"
32205 \begin_layout Standard
32206 \begin_inset listings
32207 lstparams "language=Python"
32211 \begin_layout Plain Layout
32213 \begin_inset Caption
32215 \begin_layout Plain Layout
32216 \begin_inset CommandInset label
32218 name "lst:Example-Listing"
32222 Example Listing float
32227 # Example listing float
32230 \begin_layout Plain Layout
32235 \begin_layout Plain Layout
32237 'this is a python function'
32240 \begin_layout Plain Layout
32250 \begin_layout Standard
32251 When you have set a programming language in the listings dialog, the keywords
32252 of this language will be recognized and specially typeset in the output.
32253 In the example listings the Python keyword
32254 \begin_inset Quotes eld
32258 \begin_inset Quotes erd
32261 is recognized and printed bold in the output.
32264 \begin_layout Standard
32265 \begin_inset Note Greyedout
32268 \begin_layout Plain Layout
32273 If you don't get bold keywords when using typewriter fonts, your
32277 font probably doesn't provide a bold shape.
32278 In this case select a different one in the menu
32280 Document\SpecialChar \menuseparator
32281 Settings\SpecialChar \menuseparator
32293 provide bold shapes.)
32301 \begin_layout Standard
32305 \begin_inset space ~
32310 of the listings dialog you can specify the line numbering style.
32311 You can insert a number to specify which lines are numbered to the field
32318 \begin_inset space \thinspace{}
32322 \begin_inset space \space{}
32326 \begin_inset Quotes eld
32330 \begin_inset Quotes erd
32333 , only every 3rd line will be numbered.
32336 \begin_layout Standard
32337 You can furthermore specify a range of lines, only these will then appear
32341 Extended character table
32343 should be used when you use national characters like the German umlauts
32345 \begin_inset Newline newline
32348 Here is an example listing with left line numbering, step
32349 \begin_inset Quotes eld
32353 \begin_inset Quotes erd
32357 \begin_inset Quotes eld
32361 \begin_inset Quotes erd
32365 \begin_inset Quotes eld
32368 Extended character table
32369 \begin_inset Quotes erd
32373 \begin_inset Quotes eld
32377 \begin_inset space ~
32381 \begin_inset space ~
32385 \begin_inset Quotes erd
32389 \begin_inset space \thinspace{}
32393 \begin_inset space \thinspace{}
32399 \begin_layout Standard
32400 \begin_inset listings
32401 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
32405 \begin_layout Plain Layout
32410 \begin_layout Plain Layout
32412 'this is a python function'
32415 \begin_layout Plain Layout
32420 \begin_layout Plain Layout
32425 \begin_layout Plain Layout
32427 'This is a German word: Tschüß'
32430 \begin_layout Plain Layout
32435 \begin_layout Plain Layout
32440 \begin_layout Plain Layout
32442 'this is a python function'
32445 \begin_layout Plain Layout
32455 \begin_layout Standard
32456 When you have tabulators in your listing, you can specify the number of
32457 characters that are spanned by a tabulator in the field
32460 \begin_inset space ~
32468 \begin_layout Standard
32469 \begin_inset Note Greyedout
32472 \begin_layout Plain Layout
32477 Due to a bug in the
32481 package the line numbering is shifted by a line by every previous listing.
32482 That's the reason why the lines 2 and 5 are numbered in the above listing
32483 and not the lines 3 and 6.
32491 \begin_layout Standard
32492 \begin_inset VSpace bigskip
32498 \begin_layout Standard
32499 It is also possible to print lines from a file as listing.
32500 To do this, use the menu
32502 Insert\SpecialChar \menuseparator
32503 File\SpecialChar \menuseparator
32506 and choose the type
32514 \begin_layout Plain Layout
32515 The other child document types are described in section
32516 \begin_inset space ~
32520 \begin_inset CommandInset ref
32522 reference "sec:Child-Documents"
32531 In the child document dialog you can specify the listing parameters in
32533 To show a list of all available parameters, type in a question mark
32534 \begin_inset Quotes eld
32538 \begin_inset Quotes erd
32544 \begin_layout Standard
32545 To reference child document listings, write a label text into the corresponding
32546 field of the child document dialog.
32547 The label can then be referenced using the menu
32549 Insert\SpecialChar \menuseparator
32555 \begin_layout Standard
32557 \begin_inset space ~
32561 \begin_inset CommandInset ref
32563 reference "lst:file-listing"
32567 is an example for a listing of a file; there the lines 10
32568 \begin_inset space \thinspace{}
32572 \begin_inset space \thinspace{}
32575 15 of this LyX file are listed.
32578 \begin_layout Standard
32579 \begin_inset CommandInset include
32580 LatexCommand lstinputlisting
32581 filename "EmbeddedObjects.lyx"
32582 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
32589 \begin_layout Standard
32590 \begin_inset VSpace bigskip
32596 \begin_layout Standard
32597 Global listings settings can be set in the
32599 Document\SpecialChar \menuseparator
32600 Settings\SpecialChar \menuseparator
32604 To get there a list of available options, type in a question mark
32605 \begin_inset Quotes eld
32609 \begin_inset Quotes erd
32615 \begin_inset space ~
32623 \begin_layout Standard
32624 For more information about the
32628 package, we refer to its documentation
32629 \begin_inset CommandInset citation
32638 \begin_layout Standard
32639 \begin_inset Newpage newpage
32645 \begin_layout Chapter
32647 Units available in LyX
32651 \begin_layout Plain Layout
32658 \begin_inset CommandInset label
32660 name "cha:Units-available-in"
32667 \begin_layout Standard
32668 To understand the units described in this documentation, Table
32669 \begin_inset space ~
32673 \begin_inset CommandInset ref
32675 reference "tab:Units"
32679 explains all units available in LyX.
32682 \begin_layout Standard
32683 \begin_inset Float table
32689 \begin_layout Plain Layout
32690 \begin_inset Caption
32692 \begin_layout Plain Layout
32693 \begin_inset CommandInset label
32707 \begin_layout Plain Layout
32708 \begin_inset VSpace medskip
32714 \begin_layout Plain Layout
32716 \begin_inset Tabular
32717 <lyxtabular version="3" rows="20" columns="2">
32719 <column alignment="center" valignment="top" width="0">
32720 <column alignment="center" valignment="top" width="0">
32722 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32725 \begin_layout Plain Layout
32731 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
32734 \begin_layout Plain Layout
32742 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32745 \begin_layout Plain Layout
32751 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32754 \begin_layout Plain Layout
32762 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32765 \begin_layout Plain Layout
32771 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32774 \begin_layout Plain Layout
32782 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32785 \begin_layout Plain Layout
32791 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32794 \begin_layout Plain Layout
32802 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32805 \begin_layout Plain Layout
32811 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32814 \begin_layout Plain Layout
32816 \begin_inset space \thinspace{}
32820 \begin_inset space \thinspace{}
32830 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32833 \begin_layout Plain Layout
32839 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32842 \begin_layout Plain Layout
32844 \begin_inset space \thinspace{}
32848 \begin_inset space \thinspace{}
32858 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32861 \begin_layout Plain Layout
32867 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32870 \begin_layout Plain Layout
32871 scaled point (65536
32872 \begin_inset space \thinspace{}
32876 \begin_inset space \thinspace{}
32886 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32889 \begin_layout Plain Layout
32895 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32898 \begin_layout Plain Layout
32900 \begin_inset space \thinspace{}
32904 \begin_inset space \thinspace{}
32914 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32917 \begin_layout Plain Layout
32923 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32926 \begin_layout Plain Layout
32928 \begin_inset space \thinspace{}
32932 \begin_inset Formula $\approx$
32936 \begin_inset space \thinspace{}
32946 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32949 \begin_layout Plain Layout
32955 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32958 \begin_layout Plain Layout
32960 \begin_inset space \thinspace{}
32964 \begin_inset space \thinspace{}
32974 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32977 \begin_layout Plain Layout
32983 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32986 \begin_layout Plain Layout
32987 % of original image width
32994 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32997 \begin_layout Plain Layout
33003 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33006 \begin_layout Plain Layout
33014 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33017 \begin_layout Plain Layout
33023 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33026 \begin_layout Plain Layout
33034 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33037 \begin_layout Plain Layout
33043 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33046 \begin_layout Plain Layout
33054 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33057 \begin_layout Plain Layout
33063 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33066 \begin_layout Plain Layout
33074 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33077 \begin_layout Plain Layout
33083 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33086 \begin_layout Plain Layout
33094 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33097 \begin_layout Plain Layout
33103 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33106 \begin_layout Plain Layout
33114 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33117 \begin_layout Plain Layout
33123 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33126 \begin_layout Plain Layout
33138 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33141 \begin_layout Plain Layout
33147 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33150 \begin_layout Plain Layout
33162 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
33165 \begin_layout Plain Layout
33171 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
33174 \begin_layout Plain Layout
33176 \begin_inset space \thinspace{}
33180 \begin_inset space \thinspace{}
33201 \begin_layout Chapter
33202 Output File Formats with Graphics
33203 \begin_inset CommandInset label
33205 name "cha:Output-File-Formats"
33212 \begin_layout Section
33217 \begin_layout Plain Layout
33227 \begin_layout Plain Layout
33232 \begin_layout Plain Layout
33243 \begin_layout Plain Layout
33258 \begin_layout Standard
33259 This file type has the extension
33260 \begin_inset Quotes eld
33268 \begin_inset Quotes erd
33273 \begin_inset Quotes eld
33277 \begin_inset Quotes erd
33280 (DVI), because it is completely portable; you can move them from one machine
33281 to another without needing to do any sort of conversion.
33282 At the time when this file-format was developed, this was no matter of
33284 DVIs are used for quick previews and as pre-stage for other output formats,
33288 \begin_layout Standard
33289 \begin_inset Note Greyedout
33292 \begin_layout Plain Layout
33297 DVI-files doesn't contain images, they will only be a linked.
33302 So don't forget this, if you move your
33306 file to another computer.
33307 This property can also slow down your computer when you view the DVI.
33308 Because the DVI-viewer has to convert the image in the background to make
33309 it visible when you scroll in the DVI.
33310 So we recommend to use PDF for files with many images.
33313 \begin_layout Standard
33314 You can export your document to DVI by using the menu
33316 File\SpecialChar \menuseparator
33317 Export\SpecialChar \menuseparator
33321 You can view your document as DVI via the
33325 menu or by using the toolbar button
33326 \begin_inset Graphics
33327 filename ../images/buffer-view_dvi.png
33329 scaleBeforeRotation
33336 \begin_layout Section
33338 \begin_inset CommandInset label
33340 name "sec:PostScript"
33348 \begin_layout Plain Layout
33349 File Formats ! PostScript
33358 \begin_layout Plain Layout
33363 \begin_layout Plain Layout
33374 \begin_layout Plain Layout
33389 \begin_layout Standard
33390 This file type has the extension
33391 \begin_inset Quotes eld
33399 \begin_inset Quotes erd
33403 PostScript was developed by the company
33407 as printer language.
33408 The file contains therefore commands that the printer uses to print the
33410 PostScript can be seen as
33411 \begin_inset Quotes eld
33414 programming language
33415 \begin_inset Quotes erd
33418 ; you can calculate with it and draw diagrams and images
33422 \begin_layout Plain Layout
33423 If you are interested to learn more about this, have a look at the LaTeX-package
33429 \begin_inset CommandInset citation
33441 Due to this ability, the files are often bigger than PDFs.
33444 \begin_layout Standard
33445 PostScript can only contain images in the format
33446 \begin_inset Quotes eld
33449 Encapsulated PostScript
33450 \begin_inset Quotes erd
33453 (EPS, file extension
33454 \begin_inset Quotes eld
33462 \begin_inset Quotes erd
33466 As LyX allows you to use any known image format in your document, it has
33467 to convert images in the background to EPS.
33468 If you have e.g 50 images in your document, LyX has to do 50 conversions
33469 whenever you view or export your document.
33470 This will slow down your work flow with LyX drastically.
33471 So if you plan to use PostScript, you can insert your images directly as
33472 EPS to avoid this problem.
33475 \begin_layout Standard
33476 You can export your document to PostScript using the menu
33478 File\SpecialChar \menuseparator
33479 Export\SpecialChar \menuseparator
33483 You can view your document as PostScript via the
33487 menu or by using the toolbar button
33488 \begin_inset Graphics
33489 filename ../images/buffer-view_ps.png
33491 scaleBeforeRotation
33498 \begin_layout Section
33503 \begin_layout Plain Layout
33513 \begin_layout Plain Layout
33522 \begin_layout Standard
33523 This file type has the extension
33524 \begin_inset Quotes eld
33532 \begin_inset Quotes erd
33537 \begin_inset Quotes eld
33540 Portable Document Format
33541 \begin_inset Quotes erd
33544 (PDF) is developed by
33548 as derivative from PostScript.
33549 It is more compressed and it uses much less commands than PostScript.
33551 \begin_inset Quotes eld
33555 \begin_inset Quotes erd
33558 implies, it can be processed at any computer system and the printed output
33559 looks exactly the same.
33562 \begin_layout Standard
33563 PDF can contain images in its own PDF format, in the format
33564 \begin_inset Quotes eld
33567 Joint Photographic Experts Group
33568 \begin_inset Quotes erd
33571 (JPG, file extension
33572 \begin_inset Quotes eld
33580 \begin_inset Quotes erd
33584 \begin_inset Quotes eld
33592 \begin_inset Quotes erd
33595 ), and in the format
33596 \begin_inset Quotes eld
33599 Portable Network Graphics
33600 \begin_inset Quotes erd
33603 (PNG, file extension
33604 \begin_inset Quotes eld
33612 \begin_inset Quotes erd
33616 Nevertheless you can use any other image format, because LyX converts them
33617 in the background to one of these formats.
33618 But as described in the section about PostScript, the image conversion
33619 will slow down your work flow.
33620 So it is recommended to use images in one of the three mentioned formats.
33623 \begin_layout Standard
33624 You can export your document to PDF via the menu
33626 File\SpecialChar \menuseparator
33629 in three different ways:
33632 \begin_layout Description
33634 \begin_inset space ~
33637 (ps2pdf) This uses the program
33641 that creates a PDF from a PostScript-version of your file.
33642 The PostScript-version is produced by the program
33646 which uses a DVI-version as intermediate step.
33647 So this export variant consist of three conversions.
33650 \begin_layout Description
33652 \begin_inset space ~
33655 (dvipdfm) This uses the program
33659 that converts your file in the background to DVI and in a second step to
33663 \begin_layout Description
33665 \begin_inset space ~
33668 (pdflatex) This uses the program
33672 that converts your file directly to PDF.
33675 \begin_layout Standard
33676 It is recommended to use
33679 \begin_inset space ~
33688 supports all features of actual PDF-versions, is quick and works stable
33694 is not under development and therefore a bit outdated.
33697 \begin_layout Standard
33698 You can view your document as PDF via the
33702 menu or by using the toolbar button
33703 \begin_inset Graphics
33704 filename ../images/buffer-view_pdf2.png
33706 scaleBeforeRotation
33717 \begin_inset space ~
33725 \begin_layout Chapter
33726 Explanation of Equation
33727 \begin_inset space ~
33731 \begin_inset CommandInset ref
33738 \begin_inset CommandInset label
33740 name "cha:Explanation-of-Equation"
33747 \begin_layout Standard
33753 \begin_inset Formula $W_{\mathrm{tot\, n}}$
33756 can be calculated to
33759 \begin_layout Standard
33760 \begin_inset Formula \begin{equation}
33761 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}
33768 \begin_layout Standard
33770 \begin_inset Formula $W_{g\, n}$
33773 is the given width of all cells.
33780 is the LaTeX-length between the cell text and the cell border, its default
33782 \begin_inset space \thinspace{}
33792 is the thickness of the cell border line, the default is 0.4
33793 \begin_inset space \thinspace{}
33799 \begin_layout Standard
33801 \begin_inset space ~
33805 \begin_inset CommandInset ref
33807 reference "eq:Wtot_n"
33811 , the total width of a multicolumn
33812 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
33818 \begin_layout Standard
33819 \begin_inset Formula \begin{equation}
33820 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
33827 \begin_layout Standard
33828 By setting equation
33829 \begin_inset space ~
33833 \begin_inset CommandInset ref
33835 reference "eq:Wtot_n"
33840 \begin_inset CommandInset ref
33842 reference "eq:Wtot_mult"
33846 equal we can calculate the needed given width
33847 \begin_inset Formula $W_{g\, n}$
33854 columns are spanned, so that each column has a total width of
33855 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
33861 \begin_layout Standard
33862 \begin_inset Formula \begin{equation}
33863 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
33870 \begin_layout Bibliography
33871 \begin_inset CommandInset bibitem
33872 LatexCommand bibitem
33873 key "latexcompanion"
33877 Frank Mittelbach and Michel Goossens:
33879 The LaTeX Companion Second Edition.
33882 Addison-Wesley, 2004
33885 \begin_layout Bibliography
33886 \begin_inset CommandInset bibitem
33887 LatexCommand bibitem
33892 Helmut Kopka and Patrick W.
33895 A Guide to LaTeX Fourth Edition.
33898 Addison-Wesley, 2003
33901 \begin_layout Bibliography
33902 \begin_inset CommandInset bibitem
33903 LatexCommand bibitem
33910 LaTeX: A Document Preparation System.
33913 Addison-Wesley, second edition, 1994
33916 \begin_layout Bibliography
33917 \begin_inset CommandInset bibitem
33918 LatexCommand bibitem
33923 Documentation of the LaTeX-package
33926 \begin_inset CommandInset href
33929 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
33939 \begin_layout Plain Layout
33940 LaTeX-packages ! booktabs
33948 \begin_layout Bibliography
33949 \begin_inset CommandInset bibitem
33950 LatexCommand bibitem
33955 Documentation of the LaTeX-package
33958 \begin_inset CommandInset href
33961 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf"
33971 \begin_layout Plain Layout
33972 LaTeX-packages ! caption
33980 \begin_layout Bibliography
33981 \begin_inset CommandInset bibitem
33982 LatexCommand bibitem
33987 Documentation of the LaTeX-package
33990 \begin_inset CommandInset href
33993 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
34003 \begin_layout Plain Layout
34004 LaTeX-packages ! endfloat
34012 \begin_layout Bibliography
34013 \begin_inset CommandInset bibitem
34014 LatexCommand bibitem
34019 Documentation of the LaTeX-package
34022 \begin_inset CommandInset href
34025 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/wrapfig/wrapfig.sty"
34035 \begin_layout Plain Layout
34036 LaTeX-packages ! wrapfig
34040 \begin_layout Plain Layout
34057 \begin_layout Bibliography
34058 \begin_inset CommandInset bibitem
34059 LatexCommand bibitem
34064 Documentation of the LaTeX-package
34067 \begin_inset CommandInset href
34070 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
34080 \begin_layout Plain Layout
34081 LaTeX-packages ! footmisc
34089 \begin_layout Bibliography
34090 \begin_inset CommandInset bibitem
34091 LatexCommand bibitem
34096 Documentation of the LaTeX-package
34099 \begin_inset CommandInset href
34102 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
34112 \begin_layout Plain Layout
34113 LaTeX-packages ! hyperref
34121 \begin_layout Bibliography
34122 \begin_inset CommandInset bibitem
34123 LatexCommand bibitem
34128 Documentation of the LaTeX-package
34131 \begin_inset CommandInset href
34134 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
34144 \begin_layout Plain Layout
34145 LaTeX-packages ! hyperref
34153 \begin_layout Bibliography
34154 \begin_inset CommandInset bibitem
34155 LatexCommand bibitem
34160 Documentation of the LaTeX-package
34163 \begin_inset CommandInset href
34166 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf"
34176 \begin_layout Plain Layout
34177 LaTeX-packages ! koma-script
34185 \begin_layout Bibliography
34186 \begin_inset CommandInset bibitem
34187 LatexCommand bibitem
34192 Documentation of the LaTeX-package
34195 \begin_inset CommandInset href
34198 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
34208 \begin_layout Plain Layout
34209 LaTeX-packages ! listings
34217 \begin_layout Bibliography
34218 \begin_inset CommandInset bibitem
34219 LatexCommand bibitem
34224 Documentation of the LaTeX-package
34227 \begin_inset CommandInset href
34230 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
34240 \begin_layout Plain Layout
34241 LaTeX-packages ! marginnote
34249 \begin_layout Bibliography
34250 \begin_inset CommandInset bibitem
34251 LatexCommand bibitem
34256 Web page of the LaTeX-package
34259 \begin_inset CommandInset href
34262 target "http://tug.org/PSTricks/"
34272 \begin_layout Plain Layout
34273 LaTeX-packages ! PSTricks
34281 \begin_layout Bibliography
34282 \begin_inset CommandInset bibitem
34283 LatexCommand bibitem
34288 Documentation of the LaTeX-package
34291 \begin_inset CommandInset href
34294 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
34304 \begin_layout Plain Layout
34305 LaTeX-packages ! sidecap
34313 \begin_layout Bibliography
34314 \begin_inset CommandInset bibitem
34315 LatexCommand bibitem
34321 \begin_inset CommandInset href
34324 target "http://wiki.lyx.org/LyX/NewInLyX16"
34328 about new features in
34335 \begin_layout Standard
34336 \begin_inset CommandInset index_print
34337 LatexCommand printindex
34344 \begin_layout Standard
34345 \begin_inset FloatList figure
34352 \begin_layout Standard
34353 \begin_inset FloatList table
34360 \begin_layout Standard
34361 \begin_inset FloatList algorithm