1 #LyX 1.6.1 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 true
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 the first 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
5693 \begin_layout Plain Layout
5697 addtocounter{table}{-1}
5703 \begin_inset Note Note
5706 \begin_layout Plain Layout
5707 See the first greyed-out note in section
5708 \begin_inset space ~
5712 \begin_inset CommandInset ref
5714 reference "sub:Longtable-Captions"
5718 for an explanation of this command.
5726 \begin_layout Subsection
5731 \begin_layout Plain Layout
5732 Longtables ! Captions
5738 \begin_inset CommandInset label
5740 name "sub:Longtable-Captions"
5747 \begin_layout Standard
5748 A longtable cannot be put into a table float because floats can only be
5749 on one page but the caption environment of floats can also be used for
5751 Therefore the caption is inserted as first row of the table, as explained
5753 \begin_inset space \thinspace{}
5757 \begin_inset CommandInset ref
5759 reference "sec:Longtables"
5764 The first table row is then only a dummy row for the caption, the actual
5765 table starts with the second row.
5768 \begin_layout Standard
5769 Here is a short longtable to see how it works:
5772 \begin_layout Standard
5773 \begin_inset Tabular
5774 <lyxtabular version="3" rows="6" columns="5">
5775 <features islongtable="true">
5776 <column alignment="center" valignment="top" width="0">
5777 <column alignment="center" valignment="top" width="0">
5778 <column alignment="center" valignment="top" width="0">
5779 <column alignment="center" valignment="top" width="0">
5780 <column alignment="center" valignment="top" width="0">
5781 <row caption="true">
5782 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
5785 \begin_layout Plain Layout
5786 \begin_inset Caption
5788 \begin_layout Plain Layout
5789 Longtable with caption
5793 \begin_layout Plain Layout
5809 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5812 \begin_layout Plain Layout
5818 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5821 \begin_layout Plain Layout
5827 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5830 \begin_layout Plain Layout
5836 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5839 \begin_layout Plain Layout
5847 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5850 \begin_layout Plain Layout
5856 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5859 \begin_layout Plain Layout
5865 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5868 \begin_layout Plain Layout
5874 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5877 \begin_layout Plain Layout
5883 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5886 \begin_layout Plain Layout
5894 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5897 \begin_layout Plain Layout
5903 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5906 \begin_layout Plain Layout
5912 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5915 \begin_layout Plain Layout
5921 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5924 \begin_layout Plain Layout
5930 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5933 \begin_layout Plain Layout
5941 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5944 \begin_layout Plain Layout
5950 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5953 \begin_layout Plain Layout
5959 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5962 \begin_layout Plain Layout
5968 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5971 \begin_layout Plain Layout
5977 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5980 \begin_layout Plain Layout
5988 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5991 \begin_layout Plain Layout
5997 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6000 \begin_layout Plain Layout
6006 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6009 \begin_layout Plain Layout
6015 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6018 \begin_layout Plain Layout
6024 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6027 \begin_layout Plain Layout
6035 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6038 \begin_layout Plain Layout
6044 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6047 \begin_layout Plain Layout
6053 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6056 \begin_layout Plain Layout
6062 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6065 \begin_layout Plain Layout
6071 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6074 \begin_layout Plain Layout
6088 \begin_layout Standard
6089 \begin_inset VSpace medskip
6093 \begin_inset Note Greyedout
6096 \begin_layout Plain Layout
6100 \begin_inset space ~
6105 The table number is increased for every longtable, also if you didn't set
6107 For this reason you could have the case that e.
6108 \begin_inset space \thinspace{}
6112 \begin_inset space \space{}
6116 \begin_inset space ~
6119 2.4 follows on Table
6120 \begin_inset space ~
6123 2.1 in the list of tables if there are two longtables without captions.
6124 To avoid this you can add the following command in TeX-Code behind every
6125 longtable without a caption:
6128 \begin_layout Plain Layout
6133 addtocounter{table}{-1}
6136 \begin_layout Plain Layout
6137 This is not needed when none of your longtables have a caption and you add
6138 the following code to the document preamble:
6141 \begin_layout Plain Layout
6151 \begin_inset Newline newline
6162 addtocounter{table}{-1}}
6170 \begin_layout Standard
6171 \begin_inset Note Greyedout
6174 \begin_layout Plain Layout
6178 \begin_inset space ~
6191 \begin_layout Plain Layout
6192 LaTeX-packages ! hyperref
6205 dialog to link cross-references, the link to a longtable caption will always
6206 point to the beginning of the document.
6214 \begin_layout Standard
6215 \begin_inset Newpage newpage
6221 \begin_layout Subsubsection
6222 References to Longtables
6226 \begin_layout Plain Layout
6227 Longtables ! References
6235 \begin_layout Standard
6236 \begin_inset Tabular
6237 <lyxtabular version="3" rows="6" columns="5">
6238 <features islongtable="true">
6239 <column alignment="center" valignment="top" width="0">
6240 <column alignment="center" valignment="top" width="0">
6241 <column alignment="center" valignment="top" width="0">
6242 <column alignment="center" valignment="top" width="0">
6243 <column alignment="center" valignment="top" width="0">
6244 <row caption="true">
6245 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6248 \begin_layout Plain Layout
6249 \begin_inset Caption
6251 \begin_layout Plain Layout
6252 Referenced longtable
6253 \begin_inset CommandInset label
6255 name "tab:RefExample"
6269 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6272 \begin_layout Plain Layout
6278 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6281 \begin_layout Plain Layout
6287 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6290 \begin_layout Plain Layout
6296 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6299 \begin_layout Plain Layout
6307 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6310 \begin_layout Plain Layout
6316 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6319 \begin_layout Plain Layout
6325 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6328 \begin_layout Plain Layout
6334 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6337 \begin_layout Plain Layout
6343 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6346 \begin_layout Plain Layout
6354 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6357 \begin_layout Plain Layout
6363 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6366 \begin_layout Plain Layout
6372 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6375 \begin_layout Plain Layout
6381 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6384 \begin_layout Plain Layout
6390 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6393 \begin_layout Plain Layout
6401 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6404 \begin_layout Plain Layout
6410 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6413 \begin_layout Plain Layout
6419 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6422 \begin_layout Plain Layout
6428 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6431 \begin_layout Plain Layout
6437 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6440 \begin_layout Plain Layout
6448 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6451 \begin_layout Plain Layout
6457 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6460 \begin_layout Plain Layout
6466 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6469 \begin_layout Plain Layout
6475 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6478 \begin_layout Plain Layout
6484 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6487 \begin_layout Plain Layout
6495 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6498 \begin_layout Plain Layout
6504 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6507 \begin_layout Plain Layout
6513 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6516 \begin_layout Plain Layout
6522 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6525 \begin_layout Plain Layout
6531 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6534 \begin_layout Plain Layout
6548 \begin_layout Standard
6549 To reference a longtable, insert a label into the caption.
6552 \begin_layout Standard
6553 This is a reference to Table
6554 \begin_inset space ~
6558 \begin_inset CommandInset ref
6560 reference "tab:RefExample"
6567 \begin_layout Standard
6568 The caption layout can be set together with all other captions of your document
6569 using the LaTeX-package
6577 \begin_layout Plain Layout
6578 LaTeX-packages ! caption
6584 \begin_inset space ~
6588 \begin_inset CommandInset ref
6590 reference "sec:Caption-Formatting"
6597 \begin_layout Subsubsection
6602 \begin_layout Plain Layout
6603 Longtables ! Caption Width
6611 \begin_layout Standard
6612 The maximal width of of caption lines is defined by the length
6619 Its default value is 4
6620 \begin_inset space \thinspace{}
6624 To change it add the following command to your document preamble or as
6625 TeX-Code into your document before the longtable that should be affected
6628 \begin_layout Standard
6638 \begin_layout Standard
6639 where the width could have one of the units listed in appendix
6640 \begin_inset space ~
6644 \begin_inset CommandInset ref
6646 reference "cha:Units-available-in"
6653 \begin_layout Standard
6654 The following tables show the difference:
6657 \begin_layout Standard
6658 \begin_inset Tabular
6659 <lyxtabular version="3" rows="6" columns="5">
6660 <features islongtable="true">
6661 <column alignment="center" valignment="top" width="0">
6662 <column alignment="center" valignment="top" width="0">
6663 <column alignment="center" valignment="top" width="0">
6664 <column alignment="center" valignment="top" width="0">
6665 <column alignment="center" valignment="top" width="0">
6666 <row caption="true">
6667 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6670 \begin_layout Plain Layout
6671 \begin_inset Caption
6673 \begin_layout Plain Layout
6674 long full title with default width long full title with default width long
6675 full title with default width
6679 \begin_layout Plain Layout
6680 caption with default width
6695 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6698 \begin_layout Plain Layout
6704 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6707 \begin_layout Plain Layout
6713 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6716 \begin_layout Plain Layout
6722 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6725 \begin_layout Plain Layout
6733 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6736 \begin_layout Plain Layout
6742 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6745 \begin_layout Plain Layout
6751 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6754 \begin_layout Plain Layout
6760 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6763 \begin_layout Plain Layout
6769 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6772 \begin_layout Plain Layout
6780 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6783 \begin_layout Plain Layout
6789 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6792 \begin_layout Plain Layout
6798 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6801 \begin_layout Plain Layout
6807 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6810 \begin_layout Plain Layout
6816 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6819 \begin_layout Plain Layout
6827 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6830 \begin_layout Plain Layout
6836 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6839 \begin_layout Plain Layout
6845 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6848 \begin_layout Plain Layout
6854 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6857 \begin_layout Plain Layout
6863 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6866 \begin_layout Plain Layout
6874 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6877 \begin_layout Plain Layout
6883 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6886 \begin_layout Plain Layout
6892 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6895 \begin_layout Plain Layout
6901 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6904 \begin_layout Plain Layout
6910 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6913 \begin_layout Plain Layout
6921 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6924 \begin_layout Plain Layout
6930 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6933 \begin_layout Plain Layout
6939 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6942 \begin_layout Plain Layout
6948 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6951 \begin_layout Plain Layout
6957 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6960 \begin_layout Plain Layout
6974 \begin_layout Standard
6978 \begin_layout Plain Layout
6990 \begin_inset Tabular
6991 <lyxtabular version="3" rows="6" columns="5">
6992 <features islongtable="true">
6993 <column alignment="center" valignment="top" width="0">
6994 <column alignment="center" valignment="top" width="0">
6995 <column alignment="center" valignment="top" width="0">
6996 <column alignment="center" valignment="top" width="0">
6997 <column alignment="center" valignment="top" width="0">
6998 <row caption="true">
6999 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7002 \begin_layout Plain Layout
7003 \begin_inset Caption
7005 \begin_layout Plain Layout
7006 long full title with width set to 5
7007 \begin_inset space \thinspace{}
7010 cm long full title with width set to 5
7011 \begin_inset space \thinspace{}
7014 cm long full title with width set to 5
7015 \begin_inset space \thinspace{}
7022 \begin_layout Plain Layout
7024 \begin_inset space \thinspace{}
7028 \begin_inset space \thinspace{}
7032 \begin_inset space \thinspace{}
7050 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7053 \begin_layout Plain Layout
7059 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7062 \begin_layout Plain Layout
7068 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7071 \begin_layout Plain Layout
7077 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7080 \begin_layout Plain Layout
7088 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7091 \begin_layout Plain Layout
7097 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7100 \begin_layout Plain Layout
7106 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7109 \begin_layout Plain Layout
7115 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7118 \begin_layout Plain Layout
7124 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7127 \begin_layout Plain Layout
7135 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7138 \begin_layout Plain Layout
7144 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7147 \begin_layout Plain Layout
7153 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7156 \begin_layout Plain Layout
7162 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7165 \begin_layout Plain Layout
7171 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7174 \begin_layout Plain Layout
7182 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7185 \begin_layout Plain Layout
7191 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7194 \begin_layout Plain Layout
7200 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7203 \begin_layout Plain Layout
7209 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7212 \begin_layout Plain Layout
7218 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7221 \begin_layout Plain Layout
7229 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7232 \begin_layout Plain Layout
7238 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7241 \begin_layout Plain Layout
7247 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7250 \begin_layout Plain Layout
7256 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7259 \begin_layout Plain Layout
7265 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7268 \begin_layout Plain Layout
7276 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7279 \begin_layout Plain Layout
7285 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7288 \begin_layout Plain Layout
7294 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7297 \begin_layout Plain Layout
7303 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7306 \begin_layout Plain Layout
7312 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7315 \begin_layout Plain Layout
7329 \begin_layout Standard
7333 \begin_layout Plain Layout
7347 \begin_layout Standard
7348 \begin_inset Note Greyedout
7351 \begin_layout Plain Layout
7356 When the LaTeX-package
7364 \begin_layout Plain Layout
7365 LaTeX-packages ! caption
7370 is used, as in this document, the full page width is used for the caption
7371 when you use the default value of 4
7372 \begin_inset space \thinspace{}
7382 To get in this case exactly a 4
7383 \begin_inset space \thinspace{}
7386 in wide caption, you can either use a value slightly different from 4.0
7387 \begin_inset space \thinspace{}
7391 \begin_inset space \thinspace{}
7395 \begin_inset space \space{}
7399 \begin_inset space \thinspace{}
7402 in, or the LaTeX-command
7406 captionsetup{width=value}
7408 that is provided by the
7420 \begin_layout Subsubsection
7421 Different Captions for Table Pages
7425 \begin_layout Plain Layout
7426 Longtables ! Different Captions for Pages
7434 \begin_layout Standard
7435 When the other captions should differ from the one of the first table page,
7436 insert a caption with a non-empty short title in a dummy caption row marked
7438 The caption used for the other table pages is inserted as caption without
7439 a short title in a dummy caption row that is marked as main header.
7440 When this caption shouldn't include the table number, use the command
7443 \begin_layout Standard
7448 caption*{caption text}
7451 \begin_layout Standard
7452 instead of LyX's caption box.
7453 The label to reference the table is inserted into the caption of the first
7456 \begin_inset space ~
7460 \begin_inset CommandInset ref
7462 reference "tab:DiffCaptions"
7466 is an example for a longtable with different heading where the second caption
7467 doesn't include the table number.
7470 \begin_layout Standard
7472 \begin_inset Tabular
7473 <lyxtabular version="3" rows="60" columns="3">
7474 <features islongtable="true">
7475 <column alignment="left" valignment="top" width="0cm">
7476 <column alignment="left" valignment="top" width="0pt">
7477 <column alignment="center" valignment="top" width="0pt">
7478 <row endfirsthead="true" caption="true">
7479 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7482 \begin_layout Plain Layout
7483 \begin_inset Caption
7485 \begin_layout Plain Layout
7487 \begin_inset CommandInset label
7489 name "tab:DiffCaptions"
7497 \begin_layout Plain Layout
7513 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7516 \begin_layout Plain Layout
7522 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7525 \begin_layout Plain Layout
7532 <row endfirsthead="true">
7533 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7536 \begin_layout Plain Layout
7539 Example Phone List (ignore the names)
7544 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7547 \begin_layout Plain Layout
7553 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7556 \begin_layout Plain Layout
7563 <row endfirsthead="true">
7564 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7567 \begin_layout Plain Layout
7575 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7578 \begin_layout Plain Layout
7584 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7587 \begin_layout Plain Layout
7596 <row endhead="true" caption="true">
7597 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7600 \begin_layout Plain Layout
7604 \begin_layout Plain Layout
7608 caption*{Continued Example Phone List}
7622 <cell multicolumn="2" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7625 \begin_layout Plain Layout
7631 <cell multicolumn="2" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7634 \begin_layout Plain Layout
7641 <row endhead="true">
7642 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7645 \begin_layout Plain Layout
7653 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7656 \begin_layout Plain Layout
7662 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7665 \begin_layout Plain Layout
7672 <row endhead="true">
7673 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
7676 \begin_layout Plain Layout
7684 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7687 \begin_layout Plain Layout
7693 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7696 \begin_layout Plain Layout
7705 <row endfoot="true">
7706 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
7709 \begin_layout Plain Layout
7710 continued on next page
7715 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7718 \begin_layout Plain Layout
7724 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7727 \begin_layout Plain Layout
7735 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7738 \begin_layout Plain Layout
7746 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7749 \begin_layout Plain Layout
7755 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
7758 \begin_layout Plain Layout
7766 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7769 \begin_layout Plain Layout
7777 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7780 \begin_layout Plain Layout
7786 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7789 \begin_layout Plain Layout
7797 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7800 \begin_layout Plain Layout
7808 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7811 \begin_layout Plain Layout
7817 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7820 \begin_layout Plain Layout
7828 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7831 \begin_layout Plain Layout
7839 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7842 \begin_layout Plain Layout
7848 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7851 \begin_layout Plain Layout
7859 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7862 \begin_layout Plain Layout
7870 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7873 \begin_layout Plain Layout
7879 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7882 \begin_layout Plain Layout
7890 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7893 \begin_layout Plain Layout
7901 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7904 \begin_layout Plain Layout
7910 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7913 \begin_layout Plain Layout
7921 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7924 \begin_layout Plain Layout
7932 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7935 \begin_layout Plain Layout
7941 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7944 \begin_layout Plain Layout
7952 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7955 \begin_layout Plain Layout
7963 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7966 \begin_layout Plain Layout
7972 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7975 \begin_layout Plain Layout
7983 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7986 \begin_layout Plain Layout
7994 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7997 \begin_layout Plain Layout
8003 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8006 \begin_layout Plain Layout
8014 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8017 \begin_layout Plain Layout
8025 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8028 \begin_layout Plain Layout
8034 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8037 \begin_layout Plain Layout
8045 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8048 \begin_layout Plain Layout
8056 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8059 \begin_layout Plain Layout
8065 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8068 \begin_layout Plain Layout
8076 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8079 \begin_layout Plain Layout
8087 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8090 \begin_layout Plain Layout
8096 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8099 \begin_layout Plain Layout
8107 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8110 \begin_layout Plain Layout
8118 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8121 \begin_layout Plain Layout
8127 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8130 \begin_layout Plain Layout
8138 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8141 \begin_layout Plain Layout
8149 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8152 \begin_layout Plain Layout
8158 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8161 \begin_layout Plain Layout
8169 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8172 \begin_layout Plain Layout
8181 \begin_layout Plain Layout
8192 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8195 \begin_layout Plain Layout
8201 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8204 \begin_layout Plain Layout
8212 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8215 \begin_layout Plain Layout
8223 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8226 \begin_layout Plain Layout
8232 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8235 \begin_layout Plain Layout
8243 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8246 \begin_layout Plain Layout
8254 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8257 \begin_layout Plain Layout
8263 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8266 \begin_layout Plain Layout
8274 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8277 \begin_layout Plain Layout
8285 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8288 \begin_layout Plain Layout
8294 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8297 \begin_layout Plain Layout
8305 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8308 \begin_layout Plain Layout
8316 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8319 \begin_layout Plain Layout
8325 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8328 \begin_layout Plain Layout
8336 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8339 \begin_layout Plain Layout
8347 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8350 \begin_layout Plain Layout
8356 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8359 \begin_layout Plain Layout
8367 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8370 \begin_layout Plain Layout
8378 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8381 \begin_layout Plain Layout
8387 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8390 \begin_layout Plain Layout
8398 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8401 \begin_layout Plain Layout
8409 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8412 \begin_layout Plain Layout
8418 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8421 \begin_layout Plain Layout
8429 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8432 \begin_layout Plain Layout
8440 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8443 \begin_layout Plain Layout
8449 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8452 \begin_layout Plain Layout
8460 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8463 \begin_layout Plain Layout
8471 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8474 \begin_layout Plain Layout
8480 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8483 \begin_layout Plain Layout
8491 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8494 \begin_layout Plain Layout
8502 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8505 \begin_layout Plain Layout
8511 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8514 \begin_layout Plain Layout
8522 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8525 \begin_layout Plain Layout
8533 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8536 \begin_layout Plain Layout
8542 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8545 \begin_layout Plain Layout
8553 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8556 \begin_layout Plain Layout
8564 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8567 \begin_layout Plain Layout
8573 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8576 \begin_layout Plain Layout
8584 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8587 \begin_layout Plain Layout
8595 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8598 \begin_layout Plain Layout
8604 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8607 \begin_layout Plain Layout
8615 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8618 \begin_layout Plain Layout
8626 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8629 \begin_layout Plain Layout
8635 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8638 \begin_layout Plain Layout
8646 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8649 \begin_layout Plain Layout
8657 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8660 \begin_layout Plain Layout
8666 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8669 \begin_layout Plain Layout
8677 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8680 \begin_layout Plain Layout
8688 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8691 \begin_layout Plain Layout
8697 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8700 \begin_layout Plain Layout
8708 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8711 \begin_layout Plain Layout
8717 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8720 \begin_layout Plain Layout
8726 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8729 \begin_layout Plain Layout
8737 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8740 \begin_layout Plain Layout
8748 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8751 \begin_layout Plain Layout
8757 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8760 \begin_layout Plain Layout
8768 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8771 \begin_layout Plain Layout
8779 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8782 \begin_layout Plain Layout
8788 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8791 \begin_layout Plain Layout
8799 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8802 \begin_layout Plain Layout
8810 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8813 \begin_layout Plain Layout
8819 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8822 \begin_layout Plain Layout
8830 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8833 \begin_layout Plain Layout
8841 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8844 \begin_layout Plain Layout
8850 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8853 \begin_layout Plain Layout
8861 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8864 \begin_layout Plain Layout
8872 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8875 \begin_layout Plain Layout
8881 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8884 \begin_layout Plain Layout
8892 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8895 \begin_layout Plain Layout
8903 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8906 \begin_layout Plain Layout
8912 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8915 \begin_layout Plain Layout
8923 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8926 \begin_layout Plain Layout
8934 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8937 \begin_layout Plain Layout
8943 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8946 \begin_layout Plain Layout
8954 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8957 \begin_layout Plain Layout
8965 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8968 \begin_layout Plain Layout
8974 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8977 \begin_layout Plain Layout
8985 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8988 \begin_layout Plain Layout
8996 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8999 \begin_layout Plain Layout
9005 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9008 \begin_layout Plain Layout
9016 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9019 \begin_layout Plain Layout
9027 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9030 \begin_layout Plain Layout
9036 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9039 \begin_layout Plain Layout
9047 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9050 \begin_layout Plain Layout
9058 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9061 \begin_layout Plain Layout
9067 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9070 \begin_layout Plain Layout
9078 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9081 \begin_layout Plain Layout
9089 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9092 \begin_layout Plain Layout
9098 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9101 \begin_layout Plain Layout
9109 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9112 \begin_layout Plain Layout
9120 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9123 \begin_layout Plain Layout
9129 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9132 \begin_layout Plain Layout
9140 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9143 \begin_layout Plain Layout
9151 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9154 \begin_layout Plain Layout
9160 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9163 \begin_layout Plain Layout
9171 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9174 \begin_layout Plain Layout
9182 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9185 \begin_layout Plain Layout
9191 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9194 \begin_layout Plain Layout
9202 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9205 \begin_layout Plain Layout
9213 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9216 \begin_layout Plain Layout
9222 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9225 \begin_layout Plain Layout
9233 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9236 \begin_layout Plain Layout
9244 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9247 \begin_layout Plain Layout
9253 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9256 \begin_layout Plain Layout
9264 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9267 \begin_layout Plain Layout
9275 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9278 \begin_layout Plain Layout
9284 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9287 \begin_layout Plain Layout
9295 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9298 \begin_layout Plain Layout
9306 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9309 \begin_layout Plain Layout
9315 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9318 \begin_layout Plain Layout
9326 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9329 \begin_layout Plain Layout
9337 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9340 \begin_layout Plain Layout
9346 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9349 \begin_layout Plain Layout
9356 <row endlastfoot="true">
9357 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9360 \begin_layout Plain Layout
9366 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
9369 \begin_layout Plain Layout
9375 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9378 \begin_layout Plain Layout
9392 \begin_layout Section
9393 Special Longtable Issues
9394 \begin_inset CommandInset label
9396 name "sec:Special-Longtable-Issues"
9403 \begin_layout Subsection
9404 Longtable Calculation
9408 \begin_layout Plain Layout
9409 Longtables ! Calculation
9417 \begin_layout Standard
9418 LaTeX calculates the height of table pages and their page breaks using so
9420 Chunks are pieces of the tables that are at once in LaTeX's memory.
9421 The default value is historically set to only 20 table rows.
9422 If you are using longtables with many pages this may slow down the creation
9424 You can safely increase the chunk size to values of 100-1000 by adding
9425 this command line to your document preamble:
9428 \begin_layout Standard
9433 setcounter{LTchunksize}{100}
9436 \begin_layout Subsection
9437 Floats and Longtables
9441 \begin_layout Plain Layout
9450 \begin_layout Standard
9451 There might be problems when a float appears on the same page where a longtable
9453 To avoid such situation, add the command
9459 as TeX-Code before your longtable.
9462 \begin_layout Subsection
9467 \begin_layout Plain Layout
9468 Longtables ! Forced Page Breaks
9476 \begin_layout Standard
9477 By default tables are only broken between rows.
9478 If you have a cell with multiples lines and want to have a page break within
9479 the cell, insert the new line command
9480 \begin_inset Quotes eld
9492 \begin_inset Quotes erd
9495 as TeX-Code at this point of the cell where it can be broken.
9504 command you have to insert in TeX-Code so many
9505 \begin_inset Quotes eld
9513 \begin_inset Quotes erd
9516 characters like the number of the following table columns.
9521 is the character to separate table cells.
9522 Write in TeX-Code after each
9526 the content of the corresponding following cell and delete the content
9528 \begin_inset Newline newline
9539 command, insert so many
9543 characters like the number of table columns before the current column.
9545 \begin_inset space ~
9549 \begin_inset CommandInset ref
9551 reference "tab:ForcedPagebreak"
9555 the cell that should be broken is in the second column followed by another
9557 Therefore the following command was inserted in the cell as TeX-Code behind
9559 \begin_inset Quotes eld
9567 \begin_inset Quotes erd
9573 \begin_layout Standard
9583 \begin_inset Newline newline
9589 \begin_layout Standard
9591 \begin_inset Quotes eld
9595 \begin_inset Quotes erd
9598 in the third columns of the row was deleted.
9605 is only needed when a page break should definitively occur at this position,
9606 otherwise it is only a possibility to break.
9607 If your footer row of the longtable has for a certain reason no upper line
9608 but you would have a horizontal line where the cell is broken, use this
9612 \begin_layout Standard
9620 \begin_inset Newline newline
9628 \begin_layout Standard
9629 When the cell to be broken is in the last column, the command
9632 \begin_layout Standard
9642 \begin_layout Standard
9643 must be inserted as TeX-Code at the beginning of the cell.
9644 This assures that the part of the cell that will be displayed on the new
9645 page appears with the full width.
9648 \begin_layout Standard
9650 \begin_inset Tabular
9651 <lyxtabular version="3" rows="39" columns="3">
9652 <features islongtable="true">
9653 <column alignment="left" valignment="top" width="0cm">
9654 <column alignment="left" valignment="top" width="3cm">
9655 <column alignment="center" valignment="top" width="0pt">
9656 <row endfirsthead="true" caption="true">
9657 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
9660 \begin_layout Plain Layout
9661 \begin_inset Caption
9663 \begin_layout Plain Layout
9664 Table with forced page break in table cell
9665 \begin_inset CommandInset label
9667 name "tab:ForcedPagebreak"
9675 \begin_layout Plain Layout
9676 Table with forced page break in table cell
9691 <cell multicolumn="2" alignment="center" valignment="top" rightline="true" usebox="none">
9694 \begin_layout Plain Layout
9700 <cell multicolumn="2" alignment="center" valignment="top" rightline="true" usebox="none">
9703 \begin_layout Plain Layout
9710 <row endfirsthead="true">
9711 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9714 \begin_layout Plain Layout
9717 Example Phone List (ignore the names)
9722 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9725 \begin_layout Plain Layout
9731 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9734 \begin_layout Plain Layout
9741 <row endfirsthead="true">
9742 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9745 \begin_layout Plain Layout
9753 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9756 \begin_layout Plain Layout
9762 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9765 \begin_layout Plain Layout
9774 <row endhead="true" caption="true">
9775 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
9778 \begin_layout Plain Layout
9782 \begin_layout Plain Layout
9786 caption*{Continued table with forced page break in table cell}
9800 <cell multicolumn="2" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
9803 \begin_layout Plain Layout
9809 <cell multicolumn="2" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
9812 \begin_layout Plain Layout
9819 <row endhead="true">
9820 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9823 \begin_layout Plain Layout
9831 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9834 \begin_layout Plain Layout
9840 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9843 \begin_layout Plain Layout
9850 <row endhead="true">
9851 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9854 \begin_layout Plain Layout
9862 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9865 \begin_layout Plain Layout
9871 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9874 \begin_layout Plain Layout
9883 <row endfoot="true">
9884 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
9887 \begin_layout Plain Layout
9888 continued on next page
9893 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9896 \begin_layout Plain Layout
9902 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9905 \begin_layout Plain Layout
9913 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9916 \begin_layout Plain Layout
9924 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9927 \begin_layout Plain Layout
9933 <cell alignment="right" valignment="top" rightline="true" usebox="none">
9936 \begin_layout Plain Layout
9944 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9947 \begin_layout Plain Layout
9955 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9958 \begin_layout Plain Layout
9964 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9967 \begin_layout Plain Layout
9975 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9978 \begin_layout Plain Layout
9986 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9989 \begin_layout Plain Layout
9995 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9998 \begin_layout Plain Layout
10006 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10009 \begin_layout Plain Layout
10017 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10020 \begin_layout Plain Layout
10026 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10029 \begin_layout Plain Layout
10037 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10040 \begin_layout Plain Layout
10048 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10051 \begin_layout Plain Layout
10057 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10060 \begin_layout Plain Layout
10068 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10071 \begin_layout Plain Layout
10079 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10082 \begin_layout Plain Layout
10088 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10091 \begin_layout Plain Layout
10099 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10102 \begin_layout Plain Layout
10110 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10113 \begin_layout Plain Layout
10119 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10122 \begin_layout Plain Layout
10130 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10133 \begin_layout Plain Layout
10141 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10144 \begin_layout Plain Layout
10150 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10153 \begin_layout Plain Layout
10161 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10164 \begin_layout Plain Layout
10172 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10175 \begin_layout Plain Layout
10181 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10184 \begin_layout Plain Layout
10192 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10195 \begin_layout Plain Layout
10203 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10206 \begin_layout Plain Layout
10212 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10215 \begin_layout Plain Layout
10223 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10226 \begin_layout Plain Layout
10234 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10237 \begin_layout Plain Layout
10243 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10246 \begin_layout Plain Layout
10254 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10257 \begin_layout Plain Layout
10265 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10268 \begin_layout Plain Layout
10274 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10277 \begin_layout Plain Layout
10285 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10288 \begin_layout Plain Layout
10296 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10299 \begin_layout Plain Layout
10305 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10308 \begin_layout Plain Layout
10316 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10319 \begin_layout Plain Layout
10327 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10330 \begin_layout Plain Layout
10336 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10339 \begin_layout Plain Layout
10347 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10350 \begin_layout Plain Layout
10358 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10361 \begin_layout Plain Layout
10367 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10370 \begin_layout Plain Layout
10378 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10381 \begin_layout Plain Layout
10389 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10392 \begin_layout Plain Layout
10398 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10401 \begin_layout Plain Layout
10409 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10412 \begin_layout Plain Layout
10420 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10423 \begin_layout Plain Layout
10429 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10432 \begin_layout Plain Layout
10440 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10443 \begin_layout Plain Layout
10451 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10454 \begin_layout Plain Layout
10460 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10463 \begin_layout Plain Layout
10471 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10474 \begin_layout Plain Layout
10482 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10485 \begin_layout Plain Layout
10491 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10494 \begin_layout Plain Layout
10502 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10505 \begin_layout Plain Layout
10513 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10516 \begin_layout Plain Layout
10522 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10525 \begin_layout Plain Layout
10533 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10536 \begin_layout Plain Layout
10544 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10547 \begin_layout Plain Layout
10553 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10556 \begin_layout Plain Layout
10564 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10567 \begin_layout Plain Layout
10575 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10578 \begin_layout Plain Layout
10584 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10587 \begin_layout Plain Layout
10595 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10598 \begin_layout Plain Layout
10606 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10609 \begin_layout Plain Layout
10611 Fürst von Montecompatri, 11.
10612 Fürst von Sulmona und Vivaro, 10.
10613 Fürst von Rossano, 5.
10614 Herzog von Canemorte, 11.
10615 Herzog von Palombara, 5.
10616 Herzog von Castelchiodato,
10620 \begin_layout Plain Layout
10631 \begin_layout Plain Layout
10639 Herzog von Poggionativo, 11.
10640 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10641 Graf von Valinfreda, 11.
10642 Baron von Cropalati, 11.
10643 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10648 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10651 \begin_layout Plain Layout
10659 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10662 \begin_layout Plain Layout
10670 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10673 \begin_layout Plain Layout
10679 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10682 \begin_layout Plain Layout
10690 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10693 \begin_layout Plain Layout
10701 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10704 \begin_layout Plain Layout
10710 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10713 \begin_layout Plain Layout
10721 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10724 \begin_layout Plain Layout
10732 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10735 \begin_layout Plain Layout
10741 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10744 \begin_layout Plain Layout
10752 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10755 \begin_layout Plain Layout
10763 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10766 \begin_layout Plain Layout
10772 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10775 \begin_layout Plain Layout
10783 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10786 \begin_layout Plain Layout
10794 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10797 \begin_layout Plain Layout
10803 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10806 \begin_layout Plain Layout
10814 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10817 \begin_layout Plain Layout
10825 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10828 \begin_layout Plain Layout
10834 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10837 \begin_layout Plain Layout
10845 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10848 \begin_layout Plain Layout
10856 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10859 \begin_layout Plain Layout
10865 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10868 \begin_layout Plain Layout
10876 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10879 \begin_layout Plain Layout
10887 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
10890 \begin_layout Plain Layout
10896 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
10899 \begin_layout Plain Layout
10906 <row endlastfoot="true">
10907 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
10910 \begin_layout Plain Layout
10916 <cell multicolumn="2" alignment="center" valignment="top" rightline="true" usebox="none">
10919 \begin_layout Plain Layout
10925 <cell multicolumn="2" alignment="center" valignment="top" rightline="true" usebox="none">
10928 \begin_layout Plain Layout
10942 \begin_layout Section
10943 Multiple Lines Columns and Rows
10946 \begin_layout Subsection
10947 Multiple Lines in Table Cells
10948 \begin_inset CommandInset label
10950 name "sub:Multiple-Lines-in"
10958 \begin_layout Plain Layout
10959 Multiple Lines in Table Cells
10968 \begin_layout Plain Layout
10977 \begin_layout Standard
10979 \begin_inset Float table
10985 \begin_layout Plain Layout
10986 \begin_inset Caption
10988 \begin_layout Plain Layout
10989 \begin_inset CommandInset label
10991 name "tab:Table-with-multiple"
10995 Table with multiple lines in cells
11003 \begin_layout Plain Layout
11005 \begin_inset Tabular
11006 <lyxtabular version="3" rows="3" columns="3">
11008 <column alignment="center" valignment="middle" width="2.5cm">
11009 <column alignment="center" valignment="middle" width="0">
11010 <column alignment="center" valignment="middle" width="0">
11012 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11015 \begin_layout Plain Layout
11017 \begin_inset Newline linebreak
11025 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11028 \begin_layout Plain Layout
11034 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11037 \begin_layout Plain Layout
11045 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11048 \begin_layout Plain Layout
11054 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11057 \begin_layout Plain Layout
11063 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11066 \begin_layout Plain Layout
11074 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11077 \begin_layout Plain Layout
11083 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11086 \begin_layout Plain Layout
11092 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11095 \begin_layout Plain Layout
11114 \begin_layout Standard
11115 Adjusting a fixed width for a column, enables to enter text as a paragraph
11116 with multiple lines and hyphenations.
11119 \begin_layout Standard
11121 \begin_inset space ~
11125 \begin_inset CommandInset ref
11127 reference "tab:Table-with-multiple"
11131 , create a 3×3 table, mark the first cell and right-click on it.
11132 In the appearing table dialog we set a cell width of 2.5
11133 \begin_inset space \thinspace{}
11136 cm and choose centered for the vertical and horizontal alignment.
11137 The vertical alignment is used for all cells of the row.
11138 As our text is smaller than than 2.5
11139 \begin_inset space \thinspace{}
11142 cm, only one line will appear.
11143 To get two lines, a justified line break (shortcut
11146 arg "newline-insert linebreak"
11150 If the text is wider than the set cell width, it will automatically be
11151 broken to several lines.
11154 \begin_layout Standard
11155 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11156 by LaTeX if it is the first entry.
11157 Therefore you need to insert something, to make the word not being the
11159 So add a horizontal space of 0
11160 \begin_inset space \thinspace{}
11163 pt before the word.
11164 As the space is zero, it doesn't change the output.
11166 \begin_inset space ~
11170 \begin_inset CommandInset ref
11172 reference "tab:Table-with-and"
11179 \begin_layout Standard
11180 \begin_inset Float table
11186 \begin_layout Plain Layout
11187 \begin_inset Caption
11189 \begin_layout Plain Layout
11190 \begin_inset CommandInset label
11192 name "tab:Table-with-and"
11196 Table with and without hyphenation
11204 \begin_layout Plain Layout
11205 \begin_inset space \hfill{}
11209 \begin_inset Tabular
11210 <lyxtabular version="3" rows="3" columns="3">
11212 <column alignment="center" valignment="middle" width="2.5cm">
11213 <column alignment="center" valignment="middle" width="0">
11214 <column alignment="center" valignment="middle" width="0">
11216 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11219 \begin_layout Plain Layout
11220 verylongtablecellword
11225 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11228 \begin_layout Plain Layout
11234 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11237 \begin_layout Plain Layout
11245 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11248 \begin_layout Plain Layout
11254 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11257 \begin_layout Plain Layout
11263 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11266 \begin_layout Plain Layout
11274 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11277 \begin_layout Plain Layout
11283 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11286 \begin_layout Plain Layout
11292 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11295 \begin_layout Plain Layout
11307 \begin_inset space \hfill{}
11311 \begin_inset Tabular
11312 <lyxtabular version="3" rows="3" columns="3">
11314 <column alignment="center" valignment="middle" width="2.5cm">
11315 <column alignment="center" valignment="middle" width="0">
11316 <column alignment="center" valignment="middle" width="0">
11318 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11321 \begin_layout Plain Layout
11322 \begin_inset space \hspace{}
11326 verylongtablecellword
11331 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11334 \begin_layout Plain Layout
11340 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11343 \begin_layout Plain Layout
11351 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11354 \begin_layout Plain Layout
11360 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11363 \begin_layout Plain Layout
11369 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11372 \begin_layout Plain Layout
11380 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11383 \begin_layout Plain Layout
11389 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11392 \begin_layout Plain Layout
11398 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11401 \begin_layout Plain Layout
11413 \begin_inset space \hfill{}
11424 \begin_layout Subsection
11426 \begin_inset CommandInset label
11428 name "sub:Multicolumns"
11436 \begin_layout Plain Layout
11446 \begin_layout Plain Layout
11447 Table ! Multicolumns
11455 \begin_layout Subsubsection
11459 \begin_layout Standard
11460 To span a cell over multiple columns, mark as much cells within a line that
11461 should be one spanned cell and use either the table-toolbar button
11462 \begin_inset Graphics
11463 filename ../images/tabular-feature_multicolumn.png
11465 scaleBeforeRotation
11471 Edit\SpecialChar \menuseparator
11472 Table\SpecialChar \menuseparator
11475 , or right click on the marked cells and choose multicolumn in the appearing
11476 table dialog under the tab
11483 \begin_layout Standard
11484 Multicolumns have there own cell settings.
11485 That means changing cell borders, cell alignment, and the width only affects
11487 Here is an example table with a multicolumn cell in the first row and one
11488 in the last row without the upper border:
11491 \begin_layout Standard
11493 \begin_inset Tabular
11494 <lyxtabular version="3" rows="3" columns="4">
11495 <features firstHeadTopDL="true" firstHeadBottomDL="true">
11496 <column alignment="center" valignment="top" width="0pt">
11497 <column alignment="center" valignment="middle" width="0">
11498 <column alignment="center" valignment="top" width="0in">
11499 <column alignment="center" valignment="top" width="0pt">
11501 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11504 \begin_layout Plain Layout
11510 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11513 \begin_layout Plain Layout
11519 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11522 \begin_layout Plain Layout
11528 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11531 \begin_layout Plain Layout
11539 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11542 \begin_layout Plain Layout
11557 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11560 \begin_layout Plain Layout
11566 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11569 \begin_layout Plain Layout
11575 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11578 \begin_layout Plain Layout
11586 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11589 \begin_layout Plain Layout
11595 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11598 \begin_layout Plain Layout
11604 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11607 \begin_layout Plain Layout
11613 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11616 \begin_layout Plain Layout
11630 \begin_layout Subsubsection
11631 Multicolumn Calculations
11632 \begin_inset CommandInset label
11634 name "sub:Multicolumn-Calculations"
11642 \begin_layout Plain Layout
11643 Multicolumns ! Calculations
11651 \begin_layout Standard
11652 LyX supports multicolumns directly, but we have to take notice of the cell
11653 width of the columns spanned by the multicolumn cell.
11656 \begin_layout Standard
11657 \begin_inset Float table
11663 \begin_layout Plain Layout
11664 \begin_inset Caption
11666 \begin_layout Plain Layout
11667 \begin_inset CommandInset label
11669 name "tab:Table-with-centered"
11673 Table with centered multicolumn text above two columns that have exactly
11674 half the width of the multicolumn cell
11675 \begin_inset OptArg
11678 \begin_layout Plain Layout
11679 Perfect multicolumn table
11692 \begin_layout Plain Layout
11694 \begin_inset Tabular
11695 <lyxtabular version="3" rows="3" columns="3">
11697 <column alignment="center" valignment="middle" width="0" special=">{\centering}m{1.25cm-6.2pt}">
11698 <column alignment="center" valignment="middle" width="0">
11699 <column alignment="center" valignment="top" width="0">
11701 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11704 \begin_layout Plain Layout
11705 multiple lines multicolumn
11710 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11713 \begin_layout Plain Layout
11719 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11722 \begin_layout Plain Layout
11730 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11733 \begin_layout Plain Layout
11739 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11742 \begin_layout Plain Layout
11748 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11751 \begin_layout Plain Layout
11759 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11762 \begin_layout Plain Layout
11768 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11771 \begin_layout Plain Layout
11777 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11780 \begin_layout Plain Layout
11799 \begin_layout Standard
11800 To create for example Table
11801 \begin_inset space ~
11805 \begin_inset CommandInset ref
11807 reference "tab:Table-with-centered"
11811 , mark the first two cells in the first row of a 3×3 table and right-click
11813 Now choose for this cell
11822 \begin_inset space \thinspace{}
11825 cm in the table dialog.
11826 The spanned columns should have exactly half the width of the multicolumn
11827 cell, so that you would adjust a width of 1.25
11828 \begin_inset space \thinspace{}
11831 cm for the first column.
11832 The second column has then automatically a width of 1.25
11833 \begin_inset space \thinspace{}
11836 cm (multicolumn width - width of first column).
11837 This was done for Table
11838 \begin_inset space ~
11842 \begin_inset CommandInset ref
11844 reference "tab:Table-without-half"
11851 \begin_layout Standard
11852 \begin_inset Float table
11857 \begin_layout Plain Layout
11858 \begin_inset Caption
11860 \begin_layout Plain Layout
11861 \begin_inset CommandInset label
11863 name "tab:Table-without-half"
11867 Table where the spanned table columns have not exactly half the width of
11868 the multicolumn cell
11869 \begin_inset OptArg
11872 \begin_layout Plain Layout
11873 Imperfect multicolumn table
11886 \begin_layout Plain Layout
11888 \begin_inset Tabular
11889 <lyxtabular version="3" rows="3" columns="3">
11891 <column alignment="center" valignment="top" width="1.25cm">
11892 <column alignment="center" valignment="top" width="0">
11893 <column alignment="center" valignment="top" width="0">
11895 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
11898 \begin_layout Plain Layout
11899 multiple lines multicolumn
11904 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11907 \begin_layout Plain Layout
11913 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11916 \begin_layout Plain Layout
11924 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11927 \begin_layout Plain Layout
11933 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11936 \begin_layout Plain Layout
11942 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11945 \begin_layout Plain Layout
11953 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11956 \begin_layout Plain Layout
11962 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11965 \begin_layout Plain Layout
11971 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11974 \begin_layout Plain Layout
11993 \begin_layout Standard
11994 You can see that the first column has not the half width of the multicolumn
11995 cell, it is a bit bigger.
11996 The reason is that the given width of a cell
11997 \begin_inset Formula $W_{g}$
12000 is not its total width
12001 \begin_inset Formula $W_{\mathrm{tot}}$
12004 because a cell is always a bit larger than its given width.
12006 \begin_inset space ~
12010 \begin_inset CommandInset ref
12012 reference "cha:Explanation-of-Equation"
12016 explains it in detail.
12019 \begin_layout Standard
12020 The needed given width
12021 \begin_inset Formula $W_{g\, n}$
12028 columns are spanned can be calculated, so that each column has a total
12030 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
12034 \begin_inset Formula \begin{equation}
12035 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}\end{equation}
12042 \begin_layout Standard
12043 In our case we have
12044 \begin_inset Formula $n=2$
12048 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
12051 cm and the default values for the lengths, so that equation
12052 \begin_inset CommandInset ref
12059 \begin_inset Formula \begin{equation}
12060 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}\end{equation}
12067 \begin_layout Standard
12068 To enable calculations in LaTeX, the LaTeX-package
12072 must be loaded with the document preamble line
12076 \begin_layout Plain Layout
12077 LaTeX-packages ! calc
12085 \begin_layout Standard
12093 \begin_layout Standard
12094 LyX does not allow to calculate lengths in the width-field of the table
12096 Therefore you have to format the column by inserting a LaTeX-argument in
12098 Here is an overview about the arguments:
12101 \begin_layout Itemize
12106 creates cell with a fixed width, its text is vertically top-aligned
12109 \begin_layout Itemize
12114 creates cell with a fixed width, its text is vertically centered
12117 \begin_layout Itemize
12122 creates cell with a fixed width, its text is vertically bottom-aligned
12125 \begin_layout Standard
12126 By entering a LaTeX-argument, all cell settings set in the table dialog
12130 \begin_layout Standard
12131 \begin_inset Note Greyedout
12134 \begin_layout Plain Layout
12139 Due to a bug, LyX shows the overwritten settings anyway.
12147 \begin_layout Standard
12148 As the text should be horizontally centered, the command
12155 You can now enter the following LaTeX-argument for the first spanned column:
12158 \begin_layout Standard
12163 centering}m{1.25cm-6.2pt}
12166 \begin_layout Standard
12171 means, that the commands inside the braces are applied before the cell
12175 \begin_layout Standard
12176 Although we have chosen centered alignment for the text of the multicolumn
12177 cell, it is still left aligned.
12178 This is because LyX only applies the alignment to single columns.
12179 So we have to use for the multicolumn the LaTeX-argument
12182 \begin_layout Standard
12190 \begin_layout Subsection
12195 \begin_layout Plain Layout
12205 \begin_layout Plain Layout
12214 \begin_layout Standard
12215 In contrary to multicolumns multirows are not yet supported by LyX so a
12216 bit of TeX-Code needs to be used.
12217 To use multirows load the LaTeX-package
12225 \begin_layout Plain Layout
12226 LaTeX-packages ! multirow
12231 in your document preamble with the command
12234 \begin_layout Standard
12239 usepackage{multirow}
12242 \begin_layout Standard
12243 Multirows are created with the command
12246 \begin_layout Standard
12251 multirow{number of rows}{cell width}{cell entry}
12254 \begin_layout Standard
12255 To create the following table:
12258 \begin_layout Standard
12263 \begin_layout Plain Layout
12277 \begin_inset Tabular
12278 <lyxtabular version="3" rows="3" columns="3">
12280 <column alignment="center" valignment="top" width="0">
12281 <column alignment="center" valignment="top" width="0">
12282 <column alignment="center" valignment="top" width="0">
12284 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12287 \begin_layout Plain Layout
12293 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12296 \begin_layout Plain Layout
12302 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12305 \begin_layout Plain Layout
12313 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12316 \begin_layout Plain Layout
12320 \begin_layout Plain Layout
12324 multirow{2}{2.5cm}{
12333 \begin_layout Plain Layout
12345 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12348 \begin_layout Plain Layout
12354 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12357 \begin_layout Plain Layout
12365 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
12368 \begin_layout Plain Layout
12374 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12377 \begin_layout Plain Layout
12383 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12386 \begin_layout Plain Layout
12401 \begin_layout Plain Layout
12417 \begin_layout Standard
12418 create a 3×3 table.
12419 To get rid of the line above the last cell in the first column, the cell
12420 is marked as multicolumn and the upper border is unset.
12421 The multirow is now created in the second row of the first column by inserting
12425 \begin_layout Standard
12430 multirow{2}{2.5cm}{
12433 \begin_layout Standard
12435 According to the command parameters the multirow spans now two rows and
12437 \begin_inset space \thinspace{}
12441 The content of the multirow cell follows outside the TeX-Code box and the
12442 command is finished with a right brace
12446 in another TeX-Code-box behind the text.
12449 \begin_layout Standard
12456 left-aligns its content by default.
12457 To override the default, renew the command
12466 \begin_layout Standard
12478 \begin_layout Standard
12479 in TeX-Code in the document preamble.
12480 Then all entries of multirow cells in the document are centered.
12481 If centering is only needed for several tables, you can renew the command
12482 in an TeX-Code box just before the table instead of the preamble.
12483 If the text should be right-aligned, replace
12496 To return to left-alignment
12505 \begin_layout Section
12507 \begin_inset CommandInset label
12509 name "sec:Formal-Tables"
12517 \begin_layout Plain Layout
12526 \begin_layout Standard
12527 Tables are often typeset in books similar to Table
12528 \begin_inset space ~
12532 \begin_inset CommandInset ref
12534 reference "tab:Example-booktabs-table"
12539 This kind of tables is called
12540 \begin_inset Quotes eld
12548 \begin_inset Quotes erd
12552 To make a table a formal table use the option
12560 tab of the table dialog.
12563 \begin_layout Standard
12564 \begin_inset Float table
12570 \begin_layout Plain Layout
12571 \begin_inset Caption
12573 \begin_layout Plain Layout
12574 \begin_inset CommandInset label
12576 name "tab:Example-booktabs-table"
12580 Example booktabs-table
12588 \begin_layout Plain Layout
12590 \begin_inset Tabular
12591 <lyxtabular version="3" rows="8" columns="4">
12592 <features booktabs="true">
12593 <column alignment="center" valignment="top" width="0">
12594 <column alignment="center" valignment="top" width="0">
12595 <column alignment="center" valignment="top" width="0">
12596 <column alignment="center" valignment="top" width="0">
12598 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12601 \begin_layout Plain Layout
12607 <cell alignment="center" valignment="top" topline="true" usebox="none">
12610 \begin_layout Plain Layout
12612 \begin_inset space \thinspace{}
12620 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
12623 \begin_layout Plain Layout
12625 \begin_inset space \thinspace{}
12633 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12636 \begin_layout Plain Layout
12644 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12647 \begin_layout Plain Layout
12651 \begin_layout Plain Layout
12664 \begin_layout Plain Layout
12673 Detector thickness [µ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
12707 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12710 \begin_layout Plain Layout
12716 <cell alignment="center" valignment="top" topline="true" usebox="none">
12719 \begin_layout Plain Layout
12725 <cell alignment="center" valignment="top" topline="true" usebox="none">
12728 \begin_layout Plain Layout
12734 <cell alignment="center" valignment="top" topline="true" usebox="none">
12737 \begin_layout Plain Layout
12744 <row topspace="default">
12745 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12748 \begin_layout Plain Layout
12749 Spatial resolution [µm]
12754 <cell alignment="center" valignment="top" usebox="none">
12757 \begin_layout Plain Layout
12763 <cell alignment="center" valignment="top" usebox="none">
12766 \begin_layout Plain Layout
12772 <cell alignment="center" valignment="top" usebox="none">
12775 \begin_layout Plain Layout
12782 <row topspace="default">
12783 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12786 \begin_layout Plain Layout
12788 \begin_inset Formula $f_{\mathrm{max}}$
12796 <cell alignment="center" valignment="top" usebox="none">
12799 \begin_layout Plain Layout
12805 <cell alignment="center" valignment="top" usebox="none">
12808 \begin_layout Plain Layout
12814 <cell alignment="center" valignment="top" usebox="none">
12817 \begin_layout Plain Layout
12824 <row topspace="default">
12825 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12828 \begin_layout Plain Layout
12832 \begin_layout Plain Layout
12836 cmidrule(l{10pt}){1-1}
12841 LSF-spatial resolution
12846 <cell alignment="center" valignment="top" usebox="none">
12849 \begin_layout Plain Layout
12855 <cell alignment="center" valignment="top" usebox="none">
12858 \begin_layout Plain Layout
12864 <cell alignment="center" valignment="top" usebox="none">
12867 \begin_layout Plain Layout
12875 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12878 \begin_layout Plain Layout
12884 <cell alignment="center" valignment="top" usebox="none">
12887 \begin_layout Plain Layout
12893 <cell alignment="center" valignment="top" usebox="none">
12896 \begin_layout Plain Layout
12902 <cell alignment="center" valignment="top" usebox="none">
12905 \begin_layout Plain Layout
12913 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
12916 \begin_layout Plain Layout
12922 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12925 \begin_layout Plain Layout
12931 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12934 \begin_layout Plain Layout
12940 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12943 \begin_layout Plain Layout
12962 \begin_layout Standard
12963 Spaces to table rows can be added using the
12967 tab of the table dialog as described in section
12968 \begin_inset space ~
12972 \begin_inset CommandInset ref
12974 reference "sub:Row-Spacing"
12981 \begin_layout Standard
12982 In contrary to normal tables, formal tables have no vertical table lines.
12983 The horizontal table lines can be set like for normal tables but they appear
12984 with different width in the output:
12985 \begin_inset Newline newline
12988 The first and the last table line have a default width of 0.08
12989 \begin_inset space \thinspace{}
12992 em while the other lines have a default width of 0.05
12993 \begin_inset space \thinspace{}
12999 \begin_layout Standard
13000 The default widths can be changed with the following preamble lines
13003 \begin_layout Standard
13013 \begin_inset Newline newline
13025 \begin_layout Standard
13026 This example is for the first line, the so called
13031 If you want to change the width for the last line, replace
13040 To change the width for the other lines replace
13049 You can use all units listed in appendix
13050 \begin_inset space ~
13054 \begin_inset CommandInset ref
13056 reference "cha:Units-available-in"
13063 \begin_layout Standard
13064 Lines that don't span over all table columns can be created by setting a
13065 table line for multicolumn cells.
13066 LyX will then internally use the command
13072 to create this line.
13076 \begin_layout Standard
13081 cmidrule[width](trim){startcol-endcol}
13084 \begin_layout Standard
13091 are are currently not supported by LyX so you have to use TeX-Code to be
13099 s can manually be created by inserting the command as TeX-Code as first
13100 cell entry of the first cell of a row.
13101 The line is then drawn in the output above the current row.
13104 \begin_layout Standard
13105 The default for the width is 0.03
13106 \begin_inset space \thinspace{}
13110 Startcol is the number of the column where the line starts and endcol the
13111 column number where the line ends.
13112 The endcol always needs to be specified, also when the line should span
13114 The optional parameter trim could be either
13122 where the trimwidth is also optional.
13123 Using for example the parameter
13127 means that the line is trimmed from its left end by 2
13128 \begin_inset space \thinspace{}
13132 If you don't specify the trimwidth the lines are trimmed by the default
13134 \begin_inset space \thinspace{}
13140 \begin_layout Standard
13141 \begin_inset VSpace bigskip
13145 \begin_inset space ~
13149 \begin_inset CommandInset ref
13151 reference "tab:Example-booktabs-table"
13155 was created using the commands
13158 \begin_layout Standard
13168 \begin_layout Standard
13169 at the beginning of the in the second row and
13172 \begin_layout Standard
13177 cmidrule(l{10pt}){1-1}
13180 \begin_layout Standard
13184 \begin_layout Standard
13185 \begin_inset VSpace bigskip
13191 \begin_layout Standard
13192 You might want to have overlapping
13199 \begin_inset space ~
13203 \begin_inset CommandInset ref
13205 reference "tab:Special-booktabs-table"
13210 This can be achieved with the TeX-Code command
13213 \begin_layout Standard
13221 \begin_layout Standard
13222 The command that was used for the second row of Table
13223 \begin_inset space ~
13227 \begin_inset CommandInset ref
13229 reference "tab:Special-booktabs-table"
13236 \begin_layout Standard
13250 \begin_layout Standard
13251 The command for the sixth row is
13254 \begin_layout Standard
13266 \begin_layout Standard
13267 \begin_inset VSpace bigskip
13273 \begin_layout Standard
13274 If you are anyway not satisfied with the border line spacing, you can use
13275 the following command to produce lines that span over all table columns
13280 \begin_layout Standard
13285 specialrule{width}{space above}{space below}
13288 \begin_layout Standard
13289 For more informations about these specialties, we refer to the manual of
13295 \begin_inset CommandInset citation
13305 \begin_layout Plain Layout
13306 LaTeX-packages ! booktabs
13314 \begin_layout Standard
13315 \begin_inset Float table
13321 \begin_layout Plain Layout
13322 \begin_inset Caption
13324 \begin_layout Plain Layout
13325 \begin_inset CommandInset label
13327 name "tab:Special-booktabs-table"
13331 Special booktabs-table
13339 \begin_layout Plain Layout
13341 \begin_inset Tabular
13342 <lyxtabular version="3" rows="8" columns="4">
13343 <features booktabs="true">
13344 <column alignment="center" valignment="top" width="0">
13345 <column alignment="center" valignment="top" width="0">
13346 <column alignment="center" valignment="top" width="0">
13347 <column alignment="center" valignment="top" width="0">
13349 <cell alignment="center" valignment="top" topline="true" usebox="none">
13352 \begin_layout Plain Layout
13358 <cell alignment="center" valignment="top" topline="true" usebox="none">
13361 \begin_layout Plain Layout
13363 \begin_inset space \thinspace{}
13371 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
13374 \begin_layout Plain Layout
13376 \begin_inset space \thinspace{}
13384 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13387 \begin_layout Plain Layout
13395 <cell alignment="center" valignment="top" usebox="none">
13398 \begin_layout Plain Layout
13402 \begin_layout Plain Layout
13415 \begin_layout Plain Layout
13428 \begin_layout Plain Layout
13441 \begin_layout Plain Layout
13450 Detector thickness [µ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
13484 <cell alignment="center" valignment="top" topline="true" usebox="none">
13487 \begin_layout Plain Layout
13493 <cell alignment="center" valignment="top" topline="true" usebox="none">
13496 \begin_layout Plain Layout
13502 <cell alignment="center" valignment="top" topline="true" usebox="none">
13505 \begin_layout Plain Layout
13511 <cell alignment="center" valignment="top" topline="true" usebox="none">
13514 \begin_layout Plain Layout
13521 <row topspace="default">
13522 <cell alignment="center" valignment="top" usebox="none">
13525 \begin_layout Plain Layout
13526 Spatial resolution [µm]
13531 <cell alignment="center" valignment="top" usebox="none">
13534 \begin_layout Plain Layout
13540 <cell alignment="center" valignment="top" usebox="none">
13543 \begin_layout Plain Layout
13549 <cell alignment="center" valignment="top" usebox="none">
13552 \begin_layout Plain Layout
13559 <row topspace="default">
13560 <cell alignment="center" valignment="top" usebox="none">
13563 \begin_layout Plain Layout
13565 \begin_inset Formula $f_{\mathrm{max}}$
13573 <cell alignment="center" valignment="top" usebox="none">
13576 \begin_layout Plain Layout
13582 <cell alignment="center" valignment="top" usebox="none">
13585 \begin_layout Plain Layout
13591 <cell alignment="center" valignment="top" usebox="none">
13594 \begin_layout Plain Layout
13602 <cell alignment="center" valignment="top" topline="true" usebox="none">
13605 \begin_layout Plain Layout
13609 \begin_layout Plain Layout
13622 \begin_layout Plain Layout
13631 LSF-spatial resolution
13636 <cell alignment="center" valignment="top" topline="true" usebox="none">
13639 \begin_layout Plain Layout
13645 <cell alignment="center" valignment="top" topline="true" usebox="none">
13648 \begin_layout Plain Layout
13654 <cell alignment="center" valignment="top" topline="true" usebox="none">
13657 \begin_layout Plain Layout
13665 <cell alignment="center" valignment="top" usebox="none">
13668 \begin_layout Plain Layout
13674 <cell alignment="center" valignment="top" usebox="none">
13677 \begin_layout Plain Layout
13683 <cell alignment="center" valignment="top" usebox="none">
13686 \begin_layout Plain Layout
13692 <cell alignment="center" valignment="top" usebox="none">
13695 \begin_layout Plain Layout
13703 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13706 \begin_layout Plain Layout
13712 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13715 \begin_layout Plain Layout
13721 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13724 \begin_layout Plain Layout
13730 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13733 \begin_layout Plain Layout
13752 \begin_layout Section
13753 Vertical Table Alignment
13757 \begin_layout Plain Layout
13766 \begin_layout Standard
13767 To align tables vertically in a text line the table must be inside a box.
13768 The box can then be vertically aligned as described in section
13769 \begin_inset space ~
13773 \begin_inset CommandInset ref
13775 reference "sec:Box-Dialog"
13782 \begin_layout Standard
13783 In the following example the tables are inside a minipage
13787 \begin_layout Plain Layout
13788 Minipages are described in section
13789 \begin_inset space ~
13793 \begin_inset CommandInset ref
13795 reference "sec:Minipages"
13804 box that has a width of 15
13805 \begin_inset space \thinspace{}
13811 \begin_layout Itemize
13813 \begin_inset Box Frameless
13822 height_special "totalheight"
13825 \begin_layout Plain Layout
13826 \begin_inset Tabular
13827 <lyxtabular version="3" rows="3" columns="3">
13829 <column alignment="center" valignment="top" width="0">
13830 <column alignment="center" valignment="top" width="0">
13831 <column alignment="center" valignment="top" width="0">
13833 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13836 \begin_layout Plain Layout
13842 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13845 \begin_layout Plain Layout
13851 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13854 \begin_layout Plain Layout
13862 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13865 \begin_layout Plain Layout
13871 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13874 \begin_layout Plain Layout
13880 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13883 \begin_layout Plain Layout
13891 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13894 \begin_layout Plain Layout
13900 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13903 \begin_layout Plain Layout
13909 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13912 \begin_layout Plain Layout
13932 \begin_layout Plain Layout
13944 \begin_inset Box Frameless
13953 height_special "totalheight"
13956 \begin_layout Plain Layout
13957 \begin_inset Tabular
13958 <lyxtabular version="3" rows="3" columns="3">
13960 <column alignment="center" valignment="top" width="0">
13961 <column alignment="center" valignment="top" width="0">
13962 <column alignment="center" valignment="top" width="0">
13964 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13967 \begin_layout Plain Layout
13973 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13976 \begin_layout Plain Layout
13982 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13985 \begin_layout Plain Layout
13993 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13996 \begin_layout Plain Layout
14002 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14005 \begin_layout Plain Layout
14011 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14014 \begin_layout Plain Layout
14022 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14025 \begin_layout Plain Layout
14031 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14034 \begin_layout Plain Layout
14040 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14043 \begin_layout Plain Layout
14063 \begin_layout Plain Layout
14073 \begin_layout Itemize
14075 \begin_inset Box Frameless
14084 height_special "totalheight"
14087 \begin_layout Plain Layout
14088 \begin_inset Tabular
14089 <lyxtabular version="3" rows="3" columns="3">
14091 <column alignment="center" valignment="top" width="0">
14092 <column alignment="center" valignment="top" width="0">
14093 <column alignment="center" valignment="top" width="0">
14095 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14098 \begin_layout Plain Layout
14104 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14107 \begin_layout Plain Layout
14113 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14116 \begin_layout Plain Layout
14124 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14127 \begin_layout Plain Layout
14133 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14136 \begin_layout Plain Layout
14142 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14145 \begin_layout Plain Layout
14153 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14156 \begin_layout Plain Layout
14162 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14165 \begin_layout Plain Layout
14171 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14174 \begin_layout Plain Layout
14193 \begin_layout Itemize
14195 \begin_inset Box Frameless
14204 height_special "totalheight"
14207 \begin_layout Plain Layout
14208 \begin_inset Tabular
14209 <lyxtabular version="3" rows="3" columns="3">
14211 <column alignment="center" valignment="top" width="0">
14212 <column alignment="center" valignment="top" width="0">
14213 <column alignment="center" valignment="top" width="0">
14215 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14218 \begin_layout Plain Layout
14224 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14227 \begin_layout Plain Layout
14233 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14236 \begin_layout Plain Layout
14244 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14247 \begin_layout Plain Layout
14253 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14256 \begin_layout Plain Layout
14262 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14265 \begin_layout Plain Layout
14273 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14276 \begin_layout Plain Layout
14282 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14285 \begin_layout Plain Layout
14291 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14294 \begin_layout Plain Layout
14314 \begin_layout Plain Layout
14326 \begin_inset Box Frameless
14335 height_special "totalheight"
14338 \begin_layout Plain Layout
14339 \begin_inset Tabular
14340 <lyxtabular version="3" rows="3" columns="3">
14342 <column alignment="center" valignment="top" width="0">
14343 <column alignment="center" valignment="top" width="0">
14344 <column alignment="center" valignment="top" width="0">
14346 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14349 \begin_layout Plain Layout
14355 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14358 \begin_layout Plain Layout
14364 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14367 \begin_layout Plain Layout
14375 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14378 \begin_layout Plain Layout
14384 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14387 \begin_layout Plain Layout
14393 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14396 \begin_layout Plain Layout
14404 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14407 \begin_layout Plain Layout
14413 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14416 \begin_layout Plain Layout
14422 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14425 \begin_layout Plain Layout
14445 \begin_layout Plain Layout
14455 \begin_layout Standard
14456 As you can see, the content of the first and last table row is not correctly
14457 aligned with the text line where the table is in.
14458 To get this alignment, the minipage box must be set into a raisebox
14462 \begin_layout Plain Layout
14463 Raiseboxes are described in section
14464 \begin_inset space ~
14468 \begin_inset CommandInset ref
14470 reference "sub:Vertical-Alignment"
14480 In the example above the second table in the first item is aligned using
14481 the TeX-Code-command
14484 \begin_layout Standard
14494 \begin_layout Standard
14496 Behind the box the closing brace
14500 is inserted as TeX-Code.
14501 For the second table in the last item the command
14504 \begin_layout Standard
14514 \begin_layout Standard
14518 \begin_layout Standard
14519 \begin_inset Note Greyedout
14522 \begin_layout Plain Layout
14527 The alignment of the table row content to the surrounding text line is
14529 The needed factor of the
14535 command for this alignment depends on the document font, the font size,
14536 and the table line thickness.
14544 \begin_layout Section
14546 \begin_inset CommandInset label
14548 name "sec:Colored-Tables"
14556 \begin_layout Plain Layout
14565 \begin_layout Subsection
14570 \begin_layout Plain Layout
14571 Table Color ! for Cells
14580 \begin_layout Plain Layout
14581 Color ! for Table Cells
14589 \begin_layout Standard
14590 \begin_inset Float table
14596 \begin_layout Plain Layout
14597 \begin_inset Caption
14599 \begin_layout Plain Layout
14600 \begin_inset CommandInset label
14602 name "tab:Table-colored-without"
14606 Table colored without using the package
14611 \begin_inset OptArg
14614 \begin_layout Plain Layout
14615 Table without colortbl
14628 \begin_layout Plain Layout
14630 \begin_inset Tabular
14631 <lyxtabular version="3" rows="3" columns="3">
14633 <column alignment="center" valignment="top" width="0">
14634 <column alignment="center" valignment="top" width="0">
14635 <column alignment="center" valignment="top" width="0">
14637 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14640 \begin_layout Plain Layout
14648 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14651 \begin_layout Plain Layout
14659 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14662 \begin_layout Plain Layout
14672 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14675 \begin_layout Plain Layout
14683 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14686 \begin_layout Plain Layout
14694 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14697 \begin_layout Plain Layout
14707 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14710 \begin_layout Plain Layout
14718 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14721 \begin_layout Plain Layout
14729 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14732 \begin_layout Plain Layout
14753 \begin_layout Standard
14754 If you only need colored text, mark the cells and choose a color in the
14757 Edit\SpecialChar \menuseparator
14759 \begin_inset space ~
14765 This was used to create Table
14766 \begin_inset space ~
14770 \begin_inset CommandInset ref
14772 reference "tab:Table-colored-without"
14777 In any other case you have to use the LaTeX-package
14785 \begin_layout Plain Layout
14786 LaTeX-packages ! colortbl
14794 \begin_layout Standard
14798 \begin_layout Plain Layout
14808 \begin_inset Note Note
14811 \begin_layout Plain Layout
14812 The following section part will only be displayed when the LaTeX-package
14825 \begin_layout Standard
14826 To create colored tables,
14830 must be loaded in the preamble with the line
14833 \begin_layout Standard
14838 usepackage{colortbl}
14841 \begin_layout Standard
14842 The color of a column is adjusted with the command
14845 \begin_layout Standard
14850 columncolor{name of color}
14853 \begin_layout Standard
14859 More about the command
14863 is described in section
14864 \begin_inset space ~
14868 \begin_inset CommandInset ref
14870 reference "sub:Multicolumn-Calculations"
14877 \begin_layout Standard
14878 The following color names are predefined:
14881 \begin_layout Standard
14915 \begin_layout Standard
14916 \begin_inset VSpace medskip
14922 \begin_layout Standard
14923 You can also define your own color with the command
14926 \begin_layout Standard
14931 definecolor{color name}{color model}{color values}
14934 \begin_layout Standard
14935 The color model can be
14938 \begin_layout Labeling
14939 \labelwidthstring 00.00.0000
14940 cmyk: cyan, magenta, yellow, black
14943 \begin_layout Labeling
14944 \labelwidthstring 00.00.0000
14945 rgb: red, green blue
14948 \begin_layout Labeling
14949 \labelwidthstring 00.00.0000
14953 \begin_layout Standard
14954 and the color values are comma separated numbers between 0 and 1 describing
14955 the factor for the corresponding color of the color model.
14958 \begin_layout Standard
14960 \begin_inset space \thinspace{}
14964 \begin_inset space \space{}
14971 " in the preamble with
14974 \begin_layout Standard
14979 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
14982 \begin_layout Standard
14990 \begin_layout Standard
14995 definecolor{lightgray}{gray}{0.8}
14998 \begin_layout Standard
14999 \begin_inset VSpace medskip
15005 \begin_layout Standard
15006 Lines are colored with the command
15009 \begin_layout Standard
15014 rowcolor{name of color}
15017 \begin_layout Standard
15018 and cells are colored with the command
15021 \begin_layout Standard
15026 cellcolor{name of color}
15029 \begin_layout Standard
15030 Both commands are inserted at the beginning of a cell as TeX-Code.
15033 \begin_layout Standard
15034 To color characters in the table, mark the cells and use the LyX menu
15036 Edit\SpecialChar \menuseparator
15038 \begin_inset space ~
15044 If a cell contains TeX-Code mark only the characters, otherwise the colored
15045 TeX-Code will cause LaTeX-errors.
15048 \begin_layout Standard
15049 \begin_inset Note Greyedout
15052 \begin_layout Plain Layout
15057 Not all DVI-viewers are able to display self-defined colors.
15065 \begin_layout Standard
15066 \begin_inset VSpace bigskip
15072 \begin_layout Standard
15074 \begin_inset space ~
15078 \begin_inset CommandInset ref
15080 reference "tab:Table-colored-using"
15084 do the following: The color of the first column should be
15092 \begin_layout Standard
15097 columncolor{darkgreen}
15102 \begin_layout Standard
15103 as LaTeX-argument for this column.
15104 The first row should be blue, therefore the TeX-Code command
15107 \begin_layout Standard
15115 \begin_layout Standard
15116 is inserted to the first cell of this row.
15117 Note that this overwrites the column color for the first cell.
15118 The last cell of the last row is colored magenta by inserting the TeX-Code
15122 \begin_layout Standard
15130 \begin_layout Standard
15131 The characters could now be colored using the menu
15133 Edit\SpecialChar \menuseparator
15135 \begin_inset space ~
15143 \begin_layout Standard
15144 \begin_inset Float table
15150 \begin_layout Plain Layout
15151 \begin_inset Caption
15153 \begin_layout Plain Layout
15154 \begin_inset CommandInset label
15156 name "tab:Table-colored-using"
15160 Table colored using the package
15165 \begin_inset OptArg
15168 \begin_layout Plain Layout
15169 Table with colortbl
15182 \begin_layout Plain Layout
15184 \begin_inset Tabular
15185 <lyxtabular version="3" rows="3" columns="3">
15187 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
15188 <column alignment="center" valignment="top" width="0">
15189 <column alignment="center" valignment="top" width="0">
15191 <cell alignment="center" valignment="top" usebox="none">
15194 \begin_layout Plain Layout
15198 \begin_layout Plain Layout
15214 <cell alignment="center" valignment="top" usebox="none">
15217 \begin_layout Plain Layout
15225 <cell alignment="center" valignment="top" usebox="none">
15228 \begin_layout Plain Layout
15238 <cell alignment="center" valignment="top" usebox="none">
15241 \begin_layout Plain Layout
15249 <cell alignment="center" valignment="top" usebox="none">
15252 \begin_layout Plain Layout
15260 <cell alignment="center" valignment="top" usebox="none">
15263 \begin_layout Plain Layout
15273 <cell alignment="center" valignment="top" usebox="none">
15276 \begin_layout Plain Layout
15284 <cell alignment="center" valignment="top" usebox="none">
15287 \begin_layout Plain Layout
15295 <cell alignment="center" valignment="top" usebox="none">
15298 \begin_layout Plain Layout
15302 \begin_layout Plain Layout
15331 \begin_layout Standard
15335 \begin_layout Plain Layout
15345 \begin_inset Note Note
15348 \begin_layout Plain Layout
15349 The following will be displayed when the LaTeX-package
15361 \begin_layout Standard
15362 You need to install the package
15366 to see the content of this section in the output.
15369 \begin_layout Standard
15373 \begin_layout Plain Layout
15385 \begin_layout Subsection
15390 \begin_layout Plain Layout
15391 Table Color ! for Lines
15400 \begin_layout Plain Layout
15401 Color ! for Table Lines
15409 \begin_layout Standard
15410 As described in section
15411 \begin_inset space ~
15415 \begin_inset CommandInset ref
15417 reference "sub:Line-Thickness"
15421 , the line thickness for all lines in a table can be adjusted with the length
15430 \begin_inset space \thinspace{}
15433 pt for all tables of this section.
15437 \begin_layout Plain Layout
15443 arrayrulewidth}{1.5pt}
15451 \begin_layout Standard
15452 To color vertical lines for example with green, create the following column
15453 format in the document preamble, according to the description in section
15454 \begin_inset space ~
15458 \begin_inset CommandInset ref
15460 reference "sub:Customized-Format"
15467 \begin_layout Standard
15472 newcolumntype{W}{!{
15479 \begin_layout Standard
15481 \begin_inset space ~
15485 \begin_inset CommandInset ref
15487 reference "tab:Table-with-vertical-colored"
15495 was used for the last column and
15499 for the other columns.
15502 \begin_layout Standard
15503 If you want to have several colors, define more column formats.
15506 \begin_layout Standard
15507 \begin_inset Float table
15513 \begin_layout Plain Layout
15514 \begin_inset Caption
15516 \begin_layout Plain Layout
15517 \begin_inset CommandInset label
15519 name "tab:Table-with-vertical-colored"
15523 Table with colored vertical lines
15531 \begin_layout Plain Layout
15533 \begin_inset Tabular
15534 <lyxtabular version="3" rows="3" columns="3">
15536 <column alignment="center" valignment="top" width="0" special="Wc">
15537 <column alignment="center" valignment="top" width="0" special="Wc">
15538 <column alignment="center" valignment="top" width="0" special="WcW">
15540 <cell alignment="center" valignment="top" topline="true" usebox="none">
15543 \begin_layout Plain Layout
15549 <cell alignment="center" valignment="top" topline="true" usebox="none">
15552 \begin_layout Plain Layout
15558 <cell alignment="center" valignment="top" topline="true" usebox="none">
15561 \begin_layout Plain Layout
15569 <cell alignment="center" valignment="top" topline="true" usebox="none">
15572 \begin_layout Plain Layout
15578 <cell alignment="center" valignment="top" topline="true" usebox="none">
15581 \begin_layout Plain Layout
15587 <cell alignment="center" valignment="top" topline="true" usebox="none">
15590 \begin_layout Plain Layout
15598 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15601 \begin_layout Plain Layout
15607 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15610 \begin_layout Plain Layout
15616 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15619 \begin_layout Plain Layout
15638 \begin_layout Standard
15639 \begin_inset VSpace bigskip
15642 To color horizontal lines for example with red, like in Table
15643 \begin_inset space ~
15647 \begin_inset CommandInset ref
15649 reference "tab:Table-with-horizontal-colored"
15653 , insert these commands in TeX-Code before the table or table float:
15656 \begin_layout Standard
15666 \begin_inset Newline newline
15674 \begin_inset Newline newline
15681 \begin_layout Plain Layout
15692 arrayrulecolor{red}
15696 arrayrulecolor{black}}
15699 \begin_layout Standard
15703 \begin_layout Plain Layout
15714 \begin_layout Plain Layout
15723 \begin_layout Plain Layout
15727 arrayrulecolor{red}
15731 arrayrulecolor{black}}
15737 \begin_inset Float table
15743 \begin_layout Plain Layout
15744 \begin_inset Caption
15746 \begin_layout Plain Layout
15747 \begin_inset CommandInset label
15749 name "tab:Table-with-horizontal-colored"
15753 Table with colored horizontal lines
15761 \begin_layout Plain Layout
15763 \begin_inset Tabular
15764 <lyxtabular version="3" rows="3" columns="3">
15766 <column alignment="center" valignment="top" width="0">
15767 <column alignment="center" valignment="top" width="0">
15768 <column alignment="center" valignment="top" width="0">
15770 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15773 \begin_layout Plain Layout
15779 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15782 \begin_layout Plain Layout
15788 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15791 \begin_layout Plain Layout
15799 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15802 \begin_layout Plain Layout
15808 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15811 \begin_layout Plain Layout
15817 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15820 \begin_layout Plain Layout
15828 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15831 \begin_layout Plain Layout
15837 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15840 \begin_layout Plain Layout
15846 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
15849 \begin_layout Plain Layout
15868 \begin_layout Standard
15869 To return to the default line color black, insert this command in TeX-Code
15870 behind the table or table float:
15873 \begin_layout Standard
15885 \begin_layout Standard
15887 \begin_inset space ~
15891 \begin_inset CommandInset ref
15893 reference "tab:Table-with-colored"
15897 is an example with colored vertical and horizontal lines.
15900 \begin_layout Standard
15901 \begin_inset Float table
15907 \begin_layout Plain Layout
15908 \begin_inset Caption
15910 \begin_layout Plain Layout
15911 \begin_inset CommandInset label
15913 name "tab:Table-with-colored"
15917 Table with colored lines
15925 \begin_layout Plain Layout
15927 \begin_inset Tabular
15928 <lyxtabular version="3" rows="3" columns="3">
15930 <column alignment="center" valignment="top" width="0" special="Wc">
15931 <column alignment="center" valignment="top" width="0" special="Wc">
15932 <column alignment="center" valignment="top" width="0" special="WcW">
15934 <cell alignment="center" valignment="top" topline="true" usebox="none">
15937 \begin_layout Plain Layout
15943 <cell alignment="center" valignment="top" topline="true" usebox="none">
15946 \begin_layout Plain Layout
15952 <cell alignment="center" valignment="top" topline="true" usebox="none">
15955 \begin_layout Plain Layout
15963 <cell alignment="center" valignment="top" topline="true" usebox="none">
15966 \begin_layout Plain Layout
15972 <cell alignment="center" valignment="top" topline="true" usebox="none">
15975 \begin_layout Plain Layout
15981 <cell alignment="center" valignment="top" topline="true" usebox="none">
15984 \begin_layout Plain Layout
15991 <row topspace="default">
15992 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15995 \begin_layout Plain Layout
16001 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
16004 \begin_layout Plain Layout
16010 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
16013 \begin_layout Plain Layout
16032 \begin_layout Standard
16036 \begin_layout Plain Layout
16052 \begin_layout Standard
16056 \begin_layout Plain Layout
16062 arrayrulewidth}{0.4pt}
16070 \begin_layout Section
16071 Table Customization
16075 \begin_layout Plain Layout
16076 Table Customization
16085 \begin_layout Plain Layout
16086 Table ! Customization
16094 \begin_layout Subsection
16096 \begin_inset CommandInset label
16098 name "sub:Row-Spacing"
16106 \begin_layout Plain Layout
16107 Table Customization ! Row Spacing
16115 \begin_layout Standard
16116 You can add vertical space to table rows in the
16120 tab of the table dialog.
16121 You find there three possibilities:
16124 \begin_layout Description
16126 \begin_inset space ~
16130 \begin_inset space ~
16133 row will add space above the characters of the table row.
16134 If the table is a formal table
16138 \begin_layout Plain Layout
16139 Formal tables are explained in section
16140 \begin_inset space ~
16144 \begin_inset CommandInset ref
16146 reference "sec:Formal-Tables"
16155 LyX will insert as default 0.5
16156 \begin_inset space \thinspace{}
16160 For normal tables the inserted space will unfortunately destroy the vertical
16161 table lines as in the following table:
16162 \begin_inset VSpace medskip
16166 \begin_inset Newline newline
16170 \begin_inset space \hspace*{}
16175 \begin_inset space \hfill{}
16179 \begin_inset Tabular
16180 <lyxtabular version="3" rows="3" columns="1">
16182 <column alignment="center" valignment="top" width="0">
16184 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16187 \begin_layout Plain Layout
16194 <row topspace="3mm">
16195 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16198 \begin_layout Plain Layout
16200 \begin_inset space \thinspace{}
16203 mm space top of row
16210 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16213 \begin_layout Plain Layout
16225 \begin_inset space \hfill{}
16229 \begin_inset space \hspace*{}
16234 \begin_inset VSpace medskip
16238 \begin_inset Newline newline
16241 So inserting space to the top of row for normal tables is only useful when
16242 you don't have vertical lines.
16245 \begin_layout Description
16247 \begin_inset space ~
16251 \begin_inset space ~
16254 row will add space below the characters of the table row.
16255 If the table is a formal table LyX will insert as default 0.5
16256 \begin_inset space \thinspace{}
16259 em space, for normal tables the default size is 2
16260 \begin_inset space \thinspace{}
16266 \begin_layout Description
16268 \begin_inset space ~
16271 rows adds space between the current and the following row.
16272 If the table is a formal table LyX will insert as default 0.5
16273 \begin_inset space \thinspace{}
16277 For normal tables the inserted space will unfortunately destroy the vertical
16278 table lines as in the following table:
16279 \begin_inset VSpace medskip
16283 \begin_inset Newline newline
16287 \begin_inset space \hspace*{}
16292 \begin_inset space \hfill{}
16296 \begin_inset Tabular
16297 <lyxtabular version="3" rows="3" columns="1">
16299 <column alignment="center" valignment="top" width="0">
16301 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16304 \begin_layout Plain Layout
16311 <row interlinespace="3mm">
16312 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16315 \begin_layout Plain Layout
16316 \begin_inset Formula $\downarrow$
16320 \begin_inset space \thinspace{}
16323 mm space between row
16324 \begin_inset Formula $\downarrow$
16334 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16337 \begin_layout Plain Layout
16338 \begin_inset Formula $\uparrow$
16342 \begin_inset space \thinspace{}
16345 mm space between row
16346 \begin_inset Formula $\uparrow$
16360 \begin_inset space \hfill{}
16364 \begin_inset space \hspace*{}
16369 \begin_inset VSpace medskip
16373 \begin_inset Newline newline
16376 So inserting space between rows for normal tables is only useful when you
16377 don't have vertical lines.
16380 \begin_layout Standard
16381 \begin_inset VSpace bigskip
16384 When you want to add extra height to all cells of all tables, you can do
16385 this with the following preamble lines:
16388 \begin_layout Standard
16393 @ifundefined{extrarowheight}
16394 \begin_inset Newline newline
16401 \begin_layout Plain Layout
16412 usepackage{array}}{}
16413 \begin_inset Newline newline
16420 extrarowheight}{height}
16423 \begin_layout Standard
16424 But this has the disadvantage that the cell texts are no longer exactly
16425 vertically centered.
16430 will be loaded automatically by LyX when you use self defined table formats.
16431 To avoid that it is loaded twice the command
16437 is used in the above command.)
16440 \begin_layout Standard
16441 In case you are using font sizes larger than the normal size, the table
16442 borders are often too close to the letters.
16443 This can be corrected by inserting the command
16449 in TeX code at the beginning of a table row.
16451 \begin_inset space ~
16455 \begin_inset CommandInset ref
16457 reference "tab:Vertical-alignment-of"
16461 visualizes the effect.
16464 \begin_layout Standard
16466 \begin_inset Float table
16472 \begin_layout Plain Layout
16473 \begin_inset Caption
16475 \begin_layout Plain Layout
16476 \begin_inset CommandInset label
16478 name "tab:Vertical-alignment-of"
16482 Vertical alignment of text with large font sizes.
16490 \begin_layout Plain Layout
16491 \begin_inset space \hfill{}
16495 \begin_inset Float table
16500 \begin_layout Plain Layout
16501 \begin_inset Caption
16503 \begin_layout Plain Layout
16512 \begin_layout Plain Layout
16515 \begin_inset Tabular
16516 <lyxtabular version="3" rows="6" columns="1">
16518 <column alignment="left" valignment="top" width="0">
16520 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16523 \begin_layout Plain Layout
16531 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16534 \begin_layout Plain Layout
16544 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16547 \begin_layout Plain Layout
16557 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16560 \begin_layout Plain Layout
16570 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16573 \begin_layout Plain Layout
16583 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16586 \begin_layout Plain Layout
16605 \begin_inset space \hfill{}
16609 \begin_inset Float table
16614 \begin_layout Plain Layout
16615 \begin_inset Caption
16617 \begin_layout Plain Layout
16618 Table using the command
16632 \begin_layout Plain Layout
16635 \begin_inset Tabular
16636 <lyxtabular version="3" rows="6" columns="1">
16638 <column alignment="left" valignment="top" width="0">
16640 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16643 \begin_layout Plain Layout
16651 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16654 \begin_layout Plain Layout
16660 \begin_layout Plain Layout
16676 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16679 \begin_layout Plain Layout
16685 \begin_layout Plain Layout
16701 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16704 \begin_layout Plain Layout
16710 \begin_layout Plain Layout
16726 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16729 \begin_layout Plain Layout
16735 \begin_layout Plain Layout
16751 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16754 \begin_layout Plain Layout
16760 \begin_layout Plain Layout
16787 \begin_inset space \hfill{}
16798 \begin_layout Subsection
16799 Special Cell Alignment
16803 \begin_layout Plain Layout
16804 Table Customization ! Special Cell Alignment
16812 \begin_layout Standard
16813 Sometimes it looks better when the cell entries of a column are aligned
16814 with a special character, e.
16815 \begin_inset space \thinspace{}
16819 \begin_inset space \space{}
16822 with the decimal separator as in Table
16823 \begin_inset space ~
16827 \begin_inset CommandInset ref
16829 reference "tab:Table-cells-of"
16836 \begin_layout Standard
16837 \begin_inset Float table
16843 \begin_layout Plain Layout
16844 \begin_inset Caption
16846 \begin_layout Plain Layout
16847 \begin_inset CommandInset label
16849 name "tab:Table-cells-of"
16853 Table cells of a column aligned with the decimal separator.
16861 \begin_layout Plain Layout
16863 \begin_inset Tabular
16864 <lyxtabular version="3" rows="4" columns="2">
16866 <column alignment="right" valignment="top" width="0">
16867 <column alignment="left" valignment="top" width="0" special="@{}l">
16869 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16872 \begin_layout Plain Layout
16878 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16881 \begin_layout Plain Layout
16889 <cell alignment="center" valignment="top" usebox="none">
16892 \begin_layout Plain Layout
16898 <cell alignment="center" valignment="top" usebox="none">
16901 \begin_layout Plain Layout
16909 <cell alignment="center" valignment="top" usebox="none">
16912 \begin_layout Plain Layout
16918 <cell alignment="center" valignment="top" usebox="none">
16921 \begin_layout Plain Layout
16929 <cell alignment="center" valignment="top" usebox="none">
16932 \begin_layout Plain Layout
16938 <cell alignment="center" valignment="top" usebox="none">
16941 \begin_layout Plain Layout
16960 \begin_layout Standard
16961 This table was created with a 4×2 table.
16962 The heading is a centered multicolumn.
16963 The first column is right-aligned and contains the digits before the decimal
16964 point and the decimal point.
16965 The second column is left aligned and contains the digits after the decimal
16967 To omit the space that is normally between two table columns, use the following
16968 LaTeX-argument for the second column:
16971 \begin_layout Standard
16977 \begin_layout Standard
16979 \begin_inset space ~
16983 \begin_inset CommandInset ref
16985 reference "tab:Several-table-cell"
16989 shows some example alignments.
16990 For the alignment with the relation sign, you must add the second smallest
16991 math-space at the beginning of the last column to get the correct space
16992 surrounding the relation sign.
16995 \begin_layout Standard
16996 \begin_inset Float table
17001 \begin_layout Plain Layout
17002 \begin_inset Caption
17004 \begin_layout Plain Layout
17005 \begin_inset CommandInset label
17007 name "tab:Several-table-cell"
17011 Several table cell alignments.
17019 \begin_layout Plain Layout
17021 \begin_inset Tabular
17022 <lyxtabular version="3" rows="4" columns="6">
17024 <column alignment="right" valignment="top" width="0">
17025 <column alignment="left" valignment="top" width="0" special="@{}l">
17026 <column alignment="right" valignment="top" width="0">
17027 <column alignment="left" valignment="top" width="0" special="@{}l">
17028 <column alignment="right" valignment="top" width="0">
17029 <column alignment="left" valignment="top" width="0" special="@{}l">
17031 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17034 \begin_layout Plain Layout
17040 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17043 \begin_layout Plain Layout
17049 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17052 \begin_layout Plain Layout
17058 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17061 \begin_layout Plain Layout
17067 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
17070 \begin_layout Plain Layout
17076 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17079 \begin_layout Plain Layout
17087 <cell alignment="center" valignment="top" usebox="none">
17090 \begin_layout Plain Layout
17096 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17099 \begin_layout Plain Layout
17101 \begin_inset space \thinspace{}
17109 <cell alignment="center" valignment="top" usebox="none">
17112 \begin_layout Plain Layout
17113 \begin_inset Formula $10\cdot$
17121 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17124 \begin_layout Plain Layout
17125 \begin_inset Formula $10^{\mbox{-}17}$
17133 <cell alignment="center" valignment="top" usebox="none">
17136 \begin_layout Plain Layout
17137 \begin_inset Formula $\Gamma(t)\propto$
17145 <cell alignment="center" valignment="top" usebox="none">
17148 \begin_layout Plain Layout
17149 \begin_inset Formula $\:\Upsilon(t)$
17159 <cell alignment="center" valignment="top" usebox="none">
17162 \begin_layout Plain Layout
17168 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17171 \begin_layout Plain Layout
17173 \begin_inset space \thinspace{}
17181 <cell alignment="center" valignment="top" usebox="none">
17184 \begin_layout Plain Layout
17185 \begin_inset Formula $5.78\cdot$
17193 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17196 \begin_layout Plain Layout
17197 \begin_inset Formula $10^{7}$
17205 <cell alignment="center" valignment="top" usebox="none">
17208 \begin_layout Plain Layout
17209 \begin_inset Formula $A\ne$
17217 <cell alignment="center" valignment="top" usebox="none">
17220 \begin_layout Plain Layout
17221 \begin_inset Formula $\: B_{\mathrm{red}}$
17231 <cell alignment="center" valignment="top" usebox="none">
17234 \begin_layout Plain Layout
17240 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17243 \begin_layout Plain Layout
17245 \begin_inset space \thinspace{}
17253 <cell alignment="center" valignment="top" usebox="none">
17256 \begin_layout Plain Layout
17258 \begin_inset Formula $33.5\cdot$
17266 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17269 \begin_layout Plain Layout
17270 \begin_inset Formula $10^{4}$
17278 <cell alignment="center" valignment="top" usebox="none">
17281 \begin_layout Plain Layout
17282 \begin_inset Formula $\sin(\alpha)\ge$
17290 <cell alignment="center" valignment="top" usebox="none">
17293 \begin_layout Plain Layout
17294 \begin_inset Formula $\:\sin(\beta)$
17315 \begin_layout Standard
17316 \begin_inset VSpace bigskip
17319 There is also the LaTeX-package
17327 \begin_layout Plain Layout
17328 LaTeX-packages ! dcolumn
17333 that provides table cell alignments.
17334 But this unfortunately treats the cell entries as math and doesn't allow
17335 formulas in table cells: The first column of Table
17336 \begin_inset space ~
17340 \begin_inset CommandInset ref
17342 reference "tab:Several-table-cell"
17350 like the first column in Table
17351 \begin_inset space ~
17355 \begin_inset CommandInset ref
17357 reference "tab:Alignments-when"
17361 and only with some tricks like the expected.
17362 The alignment of the second and third column of Table
17363 \begin_inset space ~
17367 \begin_inset CommandInset ref
17369 reference "tab:Several-table-cell"
17373 is not possible with
17380 \begin_layout Standard
17381 \begin_inset Float table
17387 \begin_layout Plain Layout
17388 \begin_inset Caption
17390 \begin_layout Plain Layout
17391 \begin_inset CommandInset label
17393 name "tab:Alignments-when"
17397 Alignments when LaTeX-package dcolumn is used.
17398 For all column alignments tricks have to be used to get the output.
17406 \begin_layout Plain Layout
17408 \begin_inset Tabular
17409 <lyxtabular version="3" rows="4" columns="3">
17411 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{-1}">
17412 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{4.9}">
17413 <column alignment="center" valignment="top" width="0" special="D{~}{\,}{9.7}">
17415 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17418 \begin_layout Plain Layout
17424 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17427 \begin_layout Plain Layout
17433 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
17436 \begin_layout Plain Layout
17444 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17447 \begin_layout Plain Layout
17449 \begin_inset space \thinspace{}
17457 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17460 \begin_layout Plain Layout
17462 \begin_inset space \thinspace{}
17466 \begin_inset Formula $\mbox{bottles}$
17474 <cell alignment="center" valignment="top" usebox="none">
17477 \begin_layout Plain Layout
17482 \begin_layout Plain Layout
17492 \begin_inset Formula $\mbox{bottles}$
17502 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17505 \begin_layout Plain Layout
17507 \begin_inset space \thinspace{}
17515 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17518 \begin_layout Plain Layout
17520 \begin_inset space \thinspace{}
17524 \begin_inset Formula $\mbox{Pixels}$
17532 <cell alignment="center" valignment="top" usebox="none">
17535 \begin_layout Plain Layout
17540 \begin_layout Plain Layout
17550 \begin_inset Formula $\mbox{Pixels}$
17560 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17563 \begin_layout Plain Layout
17565 \begin_inset space \thinspace{}
17573 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17576 \begin_layout Plain Layout
17578 \begin_inset space \thinspace{}
17582 \begin_inset Formula $\mbox{cm}$
17590 <cell alignment="center" valignment="top" usebox="none">
17593 \begin_layout Plain Layout
17598 \begin_layout Plain Layout
17608 \begin_inset Formula $\mbox{cm}$
17629 \begin_layout Subsection
17630 Customized Cell/Column Format
17631 \begin_inset CommandInset label
17633 name "sub:Customized-Format"
17641 \begin_layout Plain Layout
17642 Table Customization ! Cell/Column Format
17650 \begin_layout Standard
17651 Calculating the needed width for spanned columns like in section
17652 \begin_inset space ~
17656 \begin_inset CommandInset ref
17658 reference "sub:Multicolumn-Calculations"
17662 is very annoying if you have several tables with multicolumn cells.
17663 To make life easier, you can define a cell/column format in the preamble,
17664 so that it can be used in all tables of the document.
17665 The format is defined with the command
17668 \begin_layout Standard
17673 newcolumntype{name of format}[number of arguments]{commands}
17676 \begin_layout Standard
17677 The format name may only consist of one letter.
17702 are predefined and cannot be used.
17703 But all letters are allowed as capitals.
17706 \begin_layout Standard
17707 \begin_inset VSpace medskip
17713 \begin_layout Standard
17714 For vertically and horizontally centered multicolumn cells with a fixed
17715 width you can define the cell format
17718 \begin_layout Standard
17723 newcolumntype{M}[1]{>{
17730 \begin_layout Standard
17737 avoids the problem of hyphenating the first word, as described in section
17738 \begin_inset space ~
17742 \begin_inset CommandInset ref
17744 reference "sub:Multiple-Lines-in"
17749 Now you can simply enter
17752 \begin_layout Standard
17758 \begin_layout Standard
17759 as LaTeX-argument in the table dialog to create a multicolumn.
17762 \begin_layout Standard
17763 \begin_inset VSpace bigskip
17769 \begin_layout Standard
17770 For cells spanned by a multicolumn cell, you can define the format
17773 \begin_layout Standard
17778 newcolumntype{S}[2]{>{
17783 \begin_inset Newline newline
17790 \begin_layout Plain Layout
17805 \begin_layout Plain Layout
17816 arrayrulewidth)*(1-#2))/#2}}
17819 \begin_layout Standard
17820 This format uses equation
17821 \begin_inset CommandInset ref
17827 to calculate the needed width so that each spanned cell has the same width.
17830 \begin_layout Standard
17834 \begin_layout Standard
17837 S{width of multicolumn cell}{number of spanned columns}
17840 \begin_layout Standard
17841 as LaTeX-argument of the column.
17844 \begin_layout Standard
17845 \begin_inset VSpace bigskip
17851 \begin_layout Standard
17852 For colored columns, you can define
17855 \begin_layout Standard
17860 newcolumntype{K}[1]{>{
17867 \begin_layout Standard
17869 \begin_inset Quotes eld
17873 \begin_inset Quotes erd
17876 at the end creates a column with a flexible width whose text is horizontally
17881 \begin_layout Standard
17887 \begin_layout Standard
17891 \begin_layout Standard
17892 \begin_inset VSpace bigskip
17898 \begin_layout Standard
17900 \begin_inset space ~
17904 \begin_inset CommandInset ref
17906 reference "tab:Table-using-user-defined"
17910 use the LaTeX-arguments
17913 \begin_layout Standard
17919 \begin_layout Standard
17920 for the first column and the multicolumn,
17923 \begin_layout Standard
17929 \begin_layout Standard
17930 for the the last column, and
17933 \begin_layout Standard
17939 \begin_layout Standard
17940 for the cells in the second column.
17943 \begin_layout Standard
17944 \begin_inset Float table
17950 \begin_layout Plain Layout
17951 \begin_inset Caption
17953 \begin_layout Plain Layout
17954 \begin_inset CommandInset label
17956 name "tab:Table-using-user-defined"
17960 Table using user-defined table formats
17968 \begin_layout Plain Layout
17970 \begin_inset Tabular
17971 <lyxtabular version="3" rows="3" columns="4">
17973 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
17974 <column alignment="center" valignment="middle" width="0" special="S{2.5cm}{2}">
17975 <column alignment="center" valignment="middle" width="0">
17976 <column alignment="center" valignment="middle" width="0" special="K{red}">
17978 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17981 \begin_layout Plain Layout
17982 verylongtablecellword
17987 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
17990 \begin_layout Plain Layout
17991 multiple lines multicolumn
17996 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17999 \begin_layout Plain Layout
18005 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18008 \begin_layout Plain Layout
18016 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18019 \begin_layout Plain Layout
18025 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18028 \begin_layout Plain Layout
18034 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18037 \begin_layout Plain Layout
18043 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18046 \begin_layout Plain Layout
18054 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18057 \begin_layout Plain Layout
18063 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18066 \begin_layout Plain Layout
18072 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18075 \begin_layout Plain Layout
18081 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18084 \begin_layout Plain Layout
18103 \begin_layout Subsection
18105 \begin_inset CommandInset label
18107 name "sub:Line-Thickness"
18115 \begin_layout Plain Layout
18116 Table Customization ! Line Thickness
18124 \begin_layout Standard
18125 The line thickness for all lines in a table can be adjusted with the length
18133 To set for example a line thickness of 1.5
18134 \begin_inset space \thinspace{}
18138 \begin_inset space ~
18142 \begin_inset CommandInset ref
18144 reference "tab:Table-with-1.5"
18148 , insert the command
18151 \begin_layout Standard
18158 arrayrulewidth}{1.5pt}
18161 \begin_layout Standard
18162 in TeX-Code before the table or table float.
18163 The changed thickness is valid for all following tables.
18164 To use the default value again, set
18171 \begin_inset space \thinspace{}
18174 pt in TeX-Code behind the table or table float.
18177 \begin_layout Standard
18181 \begin_layout Plain Layout
18187 arrayrulewidth}{1.5pt}
18193 \begin_inset Float table
18198 \begin_layout Plain Layout
18199 \begin_inset Caption
18201 \begin_layout Plain Layout
18202 \begin_inset CommandInset label
18204 name "tab:Table-with-1.5"
18209 \begin_inset space \thinspace{}
18220 \begin_layout Plain Layout
18222 \begin_inset Tabular
18223 <lyxtabular version="3" rows="3" columns="3">
18225 <column alignment="center" valignment="top" width="0">
18226 <column alignment="center" valignment="top" width="0">
18227 <column alignment="center" valignment="top" width="0">
18229 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18232 \begin_layout Plain Layout
18238 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18241 \begin_layout Plain Layout
18247 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18250 \begin_layout Plain Layout
18258 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18261 \begin_layout Plain Layout
18267 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18270 \begin_layout Plain Layout
18276 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18279 \begin_layout Plain Layout
18287 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18290 \begin_layout Plain Layout
18296 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18299 \begin_layout Plain Layout
18305 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18308 \begin_layout Plain Layout
18328 \begin_layout Plain Layout
18334 arrayrulewidth}{0.4pt}
18342 \begin_layout Standard
18343 \begin_inset VSpace bigskip
18346 To set the line thickness to 1.5
18347 \begin_inset space \thinspace{}
18350 pt only for horizontal lines, like in Table
18351 \begin_inset space ~
18355 \begin_inset CommandInset ref
18357 reference "tab:Table-with-horizontal"
18361 , insert these commands in TeX-Code before the table or table float:
18364 \begin_layout Standard
18374 \begin_inset Newline newline
18382 \begin_inset Newline newline
18391 arrayrulewidth 1.5pt}
18392 \begin_inset Newline newline
18403 arrayrulewidth 0.4pt}}
18406 \begin_layout Standard
18407 To return to the default line thickness, insert this command in TeX-Code
18408 behind the table or table float:
18411 \begin_layout Standard
18423 \begin_layout Standard
18427 \begin_layout Plain Layout
18438 \begin_layout Plain Layout
18447 \begin_layout Plain Layout
18455 arrayrulewidth 1.5pt}
18458 \begin_layout Plain Layout
18468 arrayrulewidth 0.4pt}}
18474 \begin_inset Float table
18479 \begin_layout Plain Layout
18480 \begin_inset Caption
18482 \begin_layout Plain Layout
18483 \begin_inset CommandInset label
18485 name "tab:Table-with-horizontal"
18490 \begin_inset space \thinspace{}
18493 pt thick horizontal lines
18501 \begin_layout Plain Layout
18503 \begin_inset Tabular
18504 <lyxtabular version="3" rows="3" columns="3">
18506 <column alignment="center" valignment="top" width="0">
18507 <column alignment="center" valignment="top" width="0">
18508 <column alignment="center" valignment="top" width="0">
18510 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18513 \begin_layout Plain Layout
18519 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18522 \begin_layout Plain Layout
18528 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18531 \begin_layout Plain Layout
18539 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18542 \begin_layout Plain Layout
18548 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18551 \begin_layout Plain Layout
18557 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18560 \begin_layout Plain Layout
18568 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18571 \begin_layout Plain Layout
18577 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18580 \begin_layout Plain Layout
18586 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18589 \begin_layout Plain Layout
18609 \begin_layout Plain Layout
18625 \begin_layout Standard
18626 \begin_inset VSpace bigskip
18629 To set the line thickness to 1.5
18630 \begin_inset space \thinspace{}
18633 pt only for vertical lines, create the following column format in the document
18634 preamble, according to the description in section
18635 \begin_inset space ~
18639 \begin_inset CommandInset ref
18641 reference "sub:Customized-Format"
18648 \begin_layout Standard
18653 newcolumntype{V}{!{
18655 vrule width 1.5pt}}
18658 \begin_layout Standard
18660 \begin_inset space ~
18664 \begin_inset CommandInset ref
18666 reference "tab:Table-with-vertical"
18673 \begin_layout Standard
18679 \begin_layout Standard
18680 was used for the last column and
18683 \begin_layout Standard
18689 \begin_layout Standard
18690 for the other columns.
18693 \begin_layout Standard
18694 \begin_inset Float table
18699 \begin_layout Plain Layout
18700 \begin_inset Caption
18702 \begin_layout Plain Layout
18703 \begin_inset CommandInset label
18705 name "tab:Table-with-vertical"
18710 \begin_inset space \thinspace{}
18713 pt thick vertical lines
18721 \begin_layout Plain Layout
18723 \begin_inset Tabular
18724 <lyxtabular version="3" rows="3" columns="3">
18726 <column alignment="center" valignment="top" width="0" special="Vc">
18727 <column alignment="center" valignment="top" width="0" special="Vc">
18728 <column alignment="center" valignment="top" width="0" special="VcV">
18730 <cell alignment="center" valignment="top" topline="true" usebox="none">
18733 \begin_layout Plain Layout
18739 <cell alignment="center" valignment="top" topline="true" usebox="none">
18742 \begin_layout Plain Layout
18748 <cell alignment="center" valignment="top" topline="true" usebox="none">
18751 \begin_layout Plain Layout
18759 <cell alignment="center" valignment="top" topline="true" usebox="none">
18762 \begin_layout Plain Layout
18768 <cell alignment="center" valignment="top" topline="true" usebox="none">
18771 \begin_layout Plain Layout
18777 <cell alignment="center" valignment="top" topline="true" usebox="none">
18780 \begin_layout Plain Layout
18788 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18791 \begin_layout Plain Layout
18797 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18800 \begin_layout Plain Layout
18806 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18809 \begin_layout Plain Layout
18828 \begin_layout Subsection
18833 \begin_layout Plain Layout
18834 Table Customization ! Dashed Lines
18842 \begin_layout Standard
18846 \begin_layout Plain Layout
18856 \begin_inset Note Note
18859 \begin_layout Plain Layout
18860 The following section will only be displayed when the LaTeX-package
18872 \begin_layout Standard
18873 \begin_inset Float table
18879 \begin_layout Plain Layout
18880 \begin_inset Caption
18882 \begin_layout Plain Layout
18883 \begin_inset CommandInset label
18885 name "tab:Table-with-dashed"
18889 Table with dashed lines
18897 \begin_layout Plain Layout
18899 \begin_inset Tabular
18900 <lyxtabular version="3" rows="5" columns="5">
18902 <column alignment="center" valignment="top" width="0">
18903 <column alignment="center" valignment="top" width="0">
18904 <column alignment="center" valignment="top" width="0" special=":c">
18905 <column alignment="center" valignment="top" width="0">
18906 <column alignment="center" valignment="top" width="0">
18908 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18911 \begin_layout Plain Layout
18917 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18920 \begin_layout Plain Layout
18926 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18929 \begin_layout Plain Layout
18935 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18938 \begin_layout Plain Layout
18944 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18947 \begin_layout Plain Layout
18955 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18958 \begin_layout Plain Layout
18964 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18967 \begin_layout Plain Layout
18973 <cell alignment="center" valignment="top" topline="true" usebox="none">
18976 \begin_layout Plain Layout
18982 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18985 \begin_layout Plain Layout
18991 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18994 \begin_layout Plain Layout
19002 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19005 \begin_layout Plain Layout
19009 \begin_layout Plain Layout
19023 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19026 \begin_layout Plain Layout
19032 <cell alignment="center" valignment="top" usebox="none">
19035 \begin_layout Plain Layout
19041 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19044 \begin_layout Plain Layout
19050 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
19053 \begin_layout Plain Layout
19061 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19064 \begin_layout Plain Layout
19068 \begin_layout Plain Layout
19082 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19085 \begin_layout Plain Layout
19091 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
19094 \begin_layout Plain Layout
19100 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none" special="c:">
19103 \begin_layout Plain Layout
19109 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19112 \begin_layout Plain Layout
19120 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19123 \begin_layout Plain Layout
19129 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19132 \begin_layout Plain Layout
19138 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19141 \begin_layout Plain Layout
19147 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19150 \begin_layout Plain Layout
19156 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19159 \begin_layout Plain Layout
19178 \begin_layout Standard
19179 LyX doesn't natively support dashed lines, so you have to use TeX-Code.
19180 As prerequisite the LaTeX-package
19188 \begin_layout Plain Layout
19189 LaTeX-packages ! arydshln
19194 must be loaded in the document preamble with the command
19197 \begin_layout Standard
19202 usepackage{arydshln}
19205 \begin_layout Standard
19206 To make a vertical line dashed, enter the colon
19207 \begin_inset Quotes eld
19211 \begin_inset Quotes erd
19214 together with the character for the horizontal alignment as LaTeX-argument
19215 in the table cell dialog.
19218 \begin_layout Standard
19219 For a horizontal dashed line add the command
19222 \begin_layout Standard
19230 \begin_layout Standard
19231 in TeX-Code as first element of the first cell in the table row.
19234 \begin_layout Standard
19235 For dashed multicolumn lines use the command
19238 \begin_layout Standard
19243 cdashline{line number
19248 \begin_layout Standard
19249 in TeX-Code as first element of the first cell in the table row.
19250 If you have for example a multicolumn spanning over columns 2 to 4 and
19251 you want to have a dashed line above, add the command
19254 \begin_layout Standard
19262 \begin_layout Standard
19263 as first element of the first cell in the row of the multicolumn.
19266 \begin_layout Standard
19267 \begin_inset VSpace bigskip
19273 \begin_layout Standard
19275 \begin_inset space ~
19279 \begin_inset CommandInset ref
19281 reference "tab:Table-with-dashed"
19286 \begin_inset Quotes eld
19294 \begin_inset Quotes erd
19297 as LaTeX-argument of the third column.
19298 The TeX-Code command
19304 was inserted to the first cell of the third row and the the TeX-Code command
19305 \begin_inset Newline newline
19314 was inserted to the first cell of the fourth row.
19317 \begin_layout Standard
19318 \begin_inset Note Greyedout
19321 \begin_layout Plain Layout
19326 The used LaTeX-package
19330 is apparently not compatible with the LaTeX-package
19338 \begin_layout Plain Layout
19339 LaTeX-packages ! colortbl
19344 that is used for colored tables in section
19345 \begin_inset space ~
19349 \begin_inset CommandInset ref
19351 reference "sec:Colored-Tables"
19356 That means colored tables cannot have dashed lines.
19364 \begin_layout Standard
19368 \begin_layout Plain Layout
19378 \begin_inset Note Note
19381 \begin_layout Plain Layout
19382 The following will be displayed when the LaTeX-package
19394 \begin_layout Standard
19395 You need to install the package
19399 to see the content of this section in the output.
19402 \begin_layout Standard
19406 \begin_layout Plain Layout
19418 \begin_layout Chapter
19423 \begin_layout Plain Layout
19432 \begin_layout Section
19434 \begin_inset CommandInset label
19436 name "sec:FloatIntroduction"
19444 \begin_layout Plain Layout
19445 Floats ! Introduction
19453 \begin_layout Standard
19454 A float is a block of text associated with some sort of label, which doesn't
19455 have a fixed location.
19457 \begin_inset Quotes eld
19461 \begin_inset Quotes erd
19464 forward or backward a page or two, to wherever it fits best.
19472 \begin_inset space ~
19477 are also floats, because they can float to the next page when there are
19478 too many notes at the page.
19481 \begin_layout Standard
19482 Floats allow a high quality layout.
19483 Images and tables can evenly be spread to the pages to avoid white space
19484 and pages without text.
19485 As the floating often destroys the context between the text and the image/table
19486 , every float can be referenced in the text.
19487 Floats are therefore numbered.
19488 Referencing is described in section
19489 \begin_inset space ~
19493 \begin_inset CommandInset ref
19495 reference "sec:Referencing-Floats"
19502 \begin_layout Standard
19503 To insert a float, use the menu
19505 Insert\SpecialChar \menuseparator
19513 inset, a box with a label.
19514 The label will automatically be translated to the document language in
19516 Behind the label you can insert the caption text.
19517 The image or table is inserted above or below the caption in a separate
19518 paragraph within the float.
19519 More about the caption placement is described in section
19520 \begin_inset space ~
19524 \begin_inset CommandInset ref
19526 reference "sec:Caption-Placement"
19531 To keep your LyX-document readable, you can open and close the float box
19532 by left-clicking on the box label.
19533 A closed float box looks like this:
19534 \begin_inset Graphics
19535 filename clipart/floatQt4.png
19537 scaleBeforeRotation
19541 -- a gray button with a red label.
19544 \begin_layout Standard
19545 It is recommended to insert floats as a separate paragraph to avoid possible
19546 LaTeX-errors that can occur when the surrounding text is specially formatted.
19549 \begin_layout Standard
19550 Existing figures or tables can be put into a float by marking them and then
19551 pressing the corresponding toolbar button for a new float.
19554 \begin_layout Section
19558 \begin_layout Standard
19559 Besides figure and table floats that are described in section
19560 \begin_inset space ~
19564 \begin_inset CommandInset ref
19566 reference "sec:Figure-Floats"
19571 \begin_inset CommandInset ref
19573 reference "sec:Table-Floats"
19577 , respectively, LyX offers the float types
19588 \begin_layout Subsection
19593 \begin_layout Plain Layout
19594 Floats ! Algorithms
19602 \begin_layout Standard
19603 \begin_inset Float algorithm
19609 \begin_layout Plain Layout
19610 \begin_inset Caption
19612 \begin_layout Plain Layout
19613 \begin_inset CommandInset label
19615 name "alg:Example-Algorithm-float"
19619 Example Algorithm float
19627 \begin_layout LyX-Code
19629 \begin_inset Newline newline
19632 Sum:= Sum + A(I); /*comment*/
19633 \begin_inset Newline newline
19637 \begin_inset VSpace -4mm
19648 \begin_layout Standard
19649 This float type is inserted with the menu
19651 Insert\SpecialChar \menuseparator
19652 Floats\SpecialChar \menuseparator
19656 It is used for program codes and descriptions of algorithms.
19657 A possible environment for algorithms is the
19661 , described in LyX's
19667 \begin_inset space ~
19671 \begin_inset CommandInset ref
19673 reference "alg:Example-Algorithm-float"
19677 is an example of an algorithm float where -4
19678 \begin_inset space \thinspace{}
19681 mm vertical space was added at the end of the float to have the bottom rule
19682 exactly below the last text line.
19685 \begin_layout Standard
19686 The float label is not automatically translated into the document language.
19687 If your document is not in English, you have to do this manually by adding
19688 the following line to the document preamble
19693 \begin_layout Standard
19698 floatname{algorithm}{your
19699 \begin_inset space ~
19705 \begin_layout Standard
19709 \begin_inset space ~
19715 \begin_inset Quotes eld
19723 \begin_inset Quotes erd
19729 \begin_layout Standard
19730 To insert the list of algorithms you can not use the menu
19732 Insert\SpecialChar \menuseparator
19734 \begin_inset space \thinspace{}
19738 \begin_inset space \thinspace{}
19741 TOC\SpecialChar \menuseparator
19744 when your document is a non-English one.
19745 In this case use this command in TeX-Code instead:
19748 \begin_layout Standard
19753 listof{algorithm}{your
19754 \begin_inset space ~
19760 \begin_layout Standard
19764 \begin_inset space ~
19770 \begin_inset Quotes eld
19778 \begin_inset Quotes erd
19784 \begin_layout Standard
19785 Algorithm floats are not by default numbered in the scheme
19786 \begin_inset Quotes eld
19790 \begin_inset Quotes erd
19793 like it is the case for table and figure floats in many document-classes.
19794 To number algorithm floats in the same scheme, add this command to your
19798 \begin_layout Standard
19803 numberwithin{algorithm}{chapter}
19806 \begin_layout Standard
19807 To be able to use the command
19816 \begin_inset space ~
19821 in the document settings the option
19824 \begin_inset space ~
19828 \begin_inset space ~
19832 \begin_inset space ~
19840 \begin_layout Subsection
19845 \begin_layout Plain Layout
19846 Floats ! Wrap Floats
19854 \begin_layout Standard
19855 \begin_inset Wrap figure
19862 \begin_layout Plain Layout
19863 \begin_inset Graphics
19864 filename clipart/mobius.eps
19866 scaleBeforeRotation
19867 rotateOrigin center
19874 \begin_layout Plain Layout
19875 \begin_inset Caption
19877 \begin_layout Plain Layout
19878 \begin_inset CommandInset label
19880 name "fig:This-is-a"
19884 This is a figure wrap float.
19894 This float type is used if you want to wrap text around a figure or table
19895 so that it only occupies some fraction of the column width.
19896 It can be inserted using the menu
19898 Insert\SpecialChar \menuseparator
19899 Floats\SpecialChar \menuseparator
19901 \begin_inset space ~
19905 \begin_inset space ~
19913 \begin_inset space ~
19917 \begin_inset space ~
19922 if the LaTeX-package
19930 \begin_layout Plain Layout
19931 LaTeX-packages ! wrapfig
19935 \begin_layout Plain Layout
19953 \begin_layout Plain Layout
19954 Installing a LaTeX-package is explained it in the
19957 \begin_inset space ~
19967 The settings of the float can be modified by right-clicking on the float
19969 The mandatory settings are the float
19982 that specifies how much the float is set into the paragraph
19983 \begin_inset space \thinspace{}
19987 \begin_inset space \thinspace{}
19990 page margin, and the
19993 \begin_inset space ~
19998 that specifies how many text lines the float will approximately need.
19999 The line span is often hard to be approximated, so better only use it when
20000 you encounter float placement problems.
20001 You can furthermore decide if LaTeX is allowed to let the float float within
20002 the paragraph or to surrounding paragraphs.
20004 \begin_inset space ~
20008 \begin_inset CommandInset ref
20010 reference "fig:This-is-a"
20014 is an example text wrap float with a width of 40
20015 \begin_inset space \thinspace{}
20019 \begin_inset space \thinspace{}
20022 cm overhang, set to the left.
20026 \begin_layout Plain Layout
20027 Available units are explained in appendix
20028 \begin_inset space ~
20032 \begin_inset CommandInset ref
20034 reference "cha:Units-available-in"
20046 \begin_layout Standard
20047 \begin_inset Note Greyedout
20050 \begin_layout Plain Layout
20056 \begin_inset space ~
20059 wrap float floats are fragile! E.
20060 \begin_inset space \thinspace{}
20064 \begin_inset space \space{}
20067 having a figure too close to the bottom of the page can mess things up in
20068 the way that the float doesn't appear in the output or that it is placed
20069 over some other text.
20077 \begin_layout Standard
20081 \begin_layout Itemize
20082 Wrap floats should not be placed in paragraphs that run over a page break.
20083 That means that wrap floats should better be inserted to the exact place
20084 when the document is nearly finished and you are able to estimate where
20085 page breaks will appear.
20088 \begin_layout Itemize
20089 Wrap floats should either be placed in an own paragraph before the paragraph
20090 where they should wrap into or within a paragraph.
20093 \begin_layout Itemize
20094 Wrap floats in consecutive paragraphs may cause troubles, so assure that
20095 there is a text paragraph between them as separator.
20098 \begin_layout Itemize
20099 Wrap floats are not allowed in section headings or tables.
20102 \begin_layout Section
20107 \begin_layout Plain Layout
20116 \begin_layout Standard
20117 Floats are usually numbered either independent from the sections the floats
20118 are in, or in the scheme
20119 \begin_inset Quotes eld
20123 \begin_inset Quotes erd
20127 \begin_inset Quotes eld
20131 \begin_inset Quotes erd
20135 This depends on the used document class.
20138 \begin_layout Standard
20139 To change the section independent numbering, you can use this command in
20140 the document preamble:
20143 \begin_layout Standard
20155 \begin_layout Standard
20162 is the command that prints the table number, for figure floats, the command
20176 prints in the command above the table number as small roman number.
20179 \begin_layout Standard
20180 To change the numbering scheme for example to
20181 \begin_inset Quotes eld
20185 \begin_inset Quotes erd
20188 , use this command in the preamble:
20191 \begin_layout Standard
20196 numberwithin{table}{subsection}
20199 \begin_layout Standard
20200 To be able to use the command
20209 \begin_inset space ~
20214 in the document settings the option
20217 \begin_inset space ~
20221 \begin_inset space ~
20225 \begin_inset space ~
20233 \begin_layout Standard
20234 Please also have a look at section
20235 \begin_inset space ~
20239 \begin_inset CommandInset ref
20241 reference "sub:Footnote-Numbering"
20245 for the details and important notes about the numbering commands.
20248 \begin_layout Section
20250 \begin_inset CommandInset label
20252 name "sec:Referencing-Floats"
20260 \begin_layout Plain Layout
20261 Floats ! References
20270 \begin_layout Plain Layout
20271 References ! to Floats
20279 \begin_layout Standard
20280 To reference a float, insert a label into its caption using the menu
20282 Insert\SpecialChar \menuseparator
20285 or the toolbar button
20286 \begin_inset Graphics
20287 filename ../images/label-insert.png
20289 scaleBeforeRotation
20294 A grey label box like this one:
20295 \begin_inset Graphics
20296 filename clipart/labelQt4.png
20298 scaleBeforeRotation
20302 will be inserted and the label window pops up asking for the label text.
20303 LyX offers as text the first words of the caption with a prefix.
20304 The prefix depends on the float type, e.
20305 \begin_inset space \thinspace{}
20309 \begin_inset space \space{}
20312 for figure floats the prefix will be "
20319 \begin_layout Standard
20320 The label is used as anchor and name for the reference.
20321 You can refer to the label using the menu
20323 Insert\SpecialChar \menuseparator
20326 or the toolbar button
20327 \begin_inset Graphics
20328 filename ../images/dialog-show-new-inset_ref.png
20330 scaleBeforeRotation
20335 A grey cross-reference box like this one:
20336 \begin_inset Graphics
20337 filename clipart/referenceQt4.png
20339 scaleBeforeRotation
20343 will be inserted and the cross-reference window appear showing all labels
20345 If you have multiple LyX-documents opened, choose the one you are working
20346 on from the drop-list at the top of the dialog.
20347 You can now sort the labels alphabetically and then choose one.
20348 At the position of the cross-reference box the float number will appear
20352 \begin_layout Standard
20353 It is recommended to use a protected space between the cross-reference name
20354 and its number to avoid line breaks between them.
20355 If a cross-reference refers to a non-existing label, you will see two question
20356 marks in the output instead of the reference.
20359 \begin_layout Standard
20360 You can change labels at any time by clicking on the label box.
20361 References to the changed label will automatically change its link to the
20362 new label text, so that you don't need to take care about this.
20365 \begin_layout Standard
20369 \begin_inset space ~
20373 \begin_inset space ~
20378 in the cross-reference window sets the cursor before the referred label.
20379 The button text changes then to Go
20380 \begin_inset space ~
20383 Back and you can use it to set the cursor back to the cross-reference.
20384 Right-clicking on a cross-reference box also sets the cursor before the
20385 referenced label but without a possibility to go back.
20388 \begin_layout Subsection
20389 Cross-Reference Formats
20390 \begin_inset CommandInset label
20392 name "sub:Cross-Reference-Formats"
20400 \begin_layout Plain Layout
20401 References ! Formats
20409 \begin_layout Standard
20410 There are six varieties of cross-references:
20413 \begin_layout Description
20414 <reference>: prints the float number, this is the default:
20415 \begin_inset CommandInset ref
20417 reference "fig:Two-distorted-images"
20424 \begin_layout Description
20425 (<reference>): prints the float number within two parentheses, this is the
20426 style normally used to reference formulas, especially when the reference
20428 \begin_inset Quotes eld
20432 \begin_inset Quotes erd
20436 \begin_inset CommandInset ref
20445 \begin_layout Description
20446 <page>: prints the page number: Page
20447 \begin_inset space ~
20451 \begin_inset CommandInset ref
20452 LatexCommand pageref
20453 reference "fig:Two-distorted-images"
20460 \begin_layout Description
20462 \begin_inset space ~
20466 \begin_inset space ~
20469 <page>: prints the text "on page" and the page number:
20470 \begin_inset CommandInset ref
20471 LatexCommand vpageref
20472 reference "fig:Two-distorted-images"
20479 \begin_layout Description
20481 \begin_inset space ~
20485 \begin_inset space ~
20489 \begin_inset space ~
20492 <page>: prints the float number, the text "on page", and the page number:
20494 \begin_inset CommandInset ref
20496 reference "fig:Two-distorted-images"
20503 \begin_layout Description
20505 \begin_inset space ~
20508 reference: prints a self defined cross-reference format.
20510 \begin_inset Note Greyedout
20513 \begin_layout Plain Layout
20518 This feature is only available when you have the LaTeX-package
20530 \begin_layout Standard
20531 Note that the style <page> won't print the page number if the label is on
20532 the previous, the same, or the next page.
20534 \begin_inset space \thinspace{}
20538 \begin_inset space \space{}
20542 \begin_inset Quotes eld
20550 \begin_inset Quotes erd
20556 \begin_layout Standard
20557 The number and current page of the referred document part in the output,
20558 is automatically calculated by LaTeX.
20559 The varieties are adjusted in the field
20563 of the cross-reference window, that appear when you click on the cross-referenc
20567 \begin_layout Subsection
20568 Automatic Reference Naming
20572 \begin_layout Plain Layout
20573 References ! Automatic Reference Naming
20581 \begin_layout Standard
20590 \begin_layout Plain Layout
20591 LaTeX-packages ! hyperref
20596 , that is enabled in the
20604 dialog, provides a very useful feature that cross-references automatically
20605 include the name of the referenced floats (or text parts like
20610 So you will save to write e.
20611 \begin_inset space \thinspace{}
20615 \begin_inset space \space{}
20619 \begin_inset Quotes eld
20623 \begin_inset Quotes erd
20626 before every reference to a figure.
20627 To use this feature, enable
20631 and insert this line to the LaTeX preamble:
20634 \begin_layout Standard
20650 \begin_layout Standard
20651 When you prefer other reference names than the default ones, for example
20652 you want instead of
20653 \begin_inset Quotes eld
20657 \begin_inset Quotes erd
20661 \begin_inset Quotes eld
20665 \begin_inset space \thinspace{}
20669 \begin_inset Quotes eld
20672 , you can redefine the name by inserting this to the preamble:
20675 \begin_layout Standard
20686 sectionautorefname}
20687 \begin_inset Newline newline
20694 \begin_layout Plain Layout
20708 \begin_layout Standard
20709 When you are using another document language than English, replace
20710 \begin_inset Newline newline
20725 , where *** is the name of the used language.
20728 \begin_layout Standard
20729 To get automatic names, but not for certain reference types, for example
20730 not for equations, use this preamble code:
20733 \begin_layout Standard
20741 \begin_inset Newline newline
20751 \begin_inset Newline newline
20762 equationautorefname}
20763 \begin_inset Newline newline
20770 \begin_layout Plain Layout
20786 \begin_layout Standard
20787 More about this topic can be found in
20792 \begin_inset CommandInset citation
20801 \begin_layout Standard
20802 \begin_inset Note Greyedout
20805 \begin_layout Plain Layout
20810 Automatic reference naming cannot be used when you use cross-references
20814 \begin_inset space ~
20819 style, as described in section
20820 \begin_inset space ~
20824 \begin_inset CommandInset ref
20826 reference "sub:Cross-Reference-Formats"
20838 \begin_layout Standard
20843 manual is an example where automatic reference naming is used.
20846 \begin_layout Subsection
20848 \begin_inset CommandInset label
20850 name "sub:Reference-Position"
20858 \begin_layout Plain Layout
20859 References ! Reference Position
20867 \begin_layout Standard
20876 \begin_layout Plain Layout
20877 LaTeX-packages ! hyperref
20890 dialog to link cross-references in the output, you will see that clicking
20891 on an image float reference jumps to the image label.
20892 The caption will be the first text part on the screen, so that you cannot
20893 see the image without scrolling.
20894 This is because the reference link anchor is placed at the position of
20896 With the use of the package
20904 \begin_layout Plain Layout
20905 LaTeX-packages ! hypcap
20910 , which is part of the LaTeX-package
20918 \begin_layout Plain Layout
20919 LaTeX-packages ! oberdiek
20924 , the link anchor is placed at the beginning of a float.
20925 To use this feature for figure floats, load
20929 in the document preamble with the line
20932 \begin_layout Standard
20937 usepackage[figure]{hypcap}
20940 \begin_layout Standard
20945 for all float types but this is not recommended for stability reasons.
20946 For more informations, have a look at
20951 \begin_inset CommandInset citation
20960 \begin_layout Standard
20961 \begin_inset Note Greyedout
20964 \begin_layout Plain Layout
20973 has no effect for references to subfigures.
20981 \begin_layout Section
20983 \begin_inset CommandInset label
20985 name "sec:Float-Placement"
20993 \begin_layout Plain Layout
21002 \begin_layout Standard
21003 Right-clicking on a float-box opens a dialog where you can alter the placement
21004 options that LaTeX uses for positioning the float.
21005 \begin_inset Newline newline
21011 \begin_inset space ~
21016 is only useful for two-column documents: If you select it, the float will
21017 span across both columns on the page instead of being confined to just
21019 \begin_inset Newline newline
21025 \begin_inset space ~
21030 is used to rotate floats, see section
21031 \begin_inset CommandInset ref
21033 reference "sec:Rotated-Floats"
21040 \begin_layout Standard
21041 You can use one ore more of the following options in the float dialog to
21042 set the placement for a particular float when you uncheck the option
21045 \begin_inset space ~
21049 \begin_inset space ~
21057 \begin_layout Description
21059 \begin_inset space ~
21063 \begin_inset space ~
21066 possible try to place the float on the position where it is inserted
21069 \begin_layout Description
21071 \begin_inset space ~
21075 \begin_inset space ~
21078 page try to place the float on the top of the current page
21081 \begin_layout Description
21083 \begin_inset space ~
21087 \begin_inset space ~
21090 page try to place the float on the bottom of the current page
21093 \begin_layout Description
21095 \begin_inset space ~
21099 \begin_inset space ~
21102 floats try to place the float on an own page
21105 \begin_layout Standard
21106 The order of the above option is
21111 That means, if you use the default placement, LaTeX will first try out
21115 \begin_inset space ~
21119 \begin_inset space ~
21127 \begin_inset space ~
21131 \begin_inset space ~
21136 , and then the others.
21137 If you don't use the default, LaTeX will try only the checked options but
21139 If none of the 4 placements are possible the procedure is internally repeated
21140 but it is tried to put the float on the following page.
21143 \begin_layout Standard
21144 By default, each option has its own rules:
21147 \begin_layout Labeling
21148 \labelwidthstring 00.00.0000
21152 \begin_inset space ~
21156 \begin_inset space ~
21161 only floats occupying less than 70
21162 \begin_inset space \thinspace{}
21165 % of the page can be placed at the top of a page (
21174 \begin_layout Labeling
21175 \labelwidthstring 00.00.0000
21179 \begin_inset space ~
21183 \begin_inset space ~
21188 : only floats occupying less than 30
21189 \begin_inset space \thinspace{}
21192 % of the page can be placed at the bottom of a page.
21202 \begin_layout Labeling
21203 \labelwidthstring 00.00.0000
21207 \begin_inset space ~
21211 \begin_inset space ~
21216 : only if more than 50
21217 \begin_inset space \thinspace{}
21220 % of the page are occupied by floats, several floats can be set together
21231 \begin_layout Standard
21232 If you don't like these rules, you can ignore them by using the additional
21236 \begin_inset space ~
21240 \begin_inset space ~
21246 \begin_inset Newline newline
21249 You can also redefine the rules with LaTeX-commands that are given in parenthese
21250 s behind the rules description above.
21251 To increase for example the often too small default of the bottom-rule
21253 \begin_inset space \thinspace{}
21256 % of the page, add this line to your document preamble:
21259 \begin_layout Standard
21266 bottomfraction}{0.5}
21269 \begin_layout Standard
21270 Sometimes you might need, under all circumstances, a float to be placed
21271 exactly at the position where it is inserted.
21272 For this case you can use the option
21275 \begin_inset space ~
21281 Use this option very rarely and only if the document is nearly ready to
21283 Because the float is then no longer able to
21284 \begin_inset Quotes eld
21288 \begin_inset Quotes erd
21291 when you change your document and this will often destroy the page layout.
21294 \begin_layout Standard
21295 There are no placement options for text wrap floats, because they are always
21296 surrounded by the text of a certain paragraph.
21297 \begin_inset VSpace bigskip
21303 \begin_layout Standard
21304 Sometimes you have the problem that a float is placed at the top of a page
21305 while its corresponding section starts at the middle of the page, so that
21306 the reader could think the float is part of the previous section.
21307 To avoid this the LaTeX-command
21314 It suppresses a given float placement for the page where it is inserted
21315 and can therefore be used to avoid that floats could be set before a section
21317 To get this, add these commands to your document preamble:
21320 \begin_layout Standard
21330 \begin_inset Newline newline
21344 \begin_layout Standard
21345 You can define the same for all section headings, like chapters and subsections.
21346 This definition is not recommended to be used for small text parts like
21347 subsubsections because LaTeX may then have problems to find a suitable
21351 \begin_layout Standard
21352 \begin_inset VSpace bigskip
21355 In some cases it is required to have all figures/tables at the end of the
21357 For this purpose the LaTeX-package
21365 \begin_layout Plain Layout
21366 LaTeX-packages ! endfloat
21372 It puts all figure and table floats at the end of the document into own
21374 At the original float position a text hint like
21375 \begin_inset Quotes eld
21381 \begin_inset space ~
21387 \begin_inset Quotes erd
21391 The endfloat-package is loaded in the preamble with the line
21394 \begin_layout Standard
21399 usepackage[options]{endfloat}
21402 \begin_layout Standard
21403 There are various package options to format the created figure/table sections.
21404 For more information we refer to the
21409 \begin_inset CommandInset citation
21416 \begin_inset Newline newline
21420 \begin_inset Note Greyedout
21423 \begin_layout Plain Layout
21428 doesn't provide an automatic translation for the text hint, you have to
21429 do this manually, see section
21430 \begin_inset space ~
21434 \begin_inset CommandInset citation
21446 \begin_inset Newline newline
21450 \begin_inset Note Greyedout
21453 \begin_layout Plain Layout
21458 There is currently a bug in
21462 when the caption contains a German
21463 \begin_inset Quotes eld
21467 \begin_inset Quotes erd
21471 Use in this case the command
21472 \begin_inset Quotes eld
21482 \begin_inset Quotes erd
21485 in TeX-Code instead of
21486 \begin_inset Quotes eld
21490 \begin_inset Quotes erd
21501 \begin_layout Standard
21502 \begin_inset VSpace bigskip
21505 For more details about float placements, have a look at LaTeX books,
21506 \begin_inset CommandInset citation
21508 key "latexcompanion,latexguide,latexbook"
21515 \begin_layout Section
21517 \begin_inset CommandInset label
21519 name "sec:Rotated-Floats"
21527 \begin_layout Plain Layout
21536 \begin_layout Standard
21537 Especially for wide tables you might have floats rotated.
21538 To rotate a whole float including the caption, right-click on the float-box
21542 \begin_inset space ~
21550 \begin_layout Standard
21551 Rotated floats are always placed on its own page (or column, in case you
21552 have a multi-column document).
21553 You can let them span several columns using the float settings option
21556 \begin_inset space ~
21562 Floats are rotated so that you can read them from the outside margin.
21563 To force a certain rotation direction for all pages, you can add either
21572 to the document class options.
21575 \begin_layout Standard
21576 Referencing rotated floats is the same like for normal floats, the caption
21577 format is also the same: Table
21578 \begin_inset space ~
21582 \begin_inset CommandInset ref
21584 reference "tab:Rotated-table"
21588 is an example of a rotated table float.
21591 \begin_layout Standard
21592 \begin_inset Note Greyedout
21595 \begin_layout Plain Layout
21600 Not all DVI-viewers are able to display rotated floats.
21608 \begin_layout Standard
21609 \begin_inset Float table
21614 \begin_layout Plain Layout
21615 \begin_inset Caption
21617 \begin_layout Plain Layout
21618 \begin_inset CommandInset label
21620 name "tab:Rotated-table"
21632 \begin_layout Plain Layout
21634 \begin_inset Tabular
21635 <lyxtabular version="3" rows="1" columns="5">
21637 <column alignment="center" valignment="top" width="0">
21638 <column alignment="center" valignment="top" width="0">
21639 <column alignment="center" valignment="top" width="0">
21640 <column alignment="center" valignment="top" width="0">
21641 <column alignment="center" valignment="top" width="0">
21643 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21646 \begin_layout Plain Layout
21652 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21655 \begin_layout Plain Layout
21661 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21664 \begin_layout Plain Layout
21670 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21673 \begin_layout Plain Layout
21679 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21682 \begin_layout Plain Layout
21701 \begin_layout Section
21702 Floats Side by Side
21706 \begin_layout Plain Layout
21707 Floats ! Side by side
21715 \begin_layout Standard
21716 To place floats side by side, like for Figure
21717 \begin_inset space ~
21721 \begin_inset CommandInset ref
21723 reference "fig:Float-left"
21728 \begin_inset CommandInset ref
21730 reference "fig:Float-right"
21739 In it two minipage boxes are inserted.
21743 \begin_layout Plain Layout
21744 Minipages are explained in section
21745 \begin_inset space ~
21749 \begin_inset CommandInset ref
21751 reference "sec:Minipages"
21760 The width is set to 45
21761 \begin_inset space \thinspace{}
21765 \begin_inset space \thinspace{}
21768 column% and the box alignment to
21773 The minipage boxes contain the image and the caption in the same way as
21774 they are in a float.
21775 The only difference is that the image unit
21778 \begin_inset space ~
21782 \begin_inset space ~
21787 is now calculated according to the width of the minipage boxes.
21790 \begin_layout Standard
21791 \begin_inset Float figure
21796 \begin_layout Plain Layout
21797 \begin_inset Box Frameless
21806 height_special "totalheight"
21809 \begin_layout Plain Layout
21811 \begin_inset Graphics
21812 filename clipart/mobius.eps
21815 scaleBeforeRotation
21822 \begin_layout Plain Layout
21823 \begin_inset Caption
21825 \begin_layout Plain Layout
21826 \begin_inset CommandInset label
21828 name "fig:Float-left"
21832 Float on the left side.
21843 \begin_inset space \hfill{}
21847 \begin_inset Box Frameless
21856 height_special "totalheight"
21859 \begin_layout Plain Layout
21861 \begin_inset Graphics
21862 filename clipart/platypus.eps
21865 scaleBeforeRotation
21872 \begin_layout Plain Layout
21873 \begin_inset Caption
21875 \begin_layout Plain Layout
21876 \begin_inset CommandInset label
21878 name "fig:Float-right"
21882 Float on the right side.
21895 \begin_layout Plain Layout
21904 \begin_layout Section
21909 \begin_layout Plain Layout
21910 Caption ! Formatting
21919 \begin_layout Plain Layout
21920 Floats ! Caption Formatting
21926 \begin_inset CommandInset label
21928 name "sec:Caption-Formatting"
21935 \begin_layout Standard
21940 environment is the default paragraph environment for
21945 On the LyX screen captions appear as label, e.
21946 \begin_inset space \thinspace{}
21950 \begin_inset space \space{}
21954 \begin_inset Quotes eld
21962 \begin_inset Quotes erd
21965 followed by the caption text.
21967 \begin_inset Quotes eld
21971 \begin_inset Quotes erd
21974 is the actual reference number.
21975 By default the label and the number are in the same font as the caption
21976 text and a colon follows the number to divide the label from the text.
21977 This caption format is not suitable for all document formats.
21981 \begin_layout Standard
21982 To change the default caption format, load the LaTeX-package
21990 \begin_layout Plain Layout
21991 LaTeX-packages ! caption
21996 in the document preamble with this line:
21999 \begin_layout Standard
22004 usepackage[format definition]{caption}
22007 \begin_layout Standard
22008 To have for example the label and the number in sans-serif bold font and
22009 the table captions always above the table like in this document, use the
22013 \begin_layout Standard
22018 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
22021 \begin_layout Standard
22022 You can also define different caption formats for the different float types.
22023 In this case load the
22027 package without format specific options and define the different formats
22028 with the help of the command
22031 \begin_layout Standard
22036 captionsetup[float type]{format definition}
22039 \begin_layout Standard
22040 in the document preamble.
22041 For example the caption formats of Figure
22042 \begin_inset space ~
22046 \begin_inset CommandInset ref
22048 reference "fig:This-is-an-fig"
22053 \begin_inset space ~
22057 \begin_inset CommandInset ref
22059 reference "tab:This-is-an-tab"
22063 can be created using these commands in the document preamble:
22066 \begin_layout Standard
22071 usepackage[tableposition=top]{caption}
22074 \begin_inset Newline newline
22081 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
22082 \begin_inset Newline newline
22089 \begin_layout Plain Layout
22097 captionsetup[figure]
22105 \begin_inset Newline newline
22110 captionsetup[table]{labelfont={bf,sf}}
22113 \begin_layout Standard
22114 \begin_inset Note Greyedout
22117 \begin_layout Plain Layout
22126 has no effect when a
22134 \begin_layout Plain Layout
22135 LaTeX-packages ! koma-script
22140 document class is used.
22141 In this case the document class option
22153 \begin_layout Standard
22154 For more information about the package
22158 we refer to its documentation
22159 \begin_inset CommandInset citation
22168 \begin_layout Standard
22169 To change the label name from e.
22170 \begin_inset space \thinspace{}
22174 \begin_inset space \space{}
22178 \begin_inset Quotes eld
22182 \begin_inset Quotes erd
22186 \begin_inset Quotes eld
22190 \begin_inset Quotes erd
22193 use this preamble command:
22196 \begin_layout Standard
22203 fnum@figure}{Image~
22208 \begin_layout Standard
22215 inserts the figure number and
22218 \begin_inset Quotes eld
22224 \begin_inset Quotes erd
22227 creates a protected space.
22230 \begin_layout Standard
22231 \begin_inset VSpace bigskip
22242 \begin_layout Plain Layout
22243 LaTeX-packages ! koma-script
22250 article (koma-script)
22258 letter (koma-script)
22262 report (koma-script)
22265 \begin_inset space \thinspace{}
22268 ), you can alternatively to the
22276 's built-in command
22283 For example, to have the caption label in bold, add this command to your
22287 \begin_layout Standard
22292 setkomafont{captionlabel}{
22297 \begin_layout Standard
22298 For more information about
22309 \begin_inset CommandInset citation
22318 \begin_layout Standard
22322 \begin_layout Plain Layout
22326 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
22333 \begin_inset Note Note
22336 \begin_layout Plain Layout
22337 The caption format is changed only for this example.
22345 \begin_layout Standard
22346 \begin_inset Float figure
22352 \begin_layout Plain Layout
22354 \begin_inset Graphics
22355 filename clipart/mobius.eps
22358 scaleBeforeRotation
22365 \begin_layout Plain Layout
22366 \begin_inset Caption
22368 \begin_layout Plain Layout
22369 \begin_inset CommandInset label
22371 name "fig:This-is-an-fig"
22375 This is an example figure caption that is longer than one line to show the
22376 different caption format.
22377 Here a self-defined caption format is used.
22390 \begin_layout Standard
22394 \begin_layout Plain Layout
22398 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
22407 \begin_layout Standard
22408 \begin_inset Float table
22414 \begin_layout Plain Layout
22415 \begin_inset Caption
22417 \begin_layout Plain Layout
22418 \begin_inset CommandInset label
22420 name "tab:This-is-an-tab"
22424 This is an example table caption that is longer than one line to show the
22425 different caption format.
22426 Here the standard caption format for tables in this document is used.
22434 \begin_layout Plain Layout
22436 \begin_inset Tabular
22437 <lyxtabular version="3" rows="1" columns="5">
22439 <column alignment="center" valignment="top" width="0">
22440 <column alignment="center" valignment="top" width="0">
22441 <column alignment="center" valignment="top" width="0">
22442 <column alignment="center" valignment="top" width="0">
22443 <column alignment="center" valignment="top" width="0">
22445 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22448 \begin_layout Plain Layout
22454 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22457 \begin_layout Plain Layout
22463 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22466 \begin_layout Plain Layout
22472 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22475 \begin_layout Plain Layout
22481 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22484 \begin_layout Plain Layout
22503 \begin_layout Section
22508 \begin_layout Plain Layout
22509 Caption ! Placement
22518 \begin_layout Plain Layout
22519 Floats ! Caption Placement
22525 \begin_inset CommandInset label
22527 name "sec:Caption-Placement"
22534 \begin_layout Standard
22535 The common caption placement rule is:
22538 \begin_layout Description
22539 Figure: Caption is set below the figure
22542 \begin_layout Description
22543 Table: Caption is set above the table
22546 \begin_layout Standard
22547 Having the caption above the table is unfortunately not supported in LaTeX's
22549 That means if you are using the document classes
22565 there will be no space between the caption and the table.
22566 To insert the needed space, add the following option to the load command
22567 of the LaTeX-package
22571 in your document preamble
22575 \begin_layout Plain Layout
22577 \begin_inset space ~
22581 \begin_inset CommandInset ref
22583 reference "sec:Caption-Formatting"
22587 for more information of the package
22599 \begin_layout Standard
22605 \begin_layout Standard
22614 \begin_layout Plain Layout
22615 LaTeX-packages ! koma-script
22622 article (koma-script)
22630 letter (koma-script)
22634 report (koma-script)
22637 \begin_inset space \thinspace{}
22640 ), you can alternatively to the
22644 package set the document class option
22651 \begin_layout Standard
22652 \begin_inset VSpace bigskip
22655 It is also possible to set the caption beside a figure or table.
22656 To get this the LaTeX-package
22664 \begin_layout Plain Layout
22665 LaTeX-packages ! sidecap
22670 has to be loaded in the document preamble with the line
22673 \begin_layout Standard
22678 usepackage[option]{sidecap}
22681 \begin_layout Standard
22682 If you set no option, the caption is placed on the side of the outer page
22683 margin -- to the right on odd pages, to the left on even pages.
22684 You can change the placement to inner margin with the option
22689 To force the placement always to the right or left, use the option
22700 \begin_layout Standard
22704 \begin_layout Plain Layout
22714 \begin_inset Note Note
22717 \begin_layout Plain Layout
22718 The following section will only be displayed when the LaTeX-package
22730 \begin_layout Standard
22731 To place in LyX the caption of a float on the side, it is necessary to add
22732 these commands to the document preamble:
22735 \begin_layout Standard
22741 \begin_layout Standard
22749 \begin_inset Newline newline
22756 \begin_layout Plain Layout
22772 \begin_inset Newline newline
22779 \begin_layout Plain Layout
22795 \begin_inset Newline newline
22802 \begin_layout Plain Layout
22813 renewenvironment{table}{
22820 \begin_layout Standard
22828 \begin_inset Newline newline
22835 \begin_layout Plain Layout
22851 \begin_inset Newline newline
22858 \begin_layout Plain Layout
22876 \begin_layout Standard
22884 \begin_inset Newline newline
22891 \begin_layout Plain Layout
22907 \begin_inset Newline newline
22914 \begin_layout Plain Layout
22930 \begin_inset Newline newline
22937 \begin_layout Plain Layout
22948 renewenvironment{figure}{
22955 \begin_layout Standard
22963 \begin_inset Newline newline
22970 \begin_layout Plain Layout
22986 \begin_inset Newline newline
22993 \begin_layout Plain Layout
23011 \begin_layout Standard
23017 \begin_layout Standard
23018 The commands allow you to redefine the floats so that the caption is set
23020 For figure floats use the command
23023 \begin_layout Standard
23031 \begin_layout Standard
23032 in TeX-Code before the float.
23033 Behind the float insert the command
23036 \begin_layout Standard
23044 \begin_layout Standard
23045 in TeX-Code to get back to the original float definition.
23048 \begin_layout Standard
23049 For table floats use the corresponding commands
23052 \begin_layout Standard
23066 \begin_layout Standard
23068 \begin_inset space ~
23072 \begin_inset CommandInset ref
23074 reference "fig:cap-beside-fig"
23079 \begin_inset space ~
23083 \begin_inset CommandInset ref
23085 reference "tab:cap-beside-tab"
23089 are examples where the caption is set beside.
23092 \begin_layout Standard
23093 You can see in the examples that the caption text appears at the top of
23094 the floats for table floats and at the bottom for figure floats.
23095 To change this, you can use the command
23098 \begin_layout Standard
23103 sidecaptionvpos{float type}{placement}
23106 \begin_layout Standard
23107 in the document preamble or in TeX-Code before the float.
23108 The float type is either
23116 , the placement can be
23117 \begin_inset Quotes eld
23125 \begin_inset Quotes erd
23129 \begin_inset Quotes eld
23137 \begin_inset Quotes erd
23141 \begin_inset Quotes eld
23149 \begin_inset Quotes erd
23153 To have for example the caption of figure floats vertically centered, use
23157 \begin_layout Standard
23162 sidecaptionvpos{figure}{c}
23165 \begin_layout Standard
23166 This was used for Figure
23167 \begin_inset space ~
23171 \begin_inset CommandInset ref
23173 reference "fig:cap-beside-fig-2"
23180 \begin_layout Standard
23181 \begin_inset VSpace medskip
23184 For more information about the package
23188 we refer to its documentation
23189 \begin_inset CommandInset citation
23198 \begin_layout Standard
23199 \begin_inset Note Greyedout
23202 \begin_layout Plain Layout
23215 \begin_layout Plain Layout
23216 LaTeX-packages ! hypcap
23221 , described in section
23222 \begin_inset space ~
23226 \begin_inset CommandInset ref
23228 reference "sub:Reference-Position"
23232 , has no effect on floats with the caption set beside.
23240 \begin_layout Standard
23244 \begin_layout Plain Layout
23256 \begin_layout Standard
23257 \begin_inset Float figure
23262 \begin_layout Plain Layout
23263 \begin_inset Graphics
23264 filename clipart/escher-lsd.eps
23266 scaleBeforeRotation
23273 \begin_layout Plain Layout
23274 \begin_inset Caption
23276 \begin_layout Plain Layout
23277 \begin_inset CommandInset label
23279 name "fig:cap-beside-fig"
23283 This is a caption beside a figure.
23296 \begin_layout Standard
23300 \begin_layout Plain Layout
23312 \begin_layout Standard
23313 \begin_inset Float table
23318 \begin_layout Plain Layout
23319 \begin_inset Caption
23321 \begin_layout Plain Layout
23322 \begin_inset CommandInset label
23324 name "tab:cap-beside-tab"
23328 This is a caption beside a table.
23336 \begin_layout Plain Layout
23337 \begin_inset Tabular
23338 <lyxtabular version="3" rows="4" columns="5">
23340 <column alignment="center" valignment="top" width="0">
23341 <column alignment="center" valignment="top" width="0">
23342 <column alignment="center" valignment="top" width="0">
23343 <column alignment="center" valignment="top" width="0">
23344 <column alignment="center" valignment="top" width="0">
23346 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23349 \begin_layout Plain Layout
23355 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23358 \begin_layout Plain Layout
23364 <cell alignment="center" valignment="top" topline="true" leftline="true" 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" rightline="true" usebox="none">
23385 \begin_layout Plain Layout
23393 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23396 \begin_layout Plain Layout
23402 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23405 \begin_layout Plain Layout
23411 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23414 \begin_layout Plain Layout
23420 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23423 \begin_layout Plain Layout
23429 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23432 \begin_layout Plain Layout
23440 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23443 \begin_layout Plain Layout
23449 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23452 \begin_layout Plain Layout
23458 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23461 \begin_layout Plain Layout
23467 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23470 \begin_layout Plain Layout
23476 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23479 \begin_layout Plain Layout
23487 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23490 \begin_layout Plain Layout
23496 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23499 \begin_layout Plain Layout
23505 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23508 \begin_layout Plain Layout
23514 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23517 \begin_layout Plain Layout
23523 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23526 \begin_layout Plain Layout
23545 \begin_layout Standard
23549 \begin_layout Plain Layout
23561 \begin_layout Standard
23565 \begin_layout Plain Layout
23569 sidecaptionvpos{figure}{c}
23575 \begin_inset Float figure
23580 \begin_layout Plain Layout
23581 \begin_inset Graphics
23582 filename clipart/escher-lsd.eps
23584 scaleBeforeRotation
23591 \begin_layout Plain Layout
23592 \begin_inset Caption
23594 \begin_layout Plain Layout
23595 \begin_inset CommandInset label
23597 name "fig:cap-beside-fig-2"
23601 This is a vertically centered caption beside a figure.
23614 \begin_layout Standard
23618 \begin_layout Plain Layout
23630 \begin_layout Standard
23634 \begin_layout Plain Layout
23644 \begin_inset Note Note
23647 \begin_layout Plain Layout
23648 The following will be displayed when the LaTeX-package
23660 \begin_layout Standard
23661 You need to install the LaTeX-package
23665 to see the following part of this section in the output.
23668 \begin_layout Standard
23672 \begin_layout Plain Layout
23684 \begin_layout Section
23689 \begin_layout Plain Layout
23690 Floats ! Float Lists
23698 \begin_layout Standard
23699 Similar to the the table of contents where the sections of the document
23700 are listed, there are listings for all float types, like the figures of
23702 You can insert them via the
23704 Insert\SpecialChar \menuseparator
23706 \begin_inset space ~
23710 \begin_inset space ~
23718 \begin_layout Standard
23719 The list entries are the float captions or its short title, the float number,
23720 and the page number where they appear in the document.
23723 \begin_layout Standard
23724 You can find the list of figures and tables at the end of this document.
23727 \begin_layout Chapter
23731 \begin_layout Section
23736 \begin_layout Plain Layout
23745 \begin_layout Standard
23746 Notes are inserted with the toolbar button
23747 \begin_inset Graphics
23748 filename ../images/note-insert.png
23750 scaleBeforeRotation
23756 Insert\SpecialChar \menuseparator
23760 There are three types of notes:
23763 \begin_layout Description
23765 \begin_inset space ~
23768 Note This note type is for internal notes that won't appear in the output.
23769 Its note-box looks like this:
23770 \begin_inset Newline newline
23774 \begin_inset Newline newline
23778 \begin_inset Graphics
23779 filename clipart/LyXNoteImageQt4.png
23782 scaleBeforeRotation
23787 \begin_inset Note Note
23790 \begin_layout Plain Layout
23791 This is text in a note box that doesn't appear in the output.
23799 \begin_layout Description
23800 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
23801 ent, when you export the document to LaTeX via the menu
23803 File\SpecialChar \menuseparator
23804 Export\SpecialChar \menuseparator
23805 LaTeX (pdflatex) / (plain)
23808 Its note-box looks like this:
23809 \begin_inset Newline newline
23813 \begin_inset Newline newline
23817 \begin_inset Graphics
23818 filename clipart/CommentNoteImageQt4.png
23821 scaleBeforeRotation
23826 \begin_inset Note Comment
23829 \begin_layout Plain Layout
23830 This is text in a note box that only appears as comment in LaTeX-files.
23838 \begin_layout Description
23840 \begin_inset space ~
23843 Out This note will appear in the output as grey text.
23844 Its note-box looks like this:
23845 \begin_inset Newline newline
23849 \begin_inset Newline newline
23853 \begin_inset Graphics
23854 filename clipart/GreyedOutNoteImageQt4.png
23857 scaleBeforeRotation
23862 \begin_inset Newline newline
23869 \begin_layout Plain Layout
23873 renewenvironment{lyxgreyedout}
23876 \begin_layout Plain Layout
23880 textcolor[gray]{0.8}
23890 \begin_inset Note Greyedout
23893 \begin_layout Plain Layout
23898 \begin_layout Plain Layout
23899 This is an example footnote within a greyed out note.
23904 of a comment that appears in the output as grey text.
23913 \begin_layout Plain Layout
23917 renewenvironment{lyxgreyedout}
23920 \begin_layout Plain Layout
23934 \begin_inset Note Note
23937 \begin_layout Plain Layout
23938 The greyed out note is here redefined to show it with the original LyX definitio
23939 n because greyed out notes are redefined in the preamble of this document,
23940 as described below, to have blue text.
23946 \begin_inset Newline newline
23950 \begin_inset Newline newline
23953 As you can see in the example, the first line of greyed out notes is a bit
23954 indented and greyed out notes can have footnotes.
23957 \begin_layout Standard
23958 \begin_inset VSpace bigskip
23961 When you use the toolbar button
23962 \begin_inset Graphics
23963 filename ../images/note-insert.png
23965 scaleBeforeRotation
23972 \begin_inset space ~
23978 You can switch between the five note types by right-clicking on the note-box.
23983 If you want to turn existing text into a note, mark it and click on the
23997 To change a note to text, press the backspace key when the cursor is in
23998 the first position of a note, or press the deletey key when the cursor
23999 is in the very last position of the note, respectively.
24002 \begin_layout Standard
24003 \begin_inset VSpace bigskip
24006 You can change the text color of the greyed out notes in the preamble with
24007 the following command:
24010 \begin_layout Standard
24015 renewenvironment{lyxgreyedout}
24016 \begin_inset Newline newline
24023 \begin_layout Plain Layout
24041 \begin_layout Standard
24042 The available colors and the method to define own colors is explained in
24044 \begin_inset space ~
24048 \begin_inset CommandInset ref
24050 reference "sec:Colored-Tables"
24057 \begin_layout Standard
24058 Notes that appear in blue in this document are set using greyed out notes
24062 \begin_layout Section
24064 \begin_inset CommandInset label
24066 name "sec:Footnotes"
24074 \begin_layout Plain Layout
24084 \begin_layout Plain Layout
24093 \begin_layout Standard
24094 Footnotes can be inserted using the toolbar button
24095 \begin_inset Graphics
24096 filename ../images/footnote-insert.png
24098 scaleBeforeRotation
24104 Insert\SpecialChar \menuseparator
24116 then the following footnote-box:
24117 \begin_inset Graphics
24118 filename clipart/footnoteQt4.png
24120 scaleBeforeRotation
24128 where you can enter the footnote text.
24129 If you want to turn existing text into a footnote, mark it and click on
24151 to text, press the Backspace key when the cursor is in the first position
24160 , or press the Delete key when the cursor is in the very last position of
24172 \begin_layout Standard
24173 Here is an example footnote:
24181 \begin_layout Plain Layout
24182 \begin_inset CommandInset label
24184 name "foot:This-is-an"
24188 This is an example footnote.
24201 \begin_layout Plain Layout
24205 newcounter{MyRepeatFoot}
24208 \begin_layout Plain Layout
24212 setcounter{MyRepeatFoot}{
24222 \begin_layout Standard
24223 The footnote will appear in the output as a superscript number at the text
24224 position where the footnote box is placed.
24225 The footnote text is placed at the bottom of the current page.
24226 The footnote number is calculated by LaTeX, the numbers are consecutive.
24227 It depends on your document-class, if the footnote number is reset for
24231 \begin_layout Standard
24232 Footnotes can be referenced like floats: Insert a label into the footnote
24233 and cross-reference this label in the text as described in section
24234 \begin_inset space ~
24238 \begin_inset CommandInset ref
24240 reference "sec:Referencing-Floats"
24245 \begin_inset Newline newline
24248 This is a cross-reference of Footnote
24249 \begin_inset space ~
24253 \begin_inset CommandInset ref
24255 reference "foot:This-is-an"
24262 \begin_layout Standard
24263 \begin_inset VSpace defskip
24266 To use footnotes within tables, you have to use minipages, see section
24267 \begin_inset space ~
24271 \begin_inset CommandInset ref
24273 reference "sec:Minipages"
24278 Footnotes within longtables are described in section
24279 \begin_inset space ~
24283 \begin_inset CommandInset ref
24285 reference "sub:Footnotes-in-Longtables"
24292 \begin_layout Standard
24293 \begin_inset VSpace defskip
24296 To create only a mark for a footnote, use the command
24300 footnotemark[number]
24303 This is used when you have the same annotation several times in a text
24304 but doesn't want to print the footnote text every time.
24305 \begin_inset Newline newline
24308 As you don't know the number of the repeating footnote while you are writing
24309 the text, you have to store its number.
24310 For the following footnote mark example, these commands were inserted in
24311 TeX-Code behind Footnote
24312 \begin_inset space ~
24316 \begin_inset CommandInset ref
24318 reference "foot:This-is-an"
24322 to store the footnote number:
24325 \begin_layout Standard
24330 newcounter{MyRepeatFoot}
24331 \begin_inset Newline newline
24336 setcounter{MyRepeatFoot}{
24341 \begin_layout Standard
24342 The footnote mark was then created with this command:
24345 \begin_layout Standard
24355 \begin_layout Standard
24356 Here is an example footnote mark:
24364 \begin_layout Plain Layout
24378 \begin_layout Subsection
24380 \begin_inset CommandInset label
24382 name "sub:Footnote-Numbering"
24390 \begin_layout Plain Layout
24391 Footnotes ! Numbering
24399 \begin_layout Standard
24400 To reset the footnote number back to 1 after each section
24402 , add this command to your document preamble:
24405 \begin_layout Standard
24410 @addtoreset{footnote}{section}
24413 \begin_layout Standard
24414 \begin_inset VSpace bigskip
24417 The following preamble command changes the footnote numbering style to small
24421 \begin_layout Standard
24433 \begin_layout Standard
24437 \begin_layout Plain Layout
24450 This is a footnote with roman numbering:
24454 \begin_layout Plain Layout
24455 This is an example footnote with roman numbering.
24463 \begin_layout Standard
24464 To change the numbering style to capital roman numerals replace in the command
24479 \begin_inset Quotes eld
24483 \begin_inset Quotes erd
24486 footnotes with capital or small Latin letters use
24500 \begin_inset Quotes eld
24504 \begin_inset Quotes erd
24507 footnotes with symbols use
24516 \begin_layout Standard
24517 \begin_inset Note Greyedout
24520 \begin_layout Plain Layout
24525 You can only number 26 footnotes with Latin letters, because this numbering
24526 is limited to single letters.
24532 \begin_inset Newline newline
24536 \begin_inset Note Greyedout
24539 \begin_layout Plain Layout
24544 You can only number 9 footnotes with symbols.
24552 \begin_layout Standard
24553 To return to the default numbering style when you changed to another one,
24566 in the command above.
24570 \begin_layout Plain Layout
24586 \begin_layout Standard
24587 \begin_inset VSpace bigskip
24593 \begin_layout Standard
24594 If you want to have footnotes numbered in the scheme
24595 \begin_inset Quotes eld
24599 \begin_inset Quotes erd
24602 , add the following command to your document preamble:
24605 \begin_layout Standard
24610 numberwithin{footnote}{chapter}
24613 \begin_layout Standard
24614 To be able to use the command
24623 \begin_inset space ~
24628 in the document settings the option
24631 \begin_inset space ~
24635 \begin_inset space ~
24639 \begin_inset space ~
24647 \begin_layout Standard
24651 \begin_layout Plain Layout
24655 numberwithin{footnote}{chapter}
24660 This is another example footnote:
24666 \begin_layout Plain Layout
24667 This is a footnote numbered in the scheme
24668 \begin_inset Quotes eld
24672 \begin_inset Quotes erd
24686 \begin_layout Plain Layout
24702 \begin_layout Standard
24703 \begin_inset Note Greyedout
24706 \begin_layout Plain Layout
24717 always prints out the footnote number as arabic number; previous redefinitions
24718 to get non-arabic numbers are overwritten.
24726 \begin_layout Standard
24727 So to get for example the scheme
24728 \begin_inset Quotes eld
24734 \begin_inset Quotes erd
24737 , use this command instead of
24746 \begin_layout Standard
24760 \begin_layout Subsection
24765 \begin_layout Plain Layout
24766 Footnotes ! Placement
24774 \begin_layout Standard
24775 If you have several footnotes in one page, they appear without vertical
24776 space between them at the bottom of the page.
24777 To make them better readable you can e.
24778 \begin_inset space \thinspace{}
24782 \begin_inset space \space{}
24786 \begin_inset space \thinspace{}
24789 mm space with the following preamble command:
24792 \begin_layout Standard
24802 \begin_inset Newline newline
24816 \begin_layout Standard
24817 \begin_inset VSpace bigskip
24820 In a two-column document the footnotes appear at the bottom of every column,
24822 \begin_inset space ~
24826 \begin_inset CommandInset ref
24828 reference "fig:Standard-footnote-placement"
24833 If the footnotes should only appear at the bottom of the right column,
24835 \begin_inset space ~
24839 \begin_inset CommandInset ref
24841 reference "fig:Footnote-placement-in"
24845 , use the LaTeX-package
24853 \begin_layout Plain Layout
24854 LaTeX-packages ! ftnright
24859 with this command in the document preamble:
24862 \begin_layout Standard
24867 usepackage{ftnright}
24870 \begin_layout Standard
24871 \begin_inset Float figure
24877 \begin_layout Plain Layout
24881 \begin_layout Plain Layout
24891 \begin_inset Graphics
24892 filename clipart/without_fntright.pdf
24894 scaleBeforeRotation
24902 \begin_layout Plain Layout
24912 \begin_layout Plain Layout
24913 \begin_inset Caption
24915 \begin_layout Plain Layout
24916 \begin_inset CommandInset label
24918 name "fig:Standard-footnote-placement"
24922 Standard footnote placement in two-column documents.
24935 \begin_layout Standard
24936 \begin_inset Float figure
24942 \begin_layout Plain Layout
24946 \begin_layout Plain Layout
24956 \begin_inset Graphics
24957 filename clipart/with_fntright.pdf
24959 scaleBeforeRotation
24967 \begin_layout Plain Layout
24977 \begin_layout Plain Layout
24978 \begin_inset Caption
24980 \begin_layout Plain Layout
24981 \begin_inset CommandInset label
24983 name "fig:Footnote-placement-in"
24987 Footnote placement in two-column documents when the LaTeX-package
25004 \begin_layout Standard
25005 \begin_inset VSpace bigskip
25008 In some scientific literature it is usual to collect the footnotes and print
25009 them in a separate paragraph at the the end of a section, like in Figure
25010 \begin_inset space ~
25014 \begin_inset CommandInset ref
25016 reference "fig:Endnotes----footnotes"
25021 They are then so called
25022 \begin_inset Quotes eld
25026 \begin_inset Quotes erd
25033 \begin_layout Plain Layout
25039 To use endnotes instead of footnotes in your document, load the LaTeX-package
25048 \begin_layout Plain Layout
25049 LaTeX-packages ! endnotes
25054 with the document preamble lines
25057 \begin_layout Standard
25062 usepackage{endnotes}
25063 \begin_inset Newline newline
25075 \begin_layout Standard
25076 To insert the collected footnotes, insert the command
25079 \begin_layout Standard
25087 \begin_layout Standard
25088 in TeX-Code at the the end of a section or chapter.
25091 \begin_layout Standard
25092 \begin_inset Float figure
25097 \begin_layout Plain Layout
25102 \begin_layout Plain Layout
25112 \begin_inset Graphics
25113 filename clipart/endnotes.pdf
25114 scaleBeforeRotation
25122 \begin_layout Plain Layout
25132 \begin_layout Plain Layout
25133 \begin_inset Caption
25135 \begin_layout Plain Layout
25136 \begin_inset CommandInset label
25138 name "fig:Endnotes----footnotes"
25142 Endnotes -- footnotes are printed in a separate paragraph at the end of
25143 sections or chapters.
25156 \begin_layout Standard
25157 \begin_inset VSpace medskip
25160 The paragraph heading for the endnotes isn't automatically translated into
25161 the document language, this must be done manually.
25162 The following preamble command translate the default English name
25163 \begin_inset Quotes eld
25167 \begin_inset Quotes erd
25170 to the German translation
25171 \begin_inset Quotes eld
25175 \begin_inset Quotes erd
25181 \begin_layout Standard
25188 notesname}{Anmerkungen}
25191 \begin_layout Standard
25192 \begin_inset VSpace medskip
25195 The numbering of endnotes can be changed like the footnote numbering as
25196 described in section
25197 \begin_inset space ~
25201 \begin_inset CommandInset ref
25203 reference "sub:Footnote-Numbering"
25207 ; just replace the command
25220 To reset the endnote number use the command
25226 as described in section
25227 \begin_inset space ~
25231 \begin_inset CommandInset ref
25233 reference "sub:Footnote-Numbering"
25237 and replace the command parameter
25248 \begin_layout Standard
25249 To create only a mark for an endnote, use the command
25253 endnotemark[number]
25255 similar to the command
25261 , described in section
25262 \begin_inset space ~
25266 \begin_inset CommandInset ref
25268 reference "sec:Footnotes"
25275 \begin_layout Standard
25276 \begin_inset VSpace bigskip
25279 Footnotes can also be placed in the page margin and the footnote text alignment
25280 can be changed, see the LaTeX-package
25288 \begin_layout Plain Layout
25289 LaTeX-packages ! footmisc
25295 \begin_inset CommandInset citation
25301 for more information about this.
25304 \begin_layout Standard
25305 For various further footnote formatting issues have a look at LaTeX-books,
25307 \begin_inset CommandInset citation
25309 key "latexcompanion,latexguide,latexbook"
25316 \begin_layout Section
25321 \begin_layout Plain Layout
25322 Notes ! Margin Notes
25330 \begin_layout Standard
25331 Margin notes look and behave in LyX like footnotes.
25332 They are inserted via the menu
25334 Insert\SpecialChar \menuseparator
25336 \begin_inset space ~
25341 or the toolbar button
25342 \begin_inset Graphics
25343 filename ../images/marginalnote-insert.png
25345 scaleBeforeRotation
25360 \begin_inset Quotes eld
25364 \begin_inset Quotes erd
25367 appears where you can enter the text of the margin note.
25370 \begin_layout Standard
25371 At the side is an example margin note.
25376 \begin_inset Marginal
25379 \begin_layout Plain Layout
25380 This is a margin note.
25388 \begin_layout Standard
25389 Margin notes appear at the right side in single-sided documents.
25390 In double-sided documents they appear in the outer margin -- left on even
25391 pages, right on odd pages.
25392 The text of margin notes is aligned opposite to the outer margin -- right-align
25393 ed when the note appears in the left margin.
25394 The first line of the margin note is placed at the position of the text
25395 line where it is inserted in the document.
25398 \begin_layout Standard
25399 \begin_inset VSpace bigskip
25402 To place the margin note in the inner margin, add the command
25405 \begin_layout Standard
25413 \begin_layout Standard
25414 in TeX-Code before a margin note.
25415 The new placement is valid for all following margin notes.
25420 \begin_layout Plain Layout
25430 \begin_inset Marginal
25433 \begin_layout Plain Layout
25434 This is a margin note in the inner margin.
25442 \begin_inset Newline newline
25448 \begin_inset Note Greyedout
25451 \begin_layout Plain Layout
25456 There is often not enough space in the inner margin so that the notes are
25457 not correctly displayed in the output.
25465 \begin_layout Standard
25466 To return to the default placement insert the command
25469 \begin_layout Standard
25477 \begin_layout Standard
25482 \begin_layout Plain Layout
25492 \begin_inset Note Greyedout
25495 \begin_layout Plain Layout
25500 The command is ignored when it is within a paragraph where also the command
25515 \begin_layout Standard
25516 \begin_inset VSpace bigskip
25523 \begin_inset Marginal
25526 \begin_layout Plain Layout
25527 AVeryLongMarginParWord that isn't hyphenated.
25535 Similar to the case described in section
25536 \begin_inset space ~
25540 \begin_inset CommandInset ref
25542 reference "sub:Multiple-Lines-in"
25546 , long words cannot be hyphenated when they are the first word in a margin
25548 To avoid this, insert 0
25549 \begin_inset space \thinspace{}
25552 pt horizontal space before the word
25557 \begin_inset Marginal
25560 \begin_layout Plain Layout
25561 \begin_inset space \hspace*{}
25565 AVeryLongMarginParWord that is hyphenated.
25573 \begin_layout Standard
25574 \begin_inset VSpace bigskip
25580 \begin_layout Standard
25581 \begin_inset Note Greyedout
25584 \begin_layout Plain Layout
25589 Margin notes can normally not be used inside tables, floats, and footnotes.
25597 \begin_layout Standard
25598 \begin_inset VSpace bigskip
25604 \begin_layout Standard
25608 \begin_layout Plain Layout
25618 \begin_inset Note Note
25621 \begin_layout Plain Layout
25622 The following section will only be displayed when the LaTeX-package
25634 \begin_layout Standard
25635 This restriction can be evaded by using the LaTeX-package
25643 \begin_layout Plain Layout
25644 LaTeX-packages ! marginnote
25650 By adding these two lines to your document preamble, the command used by
25651 LyX for margin notes is redefined to use the command provided by the
25658 \begin_layout Standard
25663 usepackage{marginnote}
25664 \begin_inset Newline newline
25676 \begin_layout Standard
25677 This is also used in this document because
25681 has another useful feature: You can set a vertical offset for the note.
25682 This is often needed when too many margin notes are too close together
25683 or for a better page layout.
25684 The offset is set in LyX as TeX-Code directly behind the margin note in
25688 \begin_layout Standard
25694 \begin_layout Standard
25695 where the offset is a length with one of the units listed in Table
25696 \begin_inset space ~
25700 \begin_inset CommandInset ref
25702 reference "tab:Units"
25707 A negative value shifts the note up, a positive value shifts it down.
25711 For example the margin note beside this text line is shifted up 1.5
25712 \begin_inset space \thinspace{}
25715 cm with the TeX-Code-command
25716 \begin_inset Quotes eld
25726 \begin_inset Quotes erd
25730 \begin_inset Marginal
25733 \begin_layout Plain Layout
25734 This margin note is shifted up 1.5
25735 \begin_inset space \thinspace{}
25738 cm from its original position.
25750 \begin_layout Plain Layout
25760 \begin_layout Standard
25761 \begin_inset VSpace medskip
25768 you can also change the alignment of the text in the margin note.
25769 For example the commands
25772 \begin_layout Standard
25779 raggedleftmarginnote}{
25782 \begin_inset Newline newline
25789 raggedrightmarginnote}{
25794 \begin_layout Standard
25795 set the alignment to centered.
25800 raggedleftmarginnote
25802 denotes margin notes that appear at the left side.
25809 \begin_layout Plain Layout
25815 raggedleftmarginnote}{
25820 \begin_layout Plain Layout
25826 raggedrightmarginnote}{
25834 \begin_inset Marginal
25837 \begin_layout Plain Layout
25838 The text of this margin note is centered.
25849 \begin_layout Standard
25856 raggedleftmarginnote}{
25859 \begin_inset Newline newline
25866 raggedrightmarginnote}{
25875 \begin_layout Plain Layout
25881 raggedleftmarginnote}{
25886 \begin_layout Plain Layout
25892 raggedrightmarginnote}{
25902 \begin_layout Standard
25903 \begin_inset VSpace medskip
25906 For the other features of
25910 we refer to its documentation
25911 \begin_inset CommandInset citation
25920 \begin_layout Standard
25921 \begin_inset VSpace bigskip
25924 You can adjust the layout of margin notes by changing its definition.
25925 To create for example a header for all margin notes with the underlined,
25926 sans-serif, and bold header text
25927 \begin_inset Quotes eld
25939 \begin_inset Quotes erd
25942 , add this to your document preamble:
25945 \begin_layout Standard
25955 \begin_inset Newline newline
25965 \begin_inset Newline newline
25972 \begin_layout Plain Layout
25989 underbar{Attention!}}}%
25990 \begin_inset Newline newline
25997 \begin_layout Plain Layout
26015 \begin_layout Standard
26022 \begin_layout Plain Layout
26033 \begin_layout Plain Layout
26044 \begin_layout Plain Layout
26052 underbar{Attention!}}}%
26055 \begin_layout Plain Layout
26069 \begin_inset Marginal
26072 \begin_layout Plain Layout
26073 This is a margin note with a defined heading.
26085 \begin_layout Plain Layout
26099 \begin_layout Plain Layout
26116 \begin_inset Note Note
26119 \begin_layout Plain Layout
26120 The margin note format is changed only for this example.
26128 \begin_layout Standard
26132 \begin_layout Plain Layout
26142 \begin_inset Note Note
26145 \begin_layout Plain Layout
26146 The following will be displayed when the LaTeX-package
26158 \begin_layout Standard
26159 You need to install the LaTeX-package
26163 to see the following part of this section in the output.
26166 \begin_layout Standard
26170 \begin_layout Plain Layout
26182 \begin_layout Chapter
26186 \begin_layout Section
26191 \begin_layout Plain Layout
26192 Boxes ! Introduction
26200 \begin_layout Standard
26201 Boxes are used to format a block of text.
26202 Boxes can be used to write documents with multiple languages, see section
26203 \begin_inset space ~
26207 \begin_inset CommandInset ref
26209 reference "sec:Minipages"
26213 , to frame texts, see section
26214 \begin_inset space ~
26218 \begin_inset CommandInset ref
26220 reference "sec:Decoration"
26224 , to prevent words to be hyphenated, see section
26225 \begin_inset space ~
26229 \begin_inset CommandInset ref
26231 reference "sec:Prevent-Hyphenation"
26235 , to align text, see section
26236 \begin_inset space ~
26240 \begin_inset CommandInset ref
26242 reference "sub:Vertical-Alignment"
26246 , or to set the background color of texts, see section
26247 \begin_inset space ~
26251 \begin_inset CommandInset ref
26253 reference "sec:Colored-Boxes"
26260 \begin_layout Standard
26261 Boxes can be inserted with the menu
26263 Insert\SpecialChar \menuseparator
26266 or the toolbar button
26267 \begin_inset Graphics
26268 filename ../images/box-insert.png
26270 scaleBeforeRotation
26275 A grey box with the label
26280 \begin_inset Graphics
26281 filename clipart/BoxInsetDefaultQt4.png
26283 scaleBeforeRotation
26288 The box type can be specified by right-clicking on the box.
26289 The appearing box dialog offers the
26292 \begin_inset space ~
26310 is the default for new boxes and is explained in section
26311 \begin_inset space ~
26315 \begin_inset CommandInset ref
26317 reference "sec:Minipages"
26325 is described in section
26326 \begin_inset space ~
26330 \begin_inset CommandInset ref
26332 reference "sec:Parboxes"
26339 \begin_layout Standard
26340 Boxes aren't numbered and can therefore not be referenced like floats or
26344 \begin_layout Standard
26345 \begin_inset Note Greyedout
26348 \begin_layout Plain Layout
26353 Boxes must not be the item in an
26369 \begin_layout Standard
26370 \begin_inset Note Greyedout
26373 \begin_layout Plain Layout
26378 For an unknown reason you can only set the
26381 \begin_inset space ~
26390 when you use a framed box.
26394 \begin_inset space ~
26399 type and without frames are explained in section
26400 \begin_inset space ~
26404 \begin_inset CommandInset ref
26406 reference "sec:Prevent-Hyphenation"
26418 \begin_layout Section
26420 \begin_inset CommandInset label
26422 name "sec:Box-Dialog"
26430 \begin_layout Plain Layout
26439 \begin_layout Subsection
26444 \begin_layout Plain Layout
26453 \begin_layout Standard
26454 In the box dialog you can adjust the box geometry in the fields
26463 The available units for the geometry are explained in Table
26464 \begin_inset space ~
26468 \begin_inset CommandInset ref
26470 reference "tab:Units"
26479 offers the following additional sizes:
26482 \begin_layout Description
26483 Depth This is the plain text
26484 \begin_inset Quotes eld
26488 \begin_inset Quotes erd
26492 It ignores the total depth when there are multiple text lines in the box:
26493 \begin_inset Newline newline
26497 \begin_inset Newline newline
26501 \begin_inset Newline newline
26505 \begin_inset Box Boxed
26514 height_special "depth"
26517 \begin_layout Plain Layout
26519 Box height set to 1
26520 \begin_inset space \thinspace{}
26529 \begin_inset Newline newline
26533 \begin_inset Newline newline
26539 \begin_layout Description
26540 Height This is the heigth of the text that is inside the box.
26542 \begin_inset space \thinspace{}
26546 \begin_inset space \space{}
26549 2 for this size will set the box heigth to 2 times the text height:
26550 \begin_inset Box Boxed
26559 height_special "height"
26562 \begin_layout Plain Layout
26564 Box height set to 2
26565 \begin_inset space \thinspace{}
26576 \begin_layout Description
26578 \begin_inset space ~
26581 Height This is the Height
26582 \begin_inset space \thinspace{}
26586 \begin_inset space \thinspace{}
26590 \begin_inset Box Boxed
26599 height_special "totalheight"
26602 \begin_layout Plain Layout
26604 Box height set to 1
26605 \begin_inset space \thinspace{}
26609 \begin_inset space ~
26620 \begin_layout Description
26621 Width This sets the width of the box as heigth:
26622 \begin_inset Box Boxed
26631 height_special "width"
26634 \begin_layout Plain Layout
26636 Box height set to 1
26637 \begin_inset space \thinspace{}
26648 \begin_layout Subsection
26653 \begin_layout Plain Layout
26662 \begin_layout Standard
26663 When you have chosen an
26666 \begin_inset space ~
26671 , the vertical box alignment can be:
26674 \begin_layout Description
26675 Top This is an example text line.
26677 \begin_inset Box Boxed
26686 height_special "totalheight"
26689 \begin_layout Plain Layout
26691 This box is top-aligned.
26696 This is an example text line.
26699 \begin_layout Description
26700 Middle This is an example text line.
26702 \begin_inset Box Boxed
26711 height_special "totalheight"
26714 \begin_layout Plain Layout
26716 This box is middle-aligned.
26721 This is an example text line.
26724 \begin_layout Description
26725 Bottom This is an example text line.
26727 \begin_inset Box Boxed
26736 height_special "totalheight"
26739 \begin_layout Plain Layout
26741 This box is bottom-aligned.
26746 This is an example text line.
26749 \begin_layout Standard
26750 \begin_inset Note Greyedout
26753 \begin_layout Plain Layout
26758 The vertical box aligment can be lost in the output when you have two boxes
26759 in a line and one has e.
26760 \begin_inset space \thinspace{}
26764 \begin_inset space \space{}
26767 a shadow and the other one not.
26775 \begin_layout Standard
26776 The horizontal box alignment can be set via LyX's paragraph dialog when
26777 you set the box into its own paragraph.
26780 \begin_layout Standard
26781 \begin_inset VSpace bigskip
26784 When you have chosen an
26787 \begin_inset space ~
26792 , the box content can be vertical aligned to:
26795 \begin_layout Description
26796 top This is an example text line.
26798 \begin_inset Box Boxed
26807 height_special "totalheight"
26810 \begin_layout Plain Layout
26812 This box text is top-aligned.
26817 This is an example text line.
26820 \begin_layout Description
26821 middle This is an example text line.
26823 \begin_inset Box Boxed
26832 height_special "totalheight"
26835 \begin_layout Plain Layout
26837 This box text is middle-aligned.
26842 This is an example text line.
26845 \begin_layout Description
26846 bottom This is an example text line.
26848 \begin_inset Box Boxed
26857 height_special "totalheight"
26860 \begin_layout Plain Layout
26862 This box text is bottom-aligned.
26867 This is an example text line.
26870 \begin_layout Description
26871 stretch This is an example text line.
26873 \begin_inset Box Boxed
26882 height_special "totalheight"
26885 \begin_layout Plain Layout
26890 \begin_layout Plain Layout
26895 \begin_layout Plain Layout
26902 This is an example text line.
26905 \begin_layout Standard
26906 To stretch the box content, it must consist of more than one paragraph.
26907 In the example above every text line is in an own paragraph.
26910 \begin_layout Standard
26911 \begin_inset VSpace bigskip
26914 To align the box content horizontally you can use LyX's paragraph dialog
26915 when you have chosen an
26918 \begin_inset space ~
26926 \begin_layout Standard
26928 \begin_inset Box Boxed
26937 height_special "totalheight"
26940 \begin_layout Plain Layout
26945 \begin_layout Plain Layout
26950 \begin_layout Plain Layout
26960 \begin_layout Standard
26961 If you haven't set an
26964 \begin_inset space ~
26969 , you can align the box content horizontally in the box dialog.
26972 \begin_layout Standard
26974 \begin_inset Box Boxed
26983 height_special "totalheight"
26986 \begin_layout Plain Layout
26988 This box text is horizontally stretched.
26996 \begin_layout Subsection
26998 \begin_inset CommandInset label
27000 name "sec:Decoration"
27008 \begin_layout Plain Layout
27017 \begin_layout Standard
27018 The type of the box can be specified in the box-dialog in the drop-down
27024 The following types are possible:
27027 \begin_layout Description
27029 \begin_inset space ~
27033 \begin_inset space ~
27036 frame This draws a rectangle frame around the box.
27037 The frame line thickness has the size of
27045 \begin_inset Box Boxed
27054 height_special "totalheight"
27057 \begin_layout Plain Layout
27067 \begin_layout Description
27069 \begin_inset space ~
27073 \begin_inset space ~
27076 break When you use the decoration
27078 simple rectangular frame
27080 and no inner box, you can allow page breaks within a box.
27081 Note that then, in contrary to other framed boxes, the frame always uses
27082 the whole column width, the box is set as its own paragraph, and
27094 has no effect on this box type.
27095 The frame line thickness has the size of
27103 \begin_inset Box Framed
27112 height_special "totalheight"
27115 \begin_layout Plain Layout
27116 Allow page break box
27124 \begin_layout Description
27126 \begin_inset space ~
27130 \begin_inset space ~
27133 thin This draws an oval frame around the box.
27134 The frame line thickness has the size 0.4
27135 \begin_inset space \thinspace{}
27140 \begin_inset Box ovalbox
27149 height_special "totalheight"
27152 \begin_layout Plain Layout
27162 \begin_layout Description
27164 \begin_inset space ~
27168 \begin_inset space ~
27171 thick This draws an oval frame around the box.
27172 The frame line thickness has the size 0.8
27173 \begin_inset space \thinspace{}
27178 \begin_inset Box Ovalbox
27187 height_special "totalheight"
27190 \begin_layout Plain Layout
27200 \begin_layout Description
27202 \begin_inset space ~
27205 shadow This draws a rectangle frame with a shadow around the box.
27206 The frame line thickness has the size of
27212 , the shadow has a width of 4
27213 \begin_inset space \thinspace{}
27218 \begin_inset Box Shadowbox
27227 height_special "totalheight"
27230 \begin_layout Plain Layout
27240 \begin_layout Description
27242 \begin_inset space ~
27245 background This draws a box with red background color.
27246 In contrary to colored boxes
27250 \begin_layout Plain Layout
27252 \begin_inset space \thinspace{}
27256 \begin_inset CommandInset ref
27258 reference "sec:Colored-Boxes"
27267 , it always uses the whole column width and the box is set as its own paragraph.
27269 \begin_inset Box Shaded
27278 height_special "totalheight"
27281 \begin_layout Plain Layout
27282 Shaded background box
27290 \begin_layout Description
27292 \begin_inset space ~
27296 \begin_inset space ~
27299 frame This draws a double-line rectangle frame around the box.
27300 The line thickness of the inner frame is 0.75
27301 \begin_inset space \thinspace{}
27310 , the thickness of the outer frame is 1.5
27311 \begin_inset space \thinspace{}
27321 The distance between the lines is 1.5
27322 \begin_inset space \thinspace{}
27332 \begin_inset space \thinspace{}
27336 \begin_inset space \thinspace{}
27340 \begin_inset space \thinspace{}
27345 \begin_inset Box Doublebox
27354 height_special "totalheight"
27357 \begin_layout Plain Layout
27359 Double rectangular box
27367 \begin_layout Standard
27368 \begin_inset VSpace bigskip
27371 LyX's box label will reflect the different frame types.
27372 To be able to use all types, the LaTeX-package
27380 \begin_layout Plain Layout
27381 LaTeX-packages ! fancybox
27389 \begin_layout Section
27394 \begin_layout Plain Layout
27395 Boxes ! Customization
27403 \begin_layout Standard
27404 The default value for the size
27411 \begin_inset space \thinspace{}
27415 It can be changed with the following command in TeX-Code to e.
27416 \begin_inset space \thinspace{}
27420 \begin_inset space \space{}
27424 \begin_inset space \thinspace{}
27430 \begin_layout Standard
27440 \begin_layout Standard
27444 \begin_layout Plain Layout
27456 \begin_inset Box Boxed
27465 height_special "totalheight"
27468 \begin_layout Plain Layout
27470 Rectangular box with
27477 \begin_inset space \thinspace{}
27481 \begin_inset space \thinspace{}
27485 \begin_inset space \thinspace{}
27497 \begin_layout Plain Layout
27511 \begin_layout Standard
27512 \begin_inset VSpace bigskip
27515 The space between the frame and the box content is for all frame styles
27517 \begin_inset space \thinspace{}
27521 You can change it by setting the length
27528 For example the command
27531 \begin_layout Standard
27541 \begin_layout Standard
27542 sets the value to 10
27543 \begin_inset space \thinspace{}
27546 pt, like for the following box:
27549 \begin_layout Standard
27553 \begin_layout Plain Layout
27565 \begin_inset Box Boxed
27574 height_special "totalheight"
27577 \begin_layout Plain Layout
27579 Rectangular box with
27586 \begin_inset space \thinspace{}
27590 \begin_inset space \thinspace{}
27594 \begin_inset space \thinspace{}
27606 \begin_layout Plain Layout
27620 \begin_layout Standard
27621 \begin_inset VSpace bigskip
27624 The diameter of the round corners of the oval boxes can be set with the
27635 \begin_layout Standard
27643 \begin_layout Standard
27644 sets the diameter to 1
27645 \begin_inset space \thinspace{}
27652 \begin_layout Standard
27660 \begin_layout Standard
27661 sets the diameter to
27664 \begin_inset space \thinspace{}
27668 \begin_inset space \thinspace{}
27671 minimum(width and heigth of box)
27683 \begin_layout Standard
27687 \begin_layout Plain Layout
27697 \begin_inset Box Ovalbox
27706 height_special "totalheight"
27709 \begin_layout Plain Layout
27718 \begin_inset space \thinspace{}
27722 \begin_inset space \thinspace{}
27726 \begin_inset space \thinspace{}
27738 \begin_layout Plain Layout
27750 \begin_layout Standard
27751 \begin_inset VSpace bigskip
27754 The size of the shadow can be adjusted by changing the length
27762 \begin_inset space \thinspace{}
27765 pt for the following box by this command:
27768 \begin_layout Standard
27778 \begin_layout Standard
27782 \begin_layout Plain Layout
27794 \begin_inset Box Shadowbox
27803 height_special "totalheight"
27806 \begin_layout Plain Layout
27815 \begin_inset space \thinspace{}
27819 \begin_inset space \thinspace{}
27823 \begin_inset space \thinspace{}
27835 \begin_layout Plain Layout
27849 \begin_layout Standard
27850 \begin_inset VSpace bigskip
27856 \begin_layout Standard
27857 The default value for the size
27864 \begin_inset space \thinspace{}
27868 The default space between the note content and the frame is 9
27869 \begin_inset space \thinspace{}
27872 pt and can be changed with the value of
27879 For example the frame appearance of the following
27883 is set with the TeX-Code commands
27886 \begin_layout Standard
27894 \begin_inset Newline newline
27904 \begin_layout Standard
27908 \begin_layout Plain Layout
27917 \begin_layout Plain Layout
27929 \begin_inset Box Framed
27938 height_special "totalheight"
27941 \begin_layout Plain Layout
27955 \begin_layout Plain Layout
27964 \begin_layout Plain Layout
27978 \begin_layout Standard
27979 \begin_inset VSpace bigskip
27985 \begin_layout Standard
27990 boxes the default space between the box content and the box border is 3
27991 \begin_inset space \thinspace{}
27994 pt and can be changed with the value of
28001 The default background color red can either be changed locally with the
28006 definecolor{shadebox}
28008 or globally with the menu
28010 Tools\SpecialChar \menuseparator
28011 Preferences\SpecialChar \menuseparator
28012 Colors\SpecialChar \menuseparator
28014 \begin_inset space ~
28026 command is explained in section
28027 \begin_inset space ~
28031 \begin_inset CommandInset ref
28033 reference "sec:Colored-Tables"
28041 \begin_layout Plain Layout
28048 requires the LaTeX-package
28052 in the preamble, see section
28053 \begin_inset space ~
28057 \begin_inset CommandInset ref
28059 reference "sec:Colored-Boxes"
28068 For example the appearance of the following shaded background note is set
28069 with the TeX-Code commands
28072 \begin_layout Standard
28082 \begin_inset Newline newline
28089 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
28092 \begin_layout Standard
28096 \begin_layout Plain Layout
28105 \begin_layout Plain Layout
28109 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
28115 \begin_inset Box Shaded
28124 height_special "totalheight"
28127 \begin_layout Plain Layout
28130 This is yellow text in a
28140 box with dark green background.
28149 \begin_layout Plain Layout
28158 \begin_layout Plain Layout
28162 definecolor{shadecolor}{rgb}{1,0,0}
28170 \begin_layout Standard
28171 \begin_inset VSpace bigskip
28174 Changed lengths and widths are valid for all boxes following the commands
28178 \begin_layout Section
28180 \begin_inset CommandInset label
28182 name "sec:Minipages"
28190 \begin_layout Plain Layout
28199 \begin_layout Standard
28200 Minipages are treated by LaTeX as pages within pages and can therefore for
28201 example have their own footnotes.
28204 \begin_layout Standard
28205 Minipages are useful when you write documents with different languages.
28208 \begin_layout Standard
28209 Below are two example minipages side by side.
28210 Their width is set to 45
28211 \begin_inset space \thinspace{}
28214 col% and they are separated by a horizontal fill, that was inserted via
28217 Insert\SpecialChar \menuseparator
28219 \begin_inset space ~
28222 Formatting\SpecialChar \menuseparator
28224 \begin_inset space ~
28230 \begin_inset Newpage newpage
28236 \begin_layout Standard
28237 \begin_inset Box Frameless
28246 height_special "totalheight"
28249 \begin_layout Plain Layout
28252 Dies ist ein deutscher Text.
28253 Dies ist ein deutscher Text.
28254 Dies ist ein deutscher Text.
28255 Dies ist ein deutscher Text.
28256 Dies ist ein deutscher Text.
28257 Dies ist ein deutscher Text.
28258 Dies ist ein deutscher Text.
28259 Dies ist ein deutscher Text.
28260 Dies ist ein deutscher Text.
28261 Dies ist ein deutscher Text.
28262 Dies ist ein deutscher Text.
28263 Dies ist ein deutscher Text.
28264 Dies ist ein deutscher Text
28268 \begin_layout Plain Layout
28271 Dies ist eine deutsche Fußnote.
28277 Dies ist ein deutscher Text.
28278 Dies ist ein deutscher Text.
28284 \begin_inset space \hfill{}
28288 \begin_inset Box Frameless
28297 height_special "totalheight"
28300 \begin_layout Plain Layout
28301 This is an English Text.
28302 This is an English Text.
28303 This is an English Text.
28304 This is an English Text.
28305 This is an English Text.
28306 This is an English Text.
28307 This is an English Text.
28308 This is an English Text.
28309 This is an English Text.
28310 This is an English Text.
28311 This is an English Text.
28312 This is an English Text.
28313 This is an English Text.
28314 This is an English Text.
28315 This is an English Text.
28316 This is an English Text.
28320 \begin_layout Plain Layout
28321 This is an English footnote.
28326 This is an English Text.
28335 \begin_layout Standard
28336 \begin_inset VSpace bigskip
28339 Another application for minipages are footnotes within tables.
28340 Due to a LaTeX restriction footnotes within tables doesn't appear at the
28341 bottom of the current page.
28342 But when you put the table with the footnote to a minipage, the footnote
28343 will appear at its bottom, numbered with Latin letters.
28344 The footnote number is reset to 1 in every minipage but not outside the
28348 \begin_layout Standard
28349 The footnote of this table doesn't appear:
28350 \begin_inset Tabular
28351 <lyxtabular version="3" rows="3" columns="4">
28353 <column alignment="center" valignment="top" width="0pt">
28354 <column alignment="center" valignment="top" width="0pt">
28355 <column alignment="center" valignment="top" width="0pt">
28356 <column alignment="center" valignment="top" width="0pt">
28358 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28361 \begin_layout Plain Layout
28367 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28370 \begin_layout Plain Layout
28376 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28379 \begin_layout Plain Layout
28384 \begin_layout Plain Layout
28385 This is a footnote within a table.
28395 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28398 \begin_layout Plain Layout
28406 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28409 \begin_layout Plain Layout
28415 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28418 \begin_layout Plain Layout
28424 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28427 \begin_layout Plain Layout
28433 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28436 \begin_layout Plain Layout
28444 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28447 \begin_layout Plain Layout
28453 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28456 \begin_layout Plain Layout
28462 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28465 \begin_layout Plain Layout
28471 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28474 \begin_layout Plain Layout
28488 \begin_layout Standard
28490 \begin_inset Box Frameless
28499 height_special "totalheight"
28502 \begin_layout Plain Layout
28504 \begin_inset Tabular
28505 <lyxtabular version="3" rows="3" columns="4">
28507 <column alignment="center" valignment="top" width="0pt">
28508 <column alignment="center" valignment="top" width="0pt">
28509 <column alignment="center" valignment="top" width="0pt">
28510 <column alignment="center" valignment="top" width="0pt">
28512 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28515 \begin_layout Plain Layout
28521 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28524 \begin_layout Plain Layout
28530 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28533 \begin_layout Plain Layout
28538 \begin_layout Plain Layout
28539 This is a footnote within a table.
28549 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28552 \begin_layout Plain Layout
28560 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28563 \begin_layout Plain Layout
28569 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28572 \begin_layout Plain Layout
28578 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28581 \begin_layout Plain Layout
28587 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28590 \begin_layout Plain Layout
28598 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28601 \begin_layout Plain Layout
28607 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28610 \begin_layout Plain Layout
28616 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28619 \begin_layout Plain Layout
28625 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28628 \begin_layout Plain Layout
28647 \begin_layout Standard
28648 \begin_inset VSpace bigskip
28651 The document-wide paragraph settings are ignored within minipages.
28652 That means that there will be no space between paragraphs in minipages
28653 although you set it to e.
28654 \begin_inset space \thinspace{}
28658 \begin_inset space \space{}
28665 in the document settings.
28668 \begin_layout Standard
28669 Minipages can also be used to set a background color for text parts, see
28671 \begin_inset space ~
28675 \begin_inset CommandInset ref
28677 reference "sub:Color-for-Paragraphs"
28684 \begin_layout Standard
28685 \begin_inset Note Greyedout
28688 \begin_layout Plain Layout
28693 You cannot have floats or margin notes inside minipages but minipages can
28694 be used inside tables, floats, and other boxes.
28702 \begin_layout Section
28704 \begin_inset CommandInset label
28706 name "sec:Parboxes"
28714 \begin_layout Plain Layout
28723 \begin_layout Standard
28724 Parboxes are very similar to minipages with the difference that they cannot
28726 The main difference to minipages is that minipages are in contrary to parboxes
28727 no real boxes but LaTeX-environments.
28730 \begin_layout Standard
28732 \begin_inset Box Frameless
28741 height_special "totalheight"
28744 \begin_layout Plain Layout
28745 This a text within a parbox.
28746 This a text within a parbox.
28749 \begin_layout Plain Layout
28750 This footnote won't appear:
28754 \begin_layout Plain Layout
28755 This footnote is inside a parbox and will therefore not appear.
28768 \begin_layout Section
28769 Boxes for Words and Characters
28773 \begin_layout Plain Layout
28774 Boxes ! for Characters
28782 \begin_layout Subsection
28783 Prevent Hyphenation
28784 \begin_inset CommandInset label
28786 name "sec:Prevent-Hyphenation"
28794 \begin_layout Plain Layout
28795 Boxes ! to Prevent Hyphenation
28803 \begin_layout Standard
28804 You can use a special kind of boxes to prevent words or text to be hyphenated.
28805 \begin_inset Newline newline
28808 Here is an example text:
28811 \begin_layout Standard
28812 This line is an example to show how you can prevent the hyphenation of
28813 \begin_inset Quotes eld
28817 \begin_inset Quotes erd
28823 \begin_layout Standard
28824 To prevent the hyphenation of the word
28825 \begin_inset Quotes eld
28829 \begin_inset Quotes erd
28835 \begin_layout Standard
28843 \begin_layout Standard
28844 in TeX-Code before the word.
28845 Behind the word insert a closing brace
28846 \begin_inset Quotes eld
28854 \begin_inset Quotes erd
28860 \begin_layout Standard
28861 This is the result:
28864 \begin_layout Standard
28865 This line is an example to show how you can prevent the hyphenation of
28869 \begin_layout Plain Layout
28879 \begin_inset Quotes eld
28883 \begin_inset Quotes erd
28890 \begin_layout Plain Layout
28900 \begin_layout Standard
28901 You can alternatively set the command
28902 \begin_inset Quotes eld
28912 \begin_inset Quotes grd
28915 as TeX-Code directly before the word:
28918 \begin_layout Standard
28919 This line is an example to show how you can prevent the hyphenation of
28920 \begin_inset Quotes eld
28927 \begin_layout Plain Layout
28937 \begin_inset Quotes erd
28943 \begin_layout Standard
28944 Of course the word now protrudes over the side margin.
28945 To avoid this, add via the menu
28947 Insert\SpecialChar \menuseparator
28949 \begin_inset space ~
28952 Formatting\SpecialChar \menuseparator
28954 \begin_inset space ~
28962 arg "newline-insert newline"
28965 ) a line break before the word:
28968 \begin_layout Standard
28969 This line is an example to show how you can prevent the hyphenation of
28970 \begin_inset Newline newline
28977 \begin_layout Plain Layout
28987 \begin_inset Quotes eld
28991 \begin_inset Quotes erd
28998 \begin_layout Plain Layout
29008 \begin_layout Subsection
29010 \begin_inset CommandInset label
29012 name "sub:Vertical-Alignment"
29020 \begin_layout Plain Layout
29021 Boxes ! for Vertical Alignment
29030 \begin_layout Plain Layout
29039 \begin_layout Standard
29040 With the help of the command
29046 you can align words, characters or other boxes vertically to the surrounding
29054 is used with the following scheme:
29057 \begin_layout Standard
29062 raisebox{lift}[height][depth]{box content}
29065 \begin_layout Standard
29066 The lift can be a positive value to raise the box or a negative value to
29070 \begin_layout Standard
29071 To align for example the word
29072 \begin_inset Quotes eld
29076 \begin_inset Quotes erd
29079 so that the bottom of the
29080 \begin_inset Quotes eld
29084 \begin_inset Quotes erd
29088 \begin_inset Quotes eld
29092 \begin_inset Quotes erd
29095 is at the baseline, insert the command
29098 \begin_layout Standard
29108 \begin_layout Standard
29109 in TeX-Code before the word.
29110 Behind the word insert a closing brace
29111 \begin_inset Quotes eld
29119 \begin_inset Quotes erd
29123 \begin_inset Newline newline
29126 This is the result:
29129 \begin_layout Standard
29130 This is a text line with the word
29134 \begin_layout Plain Layout
29146 \begin_inset Quotes eld
29150 \begin_inset Quotes erd
29157 \begin_layout Plain Layout
29167 \begin_layout Standard
29168 \begin_inset VSpace bigskip
29171 When you raise or lower characters in a line, the line distance will be
29175 \begin_layout Standard
29176 This is a text line with the word
29180 \begin_layout Plain Layout
29192 \begin_inset Quotes eld
29196 \begin_inset Quotes erd
29203 \begin_layout Plain Layout
29211 \begin_inset Newline newline
29214 This is a text line with the word
29218 \begin_layout Plain Layout
29228 \begin_inset Quotes eld
29232 \begin_inset Quotes erd
29239 \begin_layout Plain Layout
29249 \begin_layout Standard
29250 If you want to prevent this for a certain reason, set the box height to
29255 \begin_layout Standard
29265 \begin_layout Standard
29266 This is a text line with the word
29270 \begin_layout Plain Layout
29282 \begin_inset Quotes eld
29286 \begin_inset Quotes erd
29293 \begin_layout Plain Layout
29301 \begin_inset Newline newline
29304 This is a text line with the word
29308 \begin_layout Plain Layout
29312 raisebox{0.5cm}[0pt]{
29318 \begin_inset Quotes eld
29322 \begin_inset Quotes erd
29329 \begin_layout Plain Layout
29339 \begin_layout Section
29341 \begin_inset CommandInset label
29343 name "sec:Colored-Boxes"
29351 \begin_layout Plain Layout
29360 \begin_layout Subsection
29365 \begin_layout Plain Layout
29374 \begin_layout Standard
29375 To color the background of text the text must be put into a so called
29376 \begin_inset Quotes eld
29380 \begin_inset Quotes erd
29384 This requires that the LaTeX-package
29392 \begin_layout Plain Layout
29393 LaTeX-packages ! color
29398 is loaded in the document preamble with the command
29401 \begin_layout Standard
29406 @ifundefined{textcolor}
29407 \begin_inset Newline newline
29414 \begin_layout Plain Layout
29425 usepackage{color}}{}
29428 \begin_layout Standard
29433 will be loaded automatically by LyX when you color text
29437 \begin_layout Plain Layout
29438 To avoid that it is loaded twice the command
29452 \begin_layout Standard
29453 \begin_inset VSpace medskip
29456 Colorboxes are created with the command
29463 This will be used with the following scheme:
29466 \begin_layout Standard
29471 colorbox{color}{box content}
29474 \begin_layout Standard
29475 The box content can also be a box and colorboxes can also be within other
29479 \begin_layout Standard
29480 The following colors are predefined:
29481 \begin_inset Newline newline
29520 \begin_inset Newline newline
29523 You can also define your own color as described in section
29524 \begin_inset space ~
29528 \begin_inset CommandInset ref
29530 reference "sec:Colored-Tables"
29537 \begin_layout Standard
29539 \begin_inset space \thinspace{}
29543 \begin_inset space \space{}
29546 a red background for a word, insert the command
29549 \begin_layout Standard
29557 \begin_layout Standard
29558 before the word in TeX-Code.
29559 Behind the word insert a closing brace
29560 \begin_inset Quotes eld
29568 \begin_inset Quotes erd
29572 \begin_inset Newline newline
29575 This is the result:
29578 \begin_layout Standard
29579 This is a line where the word
29583 \begin_layout Plain Layout
29593 \begin_inset Quotes eld
29597 \begin_inset Quotes erd
29604 \begin_layout Plain Layout
29611 has a red background.
29614 \begin_layout Standard
29615 \begin_inset VSpace bigskip
29618 If you would have the box frame in a different color, you can use the command
29625 with the following scheme:
29628 \begin_layout Standard
29633 fcolorbox{frame color}{box color}{box content}
29636 \begin_layout Standard
29650 The frame thickness and the space between the frame and the box content
29651 can be adjusted with the lengths
29663 , respectively, as described in section
29664 \begin_inset space ~
29668 \begin_inset CommandInset ref
29670 reference "sec:Decoration"
29677 \begin_layout Standard
29678 For the following example the command
29681 \begin_layout Standard
29686 fcolorbox{cyan}{magenta}{
29689 \begin_layout Standard
29693 \begin_layout Standard
29694 Here is an example where the frame line thickness was set to 1
29695 \begin_inset space \thinspace{}
29699 \begin_inset Newline newline
29706 \begin_layout Plain Layout
29721 \begin_layout Plain Layout
29725 fcolorbox{cyan}{magenta}{
29730 This is text within a colored, framed box.
29734 \begin_layout Plain Layout
29744 \begin_layout Standard
29745 \begin_inset VSpace bigskip
29748 Of course you can also have colored text inside a colorbox:
29749 \begin_inset Newline newline
29756 \begin_layout Plain Layout
29760 fcolorbox{cyan}{magenta}{
29767 This is colored text within a colored, framed box.
29773 \begin_layout Plain Layout
29784 \begin_layout Plain Layout
29798 \begin_layout Standard
29801 \begin_inset VSpace medskip
29807 \begin_layout Standard
29808 \begin_inset Note Greyedout
29811 \begin_layout Plain Layout
29816 Text in colorboxes cannot have line breaks.
29817 To color multiple text lines or paragraphs, use a box inside a colorbox
29818 as described in the following.
29826 \begin_layout Subsection
29827 Color for Paragraphs
29828 \begin_inset CommandInset label
29830 name "sub:Color-for-Paragraphs"
29838 \begin_layout Plain Layout
29839 Color ! for Paragraphs
29847 \begin_layout Standard
29848 To set the background color for more than one text line, put the text into
29850 Before the minipage insert the
29859 \begin_layout Standard
29867 \begin_layout Standard
29869 Behind the minipage insert a closing brace
29870 \begin_inset Quotes eld
29878 \begin_inset Quotes erd
29884 \begin_layout Standard
29888 \begin_layout Plain Layout
29892 colorbox{lightgrey}{
29898 \begin_inset Box Frameless
29907 height_special "totalheight"
29910 \begin_layout Plain Layout
29911 This is text with background color.
29912 This is text with background color.
29915 \begin_layout Plain Layout
29916 \begin_inset VSpace defskip
29919 The text can have footnotes
29923 \begin_layout Plain Layout
29924 Another example footnote
29929 and can include tables and figures.
29932 \begin_layout Plain Layout
29934 \begin_inset Tabular
29935 <lyxtabular version="3" rows="3" columns="3">
29937 <column alignment="center" valignment="top" width="0">
29938 <column alignment="center" valignment="top" width="0">
29939 <column alignment="center" valignment="top" width="0">
29941 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29944 \begin_layout Plain Layout
29950 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29953 \begin_layout Plain Layout
29959 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29962 \begin_layout Plain Layout
29970 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29973 \begin_layout Plain Layout
29979 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29982 \begin_layout Plain Layout
29984 \begin_inset Quotes erd
29992 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29995 \begin_layout Plain Layout
30003 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30006 \begin_layout Plain Layout
30012 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30015 \begin_layout Plain Layout
30021 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30024 \begin_layout Plain Layout
30044 \begin_layout Plain Layout
30054 \begin_layout Section
30055 Rotated and Scaled Boxes
30058 \begin_layout Standard
30059 To use the the commands described in this section, the LaTeX-package
30067 \begin_layout Plain Layout
30068 LaTeX-packages ! graphicx
30073 needs to be loaded in the document preamble with the command
30076 \begin_layout Standard
30081 @ifundefined{rotatebox}
30082 \begin_inset Newline newline
30089 \begin_layout Plain Layout
30100 usepackage{graphicx}}{}
30103 \begin_layout Standard
30104 \begin_inset Note Greyedout
30107 \begin_layout Plain Layout
30112 Some DVI-viewers can't display rotated or scaled material.
30120 \begin_layout Standard
30121 \begin_inset Note Greyedout
30124 \begin_layout Plain Layout
30129 Floats mustn't be inside a rotated or scaled box.
30137 \begin_layout Subsection
30142 \begin_layout Plain Layout
30152 \begin_layout Plain Layout
30162 \begin_layout Plain Layout
30172 \begin_layout Plain Layout
30173 Table Customization ! Rotating
30181 \begin_layout Standard
30182 To rotate material, you can put it into a rotated box.
30183 Such a box is created using the command
30189 in TeX-Code with the following scheme:
30192 \begin_layout Standard
30197 rotatebox[rotation origin]{rotation angle}{box content}
30200 \begin_layout Standard
30201 The rotation origin is specified in the form
30206 The following positions are possible:
30226 (top), and also expedient combinations of the four base positions.
30231 means, that the rotation origin is at the top left corner of the box.
30232 When no rotation origin is specified, the position
30237 The rotation angle is a number that can be negative that specifies the
30239 The rotation direction is counterclockwise.
30242 \begin_layout Standard
30243 In the following example the command
30247 rotatebox[origin=c]{60}{
30249 was inserted as TeX-Code before the text
30250 \begin_inset Quotes eld
30254 \begin_inset Quotes erd
30257 ; after the text the box was closed by a closing brace
30264 \begin_layout Standard
30269 \begin_layout Plain Layout
30273 rotatebox[origin=c]{60}{
30282 \begin_layout Plain Layout
30292 \begin_layout Standard
30293 The box content can also be another box or an inline formula:
30296 \begin_layout Standard
30301 \begin_layout Plain Layout
30305 rotatebox[origin=r]{-60}{
30311 \begin_inset Box Doublebox
30320 height_special "totalheight"
30323 \begin_layout Plain Layout
30333 \begin_layout Plain Layout
30344 \begin_layout Plain Layout
30348 rotatebox[origin=lb]{60}{
30354 \begin_inset Formula $\int A\,\mathrm{d}x=B$
30361 \begin_layout Plain Layout
30371 \begin_layout Standard
30372 or an image or table:
30375 \begin_layout Standard
30380 \begin_layout Plain Layout
30384 rotatebox[origin=lb]{90}{
30390 \begin_inset Graphics
30391 filename clipart/platypus.eps
30401 \begin_layout Plain Layout
30408 with a rotated image
30412 \begin_layout Plain Layout
30416 rotatebox[origin=l]{-90}{
30422 \begin_inset Tabular
30423 <lyxtabular version="3" rows="2" columns="2">
30425 <column alignment="center" valignment="top" width="0">
30426 <column alignment="center" valignment="top" width="0">
30428 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30431 \begin_layout Plain Layout
30437 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30440 \begin_layout Plain Layout
30448 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30451 \begin_layout Plain Layout
30457 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30460 \begin_layout Plain Layout
30475 \begin_layout Plain Layout
30485 \begin_layout Subsection
30490 \begin_layout Plain Layout
30500 \begin_layout Plain Layout
30510 \begin_layout Plain Layout
30520 \begin_layout Plain Layout
30521 Table Customization ! Scaling
30529 \begin_layout Standard
30530 To scale material the commands
30542 can be used as TeX-Code.
30545 \begin_layout Standard
30552 is used with the following scheme:
30555 \begin_layout Standard
30560 scalebox{horizontal}[vertical]{box content}
30563 \begin_layout Standard
30564 Horizontal and vertical are the corresponding scaling factors.
30565 If no vertical scaling factor is given, the horizontal factor will also
30566 be used as vertical one.
30569 \begin_layout Standard
30576 creates for example a double size
30580 \begin_layout Plain Layout
30593 \begin_layout Plain Layout
30600 , compared to the document text size.
30603 \begin_layout Standard
30608 scalebox{2}[1]{Hello}
30610 in contrary distorts the
30614 \begin_layout Plain Layout
30627 \begin_layout Plain Layout
30637 \begin_layout Standard
30638 If a the scaling factor is negative, the box content will be mirrored.
30639 Therefore the command
30643 scalebox{-1}[1]{Hello}
30645 can be used to create mirror writing:
30649 \begin_layout Plain Layout
30662 \begin_layout Plain Layout
30672 \begin_layout Standard
30677 scalebox{1}[-1]{Hello}
30683 \begin_layout Plain Layout
30696 \begin_layout Plain Layout
30706 \begin_layout Standard
30711 scalebox{-1}[1]{box content}
30713 there exists the command
30714 \begin_inset Newline newline
30721 reflectbox{box content}
30726 \begin_layout Standard
30727 \begin_inset VSpace bigskip
30736 is used to scale the box to a defined width and height.
30737 The command scheme is:
30740 \begin_layout Standard
30745 resizebox{width}{height}{box content}
30748 \begin_layout Standard
30749 Is one of the two command arguments given as exclamation mark
30753 , the size is set so that the aspect ratio of the box content is kept.
30756 \begin_layout Standard
30761 resizebox{2cm}{1cm}{Hello}
30767 \begin_layout Plain Layout
30771 resizebox{2cm}{1cm}{
30780 \begin_layout Plain Layout
30788 \begin_inset Newline newline
30795 resizebox{2cm}{!}{Hello}
30801 \begin_layout Plain Layout
30814 \begin_layout Plain Layout
30824 \begin_layout Standard
30825 \begin_inset VSpace bigskip
30829 \begin_inset Note Greyedout
30832 \begin_layout Plain Layout
30849 are set to zero, no LaTeX-errors occur when exporting the document but
30850 the exported files can not or only partly be displayed.
30858 \begin_layout Standard
30859 \begin_inset VSpace bigskip
30865 \begin_layout Standard
30866 The boxes can be combined in any order.
30868 \begin_inset space \thinspace{}
30872 \begin_inset space \space{}
30876 \begin_inset Newline newline
30883 rotatebox[origin=c]{-45}{
30887 reflectbox{Hello}}}
30888 \begin_inset Newline newline
30896 \begin_layout Standard
30901 \begin_layout Plain Layout
30905 rotatebox[origin=c]{-45}{
30918 \begin_layout Plain Layout
30928 \begin_layout Standard
30930 Images, tables, and inline formulas are allowed as box content:
30933 \begin_layout Standard
30938 \begin_layout Plain Layout
30942 rotatebox[origin=c]{-30}{
30952 \begin_inset Graphics
30953 filename clipart/platypus.eps
30963 \begin_layout Plain Layout
30974 \begin_layout Plain Layout
30978 rotatebox[origin=c]{-45}{
30988 \begin_inset Tabular
30989 <lyxtabular version="3" rows="2" columns="2">
30991 <column alignment="center" valignment="top" width="0">
30992 <column alignment="center" valignment="top" width="0">
30994 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30997 \begin_layout Plain Layout
31003 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31006 \begin_layout Plain Layout
31014 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31017 \begin_layout Plain Layout
31023 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31026 \begin_layout Plain Layout
31041 \begin_layout Plain Layout
31052 \begin_layout Plain Layout
31056 rotatebox[origin=c]{-45}{
31066 \begin_inset Formula $\int A\,\mathrm{d}x=B$
31073 \begin_layout Plain Layout
31083 \begin_layout Standard
31084 When the global formula style
31088 is used in the document
31092 \begin_layout Plain Layout
31094 \begin_inset Quotes eld
31098 \begin_inset Quotes erd
31101 is added to the document class options.
31106 , also display formulas can be scaled.
31109 \begin_layout Chapter
31114 \begin_layout Plain Layout
31123 \begin_layout Standard
31126 Insert\SpecialChar \menuseparator
31129 you can insert external material to your document.
31133 \begin_layout Description
31135 \begin_inset space ~
31138 Document Another LyX document; its content is directly inserted to your
31142 \begin_layout Description
31144 \begin_inset space ~
31147 Text A text document; every of its text lines is inserted to your document
31151 \begin_layout Description
31153 \begin_inset space ~
31157 \begin_inset space ~
31161 \begin_inset space ~
31164 Lines A text document; its text lines are inserted as they are.
31165 Empty text lines creates a new paragraph in your document.
31168 \begin_layout Description
31170 \begin_inset space ~
31173 Material Files in various formats.
31176 \begin_layout Description
31178 \begin_inset space ~
31181 Document LyX or LaTeX-documents.
31184 \begin_layout Section
31189 \begin_layout Plain Layout
31190 External Stuff ! External Material
31198 \begin_layout Standard
31199 The external material feature allows you to insert files to your document
31200 without converting them previously to a format that can be read by the
31201 document output format because LyX takes care of needed conversions.
31202 This is similar to images that can be inserted in various image formats
31206 \begin_layout Standard
31207 External material can be inserted via the
31211 dialog that is accessible with the menu
31213 Insert\SpecialChar \menuseparator
31214 File\SpecialChar \menuseparator
31216 \begin_inset space ~
31222 Currently the following file types (
31229 \begin_layout Description
31230 ChessDiagram This template supports chess position diagrams made with the
31234 \begin_inset CommandInset href
31237 target "http://en.wikipedia.org/wiki/XBoard"
31246 \begin_layout Description
31247 Date This inserts the date in the form
31252 This is a date inserted as external material:
31253 \begin_inset External
31260 \begin_inset space ~
31264 \begin_inset Note Note
31267 \begin_layout Plain Layout
31268 Remove the protected space when bug 4398 is fixed!
31274 \begin_inset Newline newline
31277 The date is not shown within LyX, only in the output.
31278 There are two other methods of inserting a date: Via menu
31280 Insert\SpecialChar \menuseparator
31283 and with the LaTeX command
31290 The different methods are compared in Table
31291 \begin_inset space ~
31295 \begin_inset CommandInset ref
31297 reference "tab:Comparison-of-the"
31304 \begin_layout Description
31305 LilyPond This template is used for music notation typeset with the program
31306 \begin_inset Newline linebreak
31312 \begin_inset CommandInset href
31315 target "http://en.wikipedia.org/wiki/LilyPond"
31324 \begin_layout Description
31325 PDFPages With this template you can insert PDF documents to your document.
31326 To insert certain or all pages of a PDF, use the
31336 LaTeX and LyX options
31338 tab according to the template description in the dialog.
31343 option is given, only the first page of the PDF will be inserted.
31346 \begin_layout Description
31347 RasterImage This can be used for bitmap images.
31348 Nearly all popular image formats are supported.
31349 The image can be treated in the
31353 dialog like the images that are usually included via the
31357 dialog as described in section
31358 \begin_inset space ~
31362 \begin_inset CommandInset ref
31364 reference "sec:Graphics-Dialog"
31369 The difference is that only raster images are allowed, that means that
31370 PDF and EPS-images are not supported.
31373 \begin_layout Description
31374 XFig This template supports images created with the program
31377 \begin_inset CommandInset href
31380 target "http://en.wikipedia.org/wiki/Xfig"
31389 \begin_layout Description
31391 \change_inserted 0 1229526672
31392 Dia This template supports diagrams created with the program
31395 \begin_inset CommandInset href
31398 target "http://en.wikipedia.org/wiki/Dia_(software)"
31409 \begin_layout Standard
31410 \begin_inset Float table
31416 \begin_layout Plain Layout
31417 \begin_inset Caption
31419 \begin_layout Plain Layout
31420 \begin_inset CommandInset label
31422 name "tab:Comparison-of-the"
31426 Comparison of the date input methods.
31434 \begin_layout Plain Layout
31436 \begin_inset Tabular
31437 <lyxtabular version="3" rows="4" columns="4">
31439 <column alignment="center" valignment="top" width="0">
31440 <column alignment="center" valignment="top" width="0">
31441 <column alignment="center" valignment="top" width="0">
31442 <column alignment="center" valignment="top" width="0">
31444 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31447 \begin_layout Plain Layout
31453 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31456 \begin_layout Plain Layout
31459 External Material\SpecialChar \menuseparator
31465 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31468 \begin_layout Plain Layout
31471 Insert\SpecialChar \menuseparator
31477 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31480 \begin_layout Plain Layout
31492 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31495 \begin_layout Plain Layout
31501 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31504 \begin_layout Plain Layout
31510 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31513 \begin_layout Plain Layout
31519 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31522 \begin_layout Plain Layout
31523 as TeX-Code inset box
31530 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31533 \begin_layout Plain Layout
31539 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31542 \begin_layout Plain Layout
31548 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31551 \begin_layout Plain Layout
31557 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31560 \begin_layout Plain Layout
31568 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31571 \begin_layout Plain Layout
31577 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31580 \begin_layout Plain Layout
31586 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31589 \begin_layout Plain Layout
31595 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31598 \begin_layout Plain Layout
31617 \begin_layout Standard
31618 When you use the option
31630 dialog, only the path to the inserted file is shown in the output.
31631 \begin_inset Newline newline
31634 External material is displayed in LyX either as box like this:
31635 \begin_inset Graphics
31636 filename clipart/ExternalMaterialQt4.png
31638 scaleBeforeRotation
31642 or as image, depending on the option
31648 LaTeX and LyX options
31653 \begin_layout Standard
31660 manual explains how you can define your own templates.
31663 \begin_layout Section
31665 \begin_inset CommandInset label
31667 name "sec:Child-Documents"
31675 \begin_layout Plain Layout
31676 External Stuff ! Child Documents
31685 \begin_layout Plain Layout
31694 \begin_layout Standard
31695 Child documents are used when you have a long document consisting of several
31696 larger parts or sections.
31697 For maintenance it is often useful and sometimes even required to split
31698 the document in several files that can be revised separately.
31699 The different documents are then the so called child documents and a master
31700 document connects them to print the full document or parts of it.
31701 A child documents inherits contents of its master, for example the bibliography
31702 and the labels for cross-references.
31705 \begin_layout Standard
31706 To be able to work on child documents without the need to open its master,
31707 specify in the child document the master in the menu
31709 Document\SpecialChar \menuseparator
31710 Settings\SpecialChar \menuseparator
31712 \begin_inset space ~
31718 This master file will then be used in the background by LyX when you edit
31719 the child document.
31722 \begin_layout Standard
31723 Included documents are displayed in LyX as a box like this:
31724 \begin_inset Graphics
31725 filename clipart/ChildDocumentQt4.png
31727 scaleBeforeRotation
31731 To include child documents to a master document use the menu
31733 Insert\SpecialChar \menuseparator
31734 File\SpecialChar \menuseparator
31736 \begin_inset space ~
31742 A dialog pops up where you can choose between four include methods:
31745 \begin_layout Description
31746 Include You can include LyX and LaTeX-documents.
31755 dialog, the included documents will be opened in LyX in a new file tab
31756 so that you can modify it.
31757 \begin_inset Newline newline
31763 \begin_layout Standard
31764 Here is a child document inserted using
31769 \begin_inset CommandInset include
31770 LatexCommand include
31771 filename "DummyDocument1.lyx"
31778 \begin_layout Standard
31779 The section numbering includes the sections of the included files in the
31780 order they are inserted in the master document.
31781 The included example document has for example a subsection that is numbered
31782 as subsection of this section.
31783 Labels of included documents can be referenced: Subsection
31784 \begin_inset space ~
31788 \begin_inset CommandInset ref
31790 reference "sub:External-Subsection-1"
31797 \begin_layout Standard
31798 The preamble of the child document is ignored, only the preamble of the
31799 master document is used.
31800 Included documents are inserted starting on a new page and end with a page
31804 \begin_layout Standard
31805 With the LaTeX-command
31811 you can specify which included child documents are processed when the output
31813 This is useful when you are perhaps only working on a certain chapter of
31814 your large document as this saves compiling time.
31821 is inserted to the master document preamble.
31822 It takes a comma-separated list of the filenames as argument, e.
31823 \begin_inset space \thinspace{}
31829 \begin_layout Standard
31834 includeonly{chapter1,chapter5}
31837 \begin_layout Standard
31838 will only process the included files named
31839 \begin_inset Quotes eld
31843 \begin_inset Quotes erd
31847 \begin_inset Quotes eld
31851 \begin_inset Quotes erd
31855 \begin_inset Quotes eld
31859 \begin_inset Quotes erd
31865 \begin_layout Standard
31866 \begin_inset Note Greyedout
31869 \begin_layout Plain Layout
31874 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
31875 w the document in case that the child document uses another document class
31876 than the master document as this will lead to unexpected outputs.
31884 \begin_layout Description
31885 Input This method is very similar to the Include method.
31886 The differences are:
31890 \begin_layout Itemize
31891 Input files don't start with a new page and don't end with a page break.
31894 \begin_layout Itemize
31895 Input files can be previewed in LyX when
31898 \begin_inset space ~
31903 is enabled in LyX's preferences under
31906 \begin_inset space ~
31910 \begin_inset space ~
31913 feel\SpecialChar \menuseparator
31919 \begin_layout Itemize
31930 \begin_layout Standard
31931 Here is a child document inserted using
31936 \begin_inset CommandInset include
31938 filename "DummyDocument2.lyx"
31945 \begin_layout Description
31946 Verbatim With this method every text file can be included.
31947 The file is shown in the output with its source code, no command used in
31948 the text is invoked.
31949 You can use the option
31951 Mark spaces in output
31953 that displays the character
31954 \begin_inset Quotes eld
31961 \begin_layout Plain Layout
31971 \begin_inset Quotes erd
31974 for every space character in the source code.
31975 The difference to the method via the menu
31977 Insert\SpecialChar \menuseparator
31978 File\SpecialChar \menuseparator
31980 \begin_inset space ~
31985 is that the document content is not shown in LyX.
31988 \begin_layout Standard
31989 Here is a child document inserted as Verbatim:
31990 \begin_inset CommandInset include
31991 LatexCommand verbatiminput
31992 filename "DummyTextDocument.txt"
31997 \begin_inset VSpace bigskip
32000 Here is a child document inserted as Verbatim using the
32002 Mark spaces in output
32005 \begin_inset CommandInset include
32006 LatexCommand verbatiminput*
32007 filename "DummyTextDocument.txt"
32014 \begin_layout Standard
32015 \begin_inset VSpace bigskip
32021 \begin_layout Standard
32022 \begin_inset Note Greyedout
32025 \begin_layout Plain Layout
32030 As you can see in the examples above, the text of the documents included
32035 is not broken at the end of the document lines.
32043 \begin_layout Description
32044 Listings This type is described in chapter
32045 \begin_inset space ~
32049 \begin_inset CommandInset ref
32051 reference "cha:Program-Code-Listings"
32058 \begin_layout Standard
32059 \begin_inset Note Greyedout
32062 \begin_layout Plain Layout
32067 Including the same document twice in a document using different methods
32068 could cause LaTeX-problems.
32076 \begin_layout Chapter
32077 Program Code Listings
32078 \begin_inset CommandInset label
32080 name "cha:Program-Code-Listings"
32088 \begin_layout Plain Layout
32098 \begin_layout Plain Layout
32108 \begin_layout Plain Layout
32117 \begin_layout Standard
32118 To include and typeset program code you can use the
32122 inset that can be inserted via the menu
32124 Insert\SpecialChar \menuseparator
32136 \begin_layout Plain Layout
32137 LaTeX-packages ! listings
32142 provides a powerful and flexible way to insert program source code to your
32146 \begin_layout Standard
32147 Right-clicking on a listings inset opens the context menu containing where
32148 you can set the listings format.
32151 \begin_layout Standard
32152 By default, a listing starts a new paragraph in the output.
32153 The placement option
32156 \begin_inset space ~
32161 prints the listing inline like this:
32162 \begin_inset listings
32163 lstparams "language={C++}"
32167 \begin_layout Plain Layout
32175 \begin_inset Newline newline
32182 creates a listings float where you can specify the placement options
32183 \begin_inset Quotes eld
32191 \begin_inset Quotes erd
32195 \begin_inset Quotes eld
32203 \begin_inset Quotes erd
32207 \begin_inset Quotes eld
32215 \begin_inset Quotes erd
32219 \begin_inset Quotes eld
32227 \begin_inset Quotes erd
32230 corresponding to the float placement options described in section
32231 \begin_inset space ~
32235 \begin_inset CommandInset ref
32237 reference "sec:Float-Placement"
32242 The placement options can be mixed and are inserted without any separation,
32244 \begin_inset space \thinspace{}
32248 \begin_inset space \space{}
32252 \begin_inset Quotes eld
32260 \begin_inset Quotes erd
32265 \begin_inset Quotes eld
32269 \begin_inset Quotes erd
32272 has sometimes no effect, but you don't need to use the
32276 option in this case as also non-float listings can have captions and be
32280 \begin_layout Standard
32281 You can add captions to listings with the menu
32283 Insert\SpecialChar \menuseparator
32287 Listings can be referenced like floats: Listing
32288 \begin_inset space ~
32292 \begin_inset CommandInset ref
32294 reference "lst:Example-Listing"
32301 \begin_layout Standard
32302 \begin_inset listings
32303 lstparams "language=Python"
32307 \begin_layout Plain Layout
32309 \begin_inset Caption
32311 \begin_layout Plain Layout
32312 \begin_inset CommandInset label
32314 name "lst:Example-Listing"
32318 Example Listing float
32323 # Example listing float
32326 \begin_layout Plain Layout
32331 \begin_layout Plain Layout
32333 'this is a python function'
32336 \begin_layout Plain Layout
32346 \begin_layout Standard
32347 When you have set a programming language in the listings dialog, the keywords
32348 of this language will be recognized and specially typeset in the output.
32349 In the example listings the Python keyword
32350 \begin_inset Quotes eld
32354 \begin_inset Quotes erd
32357 is recognized and printed bold in the output.
32360 \begin_layout Standard
32361 \begin_inset Note Greyedout
32364 \begin_layout Plain Layout
32369 If you don't get bold keywords when using typewriter fonts, your
32373 font probably doesn't provide a bold shape.
32374 In this case select a different one in the menu
32376 Document\SpecialChar \menuseparator
32377 Settings\SpecialChar \menuseparator
32389 provide bold shapes.)
32397 \begin_layout Standard
32401 \begin_inset space ~
32406 of the listings dialog you can specify the line numbering style.
32407 You can insert a number to specify which lines are numbered to the field
32414 \begin_inset space \thinspace{}
32418 \begin_inset space \space{}
32422 \begin_inset Quotes eld
32426 \begin_inset Quotes erd
32429 , only every 3rd line will be numbered.
32432 \begin_layout Standard
32433 You can furthermore specify a range of lines, only these will then appear
32437 Extended character table
32439 should be used when you use national characters like the German umlauts
32441 \begin_inset Newline newline
32444 Here is an example listing with left line numbering, step
32445 \begin_inset Quotes eld
32449 \begin_inset Quotes erd
32453 \begin_inset Quotes eld
32457 \begin_inset Quotes erd
32461 \begin_inset Quotes eld
32464 Extended character table
32465 \begin_inset Quotes erd
32469 \begin_inset Quotes eld
32473 \begin_inset space ~
32477 \begin_inset space ~
32481 \begin_inset Quotes erd
32485 \begin_inset space \thinspace{}
32489 \begin_inset space \thinspace{}
32495 \begin_layout Standard
32496 \begin_inset listings
32497 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
32501 \begin_layout Plain Layout
32506 \begin_layout Plain Layout
32508 'this is a python function'
32511 \begin_layout Plain Layout
32516 \begin_layout Plain Layout
32521 \begin_layout Plain Layout
32523 'This is a German word: Tschüß'
32526 \begin_layout Plain Layout
32531 \begin_layout Plain Layout
32536 \begin_layout Plain Layout
32538 'this is a python function'
32541 \begin_layout Plain Layout
32551 \begin_layout Standard
32552 When you have tabulators in your listing, you can specify the number of
32553 characters that are spanned by a tabulator in the field
32556 \begin_inset space ~
32564 \begin_layout Standard
32565 \begin_inset Note Greyedout
32568 \begin_layout Plain Layout
32573 Due to a bug in the
32577 package the line numbering is shifted by a line by every previous listing.
32578 That's the reason why the lines 2 and 5 are numbered in the above listing
32579 and not the lines 3 and 6.
32587 \begin_layout Standard
32588 \begin_inset VSpace bigskip
32594 \begin_layout Standard
32595 It is also possible to print lines from a file as listing.
32596 To do this, use the menu
32598 Insert\SpecialChar \menuseparator
32599 File\SpecialChar \menuseparator
32602 and choose the type
32610 \begin_layout Plain Layout
32611 The other child document types are described in section
32612 \begin_inset space ~
32616 \begin_inset CommandInset ref
32618 reference "sec:Child-Documents"
32627 In the child document dialog you can specify the listing parameters in
32629 To show a list of all available parameters, type in a question mark
32630 \begin_inset Quotes eld
32634 \begin_inset Quotes erd
32640 \begin_layout Standard
32641 To reference child document listings, write a label text into the corresponding
32642 field of the child document dialog.
32643 The label can then be referenced using the menu
32645 Insert\SpecialChar \menuseparator
32651 \begin_layout Standard
32653 \begin_inset space ~
32657 \begin_inset CommandInset ref
32659 reference "lst:file-listing"
32663 is an example for a listing of a file; there the lines 10
32664 \begin_inset space \thinspace{}
32668 \begin_inset space \thinspace{}
32671 15 of this LyX file are listed.
32674 \begin_layout Standard
32675 \begin_inset CommandInset include
32676 LatexCommand lstinputlisting
32677 filename "EmbeddedObjects.lyx"
32678 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
32685 \begin_layout Standard
32686 \begin_inset VSpace bigskip
32692 \begin_layout Standard
32693 Global listings settings can be set in the
32695 Document\SpecialChar \menuseparator
32696 Settings\SpecialChar \menuseparator
32700 To get there a list of available options, type in a question mark
32701 \begin_inset Quotes eld
32705 \begin_inset Quotes erd
32711 \begin_inset space ~
32719 \begin_layout Standard
32720 For more information about the
32724 package, we refer to its documentation
32725 \begin_inset CommandInset citation
32734 \begin_layout Standard
32735 \begin_inset Newpage newpage
32741 \begin_layout Chapter
32743 Units available in LyX
32747 \begin_layout Plain Layout
32754 \begin_inset CommandInset label
32756 name "cha:Units-available-in"
32763 \begin_layout Standard
32764 To understand the units described in this documentation, Table
32765 \begin_inset space ~
32769 \begin_inset CommandInset ref
32771 reference "tab:Units"
32775 explains all units available in LyX.
32778 \begin_layout Standard
32779 \begin_inset Float table
32785 \begin_layout Plain Layout
32786 \begin_inset Caption
32788 \begin_layout Plain Layout
32789 \begin_inset CommandInset label
32803 \begin_layout Plain Layout
32804 \begin_inset VSpace medskip
32810 \begin_layout Plain Layout
32812 \begin_inset Tabular
32813 <lyxtabular version="3" rows="20" columns="2">
32815 <column alignment="center" valignment="top" width="0">
32816 <column alignment="center" valignment="top" width="0">
32818 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32821 \begin_layout Plain Layout
32827 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
32830 \begin_layout Plain Layout
32838 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32841 \begin_layout Plain Layout
32847 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32850 \begin_layout Plain Layout
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
32878 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32881 \begin_layout Plain Layout
32887 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32890 \begin_layout Plain Layout
32898 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32901 \begin_layout Plain Layout
32907 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32910 \begin_layout Plain Layout
32912 \begin_inset space \thinspace{}
32916 \begin_inset space \thinspace{}
32926 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32929 \begin_layout Plain Layout
32935 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32938 \begin_layout Plain Layout
32940 \begin_inset space \thinspace{}
32944 \begin_inset space \thinspace{}
32954 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32957 \begin_layout Plain Layout
32963 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32966 \begin_layout Plain Layout
32967 scaled point (65536
32968 \begin_inset space \thinspace{}
32972 \begin_inset space \thinspace{}
32982 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32985 \begin_layout Plain Layout
32991 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32994 \begin_layout Plain Layout
32996 \begin_inset space \thinspace{}
33000 \begin_inset space \thinspace{}
33010 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33013 \begin_layout Plain Layout
33019 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33022 \begin_layout Plain Layout
33024 \begin_inset space \thinspace{}
33028 \begin_inset Formula $\approx$
33032 \begin_inset space \thinspace{}
33042 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33045 \begin_layout Plain Layout
33051 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33054 \begin_layout Plain Layout
33056 \begin_inset space \thinspace{}
33060 \begin_inset space \thinspace{}
33070 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33073 \begin_layout Plain Layout
33079 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33082 \begin_layout Plain Layout
33083 % of original image width
33090 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33093 \begin_layout Plain Layout
33099 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33102 \begin_layout Plain Layout
33110 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33113 \begin_layout Plain Layout
33119 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33122 \begin_layout Plain Layout
33130 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33133 \begin_layout Plain Layout
33139 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33142 \begin_layout Plain Layout
33150 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33153 \begin_layout Plain Layout
33159 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33162 \begin_layout Plain Layout
33170 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33173 \begin_layout Plain Layout
33179 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33182 \begin_layout Plain Layout
33190 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33193 \begin_layout Plain Layout
33199 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33202 \begin_layout Plain Layout
33210 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33213 \begin_layout Plain Layout
33219 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33222 \begin_layout Plain Layout
33234 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33237 \begin_layout Plain Layout
33243 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33246 \begin_layout Plain Layout
33258 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
33261 \begin_layout Plain Layout
33267 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
33270 \begin_layout Plain Layout
33272 \begin_inset space \thinspace{}
33276 \begin_inset space \thinspace{}
33297 \begin_layout Chapter
33298 Output File Formats with Graphics
33299 \begin_inset CommandInset label
33301 name "cha:Output-File-Formats"
33308 \begin_layout Section
33313 \begin_layout Plain Layout
33323 \begin_layout Plain Layout
33328 \begin_layout Plain Layout
33339 \begin_layout Plain Layout
33354 \begin_layout Standard
33355 This file type has the extension
33356 \begin_inset Quotes eld
33364 \begin_inset Quotes erd
33369 \begin_inset Quotes eld
33373 \begin_inset Quotes erd
33376 (DVI), because it is completely portable; you can move them from one machine
33377 to another without needing to do any sort of conversion.
33378 At the time when this file-format was developed, this was no matter of
33380 DVIs are used for quick previews and as pre-stage for other output formats,
33384 \begin_layout Standard
33385 \begin_inset Note Greyedout
33388 \begin_layout Plain Layout
33393 DVI-files doesn't contain images, they will only be a linked.
33398 So don't forget this, if you move your
33402 file to another computer.
33403 This property can also slow down your computer when you view the DVI.
33404 Because the DVI-viewer has to convert the image in the background to make
33405 it visible when you scroll in the DVI.
33406 So we recommend to use PDF for files with many images.
33409 \begin_layout Standard
33410 You can export your document to DVI by using the menu
33412 File\SpecialChar \menuseparator
33413 Export\SpecialChar \menuseparator
33417 You can view your document as DVI via the
33421 menu or by using the toolbar button
33422 \begin_inset Graphics
33423 filename ../images/buffer-view_dvi.png
33425 scaleBeforeRotation
33432 \begin_layout Section
33434 \begin_inset CommandInset label
33436 name "sec:PostScript"
33444 \begin_layout Plain Layout
33445 File Formats ! PostScript
33454 \begin_layout Plain Layout
33459 \begin_layout Plain Layout
33470 \begin_layout Plain Layout
33485 \begin_layout Standard
33486 This file type has the extension
33487 \begin_inset Quotes eld
33495 \begin_inset Quotes erd
33499 PostScript was developed by the company
33503 as printer language.
33504 The file contains therefore commands that the printer uses to print the
33506 PostScript can be seen as
33507 \begin_inset Quotes eld
33510 programming language
33511 \begin_inset Quotes erd
33514 ; you can calculate with it and draw diagrams and images
33518 \begin_layout Plain Layout
33519 If you are interested to learn more about this, have a look at the LaTeX-package
33525 \begin_inset CommandInset citation
33537 Due to this ability, the files are often bigger than PDFs.
33540 \begin_layout Standard
33541 PostScript can only contain images in the format
33542 \begin_inset Quotes eld
33545 Encapsulated PostScript
33546 \begin_inset Quotes erd
33549 (EPS, file extension
33550 \begin_inset Quotes eld
33558 \begin_inset Quotes erd
33562 As LyX allows you to use any known image format in your document, it has
33563 to convert images in the background to EPS.
33564 If you have e.g 50 images in your document, LyX has to do 50 conversions
33565 whenever you view or export your document.
33566 This will slow down your work flow with LyX drastically.
33567 So if you plan to use PostScript, you can insert your images directly as
33568 EPS to avoid this problem.
33571 \begin_layout Standard
33572 You can export your document to PostScript using the menu
33574 File\SpecialChar \menuseparator
33575 Export\SpecialChar \menuseparator
33579 You can view your document as PostScript via the
33583 menu or by using the toolbar button
33584 \begin_inset Graphics
33585 filename ../images/buffer-view_ps.png
33587 scaleBeforeRotation
33594 \begin_layout Section
33599 \begin_layout Plain Layout
33609 \begin_layout Plain Layout
33618 \begin_layout Standard
33619 This file type has the extension
33620 \begin_inset Quotes eld
33628 \begin_inset Quotes erd
33633 \begin_inset Quotes eld
33636 Portable Document Format
33637 \begin_inset Quotes erd
33640 (PDF) is developed by
33644 as derivative from PostScript.
33645 It is more compressed and it uses much less commands than PostScript.
33647 \begin_inset Quotes eld
33651 \begin_inset Quotes erd
33654 implies, it can be processed at any computer system and the printed output
33655 looks exactly the same.
33658 \begin_layout Standard
33659 PDF can contain images in its own PDF format, in the format
33660 \begin_inset Quotes eld
33663 Joint Photographic Experts Group
33664 \begin_inset Quotes erd
33667 (JPG, file extension
33668 \begin_inset Quotes eld
33676 \begin_inset Quotes erd
33680 \begin_inset Quotes eld
33688 \begin_inset Quotes erd
33691 ), and in the format
33692 \begin_inset Quotes eld
33695 Portable Network Graphics
33696 \begin_inset Quotes erd
33699 (PNG, file extension
33700 \begin_inset Quotes eld
33708 \begin_inset Quotes erd
33712 Nevertheless you can use any other image format, because LyX converts them
33713 in the background to one of these formats.
33714 But as described in the section about PostScript, the image conversion
33715 will slow down your work flow.
33716 So it is recommended to use images in one of the three mentioned formats.
33719 \begin_layout Standard
33720 You can export your document to PDF via the menu
33722 File\SpecialChar \menuseparator
33725 in three different ways:
33728 \begin_layout Description
33730 \begin_inset space ~
33733 (ps2pdf) This uses the program
33737 that creates a PDF from a PostScript-version of your file.
33738 The PostScript-version is produced by the program
33742 which uses a DVI-version as intermediate step.
33743 So this export variant consist of three conversions.
33746 \begin_layout Description
33748 \begin_inset space ~
33751 (dvipdfm) This uses the program
33755 that converts your file in the background to DVI and in a second step to
33759 \begin_layout Description
33761 \begin_inset space ~
33764 (pdflatex) This uses the program
33768 that converts your file directly to PDF.
33771 \begin_layout Standard
33772 It is recommended to use
33775 \begin_inset space ~
33784 supports all features of actual PDF-versions, is quick and works stable
33790 is not under development and therefore a bit outdated.
33793 \begin_layout Standard
33794 You can view your document as PDF via the
33798 menu or by using the toolbar button
33799 \begin_inset Graphics
33800 filename ../images/buffer-view_pdf2.png
33802 scaleBeforeRotation
33813 \begin_inset space ~
33821 \begin_layout Chapter
33822 Explanation of Equation
33823 \begin_inset space ~
33827 \begin_inset CommandInset ref
33834 \begin_inset CommandInset label
33836 name "cha:Explanation-of-Equation"
33843 \begin_layout Standard
33849 \begin_inset Formula $W_{\mathrm{tot\, n}}$
33852 can be calculated to
33855 \begin_layout Standard
33856 \begin_inset Formula \begin{equation}
33857 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}
33864 \begin_layout Standard
33866 \begin_inset Formula $W_{g\, n}$
33869 is the given width of all cells.
33876 is the LaTeX-length between the cell text and the cell border, its default
33878 \begin_inset space \thinspace{}
33888 is the thickness of the cell border line, the default is 0.4
33889 \begin_inset space \thinspace{}
33895 \begin_layout Standard
33897 \begin_inset space ~
33901 \begin_inset CommandInset ref
33903 reference "eq:Wtot_n"
33907 , the total width of a multicolumn
33908 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
33914 \begin_layout Standard
33915 \begin_inset Formula \begin{equation}
33916 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
33923 \begin_layout Standard
33924 By setting equation
33925 \begin_inset space ~
33929 \begin_inset CommandInset ref
33931 reference "eq:Wtot_n"
33936 \begin_inset CommandInset ref
33938 reference "eq:Wtot_mult"
33942 equal we can calculate the needed given width
33943 \begin_inset Formula $W_{g\, n}$
33950 columns are spanned, so that each column has a total width of
33951 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
33957 \begin_layout Standard
33958 \begin_inset Formula \begin{equation}
33959 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
33966 \begin_layout Bibliography
33967 \begin_inset CommandInset bibitem
33968 LatexCommand bibitem
33969 key "latexcompanion"
33973 Frank Mittelbach and Michel Goossens:
33975 The LaTeX Companion Second Edition.
33978 Addison-Wesley, 2004
33981 \begin_layout Bibliography
33982 \begin_inset CommandInset bibitem
33983 LatexCommand bibitem
33988 Helmut Kopka and Patrick W.
33991 A Guide to LaTeX Fourth Edition.
33994 Addison-Wesley, 2003
33997 \begin_layout Bibliography
33998 \begin_inset CommandInset bibitem
33999 LatexCommand bibitem
34006 LaTeX: A Document Preparation System.
34009 Addison-Wesley, second edition, 1994
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/booktabs/booktabs.pdf"
34035 \begin_layout Plain Layout
34036 LaTeX-packages ! booktabs
34044 \begin_layout Bibliography
34045 \begin_inset CommandInset bibitem
34046 LatexCommand bibitem
34051 Documentation of the LaTeX-package
34054 \begin_inset CommandInset href
34057 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf"
34067 \begin_layout Plain Layout
34068 LaTeX-packages ! caption
34076 \begin_layout Bibliography
34077 \begin_inset CommandInset bibitem
34078 LatexCommand bibitem
34083 Documentation of the LaTeX-package
34086 \begin_inset CommandInset href
34089 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
34099 \begin_layout Plain Layout
34100 LaTeX-packages ! endfloat
34108 \begin_layout Bibliography
34109 \begin_inset CommandInset bibitem
34110 LatexCommand bibitem
34115 Documentation of the LaTeX-package
34118 \begin_inset CommandInset href
34121 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/wrapfig/wrapfig.sty"
34131 \begin_layout Plain Layout
34132 LaTeX-packages ! wrapfig
34136 \begin_layout Plain Layout
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/footmisc/footmisc.pdf"
34176 \begin_layout Plain Layout
34177 LaTeX-packages ! footmisc
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 "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
34208 \begin_layout Plain Layout
34209 LaTeX-packages ! hyperref
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/hyperref/hyperref.pdf"
34240 \begin_layout Plain Layout
34241 LaTeX-packages ! hyperref
34249 \begin_layout Bibliography
34250 \begin_inset CommandInset bibitem
34251 LatexCommand bibitem
34256 Documentation of the LaTeX-package
34259 \begin_inset CommandInset href
34262 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf"
34272 \begin_layout Plain Layout
34273 LaTeX-packages ! koma-script
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/listings/listings.pdf"
34304 \begin_layout Plain Layout
34305 LaTeX-packages ! listings
34313 \begin_layout Bibliography
34314 \begin_inset CommandInset bibitem
34315 LatexCommand bibitem
34320 Documentation of the LaTeX-package
34323 \begin_inset CommandInset href
34326 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
34336 \begin_layout Plain Layout
34337 LaTeX-packages ! marginnote
34345 \begin_layout Bibliography
34346 \begin_inset CommandInset bibitem
34347 LatexCommand bibitem
34352 Web page of the LaTeX-package
34355 \begin_inset CommandInset href
34358 target "http://tug.org/PSTricks/"
34368 \begin_layout Plain Layout
34369 LaTeX-packages ! PSTricks
34377 \begin_layout Bibliography
34378 \begin_inset CommandInset bibitem
34379 LatexCommand bibitem
34384 Documentation of the LaTeX-package
34387 \begin_inset CommandInset href
34390 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
34400 \begin_layout Plain Layout
34401 LaTeX-packages ! sidecap
34409 \begin_layout Bibliography
34410 \begin_inset CommandInset bibitem
34411 LatexCommand bibitem
34417 \begin_inset CommandInset href
34420 target "http://wiki.lyx.org/LyX/NewInLyX16"
34424 about new features in
34431 \begin_layout Standard
34432 \begin_inset CommandInset index_print
34433 LatexCommand printindex
34440 \begin_layout Standard
34441 \begin_inset FloatList figure
34448 \begin_layout Standard
34449 \begin_inset FloatList table
34456 \begin_layout Standard
34457 \begin_inset FloatList algorithm