1 #LyX 1.6.0rc3 created this file. For more info see http://www.lyx.org/
11 % set fonts for nicer pdf view
12 \IfFileExists{lmodern.sty}
13 {\usepackage{lmodern}}{}
15 \fi % end if pdflatex is used
17 % that links to image floats jumps
18 % to the beginning of the float and
20 \usepackage[figure]{hypcap}
22 % the pages of the TOC is numbered roman
23 % and a PDF-bookmark for the TOC is added
24 \let\myTOC\tableofcontents
25 \renewcommand\tableofcontents{%
27 \pdfbookmark[1]{\contentsname}{}
31 % provides caption formatting
32 \usepackage[labelfont={bf,sf}, tableposition=top]{caption}[2004/07/16]
34 % provides commands to set caption
35 % beside tables/images
38 \newcommand{\TabBesBeg}{%
40 \let\MyEndtable\endtable
41 \renewenvironment{table}{\begin{SCtable}}{\end{SCtable}}}
43 \newcommand{\TabBesEnd}{%
45 \let\endtable\MyEndtable}
47 \newcommand{\FigBesBeg}{%
49 \let\MyEndfigure\endfigure
50 \renewenvironment{figure}{\begin{SCfigure}}{\end{SCfigure}}}
52 \newcommand{\FigBesEnd}{%
54 \let\endfigure\MyEndfigure}
56 % enables calculation of values,
59 % provides special table cell alignments
62 % increase the bottom float placement fraction
63 \renewcommand{\bottomfraction}{0.5}
65 % avoids that floats are placed before their
66 % corresponding section starts
67 \let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
69 % speed up the longtable calculation
70 \setcounter{LTchunksize}{100}
72 % used for scaled and rotated boxes
73 \@ifundefined{rotatebox}{\usepackage{graphicx}}{}
75 % used for colored tables
76 \@ifundefined{textcolor}
77 {\usepackage{color}}{}
78 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
79 \definecolor{lightgrey}{gray}{0.8}
81 % check for package colortbl
82 % used for colored table cells
84 \IfFileExists{colortbl.sty}
85 {\usepackage{colortbl}
86 \setboolean{colortbl}{true}}
87 {\setboolean{colortbl}{false}}
91 %\renewcommand{\multirowsetup}{\centering}
93 % used for book-style tables
96 % used to have extra space in table cells
97 \@ifundefined{extrarowheight}
98 {\usepackage{array}}{}
99 \setlength{\extrarowheight}{2pt}
101 % used for customized tables
104 {>{\centering\hspace{0pt}}m{#1}}
107 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
110 {>{\columncolor{#1}\hspace{0pt}}c}
112 \newcolumntype{V}{!{\vrule width 1.5pt}}
114 \newcolumntype{W}{!{\color{green}\vline}}
117 % insert additional vertical space of
118 % 1.5 mm between footnotes
120 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
122 % number algorithm floats within chapters
123 \numberwithin{algorithm}{chapter}
125 % redefine the greyed out note
126 \renewenvironment{lyxgreyedout}
127 {\textcolor{blue}\bgroup}{\egroup}
129 % ------------------------------------
130 % used to check for needed LaTeX packages
133 % check for package arydshln
134 % used for tables with dashed lines
135 \newboolean{arydshln}
136 \IfFileExists{arydshln.sty}
137 {\usepackage{arydshln}
138 \setboolean{arydshln}{true}}
139 {\setboolean{arydshln}{false}}
141 % check for package marginnote
142 % used for margin notes
143 \newboolean{marginnote}
144 \IfFileExists{marginnote.sty}
145 {\usepackage{marginnote}
146 \let\marginpar\marginnote
147 \setboolean{marginnote}{true}}
148 {\setboolean{marginnote}{false}}
150 % check for package sidecap
151 % used for captions on the side
153 \IfFileExists{sidecap.sty}
154 {\usepackage{sidecap}
155 \let\marginpar\marginnote
156 \setboolean{sidecap}{true}}
157 {\setboolean{sidecap}{false}}
159 % redefine the \LyX macro for PDF bookmarks
160 \def\LyX{\texorpdfstring{%
161 L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
164 \options fleqn,liststotoc,bibtotoc,idxtotoc,BCOR7.5mm,titlepage,tablecaptionabove
169 \font_typewriter default
170 \font_default_family default
180 \pdf_title "LyX's Figure, Table, Floats, Notes, and Boxes manual"
181 \pdf_author "LyX Team, Uwe Stöhr"
182 \pdf_subject "LyX-documentation about figures, tables, floats, notes, and boxes"
183 \pdf_keywords "LyX, Tables, Figures, Floats, Boxes, Notes"
185 \pdf_bookmarksnumbered true
186 \pdf_bookmarksopen true
187 \pdf_bookmarksopenlevel 1
188 \pdf_breaklinks false
192 \pdf_pagebackref false
193 \pdf_pdfusetitle false
194 \pdf_quoted_options " linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false, pdfpagelabels"
201 \paperorientation portrait
204 \paragraph_separation skip
206 \quotes_language english
209 \paperpagestyle default
213 \tracking_changes false
214 \output_changes false
222 LyX's detailed Figure, Table, Floats, Notes, Boxes and External Material
231 \begin_layout Plain Layout
233 If you have comments or error corrections, please send them to the LyX Documenta
235 \begin_inset CommandInset href
237 name "lyx-docs@lists.lyx.org"
238 target "lyx-docs@lists.lyx.org?subject=EmbeddedObjects manual"
249 \begin_inset Note Note
252 \begin_layout Plain Layout
259 \begin_inset Newline newline
263 \begin_inset Newline newline
271 \begin_layout Standard
272 \begin_inset CommandInset toc
273 LatexCommand tableofcontents
280 \begin_layout Standard
281 \begin_inset Note Note
284 \begin_layout Plain Layout
285 To export all parts of this document to PDF, PS, or DVI the LaTeX-packages
303 If they are not installed you can export the document anyway but the sections
304 where the packages are required won't appear in the output.
307 \begin_layout Plain Layout
308 The latest PDF-version of this document can be found here:
309 \begin_inset Newline newline
314 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
322 \begin_layout Chapter
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{}
593 When the option is used the images will not be unzipped on export, since
594 LaTeX can handle them as they are.
595 \begin_inset Newline newline
598 Zipped EPS-graphics are useful to save disk space when you choose PostScript
599 as output format, see appendix
604 \begin_inset CommandInset ref
606 reference "sec:PostScript"
611 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
613 \begin_inset Newline newline
621 \begin_inset Newline newline
626 zgrep %%Bounding x.eps.gz > x.eps.bb
629 \begin_inset Newline newline
632 The second command creates the bounding box file
633 \begin_inset Quotes eld
637 \begin_inset Quotes erd
640 that is needed by LaTeX for zipped graphics.
641 \begin_inset Newline newline
656 allows you define or join an image settings group.
660 \begin_layout Plain Layout
661 Figures ! Settings grouping
666 Images within such a group share their settings, so adjusting one image
667 of the group automatically also adjusts all other images of the group in
669 So you can for example change the size for a bunch of images without the
670 need to manually change each of them.
671 Joining an existing group can also be done using the context menu of the
672 image by checking the name of the desired group.
675 \begin_layout Standard
676 \begin_inset VSpace bigskip
682 \begin_layout Standard
683 This is an example image in EPS format
687 \begin_layout Plain Layout
688 Image formats are explained in section
693 \begin_inset CommandInset ref
695 reference "sec:Image-Formats"
704 within a separate, horizontally centered paragraph:
707 \begin_layout Standard
709 \begin_inset Graphics
710 filename clipart/mobius.eps
720 \begin_layout Standard
721 This is the same image like the one above but in draft mode:
724 \begin_layout Standard
726 \begin_inset Graphics
727 filename clipart/mobius.eps
738 \begin_layout Standard
739 \begin_inset Newpage newpage
745 \begin_layout Section
747 \begin_inset CommandInset label
749 name "sec:Figure-Floats"
757 \begin_layout Plain Layout
767 \begin_layout Plain Layout
776 \begin_layout Standard
777 For general explanations about floats, have a look at section
782 \begin_inset CommandInset ref
784 reference "sec:FloatIntroduction"
791 \begin_layout Standard
793 \begin_inset Graphics
794 filename ../images/float-insert_figure.png
802 Insert\SpecialChar \menuseparator
803 Float\SpecialChar \menuseparator
806 inserts a float with a caption that has the label
807 \begin_inset Quotes eld
815 \begin_inset Quotes erd
818 (# is the actual number).
819 You can insert the image above the caption, like in Figure
824 \begin_inset CommandInset ref
826 reference "fig:kill-plat"
830 or below the caption, like in Figure
835 \begin_inset CommandInset ref
837 reference "fig:escher"
842 More about the caption placement is described in section
847 \begin_inset CommandInset ref
849 reference "sec:Caption-Placement"
856 \begin_layout Standard
857 \begin_inset Float figure
862 \begin_layout Plain Layout
864 \begin_inset Graphics
865 filename clipart/platypus.eps
875 \begin_layout Plain Layout
878 \begin_layout Plain Layout
879 \begin_inset CommandInset label
885 A severely distorted platypus in a float.
898 \begin_layout Standard
899 \begin_inset Float figure
904 \begin_layout Plain Layout
907 \begin_layout Plain Layout
908 \begin_inset CommandInset label
923 \begin_layout Plain Layout
925 \begin_inset Graphics
926 filename clipart/escher-lsd.eps
941 \begin_layout Standard
945 \begin_layout Plain Layout
946 References ! to Figures
956 \begin_inset CommandInset ref
958 reference "fig:kill-plat"
963 \begin_inset CommandInset ref
965 reference "fig:escher"
969 are examples of referenced figures.
970 Figures can be referenced in the text by referencing their label.
971 To do this insert a label in the caption using the menu
973 Insert\SpecialChar \menuseparator
976 or the toolbar button
977 \begin_inset Graphics
978 filename ../images/label-insert.png
985 You can now refer to the label using the menu
987 Insert\SpecialChar \menuseparator
994 or the toolbar button
995 \begin_inset Graphics
996 filename ../images/dialog-show-new-inset_ref.png
1003 It is important to use references to floats, rather than using vague references
1005 \begin_inset Quotes eld
1009 \begin_inset Quotes erd
1012 , because as LaTeX will reposition the floats in the final document, it
1014 \begin_inset Quotes eld
1018 \begin_inset Quotes erd
1022 \begin_inset Newline newline
1025 Referencing is explained in detail in section
1026 \begin_inset space ~
1030 \begin_inset CommandInset ref
1032 reference "sec:Referencing-Floats"
1039 \begin_layout Standard
1040 Normally only one image is inserted to a figure float, but sometimes you
1041 might want to use two images with separate subcaptions.
1042 This can be done by inserting image floats into existing image floats.
1043 Note that only the main caption of the float is added to the List of Figures.
1045 \begin_inset space ~
1049 \begin_inset CommandInset ref
1051 reference "fig:Two-distorted-images"
1055 is an example of a figure float with two images set side by side.
1056 You can also set the images one below the other.
1058 \begin_inset space ~
1062 \begin_inset CommandInset ref
1064 reference "fig:Undefinable-structure"
1069 \begin_inset CommandInset ref
1071 reference "fig:A-Platypus"
1078 \begin_layout Standard
1079 \begin_inset Float figure
1084 \begin_layout Plain Layout
1085 \begin_inset space \hfill{}
1089 \begin_inset Float figure
1094 \begin_layout Plain Layout
1095 \begin_inset Caption
1097 \begin_layout Plain Layout
1098 \begin_inset CommandInset label
1100 name "fig:Undefinable-structure"
1104 Undefinable structure.
1112 \begin_layout Plain Layout
1113 \begin_inset Graphics
1114 filename clipart/escher-lsd.eps
1127 \begin_inset space \hfill{}
1131 \begin_inset Float figure
1136 \begin_layout Plain Layout
1137 \begin_inset Caption
1139 \begin_layout Plain Layout
1140 \begin_inset CommandInset label
1142 name "fig:A-Platypus"
1154 \begin_layout Plain Layout
1155 \begin_inset Graphics
1156 filename clipart/platypus.eps
1169 \begin_inset space \hfill{}
1175 \begin_layout Plain Layout
1176 \begin_inset Caption
1178 \begin_layout Plain Layout
1179 \begin_inset CommandInset label
1181 name "fig:Two-distorted-images"
1185 Two distorted images.
1186 Both images are in the image settings group named
1187 \begin_inset Quotes eld
1191 \begin_inset Quotes erd
1207 \begin_layout Standard
1208 \begin_inset Newpage newpage
1214 \begin_layout Section
1216 \begin_inset CommandInset label
1218 name "sec:Image-Formats"
1226 \begin_layout Plain Layout
1236 \begin_layout Plain Layout
1237 Figures ! Image Formats
1245 \begin_layout Standard
1246 You can insert images in any known file format.
1247 But as explained in appendix
1248 \begin_inset space ~
1252 \begin_inset CommandInset ref
1254 reference "cha:Output-File-Formats"
1258 , every output document format allows only a few image formats.
1259 LyX uses therefore the program
1263 in the background to convert the images to the right format.
1264 To increase your work flow by avoiding these conversions in the background,
1265 you can use only the image formats that can directly be embedded in the
1267 The output file formats are explained in appendix
1268 \begin_inset space ~
1272 \begin_inset CommandInset ref
1274 reference "cha:Output-File-Formats"
1281 \begin_layout Standard
1282 Similar to fonts there are two types of image formats:
1285 \begin_layout Description
1287 \begin_inset space ~
1290 images consist of pixel values, often in a compressed form.
1291 They are therefore not fully scalable and look pixeled in large zooms.
1292 Well-known bitmap image formats are
1293 \begin_inset Quotes eld
1296 Graphics Interchange Format
1297 \begin_inset Quotes erd
1300 (GIF, file extension
1301 \begin_inset Quotes eld
1309 \begin_inset Quotes erd
1316 \begin_layout Plain Layout
1321 \begin_layout Plain Layout
1332 \begin_layout Plain Layout
1345 \begin_inset Quotes eld
1348 Portable Network Graphics
1349 \begin_inset Quotes erd
1352 (PNG, file extension
1353 \begin_inset Quotes eld
1361 \begin_inset Quotes erd
1368 \begin_layout Plain Layout
1373 \begin_layout Plain Layout
1384 \begin_layout Plain Layout
1397 \begin_inset Quotes eld
1400 Joint Photographic Experts Group
1401 \begin_inset Quotes erd
1404 (JPG, file extension
1405 \begin_inset Quotes eld
1413 \begin_inset Quotes erd
1417 \begin_inset Quotes eld
1425 \begin_inset Quotes erd
1432 \begin_layout Plain Layout
1437 \begin_layout Plain Layout
1448 \begin_layout Plain Layout
1463 \begin_layout Description
1465 \begin_inset space ~
1468 images consist of vectors and can therefore be scaled to any size without
1470 The scaling ability is necessary if you want to create presentations, because
1471 presentations are always scaled by the video projector.
1472 Scaling is also useful for online documents to let the user zoom into diagrams.
1473 \begin_inset Newline newline
1476 Well-known scalable image formats are
1477 \begin_inset Quotes eld
1480 Scalable Vector Graphics
1481 \begin_inset Quotes erd
1484 (SVG, file extension
1485 \begin_inset Quotes eld
1493 \begin_inset Quotes erd
1500 \begin_layout Plain Layout
1505 \begin_layout Plain Layout
1516 \begin_layout Plain Layout
1529 \begin_inset Quotes eld
1532 Encapsulated PostScript
1533 \begin_inset Quotes erd
1536 (EPS, file extension
1537 \begin_inset Quotes eld
1545 \begin_inset Quotes erd
1552 \begin_layout Plain Layout
1557 \begin_layout Plain Layout
1568 \begin_layout Plain Layout
1581 \begin_inset Quotes eld
1584 Portable Document Format
1585 \begin_inset Quotes erd
1588 (PDF, file extension
1589 \begin_inset Quotes eld
1597 \begin_inset Quotes erd
1604 \begin_layout Plain Layout
1611 \begin_inset Quotes eld
1615 \begin_inset Quotes erd
1618 (WMF, file extension
1619 \begin_inset Quotes eld
1627 \begin_inset Quotes erd
1634 \begin_layout Plain Layout
1639 \begin_layout Plain Layout
1650 \begin_layout Plain Layout
1664 \begin_inset Quotes eld
1668 \begin_inset Quotes erd
1671 , because you can convert any bitmap image to a PDF or EPS-image and the
1672 result will still be a bitmap image.
1673 In this cases only a header with the image properties is added to the original
1678 \begin_layout Plain Layout
1679 In the case of PDF, the original image is additionally compressed.
1685 The PDF-files generated by
1689 are for example bitmap images.
1692 \begin_layout Standard
1693 Normally it is not possible to convert a bitmap image into a scalable one,
1695 Only the image formats PDF and EPS can directly be embedded to PDF and
1696 PostScript output files, respectively.
1697 SVG and WMF-images are recalculated to bitmaps when the output file is
1698 generated because there is currently no adequate WMF/SVG
1699 \begin_inset Formula $\to$
1702 PDF/EPS converter available.
1705 \begin_layout Chapter
1710 \begin_layout Plain Layout
1719 \begin_layout Section
1724 \begin_layout Plain Layout
1725 Table ! Introduction
1733 \begin_layout Standard
1734 You can insert a table using either the toolbar button
1735 \begin_inset Graphics
1736 filename ../images/tabular-insert.png
1744 Insert\SpecialChar \menuseparator
1748 The toolbar button offers you a graphical selection: Move the mouse to
1749 set the column/row number of the table that should be created and then
1750 press a mouse button.
1751 When you use the menu to create a table, a dialog will appear, asking you
1752 for the number of rows and columns.
1753 \begin_inset Newline newline
1756 The default table has lines around any cell and the first row appears separated
1757 from the rest of the table.
1758 This separation occurs due to a double line: The cells of the first row
1759 have a line below them and the cells of the second row have a line above
1761 Here is an example table:
1764 \begin_layout Standard
1766 \begin_inset Tabular
1767 <lyxtabular version="3" rows="4" columns="4">
1769 <column alignment="center" valignment="top" width="0">
1770 <column alignment="center" valignment="top" width="0">
1771 <column alignment="center" valignment="top" width="0">
1772 <column alignment="center" valignment="top" width="0">
1774 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1777 \begin_layout Plain Layout
1783 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1786 \begin_layout Plain Layout
1801 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1804 \begin_layout Plain Layout
1810 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1813 \begin_layout Plain Layout
1821 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1824 \begin_layout Plain Layout
1839 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1842 \begin_layout Plain Layout
1848 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1851 \begin_layout Plain Layout
1857 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1860 \begin_layout Plain Layout
1868 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1871 \begin_layout Plain Layout
1886 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1889 \begin_layout Plain Layout
1895 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1898 \begin_layout Plain Layout
1904 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1907 \begin_layout Plain Layout
1915 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1918 \begin_layout Plain Layout
1933 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1936 \begin_layout Plain Layout
1942 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1945 \begin_layout Plain Layout
1951 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1954 \begin_layout Plain Layout
1968 \begin_layout Section
1973 \begin_layout Plain Layout
1982 \begin_layout Standard
1983 You can alter a table by clicking on it with the right mouse button, which
1984 brings up the table dialog.
1985 Here you can adjust the settings of that cell and row/column respectively
1986 where the cursor is currently placed.
1987 Most of the dialog options also work on selections.
1988 This means if you select more cells, columns or rows, the action is done
1989 for the whole selection.
1990 Note that there is a difference between selecting the
1994 of the cell, and the cell itself.
1995 You can alter tables with the following tabs of the table dialog:
1998 \begin_layout Description
2002 \begin_inset space ~
2007 Here you can set the horizontal alignment and the width of the current
2009 When you have set a width you can also adjust the vertical alignment of
2011 A given width will allow the cell to have line breaks and multiple paragraphs
2012 of text, see section
2013 \begin_inset space ~
2017 \begin_inset CommandInset ref
2019 reference "sub:Multiple-Lines-in"
2024 If you set no width, the column is as wide as their widest cell content
2026 \begin_inset Newline newline
2029 Furthermore, you can mark one or multiple cells of one row as a multicolumn
2031 \begin_inset space ~
2035 \begin_inset CommandInset ref
2037 reference "sub:Multicolumns"
2042 \begin_inset Newline newline
2045 The rotate check boxes rotates the current cell, a selection, or the whole
2046 table counter-clockwise by 90°.
2047 The rotation is not shown within LyX, only in the output.
2048 \begin_inset Newline newline
2052 \begin_inset Note Greyedout
2055 \begin_layout Plain Layout
2060 Not all DVI-viewers are able to display rotations.
2066 \begin_inset Newline newline
2069 It is also possible to enter a LaTeX-argument which is needed for special
2070 table formattings, see section
2071 \begin_inset space ~
2075 \begin_inset CommandInset ref
2077 reference "sub:Multicolumn-Calculations"
2082 \begin_inset CommandInset ref
2084 reference "sec:Colored-Tables"
2091 \begin_layout Description
2096 In this tab you can add and delete border lines for the current row/column.
2097 \begin_inset Newline newline
2100 Using the style option
2104 will convert the table to a formal table as described in section
2105 \begin_inset space ~
2109 \begin_inset CommandInset ref
2111 reference "sec:Formal-Tables"
2116 \begin_inset Newline newline
2119 You can also add here space to table rows as decribed in section
2120 \begin_inset space ~
2124 \begin_inset CommandInset ref
2126 reference "sub:Row-Spacing"
2133 \begin_layout Description
2138 This tab is to make a table a so called
2139 \begin_inset Quotes eld
2147 \begin_inset Quotes erd
2150 that can run over several pages.
2152 \begin_inset space ~
2156 \begin_inset CommandInset ref
2158 reference "sec:Longtables"
2163 \begin_inset CommandInset ref
2165 reference "sec:Special-Longtable-Issues"
2169 describe the longtable features in detail.
2172 \begin_layout Standard
2173 When the table toolbar is opened, you can move the cursor with the arrow
2174 keys from cell to cell and the property of the current cell will immediately
2175 be displayed in the dialog.
2178 \begin_layout Section
2183 \begin_layout Plain Layout
2192 \begin_layout Standard
2193 The table toolbar is an alternative to the table dialog to be able to alter
2195 It should normally appear at the bottom of LyX's main window when the cursor
2197 You can alternatively switch it on to appear always, by right-clicking
2198 in LyX's main menu bar.
2201 \begin_layout Standard
2202 The toolbar has the following icons:
2205 \begin_layout Labeling
2206 \labelwidthstring 00.00.0000
2207 \begin_inset Graphics
2208 filename ../images/tabular-feature_append-row.png
2213 adds a row below the current cell or selection
2216 \begin_layout Labeling
2217 \labelwidthstring 00.00.0000
2218 \begin_inset Graphics
2219 filename ../images/tabular-feature_append-column.png
2224 adds a column right beside the current cell or selection
2227 \begin_layout Labeling
2228 \labelwidthstring 00.00.0000
2229 \begin_inset Graphics
2230 filename ../images/tabular-feature_delete-row.png
2235 deletes the current row or selection
2238 \begin_layout Labeling
2239 \labelwidthstring 00.00.0000
2240 \begin_inset Graphics
2241 filename ../images/tabular-feature_delete-column.png
2246 deletes the current column or selection
2249 \begin_layout Labeling
2250 \labelwidthstring 00.00.0000
2251 \begin_inset Graphics
2252 filename ../images/tabular-feature_toggle-line-top.png
2257 adds a line at the top of the current cell / row or of a selection
2260 \begin_layout Labeling
2261 \labelwidthstring 00.00.0000
2262 \begin_inset Graphics
2263 filename ../images/tabular-feature_toggle-line-bottom.png
2268 adds a line at the bottom of the current cell / row or of a selection
2271 \begin_layout Labeling
2272 \labelwidthstring 00.00.0000
2273 \begin_inset Graphics
2274 filename ../images/tabular-feature_toggle-line-left.png
2279 adds a line at the left side of the current cell / row or of a selection
2282 \begin_layout Labeling
2283 \labelwidthstring 00.00.0000
2284 \begin_inset Graphics
2285 filename ../images/tabular-feature_toggle-line-right.png
2290 adds a line at the right side of the current cell / row or of a selection
2293 \begin_layout Labeling
2294 \labelwidthstring 00.00.0000
2295 \begin_inset Graphics
2296 filename ../images/tabular-feature_set-all-lines.png
2301 adds lines around the current or selected cells - if the current cell no
2302 multicolumn this also affects the current row and column
2305 \begin_layout Labeling
2306 \labelwidthstring 00.00.0000
2307 \begin_inset Graphics
2308 filename ../images/tabular-feature_unset-all-lines.png
2313 deletes all lines of the current or selected cells - if the current cell
2314 no multicolumn this also affects the current row and column
2317 \begin_layout Labeling
2318 \labelwidthstring 00.00.0000
2319 \begin_inset Graphics
2320 filename ../images/tabular-feature_align-left.png
2325 left-aligns the content of the current cell / column
2328 \begin_layout Labeling
2329 \labelwidthstring 00.00.0000
2330 \begin_inset Graphics
2331 filename ../images/tabular-feature_align-center.png
2336 centers the content of the current cell / column horizontally
2339 \begin_layout Labeling
2340 \labelwidthstring 00.00.0000
2341 \begin_inset Graphics
2342 filename ../images/tabular-feature_align-right.png
2347 right-aligns the content of the current cell / column
2350 \begin_layout Labeling
2351 \labelwidthstring 00.00.0000
2352 \begin_inset Graphics
2353 filename ../images/tabular-feature_valign-top.png
2358 aligns the content of the current cell vertically to the top
2361 \begin_layout Labeling
2362 \labelwidthstring 00.00.0000
2363 \begin_inset Graphics
2364 filename ../images/tabular-feature_valign-middle.png
2369 centers the content of the current cell vertically
2372 \begin_layout Labeling
2373 \labelwidthstring 00.00.0000
2374 \begin_inset Graphics
2375 filename ../images/tabular-feature_valign-bottom.png
2380 aligns the content of the current cell vertically to the bottom
2383 \begin_layout Labeling
2384 \labelwidthstring 00.00.0000
2385 \begin_inset Graphics
2386 filename ../images/tabular-feature_set-rotate-cell.png
2391 rotates the current cell or selection counter-clockwise by 90°
2394 \begin_layout Labeling
2395 \labelwidthstring 00.00.0000
2396 \begin_inset Graphics
2397 filename ../images/tabular-feature_set-rotate-tabular.png
2402 rotates the whole table counter-clockwise by 90°
2405 \begin_layout Labeling
2406 \labelwidthstring 00.00.0000
2407 \begin_inset Graphics
2408 filename ../images/tabular-feature_multicolumn.png
2413 sets the current cell or selection as a multicolumn
2416 \begin_layout Standard
2417 \begin_inset Note Greyedout
2420 \begin_layout Plain Layout
2425 For the output the vertical alignment of the first cell in a row is used
2426 for all following cells in the row.
2434 \begin_layout Section
2439 \begin_layout Plain Layout
2448 \begin_layout Standard
2449 Additionally to the table dialog and toolbar, the menu
2451 Edit\SpecialChar \menuseparator
2454 allows you to add and delete border lines for the current row/column and
2455 to set the current selection as multicolumn.
2456 The menu is only available when the cursor is inside a table.
2459 \begin_layout Section
2461 \begin_inset CommandInset label
2463 name "sec:Table-Floats"
2471 \begin_layout Plain Layout
2481 \begin_layout Plain Layout
2490 \begin_layout Standard
2491 For general explanations about floats, have a look at section
2492 \begin_inset space ~
2496 \begin_inset CommandInset ref
2498 reference "sec:FloatIntroduction"
2505 \begin_layout Standard
2506 \begin_inset Float table
2512 \begin_layout Plain Layout
2513 \begin_inset Caption
2515 \begin_layout Plain Layout
2516 \begin_inset CommandInset label
2518 name "tab:a table float"
2530 \begin_layout Plain Layout
2532 \begin_inset Tabular
2533 <lyxtabular version="3" rows="3" columns="3">
2535 <column alignment="center" valignment="top" width="0pt">
2536 <column alignment="center" valignment="top" width="0pt">
2537 <column alignment="center" valignment="top" width="0pt">
2539 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2542 \begin_layout Plain Layout
2557 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2560 \begin_layout Plain Layout
2575 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2578 \begin_layout Plain Layout
2595 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2598 \begin_layout Plain Layout
2613 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2616 \begin_layout Plain Layout
2631 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2634 \begin_layout Plain Layout
2651 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2654 \begin_layout Plain Layout
2664 \begin_inset Formula $\int x^{2}dx$
2672 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2675 \begin_layout Plain Layout
2685 \begin_inset Formula $\left[\begin{array}{cc}
2687 c & d\end{array}\right]$
2695 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2698 \begin_layout Plain Layout
2708 \begin_inset Formula $1+1=2$
2729 \begin_layout Standard
2730 Table floats can be inserted using the menu
2732 Insert\SpecialChar \menuseparator
2733 Float\SpecialChar \menuseparator
2736 or the toolbar button
2737 \begin_inset Graphics
2738 filename ../images/float-insert_table.png
2747 \begin_layout Standard
2748 The float appears as a collapsible box with a caption that has the label
2750 \begin_inset Quotes eld
2754 \begin_inset space ~
2758 \begin_inset Quotes erd
2761 (# is the actual table number).
2762 You can insert tables to the float above or below the caption.
2765 \begin_layout Standard
2767 \begin_inset space ~
2771 \begin_inset CommandInset ref
2773 reference "tab:a table float"
2777 is an example table within a table float.
2780 \begin_layout Standard
2781 Having the caption above the table is the common rule that is unfortunately
2782 not supported in LaTeX's standard classes.
2783 That means if you are using the document classes
2799 there will be no space between the caption and the table.
2800 To insert the needed space, add the following option to the load command
2801 of the LaTeX-package
2809 \begin_layout Plain Layout
2810 LaTeX-packages ! caption
2815 in your document preamble
2819 \begin_layout Plain Layout
2820 For more information have a look at section
2821 \begin_inset space ~
2825 \begin_inset CommandInset ref
2827 reference "sec:Caption-Placement"
2839 \begin_layout Standard
2845 \begin_layout Standard
2850 , which is described in section
2851 \begin_inset space ~
2855 \begin_inset CommandInset ref
2857 reference "sec:Caption-Formatting"
2861 , is used to adjust the caption format.
2864 \begin_layout Standard
2868 \begin_layout Plain Layout
2869 References ! to Tables
2874 Tables can be cross-referenced in the text by referencing their label.
2875 To do this insert a label in the caption using the menu
2877 Insert\SpecialChar \menuseparator
2880 or the toolbar button
2881 \begin_inset Graphics
2882 filename ../images/label-insert.png
2889 You can now refer to the label using the menu
2891 Insert\SpecialChar \menuseparator
2893 \begin_inset space ~
2898 or the toolbar button
2899 \begin_inset Graphics
2900 filename ../images/dialog-show-new-inset_ref.png
2907 \begin_inset Newline newline
2910 Referencing is explained in detail in section
2911 \begin_inset space ~
2915 \begin_inset CommandInset ref
2917 reference "sec:Referencing-Floats"
2924 \begin_layout Section
2926 \begin_inset CommandInset label
2928 name "sec:Longtables"
2936 \begin_layout Plain Layout
2946 \begin_layout Plain Layout
2955 \begin_layout Standard
2956 If the table is too long to fit on one page, you can use the option
2959 \begin_inset space ~
2963 \begin_inset space ~
2972 of the table dialog to split the table automatically over more pages.
2973 Doing this enables the following options:
2976 \begin_layout Description
2981 : The current row and all rows above, that don't have any special options
2982 defined, are defined to be the header rows of all pages of the longtable;
2983 except for the first page, if
2986 \begin_inset space ~
2992 This therefore called the main header.
2995 \begin_layout Description
2999 \begin_inset space ~
3004 : The current row and all rows above, that don't have any special options
3005 defined, are defined to be the header rows of the first page of the longtable.
3008 \begin_layout Description
3013 : The current row and all rows below, that don't have any special options
3014 defined, are defined to be the footer rows of all pages of the longtable;
3015 except for the last page, if
3018 \begin_inset space ~
3026 \begin_layout Description
3030 \begin_inset space ~
3035 : The current row and all rows below, that don't have any special options
3036 defined, are defined to be the footer rows of the last page of the longtable.
3039 \begin_layout Description
3040 Caption: The first row is reset as single column.
3041 You can now insert there the table caption via the menu
3043 Insert\SpecialChar \menuseparator
3047 More about longtable captions is explained in sec.
3048 \begin_inset space \thinspace{}
3052 \begin_inset CommandInset ref
3054 reference "sub:Longtable-Captions"
3061 \begin_layout Standard
3062 You can also specify a row where the table is splitted.
3063 If you set more than one option in the same table row, you should be aware
3064 of the fact that only the first one is used in the given table row.
3065 The others will then be defined as
3070 In this context, first means first in this order:
3077 \begin_inset space ~
3080 header, Footer, Last
3081 \begin_inset space ~
3087 See the following longtable to see how it works:
3090 \begin_layout Standard
3092 \begin_inset Tabular
3093 <lyxtabular version="3" rows="69" columns="3">
3094 <features islongtable="true">
3095 <column alignment="left" valignment="top" width="0cm">
3096 <column alignment="left" valignment="top" width="0pt">
3097 <column alignment="center" valignment="top" width="0pt">
3098 <row endfirsthead="true">
3099 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3102 \begin_layout Plain Layout
3105 Example Phone List (ignore the names)
3110 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3113 \begin_layout Plain Layout
3119 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3122 \begin_layout Plain Layout
3129 <row endfirsthead="true">
3130 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3133 \begin_layout Plain Layout
3141 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3144 \begin_layout Plain Layout
3150 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3153 \begin_layout Plain Layout
3162 <row endhead="true">
3163 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3166 \begin_layout Plain Layout
3174 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3177 \begin_layout Plain Layout
3183 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3186 \begin_layout Plain Layout
3193 <row endhead="true">
3194 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3197 \begin_layout Plain Layout
3205 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3208 \begin_layout Plain Layout
3214 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3217 \begin_layout Plain Layout
3226 <row endfoot="true">
3227 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
3230 \begin_layout Plain Layout
3231 continued on next page
3236 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3239 \begin_layout Plain Layout
3245 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3248 \begin_layout Plain Layout
3256 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3259 \begin_layout Plain Layout
3267 <cell alignment="center" valignment="top" usebox="none">
3270 \begin_layout Plain Layout
3276 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3279 \begin_layout Plain Layout
3287 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3290 \begin_layout Plain Layout
3298 <cell alignment="center" valignment="top" usebox="none">
3301 \begin_layout Plain Layout
3307 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3310 \begin_layout Plain Layout
3318 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3321 \begin_layout Plain Layout
3329 <cell alignment="center" valignment="top" usebox="none">
3332 \begin_layout Plain Layout
3338 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3341 \begin_layout Plain Layout
3349 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3352 \begin_layout Plain Layout
3360 <cell alignment="center" valignment="top" usebox="none">
3363 \begin_layout Plain Layout
3369 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3372 \begin_layout Plain Layout
3380 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3383 \begin_layout Plain Layout
3391 <cell alignment="center" valignment="top" usebox="none">
3394 \begin_layout Plain Layout
3400 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3403 \begin_layout Plain Layout
3411 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3414 \begin_layout Plain Layout
3422 <cell alignment="center" valignment="top" usebox="none">
3425 \begin_layout Plain Layout
3431 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3434 \begin_layout Plain Layout
3442 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3445 \begin_layout Plain Layout
3453 <cell alignment="center" valignment="top" usebox="none">
3456 \begin_layout Plain Layout
3462 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3465 \begin_layout Plain Layout
3473 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3476 \begin_layout Plain Layout
3484 <cell alignment="center" valignment="top" usebox="none">
3487 \begin_layout Plain Layout
3493 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3496 \begin_layout Plain Layout
3504 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3507 \begin_layout Plain Layout
3515 <cell alignment="center" valignment="top" usebox="none">
3518 \begin_layout Plain Layout
3524 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3527 \begin_layout Plain Layout
3535 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3538 \begin_layout Plain Layout
3546 <cell alignment="center" valignment="top" usebox="none">
3549 \begin_layout Plain Layout
3555 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3558 \begin_layout Plain Layout
3566 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3569 \begin_layout Plain Layout
3577 <cell alignment="center" valignment="top" usebox="none">
3580 \begin_layout Plain Layout
3586 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3589 \begin_layout Plain Layout
3597 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3600 \begin_layout Plain Layout
3608 <cell alignment="center" valignment="top" usebox="none">
3611 \begin_layout Plain Layout
3617 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3620 \begin_layout Plain Layout
3628 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3631 \begin_layout Plain Layout
3639 <cell alignment="center" valignment="top" usebox="none">
3642 \begin_layout Plain Layout
3648 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3651 \begin_layout Plain Layout
3659 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3662 \begin_layout Plain Layout
3670 <cell alignment="center" valignment="top" usebox="none">
3673 \begin_layout Plain Layout
3679 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3682 \begin_layout Plain Layout
3690 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3693 \begin_layout Plain Layout
3701 <cell alignment="center" valignment="top" usebox="none">
3704 \begin_layout Plain Layout
3710 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3713 \begin_layout Plain Layout
3721 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3724 \begin_layout Plain Layout
3732 <cell alignment="center" valignment="top" usebox="none">
3735 \begin_layout Plain Layout
3741 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3744 \begin_layout Plain Layout
3752 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3755 \begin_layout Plain Layout
3763 <cell alignment="center" valignment="top" usebox="none">
3766 \begin_layout Plain Layout
3772 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3775 \begin_layout Plain Layout
3783 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3786 \begin_layout Plain Layout
3794 <cell alignment="center" valignment="top" usebox="none">
3797 \begin_layout Plain Layout
3803 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3806 \begin_layout Plain Layout
3814 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3817 \begin_layout Plain Layout
3825 <cell alignment="center" valignment="top" usebox="none">
3828 \begin_layout Plain Layout
3834 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3837 \begin_layout Plain Layout
3845 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3848 \begin_layout Plain Layout
3856 <cell alignment="center" valignment="top" usebox="none">
3859 \begin_layout Plain Layout
3865 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3868 \begin_layout Plain Layout
3876 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3879 \begin_layout Plain Layout
3887 <cell alignment="center" valignment="top" usebox="none">
3890 \begin_layout Plain Layout
3896 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3899 \begin_layout Plain Layout
3907 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3910 \begin_layout Plain Layout
3918 <cell alignment="center" valignment="top" usebox="none">
3921 \begin_layout Plain Layout
3927 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3930 \begin_layout Plain Layout
3938 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3941 \begin_layout Plain Layout
3949 <cell alignment="center" valignment="top" usebox="none">
3952 \begin_layout Plain Layout
3958 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3961 \begin_layout Plain Layout
3969 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3972 \begin_layout Plain Layout
3980 <cell alignment="center" valignment="top" usebox="none">
3983 \begin_layout Plain Layout
3989 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3992 \begin_layout Plain Layout
4000 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4003 \begin_layout Plain Layout
4011 <cell alignment="center" valignment="top" usebox="none">
4014 \begin_layout Plain Layout
4020 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4023 \begin_layout Plain Layout
4031 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4034 \begin_layout Plain Layout
4042 <cell alignment="center" valignment="top" usebox="none">
4045 \begin_layout Plain Layout
4051 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4054 \begin_layout Plain Layout
4062 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4065 \begin_layout Plain Layout
4073 <cell alignment="center" valignment="top" usebox="none">
4076 \begin_layout Plain Layout
4082 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4085 \begin_layout Plain Layout
4093 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4096 \begin_layout Plain Layout
4104 <cell alignment="center" valignment="top" usebox="none">
4107 \begin_layout Plain Layout
4113 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4116 \begin_layout Plain Layout
4124 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4127 \begin_layout Plain Layout
4135 <cell alignment="center" valignment="top" usebox="none">
4138 \begin_layout Plain Layout
4144 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4147 \begin_layout Plain Layout
4155 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4158 \begin_layout Plain Layout
4166 <cell alignment="center" valignment="top" usebox="none">
4169 \begin_layout Plain Layout
4175 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4178 \begin_layout Plain Layout
4186 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4189 \begin_layout Plain Layout
4197 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4200 \begin_layout Plain Layout
4206 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4209 \begin_layout Plain Layout
4217 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4220 \begin_layout Plain Layout
4226 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4229 \begin_layout Plain Layout
4235 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4238 \begin_layout Plain Layout
4246 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4249 \begin_layout Plain Layout
4257 <cell alignment="center" valignment="top" usebox="none">
4260 \begin_layout Plain Layout
4266 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4269 \begin_layout Plain Layout
4277 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4280 \begin_layout Plain Layout
4288 <cell alignment="center" valignment="top" usebox="none">
4291 \begin_layout Plain Layout
4297 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4300 \begin_layout Plain Layout
4308 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4311 \begin_layout Plain Layout
4319 <cell alignment="center" valignment="top" usebox="none">
4322 \begin_layout Plain Layout
4328 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4331 \begin_layout Plain Layout
4339 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4342 \begin_layout Plain Layout
4350 <cell alignment="center" valignment="top" usebox="none">
4353 \begin_layout Plain Layout
4359 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4362 \begin_layout Plain Layout
4370 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4373 \begin_layout Plain Layout
4381 <cell alignment="center" valignment="top" usebox="none">
4384 \begin_layout Plain Layout
4390 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4393 \begin_layout Plain Layout
4401 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4404 \begin_layout Plain Layout
4412 <cell alignment="center" valignment="top" usebox="none">
4415 \begin_layout Plain Layout
4421 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4424 \begin_layout Plain Layout
4432 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4435 \begin_layout Plain Layout
4443 <cell alignment="center" valignment="top" usebox="none">
4446 \begin_layout Plain Layout
4452 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4455 \begin_layout Plain Layout
4463 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4466 \begin_layout Plain Layout
4474 <cell alignment="center" valignment="top" usebox="none">
4477 \begin_layout Plain Layout
4483 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4486 \begin_layout Plain Layout
4494 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4497 \begin_layout Plain Layout
4505 <cell alignment="center" valignment="top" usebox="none">
4508 \begin_layout Plain Layout
4514 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4517 \begin_layout Plain Layout
4525 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4528 \begin_layout Plain Layout
4536 <cell alignment="center" valignment="top" usebox="none">
4539 \begin_layout Plain Layout
4545 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4548 \begin_layout Plain Layout
4556 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4559 \begin_layout Plain Layout
4567 <cell alignment="center" valignment="top" usebox="none">
4570 \begin_layout Plain Layout
4576 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4579 \begin_layout Plain Layout
4587 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4590 \begin_layout Plain Layout
4598 <cell alignment="center" valignment="top" usebox="none">
4601 \begin_layout Plain Layout
4607 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4610 \begin_layout Plain Layout
4618 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4621 \begin_layout Plain Layout
4629 <cell alignment="center" valignment="top" usebox="none">
4632 \begin_layout Plain Layout
4638 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4641 \begin_layout Plain Layout
4649 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4652 \begin_layout Plain Layout
4660 <cell alignment="center" valignment="top" usebox="none">
4663 \begin_layout Plain Layout
4669 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4672 \begin_layout Plain Layout
4680 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4683 \begin_layout Plain Layout
4691 <cell alignment="center" valignment="top" usebox="none">
4694 \begin_layout Plain Layout
4700 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4703 \begin_layout Plain Layout
4711 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4714 \begin_layout Plain Layout
4722 <cell alignment="center" valignment="top" usebox="none">
4725 \begin_layout Plain Layout
4731 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4734 \begin_layout Plain Layout
4742 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4745 \begin_layout Plain Layout
4753 <cell alignment="center" valignment="top" usebox="none">
4756 \begin_layout Plain Layout
4762 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4765 \begin_layout Plain Layout
4773 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4776 \begin_layout Plain Layout
4784 <cell alignment="center" valignment="top" usebox="none">
4787 \begin_layout Plain Layout
4793 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4796 \begin_layout Plain Layout
4804 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4807 \begin_layout Plain Layout
4815 <cell alignment="center" valignment="top" usebox="none">
4818 \begin_layout Plain Layout
4824 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4827 \begin_layout Plain Layout
4835 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4838 \begin_layout Plain Layout
4846 <cell alignment="center" valignment="top" usebox="none">
4849 \begin_layout Plain Layout
4855 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4858 \begin_layout Plain Layout
4866 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4869 \begin_layout Plain Layout
4877 <cell alignment="center" valignment="top" usebox="none">
4880 \begin_layout Plain Layout
4886 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4889 \begin_layout Plain Layout
4897 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4900 \begin_layout Plain Layout
4908 <cell alignment="center" valignment="top" usebox="none">
4911 \begin_layout Plain Layout
4917 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4920 \begin_layout Plain Layout
4928 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4931 \begin_layout Plain Layout
4939 <cell alignment="center" valignment="top" usebox="none">
4942 \begin_layout Plain Layout
4948 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4951 \begin_layout Plain Layout
4959 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4962 \begin_layout Plain Layout
4970 <cell alignment="center" valignment="top" usebox="none">
4973 \begin_layout Plain Layout
4979 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4982 \begin_layout Plain Layout
4990 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4993 \begin_layout Plain Layout
5001 <cell alignment="center" valignment="top" usebox="none">
5004 \begin_layout Plain Layout
5010 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5013 \begin_layout Plain Layout
5021 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5024 \begin_layout Plain Layout
5032 <cell alignment="center" valignment="top" usebox="none">
5035 \begin_layout Plain Layout
5041 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5044 \begin_layout Plain Layout
5052 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5055 \begin_layout Plain Layout
5063 <cell alignment="center" valignment="top" usebox="none">
5066 \begin_layout Plain Layout
5072 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5075 \begin_layout Plain Layout
5083 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5086 \begin_layout Plain Layout
5094 <cell alignment="center" valignment="top" usebox="none">
5097 \begin_layout Plain Layout
5103 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5106 \begin_layout Plain Layout
5114 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5117 \begin_layout Plain Layout
5125 <cell alignment="center" valignment="top" usebox="none">
5128 \begin_layout Plain Layout
5134 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5137 \begin_layout Plain Layout
5145 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5148 \begin_layout Plain Layout
5156 <cell alignment="center" valignment="top" usebox="none">
5159 \begin_layout Plain Layout
5165 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5168 \begin_layout Plain Layout
5176 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5179 \begin_layout Plain Layout
5187 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5190 \begin_layout Plain Layout
5196 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5199 \begin_layout Plain Layout
5206 <row endlastfoot="true">
5207 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5210 \begin_layout Plain Layout
5216 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5219 \begin_layout Plain Layout
5225 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5228 \begin_layout Plain Layout
5243 \begin_layout Plain Layout
5247 addtocounter{table}{-1}
5253 \begin_inset Note Note
5256 \begin_layout Plain Layout
5257 See greyed-out note in section
5258 \begin_inset space ~
5262 \begin_inset CommandInset ref
5264 reference "sub:Longtable-Captions"
5268 for an explanation of this command.
5276 \begin_layout Subsection
5277 Footnotes in Longtables
5278 \begin_inset CommandInset label
5280 name "sub:Footnotes-in-Longtables"
5288 \begin_layout Plain Layout
5289 Longtables ! Footnotes
5297 \begin_layout Standard
5298 Footnotes can be inserted to every longtable cell.
5299 They appear at the bottom of the page where the table cell with the footnote
5302 \begin_inset space ~
5306 \begin_inset CommandInset ref
5308 reference "tab:DiffCaptions"
5312 has for example a footnote.
5315 \begin_layout Subsection
5320 \begin_layout Plain Layout
5321 Longtables ! Alignment
5329 \begin_layout Standard
5330 Longtables are by default centered.
5331 In contrary to the alignment of the table columns and row, the table alignment
5332 can currently not be changed in the table dialog.
5333 To change the alignment of longtables you have to change the value of the
5346 by inserting this line as TeX-Code before the corresponding longtable:
5349 \begin_layout Standard
5359 \begin_layout Standard
5360 Where the value can have any of the units listed in Table
5361 \begin_inset space ~
5365 \begin_inset CommandInset ref
5367 reference "tab:Units"
5378 controls the horizontal distance from the left page border to the longtable,
5385 the distance from the right side.
5386 The default value for both lengths is
5392 , which is in this case the same as an horizontal fill in LyX.
5395 \begin_layout Standard
5396 The following longtable was left-aligned by setting
5403 \begin_inset space \thinspace{}
5410 \begin_layout Plain Layout
5424 \begin_layout Standard
5425 \begin_inset Tabular
5426 <lyxtabular version="3" rows="5" columns="5">
5427 <features islongtable="true">
5428 <column alignment="center" valignment="top" width="0">
5429 <column alignment="center" valignment="top" width="0">
5430 <column alignment="center" valignment="top" width="0">
5431 <column alignment="center" valignment="top" width="0">
5432 <column alignment="center" valignment="top" width="0">
5434 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5437 \begin_layout Plain Layout
5443 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5446 \begin_layout Plain Layout
5452 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5455 \begin_layout Plain Layout
5461 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5464 \begin_layout Plain Layout
5470 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5473 \begin_layout Plain Layout
5481 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5484 \begin_layout Plain Layout
5490 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5493 \begin_layout Plain Layout
5499 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5502 \begin_layout Plain Layout
5508 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5511 \begin_layout Plain Layout
5517 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5520 \begin_layout Plain Layout
5528 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5531 \begin_layout Plain Layout
5537 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5540 \begin_layout Plain Layout
5546 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5549 \begin_layout Plain Layout
5555 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5558 \begin_layout Plain Layout
5564 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5567 \begin_layout Plain Layout
5575 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5578 \begin_layout Plain Layout
5584 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5587 \begin_layout Plain Layout
5593 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5596 \begin_layout Plain Layout
5602 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5605 \begin_layout Plain Layout
5611 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5614 \begin_layout Plain Layout
5622 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5625 \begin_layout Plain Layout
5631 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5634 \begin_layout Plain Layout
5640 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5643 \begin_layout Plain Layout
5649 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5652 \begin_layout Plain Layout
5658 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5661 \begin_layout Plain Layout
5676 \begin_layout Plain Layout
5692 \begin_layout Subsection
5697 \begin_layout Plain Layout
5698 Longtables ! Captions
5704 \begin_inset CommandInset label
5706 name "sub:Longtable-Captions"
5713 \begin_layout Standard
5714 A longtable cannot be put into a table float because floats can only be
5715 on one page but the caption environment of floats can also be used for
5717 Therefore the caption is inserted as first row of the table, as explained
5719 \begin_inset space \thinspace{}
5723 \begin_inset CommandInset ref
5725 reference "sec:Longtables"
5730 The first table row is then only a dummy row for the caption, the actual
5731 table starts with the second row.
5734 \begin_layout Standard
5735 Here is a short longtable to see how it works:
5738 \begin_layout Standard
5739 \begin_inset Tabular
5740 <lyxtabular version="3" rows="6" columns="5">
5741 <features islongtable="true">
5742 <column alignment="center" valignment="top" width="0">
5743 <column alignment="center" valignment="top" width="0">
5744 <column alignment="center" valignment="top" width="0">
5745 <column alignment="center" valignment="top" width="0">
5746 <column alignment="center" valignment="top" width="0">
5747 <row caption="true">
5748 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
5751 \begin_layout Plain Layout
5752 \begin_inset Caption
5754 \begin_layout Plain Layout
5755 Longtable with caption
5759 \begin_layout Plain Layout
5775 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5778 \begin_layout Plain Layout
5784 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5787 \begin_layout Plain Layout
5793 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5796 \begin_layout Plain Layout
5802 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5805 \begin_layout Plain Layout
5813 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5816 \begin_layout Plain Layout
5822 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5825 \begin_layout Plain Layout
5831 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5834 \begin_layout Plain Layout
5840 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5843 \begin_layout Plain Layout
5849 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5852 \begin_layout Plain Layout
5860 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5863 \begin_layout Plain Layout
5869 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5872 \begin_layout Plain Layout
5878 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5881 \begin_layout Plain Layout
5887 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5890 \begin_layout Plain Layout
5896 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5899 \begin_layout Plain Layout
5907 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5910 \begin_layout Plain Layout
5916 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5919 \begin_layout Plain Layout
5925 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5928 \begin_layout Plain Layout
5934 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5937 \begin_layout Plain Layout
5943 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5946 \begin_layout Plain Layout
5954 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5957 \begin_layout Plain Layout
5963 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5966 \begin_layout Plain Layout
5972 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5975 \begin_layout Plain Layout
5981 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5984 \begin_layout Plain Layout
5990 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5993 \begin_layout Plain Layout
6001 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6004 \begin_layout Plain Layout
6010 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6013 \begin_layout Plain Layout
6019 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6022 \begin_layout Plain Layout
6028 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6031 \begin_layout Plain Layout
6037 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6040 \begin_layout Plain Layout
6054 \begin_layout Standard
6055 \begin_inset VSpace medskip
6059 \begin_inset Note Greyedout
6062 \begin_layout Plain Layout
6067 The table number is increased for every longtable, also if you didn't set
6069 For this reason you could have the case that e.g.
6071 \begin_inset space ~
6074 2.4 follows on Table
6075 \begin_inset space ~
6078 2.1 in the list of tables if there are two longtables without captions.
6079 To avoid this you can add the following command in TeX-Code behind every
6080 longtable without a caption:
6083 \begin_layout Plain Layout
6088 addtocounter{table}{-1}
6096 \begin_layout Standard
6097 \begin_inset Note Greyedout
6100 \begin_layout Plain Layout
6113 \begin_layout Plain Layout
6114 LaTeX-packages ! hyperref
6127 dialog to link cross-references, the link to a longtable caption will always
6128 point to the beginning of the document.
6136 \begin_layout Standard
6137 \begin_inset Newpage newpage
6143 \begin_layout Subsubsection
6144 References to Longtables
6148 \begin_layout Plain Layout
6149 Longtables ! References
6157 \begin_layout Standard
6158 \begin_inset Tabular
6159 <lyxtabular version="3" rows="6" columns="5">
6160 <features islongtable="true">
6161 <column alignment="center" valignment="top" width="0">
6162 <column alignment="center" valignment="top" width="0">
6163 <column alignment="center" valignment="top" width="0">
6164 <column alignment="center" valignment="top" width="0">
6165 <column alignment="center" valignment="top" width="0">
6166 <row caption="true">
6167 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6170 \begin_layout Plain Layout
6171 \begin_inset Caption
6173 \begin_layout Plain Layout
6174 Referenced longtable
6175 \begin_inset CommandInset label
6177 name "tab:RefExample"
6191 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6194 \begin_layout Plain Layout
6200 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6203 \begin_layout Plain Layout
6209 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6212 \begin_layout Plain Layout
6218 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6221 \begin_layout Plain Layout
6229 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6232 \begin_layout Plain Layout
6238 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6241 \begin_layout Plain Layout
6247 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6250 \begin_layout Plain Layout
6256 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6259 \begin_layout Plain Layout
6265 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6268 \begin_layout Plain Layout
6276 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6279 \begin_layout Plain Layout
6285 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6288 \begin_layout Plain Layout
6294 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6297 \begin_layout Plain Layout
6303 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6306 \begin_layout Plain Layout
6312 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6315 \begin_layout Plain Layout
6323 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6326 \begin_layout Plain Layout
6332 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6335 \begin_layout Plain Layout
6341 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6344 \begin_layout Plain Layout
6350 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6353 \begin_layout Plain Layout
6359 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6362 \begin_layout Plain Layout
6370 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6373 \begin_layout Plain Layout
6379 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6382 \begin_layout Plain Layout
6388 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6391 \begin_layout Plain Layout
6397 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6400 \begin_layout Plain Layout
6406 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6409 \begin_layout Plain Layout
6417 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6420 \begin_layout Plain Layout
6426 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6429 \begin_layout Plain Layout
6435 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6438 \begin_layout Plain Layout
6444 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6447 \begin_layout Plain Layout
6453 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6456 \begin_layout Plain Layout
6470 \begin_layout Standard
6471 To reference a longtable, insert a label into the caption.
6474 \begin_layout Standard
6475 This is a reference to Table
6476 \begin_inset space ~
6480 \begin_inset CommandInset ref
6482 reference "tab:RefExample"
6489 \begin_layout Standard
6490 The caption layout can be set together with all other captions of your document
6491 using the LaTeX-package
6499 \begin_layout Plain Layout
6500 LaTeX-packages ! caption
6506 \begin_inset space ~
6510 \begin_inset CommandInset ref
6512 reference "sec:Caption-Formatting"
6519 \begin_layout Subsubsection
6524 \begin_layout Plain Layout
6525 Longtables ! Caption Width
6533 \begin_layout Standard
6534 The maximal width of of caption lines is defined by the length
6541 Its default value is 4
6542 \begin_inset space \thinspace{}
6546 To change it add the following command to your document preamble or as
6547 TeX-Code into your document before the longtable that should be affected
6550 \begin_layout Standard
6560 \begin_layout Standard
6561 where the width could have one of the units listed in appendix
6562 \begin_inset space ~
6566 \begin_inset CommandInset ref
6568 reference "cha:Units-available-in"
6575 \begin_layout Standard
6576 The following tables show the difference:
6579 \begin_layout Standard
6580 \begin_inset Tabular
6581 <lyxtabular version="3" rows="6" columns="5">
6582 <features islongtable="true">
6583 <column alignment="center" valignment="top" width="0">
6584 <column alignment="center" valignment="top" width="0">
6585 <column alignment="center" valignment="top" width="0">
6586 <column alignment="center" valignment="top" width="0">
6587 <column alignment="center" valignment="top" width="0">
6588 <row caption="true">
6589 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6592 \begin_layout Plain Layout
6593 \begin_inset Caption
6595 \begin_layout Plain Layout
6596 long full title with default width long full title with default width long
6597 full title with default width
6601 \begin_layout Plain Layout
6602 caption with default width
6617 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6620 \begin_layout Plain Layout
6626 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6629 \begin_layout Plain Layout
6635 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6638 \begin_layout Plain Layout
6644 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6647 \begin_layout Plain Layout
6655 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6658 \begin_layout Plain Layout
6664 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6667 \begin_layout Plain Layout
6673 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6676 \begin_layout Plain Layout
6682 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6685 \begin_layout Plain Layout
6691 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6694 \begin_layout Plain Layout
6702 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6705 \begin_layout Plain Layout
6711 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6714 \begin_layout Plain Layout
6720 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6723 \begin_layout Plain Layout
6729 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6732 \begin_layout Plain Layout
6738 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6741 \begin_layout Plain Layout
6749 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6752 \begin_layout Plain Layout
6758 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6761 \begin_layout Plain Layout
6767 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6770 \begin_layout Plain Layout
6776 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6779 \begin_layout Plain Layout
6785 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6788 \begin_layout Plain Layout
6796 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6799 \begin_layout Plain Layout
6805 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6808 \begin_layout Plain Layout
6814 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6817 \begin_layout Plain Layout
6823 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6826 \begin_layout Plain Layout
6832 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6835 \begin_layout Plain Layout
6843 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6846 \begin_layout Plain Layout
6852 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6855 \begin_layout Plain Layout
6861 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6864 \begin_layout Plain Layout
6870 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6873 \begin_layout Plain Layout
6879 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6882 \begin_layout Plain Layout
6896 \begin_layout Standard
6900 \begin_layout Plain Layout
6912 \begin_inset Tabular
6913 <lyxtabular version="3" rows="6" columns="5">
6914 <features islongtable="true">
6915 <column alignment="center" valignment="top" width="0">
6916 <column alignment="center" valignment="top" width="0">
6917 <column alignment="center" valignment="top" width="0">
6918 <column alignment="center" valignment="top" width="0">
6919 <column alignment="center" valignment="top" width="0">
6920 <row caption="true">
6921 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6924 \begin_layout Plain Layout
6925 \begin_inset Caption
6927 \begin_layout Plain Layout
6928 long full title with width set to 5
6929 \begin_inset space \thinspace{}
6932 cm long full title with width set to 5
6933 \begin_inset space \thinspace{}
6936 cm long full title with width set to 5
6937 \begin_inset space \thinspace{}
6944 \begin_layout Plain Layout
6946 \begin_inset space \thinspace{}
6950 \begin_inset space \thinspace{}
6954 \begin_inset space \thinspace{}
6972 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6975 \begin_layout Plain Layout
6981 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6984 \begin_layout Plain Layout
6990 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6993 \begin_layout Plain Layout
6999 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7002 \begin_layout Plain Layout
7010 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7013 \begin_layout Plain Layout
7019 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7022 \begin_layout Plain Layout
7028 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7031 \begin_layout Plain Layout
7037 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7040 \begin_layout Plain Layout
7046 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7049 \begin_layout Plain Layout
7057 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7060 \begin_layout Plain Layout
7066 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7069 \begin_layout Plain Layout
7075 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7078 \begin_layout Plain Layout
7084 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7087 \begin_layout Plain Layout
7093 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7096 \begin_layout Plain Layout
7104 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7107 \begin_layout Plain Layout
7113 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7116 \begin_layout Plain Layout
7122 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7125 \begin_layout Plain Layout
7131 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7134 \begin_layout Plain Layout
7140 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7143 \begin_layout Plain Layout
7151 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7154 \begin_layout Plain Layout
7160 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7163 \begin_layout Plain Layout
7169 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7172 \begin_layout Plain Layout
7178 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7181 \begin_layout Plain Layout
7187 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7190 \begin_layout Plain Layout
7198 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7201 \begin_layout Plain Layout
7207 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7210 \begin_layout Plain Layout
7216 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7219 \begin_layout Plain Layout
7225 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7228 \begin_layout Plain Layout
7234 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7237 \begin_layout Plain Layout
7251 \begin_layout Standard
7255 \begin_layout Plain Layout
7269 \begin_layout Standard
7270 \begin_inset Note Greyedout
7273 \begin_layout Plain Layout
7278 When the LaTeX-package
7286 \begin_layout Plain Layout
7287 LaTeX-packages ! caption
7292 is used, as in this document, the full page width is used for the caption
7293 when you use the default value of 4
7294 \begin_inset space \thinspace{}
7304 To get in this case exactly a 4
7305 \begin_inset space \thinspace{}
7308 in wide caption, you can either use a value slightly different from 4.0
7309 \begin_inset space \thinspace{}
7314 \begin_inset space \thinspace{}
7317 in, or the LaTeX-command
7321 captionsetup{width=value}
7323 that is provided by the
7335 \begin_layout Subsubsection
7336 Different Captions for Table Pages
7340 \begin_layout Plain Layout
7341 Longtables ! Different Captions for Pages
7349 \begin_layout Standard
7350 When the other captions should differ from the one of the first table page,
7351 insert a caption with a non-empty short title in a dummy caption row marked
7353 The caption used for the other table pages is inserted as caption without
7354 a short title in a dummy caption row that is marked as main header.
7355 When this caption shouldn't include the table number, use the command
7358 \begin_layout Standard
7363 caption*{caption text}
7366 \begin_layout Standard
7367 instead of LyX's caption box.
7368 The label to reference the table is inserted into the caption of the first
7371 \begin_inset space ~
7375 \begin_inset CommandInset ref
7377 reference "tab:DiffCaptions"
7381 is an example for a longtable with different heading where the second caption
7382 doesn't include the table number.
7385 \begin_layout Standard
7387 \begin_inset Tabular
7388 <lyxtabular version="3" rows="60" columns="3">
7389 <features islongtable="true">
7390 <column alignment="left" valignment="top" width="0cm">
7391 <column alignment="left" valignment="top" width="0pt">
7392 <column alignment="center" valignment="top" width="0pt">
7393 <row endfirsthead="true" caption="true">
7394 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7397 \begin_layout Plain Layout
7398 \begin_inset Caption
7400 \begin_layout Plain Layout
7402 \begin_inset CommandInset label
7404 name "tab:DiffCaptions"
7412 \begin_layout Plain Layout
7428 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7431 \begin_layout Plain Layout
7437 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7440 \begin_layout Plain Layout
7447 <row endfirsthead="true">
7448 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7451 \begin_layout Plain Layout
7454 Example Phone List (ignore the names)
7459 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7462 \begin_layout Plain Layout
7468 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7471 \begin_layout Plain Layout
7478 <row endfirsthead="true">
7479 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7482 \begin_layout Plain Layout
7490 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7493 \begin_layout Plain Layout
7499 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7502 \begin_layout Plain Layout
7511 <row endhead="true" caption="true">
7512 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7515 \begin_layout Plain Layout
7519 \begin_layout Plain Layout
7523 caption*{Continued Example Phone List}
7537 <cell multicolumn="2" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7540 \begin_layout Plain Layout
7546 <cell multicolumn="2" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7549 \begin_layout Plain Layout
7556 <row endhead="true">
7557 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7560 \begin_layout Plain Layout
7568 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7571 \begin_layout Plain Layout
7577 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7580 \begin_layout Plain Layout
7587 <row endhead="true">
7588 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
7591 \begin_layout Plain Layout
7599 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7602 \begin_layout Plain Layout
7608 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7611 \begin_layout Plain Layout
7620 <row endfoot="true">
7621 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
7624 \begin_layout Plain Layout
7625 continued on next page
7630 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7633 \begin_layout Plain Layout
7639 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7642 \begin_layout Plain Layout
7650 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7653 \begin_layout Plain Layout
7661 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7664 \begin_layout Plain Layout
7670 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
7673 \begin_layout Plain Layout
7681 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7684 \begin_layout Plain Layout
7692 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7695 \begin_layout Plain Layout
7701 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7704 \begin_layout Plain Layout
7712 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7715 \begin_layout Plain Layout
7723 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7726 \begin_layout Plain Layout
7732 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7735 \begin_layout Plain Layout
7743 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7746 \begin_layout Plain Layout
7754 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7757 \begin_layout Plain Layout
7763 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7766 \begin_layout Plain Layout
7774 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7777 \begin_layout Plain Layout
7785 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7788 \begin_layout Plain Layout
7794 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7797 \begin_layout Plain Layout
7805 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7808 \begin_layout Plain Layout
7816 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7819 \begin_layout Plain Layout
7825 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7828 \begin_layout Plain Layout
7836 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7839 \begin_layout Plain Layout
7847 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7850 \begin_layout Plain Layout
7856 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7859 \begin_layout Plain Layout
7867 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7870 \begin_layout Plain Layout
7878 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7881 \begin_layout Plain Layout
7887 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7890 \begin_layout Plain Layout
7898 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7901 \begin_layout Plain Layout
7909 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7912 \begin_layout Plain Layout
7918 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7921 \begin_layout Plain Layout
7929 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7932 \begin_layout Plain Layout
7940 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7943 \begin_layout Plain Layout
7949 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7952 \begin_layout Plain Layout
7960 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7963 \begin_layout Plain Layout
7971 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7974 \begin_layout Plain Layout
7980 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7983 \begin_layout Plain Layout
7991 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7994 \begin_layout Plain Layout
8002 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8005 \begin_layout Plain Layout
8011 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8014 \begin_layout Plain Layout
8022 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8025 \begin_layout Plain Layout
8033 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8036 \begin_layout Plain Layout
8042 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8045 \begin_layout Plain Layout
8053 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8056 \begin_layout Plain Layout
8064 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8067 \begin_layout Plain Layout
8073 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8076 \begin_layout Plain Layout
8084 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8087 \begin_layout Plain Layout
8096 \begin_layout Plain Layout
8107 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8110 \begin_layout Plain Layout
8116 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8119 \begin_layout Plain Layout
8127 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8130 \begin_layout Plain Layout
8138 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8141 \begin_layout Plain Layout
8147 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8150 \begin_layout Plain Layout
8158 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8161 \begin_layout Plain Layout
8169 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8172 \begin_layout Plain Layout
8178 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8181 \begin_layout Plain Layout
8189 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8192 \begin_layout Plain Layout
8200 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8203 \begin_layout Plain Layout
8209 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8212 \begin_layout Plain Layout
8220 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8223 \begin_layout Plain Layout
8231 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8234 \begin_layout Plain Layout
8240 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8243 \begin_layout Plain Layout
8251 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8254 \begin_layout Plain Layout
8262 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8265 \begin_layout Plain Layout
8271 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8274 \begin_layout Plain Layout
8282 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8285 \begin_layout Plain Layout
8293 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8296 \begin_layout Plain Layout
8302 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8305 \begin_layout Plain Layout
8313 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8316 \begin_layout Plain Layout
8324 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8327 \begin_layout Plain Layout
8333 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8336 \begin_layout Plain Layout
8344 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8347 \begin_layout Plain Layout
8355 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8358 \begin_layout Plain Layout
8364 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8367 \begin_layout Plain Layout
8375 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8378 \begin_layout Plain Layout
8386 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8389 \begin_layout Plain Layout
8395 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8398 \begin_layout Plain Layout
8406 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8409 \begin_layout Plain Layout
8417 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8420 \begin_layout Plain Layout
8426 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8429 \begin_layout Plain Layout
8437 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8440 \begin_layout Plain Layout
8448 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8451 \begin_layout Plain Layout
8457 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8460 \begin_layout Plain Layout
8468 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8471 \begin_layout Plain Layout
8479 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8482 \begin_layout Plain Layout
8488 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8491 \begin_layout Plain Layout
8499 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8502 \begin_layout Plain Layout
8510 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8513 \begin_layout Plain Layout
8519 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8522 \begin_layout Plain Layout
8530 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8533 \begin_layout Plain Layout
8541 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8544 \begin_layout Plain Layout
8550 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8553 \begin_layout Plain Layout
8561 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8564 \begin_layout Plain Layout
8572 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8575 \begin_layout Plain Layout
8581 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8584 \begin_layout Plain Layout
8592 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8595 \begin_layout Plain Layout
8603 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8606 \begin_layout Plain Layout
8612 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8615 \begin_layout Plain Layout
8623 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8626 \begin_layout Plain Layout
8632 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8635 \begin_layout Plain Layout
8641 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8644 \begin_layout Plain Layout
8652 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8655 \begin_layout Plain Layout
8663 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8666 \begin_layout Plain Layout
8672 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8675 \begin_layout Plain Layout
8683 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8686 \begin_layout Plain Layout
8694 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8697 \begin_layout Plain Layout
8703 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8706 \begin_layout Plain Layout
8714 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8717 \begin_layout Plain Layout
8725 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8728 \begin_layout Plain Layout
8734 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8737 \begin_layout Plain Layout
8745 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8748 \begin_layout Plain Layout
8756 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8759 \begin_layout Plain Layout
8765 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8768 \begin_layout Plain Layout
8776 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8779 \begin_layout Plain Layout
8787 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8790 \begin_layout Plain Layout
8796 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8799 \begin_layout Plain Layout
8807 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8810 \begin_layout Plain Layout
8818 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8821 \begin_layout Plain Layout
8827 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8830 \begin_layout Plain Layout
8838 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8841 \begin_layout Plain Layout
8849 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8852 \begin_layout Plain Layout
8858 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8861 \begin_layout Plain Layout
8869 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8872 \begin_layout Plain Layout
8880 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8883 \begin_layout Plain Layout
8889 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8892 \begin_layout Plain Layout
8900 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8903 \begin_layout Plain Layout
8911 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8914 \begin_layout Plain Layout
8920 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8923 \begin_layout Plain Layout
8931 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8934 \begin_layout Plain Layout
8942 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8945 \begin_layout Plain Layout
8951 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8954 \begin_layout Plain Layout
8962 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8965 \begin_layout Plain Layout
8973 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8976 \begin_layout Plain Layout
8982 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8985 \begin_layout Plain Layout
8993 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8996 \begin_layout Plain Layout
9004 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9007 \begin_layout Plain Layout
9013 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9016 \begin_layout Plain Layout
9024 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9027 \begin_layout Plain Layout
9035 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9038 \begin_layout Plain Layout
9044 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9047 \begin_layout Plain Layout
9055 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9058 \begin_layout Plain Layout
9066 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9069 \begin_layout Plain Layout
9075 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9078 \begin_layout Plain Layout
9086 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9089 \begin_layout Plain Layout
9097 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9100 \begin_layout Plain Layout
9106 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9109 \begin_layout Plain Layout
9117 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9120 \begin_layout Plain Layout
9128 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9131 \begin_layout Plain Layout
9137 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9140 \begin_layout Plain Layout
9148 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9151 \begin_layout Plain Layout
9159 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9162 \begin_layout Plain Layout
9168 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9171 \begin_layout Plain Layout
9179 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9182 \begin_layout Plain Layout
9190 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9193 \begin_layout Plain Layout
9199 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9202 \begin_layout Plain Layout
9210 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9213 \begin_layout Plain Layout
9221 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9224 \begin_layout Plain Layout
9230 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9233 \begin_layout Plain Layout
9241 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9244 \begin_layout Plain Layout
9252 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9255 \begin_layout Plain Layout
9261 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9264 \begin_layout Plain Layout
9271 <row endlastfoot="true">
9272 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9275 \begin_layout Plain Layout
9281 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
9284 \begin_layout Plain Layout
9290 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9293 \begin_layout Plain Layout
9307 \begin_layout Section
9308 Special Longtable Issues
9309 \begin_inset CommandInset label
9311 name "sec:Special-Longtable-Issues"
9318 \begin_layout Subsection
9319 Longtable Calculation
9323 \begin_layout Plain Layout
9324 Longtables ! Calculation
9332 \begin_layout Standard
9333 LaTeX calculates the height of table pages and their page breaks using so
9335 Chunks are pieces of the tables that are at once in LaTeX's memory.
9336 The default value is historically set to only 20 table rows.
9337 If you are using longtables with many pages this may slow down the creation
9339 You can safely increase the chunk size to values of 100-1000 by adding
9340 this command line to your document preamble:
9343 \begin_layout Standard
9348 setcounter{LTchunksize}{100}
9351 \begin_layout Subsection
9352 Floats and Longtables
9356 \begin_layout Plain Layout
9365 \begin_layout Standard
9366 There might be problems when a float appears on the same page where a longtable
9368 To avoid such situation, add the command
9374 as TeX-Code before your longtable.
9377 \begin_layout Subsection
9382 \begin_layout Plain Layout
9383 Longtables ! Forced Page Breaks
9391 \begin_layout Standard
9392 By default tables are only broken between rows.
9393 If you have a cell with multiples lines and want to have a page break within
9394 the cell, insert the new line command
9395 \begin_inset Quotes eld
9407 \begin_inset Quotes erd
9410 as TeX-Code at this point of the cell where it should be broken.
9419 command you have to insert in TeX-Code so many
9420 \begin_inset Quotes eld
9428 \begin_inset Quotes erd
9431 characters like the number of the following table columns.
9436 is the character to separate table cells.
9437 Write in TeX-Code after each
9441 the content of the corresponding following cell and delete the content
9443 \begin_inset Newline newline
9454 command, insert so many
9458 characters like the number of table columns before the current column.
9460 \begin_inset space ~
9464 \begin_inset CommandInset ref
9466 reference "tab:ForcedPagebreak"
9470 the cell that should be broken is in the second column followed by another
9472 Therefore the following command was inserted in the cell as TeX-Code behind
9474 \begin_inset Quotes eld
9482 \begin_inset Quotes erd
9488 \begin_layout Standard
9496 \begin_inset Newline newline
9502 \begin_layout Standard
9504 \begin_inset Quotes eld
9508 \begin_inset Quotes erd
9511 in the third columns of the row was deleted.
9512 If your footer row of the longtable has for a certain reason no upper line
9513 but you would have a horizontal line where the cell is broken, use this
9517 \begin_layout Standard
9525 \begin_inset Newline newline
9533 \begin_layout Standard
9534 When the cell to be broken is in the last column, the command
9537 \begin_layout Standard
9547 \begin_layout Standard
9548 must be inserted as TeX-Code at the beginning of the cell.
9549 This assures that the part of the cell that will be displayed on the new
9550 page appears with the full width.
9553 \begin_layout Standard
9555 \begin_inset Tabular
9556 <lyxtabular version="3" rows="39" columns="3">
9557 <features islongtable="true">
9558 <column alignment="left" valignment="top" width="0cm">
9559 <column alignment="left" valignment="top" width="3cm">
9560 <column alignment="center" valignment="top" width="0pt">
9561 <row endfirsthead="true" caption="true">
9562 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
9565 \begin_layout Plain Layout
9566 \begin_inset Caption
9568 \begin_layout Plain Layout
9569 Table with forced page break in table cell
9570 \begin_inset CommandInset label
9572 name "tab:ForcedPagebreak"
9580 \begin_layout Plain Layout
9581 Table with forced page break in table cell
9596 <cell multicolumn="2" alignment="center" valignment="top" rightline="true" usebox="none">
9599 \begin_layout Plain Layout
9605 <cell multicolumn="2" alignment="center" valignment="top" rightline="true" usebox="none">
9608 \begin_layout Plain Layout
9615 <row endfirsthead="true">
9616 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9619 \begin_layout Plain Layout
9622 Example Phone List (ignore the names)
9627 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9630 \begin_layout Plain Layout
9636 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9639 \begin_layout Plain Layout
9646 <row endfirsthead="true">
9647 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9650 \begin_layout Plain Layout
9658 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9661 \begin_layout Plain Layout
9667 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9670 \begin_layout Plain Layout
9679 <row endhead="true" caption="true">
9680 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
9683 \begin_layout Plain Layout
9687 \begin_layout Plain Layout
9691 caption*{Continued table with forced page break in table cell}
9705 <cell multicolumn="2" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
9708 \begin_layout Plain Layout
9714 <cell multicolumn="2" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
9717 \begin_layout Plain Layout
9724 <row endhead="true">
9725 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9728 \begin_layout Plain Layout
9736 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9739 \begin_layout Plain Layout
9745 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9748 \begin_layout Plain Layout
9755 <row endhead="true">
9756 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9759 \begin_layout Plain Layout
9767 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9770 \begin_layout Plain Layout
9776 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9779 \begin_layout Plain Layout
9788 <row endfoot="true">
9789 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
9792 \begin_layout Plain Layout
9793 continued on next page
9798 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9801 \begin_layout Plain Layout
9807 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9810 \begin_layout Plain Layout
9818 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9821 \begin_layout Plain Layout
9829 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9832 \begin_layout Plain Layout
9838 <cell alignment="right" valignment="top" rightline="true" usebox="none">
9841 \begin_layout Plain Layout
9849 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9852 \begin_layout Plain Layout
9860 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9863 \begin_layout Plain Layout
9869 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9872 \begin_layout Plain Layout
9880 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9883 \begin_layout Plain Layout
9891 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9894 \begin_layout Plain Layout
9900 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9903 \begin_layout Plain Layout
9911 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9914 \begin_layout Plain Layout
9922 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9925 \begin_layout Plain Layout
9931 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9934 \begin_layout Plain Layout
9942 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9945 \begin_layout Plain Layout
9953 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9956 \begin_layout Plain Layout
9962 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9965 \begin_layout Plain Layout
9973 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9976 \begin_layout Plain Layout
9984 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9987 \begin_layout Plain Layout
9993 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9996 \begin_layout Plain Layout
10004 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10007 \begin_layout Plain Layout
10015 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10018 \begin_layout Plain Layout
10024 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10027 \begin_layout Plain Layout
10035 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10038 \begin_layout Plain Layout
10046 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10049 \begin_layout Plain Layout
10055 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10058 \begin_layout Plain Layout
10066 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10069 \begin_layout Plain Layout
10077 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10080 \begin_layout Plain Layout
10086 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10089 \begin_layout Plain Layout
10097 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10100 \begin_layout Plain Layout
10108 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10111 \begin_layout Plain Layout
10117 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10120 \begin_layout Plain Layout
10128 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10131 \begin_layout Plain Layout
10139 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10142 \begin_layout Plain Layout
10148 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10151 \begin_layout Plain Layout
10159 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10162 \begin_layout Plain Layout
10170 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10173 \begin_layout Plain Layout
10179 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10182 \begin_layout Plain Layout
10190 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10193 \begin_layout Plain Layout
10201 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10204 \begin_layout Plain Layout
10210 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10213 \begin_layout Plain Layout
10221 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10224 \begin_layout Plain Layout
10232 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10235 \begin_layout Plain Layout
10241 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10244 \begin_layout Plain Layout
10252 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10255 \begin_layout Plain Layout
10263 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10266 \begin_layout Plain Layout
10272 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10275 \begin_layout Plain Layout
10283 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10286 \begin_layout Plain Layout
10294 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10297 \begin_layout Plain Layout
10303 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10306 \begin_layout Plain Layout
10314 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10317 \begin_layout Plain Layout
10325 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10328 \begin_layout Plain Layout
10334 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10337 \begin_layout Plain Layout
10345 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10348 \begin_layout Plain Layout
10356 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10359 \begin_layout Plain Layout
10365 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10368 \begin_layout Plain Layout
10376 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10379 \begin_layout Plain Layout
10387 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10390 \begin_layout Plain Layout
10396 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10399 \begin_layout Plain Layout
10407 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10410 \begin_layout Plain Layout
10418 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10421 \begin_layout Plain Layout
10427 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10430 \begin_layout Plain Layout
10438 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10441 \begin_layout Plain Layout
10449 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10452 \begin_layout Plain Layout
10458 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10461 \begin_layout Plain Layout
10469 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10472 \begin_layout Plain Layout
10480 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10483 \begin_layout Plain Layout
10489 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10492 \begin_layout Plain Layout
10500 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10503 \begin_layout Plain Layout
10511 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10514 \begin_layout Plain Layout
10516 Fürst von Montecompatri, 11.
10517 Fürst von Sulmona und Vivaro, 10.
10518 Fürst von Rossano, 5.
10519 Herzog von Canemorte, 11.
10520 Herzog von Palombara, 5.
10521 Herzog von Castelchiodato,
10525 \begin_layout Plain Layout
10534 \begin_layout Plain Layout
10542 Herzog von Poggionativo, 11.
10543 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10544 Graf von Valinfreda, 11.
10545 Baron von Cropalati, 11.
10546 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10551 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10554 \begin_layout Plain Layout
10562 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10565 \begin_layout Plain Layout
10573 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10576 \begin_layout Plain Layout
10582 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10585 \begin_layout Plain Layout
10593 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10596 \begin_layout Plain Layout
10604 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10607 \begin_layout Plain Layout
10613 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10616 \begin_layout Plain Layout
10624 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10627 \begin_layout Plain Layout
10635 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10638 \begin_layout Plain Layout
10644 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10647 \begin_layout Plain Layout
10655 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10658 \begin_layout Plain Layout
10666 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10669 \begin_layout Plain Layout
10675 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10678 \begin_layout Plain Layout
10686 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10689 \begin_layout Plain Layout
10697 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10700 \begin_layout Plain Layout
10706 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10709 \begin_layout Plain Layout
10717 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10720 \begin_layout Plain Layout
10728 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10731 \begin_layout Plain Layout
10737 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10740 \begin_layout Plain Layout
10748 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10751 \begin_layout Plain Layout
10759 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10762 \begin_layout Plain Layout
10768 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10771 \begin_layout Plain Layout
10779 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10782 \begin_layout Plain Layout
10790 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
10793 \begin_layout Plain Layout
10799 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
10802 \begin_layout Plain Layout
10809 <row endlastfoot="true">
10810 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
10813 \begin_layout Plain Layout
10819 <cell multicolumn="2" alignment="center" valignment="top" rightline="true" usebox="none">
10822 \begin_layout Plain Layout
10828 <cell multicolumn="2" alignment="center" valignment="top" rightline="true" usebox="none">
10831 \begin_layout Plain Layout
10845 \begin_layout Standard
10846 \begin_inset Newpage newpage
10852 \begin_layout Section
10853 Multiple Lines Columns and Rows
10856 \begin_layout Subsection
10857 Multiple Lines in Table Cells
10858 \begin_inset CommandInset label
10860 name "sub:Multiple-Lines-in"
10868 \begin_layout Plain Layout
10869 Multiple Lines in Table Cells
10878 \begin_layout Plain Layout
10887 \begin_layout Standard
10889 \begin_inset Float table
10895 \begin_layout Plain Layout
10896 \begin_inset Caption
10898 \begin_layout Plain Layout
10899 \begin_inset CommandInset label
10901 name "tab:Table-with-multiple"
10905 Table with multiple lines in cells
10913 \begin_layout Plain Layout
10915 \begin_inset Tabular
10916 <lyxtabular version="3" rows="3" columns="3">
10918 <column alignment="center" valignment="middle" width="2.5cm">
10919 <column alignment="center" valignment="middle" width="0">
10920 <column alignment="center" valignment="middle" width="0">
10922 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10925 \begin_layout Plain Layout
10927 \begin_inset Newline linebreak
10935 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10938 \begin_layout Plain Layout
10944 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10947 \begin_layout Plain Layout
10955 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10958 \begin_layout Plain Layout
10964 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10967 \begin_layout Plain Layout
10973 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10976 \begin_layout Plain Layout
10984 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10987 \begin_layout Plain Layout
10993 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10996 \begin_layout Plain Layout
11002 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11005 \begin_layout Plain Layout
11024 \begin_layout Standard
11025 Adjusting a fixed width for a column, enables to enter text as a paragraph
11026 with multiple lines and hyphenations.
11029 \begin_layout Standard
11031 \begin_inset space ~
11035 \begin_inset CommandInset ref
11037 reference "tab:Table-with-multiple"
11041 , create a 3×3 table, mark the first cell and right-click on it.
11042 In the appearing table dialog we set a cell width of 2.5
11043 \begin_inset space \thinspace{}
11046 cm and choose centered for the vertical and horizontal alignment.
11047 The vertical alignment is used for all cells of the row.
11048 As our text is smaller than than 2.5
11049 \begin_inset space \thinspace{}
11052 cm, only one line will appear.
11053 To get two lines, a justified line break (shortcut
11058 If the text is wider than the set cell width, it will automatically be
11059 broken to several lines.
11062 \begin_layout Standard
11063 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11064 by LaTeX if it is the first entry.
11065 Therefore you need to insert something, to make the word not being the
11067 So add a horizontal space of 0
11068 \begin_inset space \thinspace{}
11071 pt before the word.
11072 As the space is zero, it doesn't change the output.
11074 \begin_inset space ~
11078 \begin_inset CommandInset ref
11080 reference "tab:Table-with-and"
11087 \begin_layout Standard
11088 \begin_inset Float table
11094 \begin_layout Plain Layout
11095 \begin_inset Caption
11097 \begin_layout Plain Layout
11098 \begin_inset CommandInset label
11100 name "tab:Table-with-and"
11104 Table with and without hyphenation
11112 \begin_layout Plain Layout
11113 \begin_inset space \hfill{}
11117 \begin_inset Tabular
11118 <lyxtabular version="3" rows="3" columns="3">
11120 <column alignment="center" valignment="middle" width="2.5cm">
11121 <column alignment="center" valignment="middle" width="0">
11122 <column alignment="center" valignment="middle" width="0">
11124 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11127 \begin_layout Plain Layout
11128 verylongtablecellword
11133 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11136 \begin_layout Plain Layout
11142 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11145 \begin_layout Plain Layout
11153 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11156 \begin_layout Plain Layout
11162 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11165 \begin_layout Plain Layout
11171 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11174 \begin_layout Plain Layout
11182 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11185 \begin_layout Plain Layout
11191 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11194 \begin_layout Plain Layout
11200 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11203 \begin_layout Plain Layout
11215 \begin_inset space \hfill{}
11219 \begin_inset Tabular
11220 <lyxtabular version="3" rows="3" columns="3">
11222 <column alignment="center" valignment="middle" width="2.5cm">
11223 <column alignment="center" valignment="middle" width="0">
11224 <column alignment="center" valignment="middle" width="0">
11226 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11229 \begin_layout Plain Layout
11230 \begin_inset space \hspace{}
11234 verylongtablecellword
11239 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11242 \begin_layout Plain Layout
11248 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11251 \begin_layout Plain Layout
11259 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11262 \begin_layout Plain Layout
11268 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11271 \begin_layout Plain Layout
11277 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11280 \begin_layout Plain Layout
11288 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11291 \begin_layout Plain Layout
11297 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11300 \begin_layout Plain Layout
11306 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11309 \begin_layout Plain Layout
11321 \begin_inset space \hfill{}
11332 \begin_layout Subsection
11334 \begin_inset CommandInset label
11336 name "sub:Multicolumns"
11344 \begin_layout Plain Layout
11354 \begin_layout Plain Layout
11355 Table ! Multicolumns
11363 \begin_layout Subsubsection
11367 \begin_layout Standard
11368 To span a cell over multiple columns, mark as much cells within a line that
11369 should be one spanned cell and use either the table-toolbar button
11370 \begin_inset Graphics
11371 filename ../images/tabular-feature_multicolumn.png
11373 scaleBeforeRotation
11379 Edit\SpecialChar \menuseparator
11380 Table\SpecialChar \menuseparator
11383 , or right click on the marked cells and choose multicolumn in the appearing
11384 table dialog under the tab
11391 \begin_layout Standard
11392 Multicolumns have there own cell settings.
11393 That means changing cell borders, cell alignment, and the width only affects
11395 Here is an example table with a multicolumn cell in the first row and one
11396 in the last row without the upper border:
11399 \begin_layout Standard
11401 \begin_inset Tabular
11402 <lyxtabular version="3" rows="3" columns="4">
11403 <features firstHeadTopDL="true" firstHeadBottomDL="true">
11404 <column alignment="center" valignment="top" width="0pt">
11405 <column alignment="center" valignment="middle" width="0">
11406 <column alignment="center" valignment="top" width="0in">
11407 <column alignment="center" valignment="top" width="0pt">
11409 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11412 \begin_layout Plain Layout
11418 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11421 \begin_layout Plain Layout
11427 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11430 \begin_layout Plain Layout
11436 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11439 \begin_layout Plain Layout
11447 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11450 \begin_layout Plain Layout
11465 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11468 \begin_layout Plain Layout
11474 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11477 \begin_layout Plain Layout
11483 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11486 \begin_layout Plain Layout
11494 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11497 \begin_layout Plain Layout
11503 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11506 \begin_layout Plain Layout
11512 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11515 \begin_layout Plain Layout
11521 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11524 \begin_layout Plain Layout
11538 \begin_layout Subsubsection
11539 Multicolumn Calculations
11540 \begin_inset CommandInset label
11542 name "sub:Multicolumn-Calculations"
11550 \begin_layout Plain Layout
11551 Multicolumns ! Calculations
11559 \begin_layout Standard
11560 LyX supports multicolumns directly, but we have to take notice of the cell
11561 width of the columns spanned by the multicolumn cell.
11564 \begin_layout Standard
11565 \begin_inset Float table
11571 \begin_layout Plain Layout
11572 \begin_inset Caption
11574 \begin_layout Plain Layout
11575 \begin_inset CommandInset label
11577 name "tab:Table-with-centered"
11581 Table with centered multicolumn text above two columns that have exactly
11582 half the width of the multicolumn cell
11583 \begin_inset OptArg
11586 \begin_layout Plain Layout
11587 Perfect multicolumn table
11600 \begin_layout Plain Layout
11602 \begin_inset Tabular
11603 <lyxtabular version="3" rows="3" columns="3">
11605 <column alignment="center" valignment="middle" width="0" special=">{\centering}m{1.25cm-6.2pt}">
11606 <column alignment="center" valignment="middle" width="0">
11607 <column alignment="center" valignment="top" width="0">
11609 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11612 \begin_layout Plain Layout
11613 multiple lines multicolumn
11618 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11621 \begin_layout Plain Layout
11627 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11630 \begin_layout Plain Layout
11638 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11641 \begin_layout Plain Layout
11647 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11650 \begin_layout Plain Layout
11656 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11659 \begin_layout Plain Layout
11667 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11670 \begin_layout Plain Layout
11676 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11679 \begin_layout Plain Layout
11685 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11688 \begin_layout Plain Layout
11707 \begin_layout Standard
11708 To create for example Table
11709 \begin_inset space ~
11713 \begin_inset CommandInset ref
11715 reference "tab:Table-with-centered"
11719 , mark the first two cells in the first row of a 3×3 table and right-click
11721 Now choose for this cell
11730 \begin_inset space \thinspace{}
11733 cm in the table dialog.
11734 The spanned columns should have exactly half the width of the multicolumn
11735 cell, so that you would adjust a width of 1.25
11736 \begin_inset space \thinspace{}
11739 cm for the first column.
11740 The second column has then automatically a width of 1.25
11741 \begin_inset space \thinspace{}
11744 cm (multicolumn width - width of first column).
11745 This was done for Table
11746 \begin_inset space ~
11750 \begin_inset CommandInset ref
11752 reference "tab:Table-without-half"
11759 \begin_layout Standard
11760 \begin_inset Float table
11765 \begin_layout Plain Layout
11766 \begin_inset Caption
11768 \begin_layout Plain Layout
11769 \begin_inset CommandInset label
11771 name "tab:Table-without-half"
11775 Table where the spanned table columns have not exactly half the width of
11776 the multicolumn cell
11777 \begin_inset OptArg
11780 \begin_layout Plain Layout
11781 Imperfect multicolumn table
11794 \begin_layout Plain Layout
11796 \begin_inset Tabular
11797 <lyxtabular version="3" rows="3" columns="3">
11799 <column alignment="center" valignment="top" width="1.25cm">
11800 <column alignment="center" valignment="top" width="0">
11801 <column alignment="center" valignment="top" width="0">
11803 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
11806 \begin_layout Plain Layout
11807 multiple lines multicolumn
11812 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11815 \begin_layout Plain Layout
11821 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11824 \begin_layout Plain Layout
11832 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11835 \begin_layout Plain Layout
11841 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11844 \begin_layout Plain Layout
11850 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11853 \begin_layout Plain Layout
11861 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11864 \begin_layout Plain Layout
11870 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11873 \begin_layout Plain Layout
11879 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11882 \begin_layout Plain Layout
11901 \begin_layout Standard
11902 You can see that the first column has not the half width of the multicolumn
11903 cell, it is a bit bigger.
11904 The reason is that the given width of a cell
11905 \begin_inset Formula $W_{g}$
11908 is not its total width
11909 \begin_inset Formula $W_{\mathrm{tot}}$
11912 because a cell is always a bit larger than its given width.
11914 \begin_inset space ~
11918 \begin_inset CommandInset ref
11920 reference "cha:Explanation-of-Equation"
11924 explains it in detail.
11927 \begin_layout Standard
11928 The needed given width
11929 \begin_inset Formula $W_{g\, n}$
11936 columns are spanned can be calculated, so that each column has a total
11938 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
11942 \begin_inset Formula \begin{equation}
11943 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}\end{equation}
11950 \begin_layout Standard
11951 In our case we have
11952 \begin_inset Formula $n=2$
11956 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
11959 cm and the default values for the lengths, so that equation
11960 \begin_inset CommandInset ref
11967 \begin_inset Formula \begin{equation}
11968 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}\end{equation}
11975 \begin_layout Standard
11976 To enable calculations in LaTeX, the LaTeX-package
11980 must be loaded with the document preamble line
11984 \begin_layout Plain Layout
11985 LaTeX-packages ! calc
11993 \begin_layout Standard
12001 \begin_layout Standard
12002 LyX does not allow to calculate lengths in the width-field of the table
12004 Therefore you have to format the column by inserting a LaTeX-argument in
12006 Here is an overview about the arguments:
12009 \begin_layout Itemize
12014 creates cell with a fixed width, its text is vertically top-aligned
12017 \begin_layout Itemize
12022 creates cell with a fixed width, its text is vertically centered
12025 \begin_layout Itemize
12030 creates cell with a fixed width, its text is vertically bottom-aligned
12033 \begin_layout Standard
12034 By entering a LaTeX-argument, all cell settings set in the table dialog
12038 \begin_layout Standard
12039 \begin_inset Note Greyedout
12042 \begin_layout Plain Layout
12047 Due to a bug, LyX shows the overwritten settings anyway.
12055 \begin_layout Standard
12056 As the text should be horizontally centered, the command
12063 You can now enter the following LaTeX-argument for the first spanned column:
12066 \begin_layout Standard
12071 centering}m{1.25cm-6.2pt}
12074 \begin_layout Standard
12079 means, that the commands inside the braces are applied before the cell
12083 \begin_layout Standard
12084 Although we have chosen centered alignment for the text of the multicolumn
12085 cell, it is still left aligned.
12086 This is because LyX only applies the alignment to single columns.
12087 So we have to use for the multicolumn the LaTeX-argument
12090 \begin_layout Standard
12098 \begin_layout Subsection
12103 \begin_layout Plain Layout
12113 \begin_layout Plain Layout
12122 \begin_layout Standard
12123 In contrary to multicolumns multirows are not yet supported by LyX so a
12124 bit of TeX-Code needs to be used.
12125 To use multirows load the LaTeX-package
12133 \begin_layout Plain Layout
12134 LaTeX-packages ! multirow
12139 in your document preamble with the command
12142 \begin_layout Standard
12147 usepackage{multirow}
12150 \begin_layout Standard
12151 Multirows are created with the command
12154 \begin_layout Standard
12159 multirow{number of rows}{cell width}{cell entry}
12162 \begin_layout Standard
12163 To create the following table:
12166 \begin_layout Standard
12171 \begin_layout Plain Layout
12185 \begin_inset Tabular
12186 <lyxtabular version="3" rows="3" columns="3">
12188 <column alignment="center" valignment="top" width="0">
12189 <column alignment="center" valignment="top" width="0">
12190 <column alignment="center" valignment="top" width="0">
12192 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12195 \begin_layout Plain Layout
12201 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12204 \begin_layout Plain Layout
12210 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12213 \begin_layout Plain Layout
12221 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12224 \begin_layout Plain Layout
12228 \begin_layout Plain Layout
12232 multirow{2}{2.5cm}{
12241 \begin_layout Plain Layout
12253 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12256 \begin_layout Plain Layout
12262 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12265 \begin_layout Plain Layout
12273 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
12276 \begin_layout Plain Layout
12282 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12285 \begin_layout Plain Layout
12291 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12294 \begin_layout Plain Layout
12309 \begin_layout Plain Layout
12325 \begin_layout Standard
12326 create a 3×3 table.
12327 To get rid of the line above the last cell in the first column, the cell
12328 is marked as multicolumn and the upper border is unset.
12329 The multirow is now created in the second row of the first column by inserting
12333 \begin_layout Standard
12338 multirow{2}{2.5cm}{
12341 \begin_layout Standard
12343 According to the command parameters the multirow spans now two rows and
12345 \begin_inset space \thinspace{}
12349 The content of the multirow cell follows outside the TeX-Code box and the
12350 command is finished with a right brace
12354 in another TeX-Code-box behind the text.
12357 \begin_layout Standard
12364 left-aligns its content by default.
12365 To override the default, renew the command
12374 \begin_layout Standard
12386 \begin_layout Standard
12387 in TeX-Code in the document preamble.
12388 Then all entries of multirow cells in the document are centered.
12389 If centering is only needed for several tables, you can renew the command
12390 in an TeX-Code box just before the table instead of the preamble.
12391 If the text should be right-aligned, replace
12404 To return to left-alignment
12413 \begin_layout Section
12415 \begin_inset CommandInset label
12417 name "sec:Formal-Tables"
12425 \begin_layout Plain Layout
12434 \begin_layout Standard
12435 Tables are often typeset in books similar to Table
12436 \begin_inset space ~
12440 \begin_inset CommandInset ref
12442 reference "tab:Example-booktabs-table"
12447 This kind of tables is called
12448 \begin_inset Quotes eld
12456 \begin_inset Quotes erd
12460 To make a table a formal table use the option
12468 tab of the table dialog.
12471 \begin_layout Standard
12472 \begin_inset Float table
12478 \begin_layout Plain Layout
12479 \begin_inset Caption
12481 \begin_layout Plain Layout
12482 \begin_inset CommandInset label
12484 name "tab:Example-booktabs-table"
12488 Example booktabs-table
12496 \begin_layout Plain Layout
12498 \begin_inset Tabular
12499 <lyxtabular version="3" rows="8" columns="4">
12500 <features booktabs="true">
12501 <column alignment="center" valignment="top" width="0">
12502 <column alignment="center" valignment="top" width="0">
12503 <column alignment="center" valignment="top" width="0">
12504 <column alignment="center" valignment="top" width="0">
12506 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12509 \begin_layout Plain Layout
12515 <cell alignment="center" valignment="top" topline="true" usebox="none">
12518 \begin_layout Plain Layout
12520 \begin_inset Formula $\,$
12528 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
12531 \begin_layout Plain Layout
12533 \begin_inset Formula $\,$
12541 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12544 \begin_layout Plain Layout
12552 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12555 \begin_layout Plain Layout
12559 \begin_layout Plain Layout
12572 \begin_layout Plain Layout
12581 Detector thickness [µm]
12586 <cell alignment="center" valignment="top" usebox="none">
12589 \begin_layout Plain Layout
12595 <cell alignment="center" valignment="top" usebox="none">
12598 \begin_layout Plain Layout
12604 <cell alignment="center" valignment="top" usebox="none">
12607 \begin_layout Plain Layout
12615 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12618 \begin_layout Plain Layout
12624 <cell alignment="center" valignment="top" topline="true" usebox="none">
12627 \begin_layout Plain Layout
12633 <cell alignment="center" valignment="top" topline="true" usebox="none">
12636 \begin_layout Plain Layout
12642 <cell alignment="center" valignment="top" topline="true" usebox="none">
12645 \begin_layout Plain Layout
12652 <row topspace="default">
12653 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12656 \begin_layout Plain Layout
12657 Spatial resolution [µm]
12662 <cell alignment="center" valignment="top" usebox="none">
12665 \begin_layout Plain Layout
12671 <cell alignment="center" valignment="top" usebox="none">
12674 \begin_layout Plain Layout
12680 <cell alignment="center" valignment="top" usebox="none">
12683 \begin_layout Plain Layout
12690 <row topspace="default">
12691 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12694 \begin_layout Plain Layout
12696 \begin_inset Formula $f_{\mathrm{max}}$
12704 <cell alignment="center" valignment="top" usebox="none">
12707 \begin_layout Plain Layout
12713 <cell alignment="center" valignment="top" usebox="none">
12716 \begin_layout Plain Layout
12722 <cell alignment="center" valignment="top" usebox="none">
12725 \begin_layout Plain Layout
12732 <row topspace="default">
12733 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12736 \begin_layout Plain Layout
12740 \begin_layout Plain Layout
12744 cmidrule(l{10pt}){1-1}
12749 LSF-spatial resolution
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
12783 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12786 \begin_layout Plain Layout
12792 <cell alignment="center" valignment="top" usebox="none">
12795 \begin_layout Plain Layout
12801 <cell alignment="center" valignment="top" usebox="none">
12804 \begin_layout Plain Layout
12810 <cell alignment="center" valignment="top" usebox="none">
12813 \begin_layout Plain Layout
12821 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
12824 \begin_layout Plain Layout
12830 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12833 \begin_layout Plain Layout
12839 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12842 \begin_layout Plain Layout
12848 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12851 \begin_layout Plain Layout
12870 \begin_layout Standard
12871 Spaces to table rows can be added using the
12875 tab of the table dialog as described in section
12876 \begin_inset space ~
12880 \begin_inset CommandInset ref
12882 reference "sub:Row-Spacing"
12889 \begin_layout Standard
12890 In contrary to normal tables, formal tables have no vertical table lines.
12891 The horizontal table lines can be set like for normal tables but they appear
12892 with different width in the output:
12893 \begin_inset Newline newline
12896 The first and the last table line have a default width of 0.08
12897 \begin_inset space \thinspace{}
12900 em while the other lines have a default width of 0.05
12901 \begin_inset space \thinspace{}
12907 \begin_layout Standard
12908 The default widths can be changed with the following preamble lines
12911 \begin_layout Standard
12921 \begin_inset Newline newline
12933 \begin_layout Standard
12934 This example is for the first line, the so called
12939 If you want to change the width for the last line, replace
12948 To change the width for the other lines replace
12957 You can use all units listed in appendix
12958 \begin_inset space ~
12962 \begin_inset CommandInset ref
12964 reference "cha:Units-available-in"
12971 \begin_layout Standard
12972 Lines that don't span over all table columns can be created by setting a
12973 table line for multicolumn cells.
12974 LyX will then internally use the command
12980 to create this line.
12984 \begin_layout Standard
12989 cmidrule[width](trim){startcol-endcol}
12992 \begin_layout Standard
12999 are are currently not supported by LyX so you have to use TeX-Code to be
13007 s can manually be created by inserting the command as TeX-Code as first
13008 cell entry of the first cell of a row.
13009 The line is then drawn in the output above the current row.
13012 \begin_layout Standard
13013 The default for the width is 0.03
13014 \begin_inset space \thinspace{}
13018 Startcol is the number of the column where the line starts and endcol the
13019 column number where the line ends.
13020 The endcol always needs to be specified, also when the line should span
13022 The optional parameter trim could be either
13030 where the trimwidth is also optional.
13031 Using for example the parameter
13035 means that the line is trimmed from its left end by 2
13036 \begin_inset space \thinspace{}
13040 If you don't specify the trimwidth the lines are trimmed by the default
13042 \begin_inset space \thinspace{}
13048 \begin_layout Standard
13049 \begin_inset VSpace bigskip
13053 \begin_inset space ~
13057 \begin_inset CommandInset ref
13059 reference "tab:Example-booktabs-table"
13063 was created using the commands
13066 \begin_layout Standard
13076 \begin_layout Standard
13077 at the beginning of the in the second row and
13080 \begin_layout Standard
13085 cmidrule(l{10pt}){1-1}
13088 \begin_layout Standard
13092 \begin_layout Standard
13093 \begin_inset VSpace bigskip
13099 \begin_layout Standard
13100 You might want to have overlapping
13107 \begin_inset space ~
13111 \begin_inset CommandInset ref
13113 reference "tab:Special-booktabs-table"
13118 This can be achieved with the TeX-Code command
13121 \begin_layout Standard
13129 \begin_layout Standard
13130 The command that was used for the second row of Table
13131 \begin_inset space ~
13135 \begin_inset CommandInset ref
13137 reference "tab:Special-booktabs-table"
13144 \begin_layout Standard
13158 \begin_layout Standard
13159 The command for the sixth row is
13162 \begin_layout Standard
13174 \begin_layout Standard
13175 \begin_inset VSpace bigskip
13181 \begin_layout Standard
13182 If you are anyway not satisfied with the border line spacing, you can use
13183 the following command to produce lines that span over all table columns
13188 \begin_layout Standard
13193 specialrule{width}{space above}{space below}
13196 \begin_layout Standard
13197 For more informations about these specialties, we refer to the manual of
13203 \begin_inset CommandInset citation
13213 \begin_layout Plain Layout
13214 LaTeX-packages ! booktabs
13222 \begin_layout Standard
13223 \begin_inset Float table
13229 \begin_layout Plain Layout
13230 \begin_inset Caption
13232 \begin_layout Plain Layout
13233 \begin_inset CommandInset label
13235 name "tab:Special-booktabs-table"
13239 Special booktabs-table
13247 \begin_layout Plain Layout
13249 \begin_inset Tabular
13250 <lyxtabular version="3" rows="8" columns="4">
13251 <features booktabs="true">
13252 <column alignment="center" valignment="top" width="0">
13253 <column alignment="center" valignment="top" width="0">
13254 <column alignment="center" valignment="top" width="0">
13255 <column alignment="center" valignment="top" width="0">
13257 <cell alignment="center" valignment="top" topline="true" usebox="none">
13260 \begin_layout Plain Layout
13266 <cell alignment="center" valignment="top" topline="true" usebox="none">
13269 \begin_layout Plain Layout
13271 \begin_inset space \thinspace{}
13279 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
13282 \begin_layout Plain Layout
13284 \begin_inset space \thinspace{}
13292 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13295 \begin_layout Plain Layout
13303 <cell alignment="center" valignment="top" usebox="none">
13306 \begin_layout Plain Layout
13310 \begin_layout Plain Layout
13323 \begin_layout Plain Layout
13336 \begin_layout Plain Layout
13349 \begin_layout Plain Layout
13358 Detector thickness [µm]
13363 <cell alignment="center" valignment="top" usebox="none">
13366 \begin_layout Plain Layout
13372 <cell alignment="center" valignment="top" usebox="none">
13375 \begin_layout Plain Layout
13381 <cell alignment="center" valignment="top" usebox="none">
13384 \begin_layout Plain Layout
13392 <cell alignment="center" valignment="top" topline="true" usebox="none">
13395 \begin_layout Plain Layout
13401 <cell alignment="center" valignment="top" topline="true" usebox="none">
13404 \begin_layout Plain Layout
13410 <cell alignment="center" valignment="top" topline="true" usebox="none">
13413 \begin_layout Plain Layout
13419 <cell alignment="center" valignment="top" topline="true" usebox="none">
13422 \begin_layout Plain Layout
13429 <row topspace="default">
13430 <cell alignment="center" valignment="top" usebox="none">
13433 \begin_layout Plain Layout
13434 Spatial resolution [µm]
13439 <cell alignment="center" valignment="top" usebox="none">
13442 \begin_layout Plain Layout
13448 <cell alignment="center" valignment="top" usebox="none">
13451 \begin_layout Plain Layout
13457 <cell alignment="center" valignment="top" usebox="none">
13460 \begin_layout Plain Layout
13467 <row topspace="default">
13468 <cell alignment="center" valignment="top" usebox="none">
13471 \begin_layout Plain Layout
13473 \begin_inset Formula $f_{\mathrm{max}}$
13481 <cell alignment="center" valignment="top" usebox="none">
13484 \begin_layout Plain Layout
13490 <cell alignment="center" valignment="top" usebox="none">
13493 \begin_layout Plain Layout
13499 <cell alignment="center" valignment="top" usebox="none">
13502 \begin_layout Plain Layout
13510 <cell alignment="center" valignment="top" topline="true" usebox="none">
13513 \begin_layout Plain Layout
13517 \begin_layout Plain Layout
13530 \begin_layout Plain Layout
13539 LSF-spatial resolution
13544 <cell alignment="center" valignment="top" topline="true" usebox="none">
13547 \begin_layout Plain Layout
13553 <cell alignment="center" valignment="top" topline="true" usebox="none">
13556 \begin_layout Plain Layout
13562 <cell alignment="center" valignment="top" topline="true" usebox="none">
13565 \begin_layout Plain Layout
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
13600 <cell alignment="center" valignment="top" usebox="none">
13603 \begin_layout Plain Layout
13611 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13614 \begin_layout Plain Layout
13620 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13623 \begin_layout Plain Layout
13629 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13632 \begin_layout Plain Layout
13638 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13641 \begin_layout Plain Layout
13660 \begin_layout Section
13661 Vertical Table Alignment
13665 \begin_layout Plain Layout
13674 \begin_layout Standard
13675 To align tables vertically in a text line the table must be inside a box.
13676 The box can then be vertically aligned as described in section
13677 \begin_inset space ~
13681 \begin_inset CommandInset ref
13683 reference "sec:Box-Dialog"
13690 \begin_layout Standard
13691 In the following example the tables are inside a minipage
13695 \begin_layout Plain Layout
13696 Minipages are described in section
13697 \begin_inset space ~
13701 \begin_inset CommandInset ref
13703 reference "sec:Minipages"
13712 box that has a width of 15
13713 \begin_inset space \thinspace{}
13719 \begin_layout Itemize
13721 \begin_inset Box Frameless
13730 height_special "totalheight"
13733 \begin_layout Plain Layout
13734 \begin_inset Tabular
13735 <lyxtabular version="3" rows="3" columns="3">
13737 <column alignment="center" valignment="top" width="0">
13738 <column alignment="center" valignment="top" width="0">
13739 <column alignment="center" valignment="top" width="0">
13741 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13744 \begin_layout Plain Layout
13750 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13753 \begin_layout Plain Layout
13759 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13762 \begin_layout Plain Layout
13770 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13773 \begin_layout Plain Layout
13779 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13782 \begin_layout Plain Layout
13788 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13791 \begin_layout Plain Layout
13799 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13802 \begin_layout Plain Layout
13808 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13811 \begin_layout Plain Layout
13817 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13820 \begin_layout Plain Layout
13840 \begin_layout Plain Layout
13852 \begin_inset Box Frameless
13861 height_special "totalheight"
13864 \begin_layout Plain Layout
13865 \begin_inset Tabular
13866 <lyxtabular version="3" rows="3" columns="3">
13868 <column alignment="center" valignment="top" width="0">
13869 <column alignment="center" valignment="top" width="0">
13870 <column alignment="center" valignment="top" width="0">
13872 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13875 \begin_layout Plain Layout
13881 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13884 \begin_layout Plain Layout
13890 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13893 \begin_layout Plain Layout
13901 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13904 \begin_layout Plain Layout
13910 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13913 \begin_layout Plain Layout
13919 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13922 \begin_layout Plain Layout
13930 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13933 \begin_layout Plain Layout
13939 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13942 \begin_layout Plain Layout
13948 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13951 \begin_layout Plain Layout
13971 \begin_layout Plain Layout
13981 \begin_layout Itemize
13983 \begin_inset Box Frameless
13992 height_special "totalheight"
13995 \begin_layout Plain Layout
13996 \begin_inset Tabular
13997 <lyxtabular version="3" rows="3" columns="3">
13999 <column alignment="center" valignment="top" width="0">
14000 <column alignment="center" valignment="top" width="0">
14001 <column alignment="center" valignment="top" width="0">
14003 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14006 \begin_layout Plain Layout
14012 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14015 \begin_layout Plain Layout
14021 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14024 \begin_layout Plain Layout
14032 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14035 \begin_layout Plain Layout
14041 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14044 \begin_layout Plain Layout
14050 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14053 \begin_layout Plain Layout
14061 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14064 \begin_layout Plain Layout
14070 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14073 \begin_layout Plain Layout
14079 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14082 \begin_layout Plain Layout
14101 \begin_layout Itemize
14103 \begin_inset Box Frameless
14112 height_special "totalheight"
14115 \begin_layout Plain Layout
14116 \begin_inset Tabular
14117 <lyxtabular version="3" rows="3" columns="3">
14119 <column alignment="center" valignment="top" width="0">
14120 <column alignment="center" valignment="top" width="0">
14121 <column alignment="center" valignment="top" width="0">
14123 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14126 \begin_layout Plain Layout
14132 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14135 \begin_layout Plain Layout
14141 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14144 \begin_layout Plain Layout
14152 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14155 \begin_layout Plain Layout
14161 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14164 \begin_layout Plain Layout
14170 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14173 \begin_layout Plain Layout
14181 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14184 \begin_layout Plain Layout
14190 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14193 \begin_layout Plain Layout
14199 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14202 \begin_layout Plain Layout
14222 \begin_layout Plain Layout
14234 \begin_inset Box Frameless
14243 height_special "totalheight"
14246 \begin_layout Plain Layout
14247 \begin_inset Tabular
14248 <lyxtabular version="3" rows="3" columns="3">
14250 <column alignment="center" valignment="top" width="0">
14251 <column alignment="center" valignment="top" width="0">
14252 <column alignment="center" valignment="top" width="0">
14254 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14257 \begin_layout Plain Layout
14263 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14266 \begin_layout Plain Layout
14272 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14275 \begin_layout Plain Layout
14283 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14286 \begin_layout Plain Layout
14292 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14295 \begin_layout Plain Layout
14301 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14304 \begin_layout Plain Layout
14312 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14315 \begin_layout Plain Layout
14321 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14324 \begin_layout Plain Layout
14330 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14333 \begin_layout Plain Layout
14353 \begin_layout Plain Layout
14363 \begin_layout Standard
14364 As you can see, the content of the first and last table row is not correctly
14365 aligned with the text line where the table is in.
14366 To get this alignment, the minipage box must be set into a raisebox
14370 \begin_layout Plain Layout
14371 Raiseboxes are described in section
14372 \begin_inset space ~
14376 \begin_inset CommandInset ref
14378 reference "sub:Vertical-Alignment"
14388 In the example above the second table in the first item is aligned using
14389 the TeX-Code-command
14392 \begin_layout Standard
14402 \begin_layout Standard
14404 Behind the box the closing brace
14408 is inserted as TeX-Code.
14409 For the second table in the last item the command
14412 \begin_layout Standard
14422 \begin_layout Standard
14426 \begin_layout Standard
14427 \begin_inset Note Greyedout
14430 \begin_layout Plain Layout
14435 The alignment of the table row content to the surrounding text line is
14437 The needed factor of the
14443 command for this alignment depends on the document font, the font size,
14444 and the table line thickness.
14452 \begin_layout Section
14454 \begin_inset CommandInset label
14456 name "sec:Colored-Tables"
14464 \begin_layout Plain Layout
14473 \begin_layout Subsection
14478 \begin_layout Plain Layout
14479 Table Color ! for Cells
14488 \begin_layout Plain Layout
14489 Color ! for Table Cells
14497 \begin_layout Standard
14498 \begin_inset Float table
14504 \begin_layout Plain Layout
14505 \begin_inset Caption
14507 \begin_layout Plain Layout
14508 \begin_inset CommandInset label
14510 name "tab:Table-colored-without"
14514 Table colored without using the package
14519 \begin_inset OptArg
14522 \begin_layout Plain Layout
14523 Table without colortbl
14536 \begin_layout Plain Layout
14538 \begin_inset Tabular
14539 <lyxtabular version="3" rows="3" columns="3">
14541 <column alignment="center" valignment="top" width="0">
14542 <column alignment="center" valignment="top" width="0">
14543 <column alignment="center" valignment="top" width="0">
14545 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14548 \begin_layout Plain Layout
14556 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14559 \begin_layout Plain Layout
14567 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14570 \begin_layout Plain Layout
14580 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14583 \begin_layout Plain Layout
14591 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14594 \begin_layout Plain Layout
14602 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14605 \begin_layout Plain Layout
14615 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14618 \begin_layout Plain Layout
14626 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14629 \begin_layout Plain Layout
14637 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14640 \begin_layout Plain Layout
14661 \begin_layout Standard
14662 If you only need colored text, mark the cells and choose a color in the
14665 Edit\SpecialChar \menuseparator
14667 \begin_inset space ~
14673 This was used to create Table
14674 \begin_inset space ~
14678 \begin_inset CommandInset ref
14680 reference "tab:Table-colored-without"
14685 In any other case you have to use the LaTeX-package
14693 \begin_layout Plain Layout
14694 LaTeX-packages ! colortbl
14702 \begin_layout Standard
14706 \begin_layout Plain Layout
14716 \begin_inset Note Note
14719 \begin_layout Plain Layout
14720 The following section part will only be displayed when the LaTeX-package
14733 \begin_layout Standard
14734 To create colored tables,
14738 must be loaded in the preamble with the line
14741 \begin_layout Standard
14746 usepackage{colortbl}
14749 \begin_layout Standard
14750 The color of a column is adjusted with the command
14753 \begin_layout Standard
14758 columncolor{name of color}
14761 \begin_layout Standard
14767 More about the command
14771 is described in section
14772 \begin_inset space ~
14776 \begin_inset CommandInset ref
14778 reference "sub:Multicolumn-Calculations"
14785 \begin_layout Standard
14786 The following color names are predefined:
14789 \begin_layout Standard
14823 \begin_layout Standard
14824 \begin_inset VSpace medskip
14830 \begin_layout Standard
14831 You can also define your own color with the command
14834 \begin_layout Standard
14839 definecolor{color name}{color model}{color values}
14842 \begin_layout Standard
14843 The color model can be
14846 \begin_layout Labeling
14847 \labelwidthstring 00.00.0000
14848 cmyk: cyan, magenta, yellow, black
14851 \begin_layout Labeling
14852 \labelwidthstring 00.00.0000
14853 rgb: red, green blue
14856 \begin_layout Labeling
14857 \labelwidthstring 00.00.0000
14861 \begin_layout Standard
14862 and the color values are comma separated numbers between 0 and 1 describing
14863 the factor for the corresponding color of the color model.
14866 \begin_layout Standard
14868 \begin_inset space \thinspace{}
14872 \begin_inset space ~
14879 " in the preamble with
14882 \begin_layout Standard
14887 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
14890 \begin_layout Standard
14898 \begin_layout Standard
14903 definecolor{lightgray}{gray}{0.8}
14906 \begin_layout Standard
14907 \begin_inset VSpace medskip
14913 \begin_layout Standard
14914 Lines are colored with the command
14917 \begin_layout Standard
14922 rowcolor{name of color}
14925 \begin_layout Standard
14926 and cells are colored with the command
14929 \begin_layout Standard
14934 cellcolor{name of color}
14937 \begin_layout Standard
14938 Both commands are inserted at the beginning of a cell as TeX-Code.
14941 \begin_layout Standard
14942 To color characters in the table, mark the cells and use the LyX menu
14944 Edit\SpecialChar \menuseparator
14946 \begin_inset space ~
14952 If a cell contains TeX-Code mark only the characters, otherwise the colored
14953 TeX-Code will cause LaTeX-errors.
14956 \begin_layout Standard
14957 \begin_inset Note Greyedout
14960 \begin_layout Plain Layout
14965 Not all DVI-viewers are able to display self-defined colors.
14973 \begin_layout Standard
14974 \begin_inset VSpace bigskip
14980 \begin_layout Standard
14982 \begin_inset space ~
14986 \begin_inset CommandInset ref
14988 reference "tab:Table-colored-using"
14992 do the following: The color of the first column should be
15000 \begin_layout Standard
15005 columncolor{darkgreen}
15010 \begin_layout Standard
15011 as LaTeX-argument for this column.
15012 The first row should be blue, therefore the TeX-Code command
15015 \begin_layout Standard
15023 \begin_layout Standard
15024 is inserted to the first cell of this row.
15025 Note that this overwrites the column color for the first cell.
15026 The last cell of the last row is colored magenta by inserting the TeX-Code
15030 \begin_layout Standard
15038 \begin_layout Standard
15039 The characters could now be colored using the menu
15041 Edit\SpecialChar \menuseparator
15043 \begin_inset space ~
15051 \begin_layout Standard
15052 \begin_inset Float table
15058 \begin_layout Plain Layout
15059 \begin_inset Caption
15061 \begin_layout Plain Layout
15062 \begin_inset CommandInset label
15064 name "tab:Table-colored-using"
15068 Table colored using the package
15073 \begin_inset OptArg
15076 \begin_layout Plain Layout
15077 Table with colortbl
15090 \begin_layout Plain Layout
15092 \begin_inset Tabular
15093 <lyxtabular version="3" rows="3" columns="3">
15095 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
15096 <column alignment="center" valignment="top" width="0">
15097 <column alignment="center" valignment="top" width="0">
15099 <cell alignment="center" valignment="top" usebox="none">
15102 \begin_layout Plain Layout
15106 \begin_layout Plain Layout
15122 <cell alignment="center" valignment="top" usebox="none">
15125 \begin_layout Plain Layout
15133 <cell alignment="center" valignment="top" usebox="none">
15136 \begin_layout Plain Layout
15146 <cell alignment="center" valignment="top" usebox="none">
15149 \begin_layout Plain Layout
15157 <cell alignment="center" valignment="top" usebox="none">
15160 \begin_layout Plain Layout
15168 <cell alignment="center" valignment="top" usebox="none">
15171 \begin_layout Plain Layout
15181 <cell alignment="center" valignment="top" usebox="none">
15184 \begin_layout Plain Layout
15192 <cell alignment="center" valignment="top" usebox="none">
15195 \begin_layout Plain Layout
15203 <cell alignment="center" valignment="top" usebox="none">
15206 \begin_layout Plain Layout
15210 \begin_layout Plain Layout
15239 \begin_layout Standard
15243 \begin_layout Plain Layout
15253 \begin_inset Note Note
15256 \begin_layout Plain Layout
15257 The following will be displayed when the LaTeX-package
15269 \begin_layout Standard
15270 You need to install the package
15274 to see the content of this section in the output.
15277 \begin_layout Standard
15281 \begin_layout Plain Layout
15293 \begin_layout Subsection
15298 \begin_layout Plain Layout
15299 Table Color ! for Lines
15308 \begin_layout Plain Layout
15309 Color ! for Table Lines
15317 \begin_layout Standard
15318 As described in section
15319 \begin_inset space ~
15323 \begin_inset CommandInset ref
15325 reference "sub:Line-Thickness"
15329 , the line thickness for all lines in a table can be adjusted with the length
15338 \begin_inset space \thinspace{}
15341 pt for all tables of this section.
15345 \begin_layout Plain Layout
15351 arrayrulewidth}{1.5pt}
15359 \begin_layout Standard
15360 To color vertical lines for example with green, create the following column
15361 format in the document preamble, according to the description in section
15362 \begin_inset space ~
15366 \begin_inset CommandInset ref
15368 reference "sub:Customized-Format"
15375 \begin_layout Standard
15380 newcolumntype{W}{!{
15387 \begin_layout Standard
15389 \begin_inset space ~
15393 \begin_inset CommandInset ref
15395 reference "tab:Table-with-vertical-colored"
15403 was used for the last column and
15407 for the other columns.
15410 \begin_layout Standard
15411 If you want to have several colors, define more column formats.
15414 \begin_layout Standard
15415 \begin_inset Float table
15421 \begin_layout Plain Layout
15422 \begin_inset Caption
15424 \begin_layout Plain Layout
15425 \begin_inset CommandInset label
15427 name "tab:Table-with-vertical-colored"
15431 Table with colored vertical lines
15439 \begin_layout Plain Layout
15441 \begin_inset Tabular
15442 <lyxtabular version="3" rows="3" columns="3">
15444 <column alignment="center" valignment="top" width="0" special="Wc">
15445 <column alignment="center" valignment="top" width="0" special="Wc">
15446 <column alignment="center" valignment="top" width="0" special="WcW">
15448 <cell alignment="center" valignment="top" topline="true" usebox="none">
15451 \begin_layout Plain Layout
15457 <cell alignment="center" valignment="top" topline="true" usebox="none">
15460 \begin_layout Plain Layout
15466 <cell alignment="center" valignment="top" topline="true" usebox="none">
15469 \begin_layout Plain Layout
15477 <cell alignment="center" valignment="top" topline="true" usebox="none">
15480 \begin_layout Plain Layout
15486 <cell alignment="center" valignment="top" topline="true" usebox="none">
15489 \begin_layout Plain Layout
15495 <cell alignment="center" valignment="top" topline="true" usebox="none">
15498 \begin_layout Plain Layout
15506 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15509 \begin_layout Plain Layout
15515 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15518 \begin_layout Plain Layout
15524 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15527 \begin_layout Plain Layout
15546 \begin_layout Standard
15547 \begin_inset VSpace bigskip
15550 To color horizontal lines for example with red, like in Table
15551 \begin_inset space ~
15555 \begin_inset CommandInset ref
15557 reference "tab:Table-with-horizontal-colored"
15561 , insert these commands in TeX-Code before the table or table float:
15564 \begin_layout Standard
15574 \begin_inset Newline newline
15582 \begin_inset Newline newline
15589 \begin_layout Plain Layout
15600 arrayrulecolor{red}
15604 arrayrulecolor{black}}
15607 \begin_layout Standard
15611 \begin_layout Plain Layout
15622 \begin_layout Plain Layout
15631 \begin_layout Plain Layout
15635 arrayrulecolor{red}
15639 arrayrulecolor{black}}
15645 \begin_inset Float table
15651 \begin_layout Plain Layout
15652 \begin_inset Caption
15654 \begin_layout Plain Layout
15655 \begin_inset CommandInset label
15657 name "tab:Table-with-horizontal-colored"
15661 Table with colored horizontal lines
15669 \begin_layout Plain Layout
15671 \begin_inset Tabular
15672 <lyxtabular version="3" rows="3" columns="3">
15674 <column alignment="center" valignment="top" width="0">
15675 <column alignment="center" valignment="top" width="0">
15676 <column alignment="center" valignment="top" width="0">
15678 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15681 \begin_layout Plain Layout
15687 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15690 \begin_layout Plain Layout
15696 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15699 \begin_layout Plain Layout
15707 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15710 \begin_layout Plain Layout
15716 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15719 \begin_layout Plain Layout
15725 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15728 \begin_layout Plain Layout
15736 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15739 \begin_layout Plain Layout
15745 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15748 \begin_layout Plain Layout
15754 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
15757 \begin_layout Plain Layout
15776 \begin_layout Standard
15777 To return to the default line color black, insert this command in TeX-Code
15778 behind the table or table float:
15781 \begin_layout Standard
15793 \begin_layout Standard
15795 \begin_inset space ~
15799 \begin_inset CommandInset ref
15801 reference "tab:Table-with-colored"
15805 is an example with colored vertical and horizontal lines.
15808 \begin_layout Standard
15809 \begin_inset Float table
15815 \begin_layout Plain Layout
15816 \begin_inset Caption
15818 \begin_layout Plain Layout
15819 \begin_inset CommandInset label
15821 name "tab:Table-with-colored"
15825 Table with colored lines
15833 \begin_layout Plain Layout
15835 \begin_inset Tabular
15836 <lyxtabular version="3" rows="3" columns="3">
15838 <column alignment="center" valignment="top" width="0" special="Wc">
15839 <column alignment="center" valignment="top" width="0" special="Wc">
15840 <column alignment="center" valignment="top" width="0" special="WcW">
15842 <cell alignment="center" valignment="top" topline="true" usebox="none">
15845 \begin_layout Plain Layout
15851 <cell alignment="center" valignment="top" topline="true" usebox="none">
15854 \begin_layout Plain Layout
15860 <cell alignment="center" valignment="top" topline="true" usebox="none">
15863 \begin_layout Plain Layout
15871 <cell alignment="center" valignment="top" topline="true" usebox="none">
15874 \begin_layout Plain Layout
15880 <cell alignment="center" valignment="top" topline="true" usebox="none">
15883 \begin_layout Plain Layout
15889 <cell alignment="center" valignment="top" topline="true" usebox="none">
15892 \begin_layout Plain Layout
15899 <row topspace="default">
15900 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15903 \begin_layout Plain Layout
15909 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15912 \begin_layout Plain Layout
15918 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15921 \begin_layout Plain Layout
15940 \begin_layout Standard
15944 \begin_layout Plain Layout
15960 \begin_layout Standard
15964 \begin_layout Plain Layout
15970 arrayrulewidth}{0.4pt}
15978 \begin_layout Section
15979 Table Customization
15983 \begin_layout Plain Layout
15984 Table Customization
15993 \begin_layout Plain Layout
15994 Table ! Customization
16002 \begin_layout Subsection
16004 \begin_inset CommandInset label
16006 name "sub:Row-Spacing"
16014 \begin_layout Plain Layout
16015 Table Customization ! Row Spacing
16023 \begin_layout Standard
16024 You can add vertical space to table rows in the
16028 tab of the table dialog.
16029 You find there three possibilities:
16032 \begin_layout Description
16034 \begin_inset space ~
16038 \begin_inset space ~
16041 row will add space above the characters of the table row.
16042 If the table is a formal table
16046 \begin_layout Plain Layout
16047 Formal tables are explained in section
16048 \begin_inset space ~
16052 \begin_inset CommandInset ref
16054 reference "sec:Formal-Tables"
16063 LyX will insert as default 0.5
16064 \begin_inset space \thinspace{}
16068 For normal tables the inserted space will unfortunately destroy the vertical
16069 table lines as in the following table:
16070 \begin_inset VSpace medskip
16074 \begin_inset Newline newline
16078 \begin_inset space \hspace*{}
16083 \begin_inset space \hfill{}
16087 \begin_inset Tabular
16088 <lyxtabular version="3" rows="3" columns="1">
16090 <column alignment="center" valignment="top" width="0">
16092 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16095 \begin_layout Plain Layout
16102 <row topspace="3mm">
16103 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16106 \begin_layout Plain Layout
16108 \begin_inset space \thinspace{}
16111 mm space top of row
16118 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16121 \begin_layout Plain Layout
16133 \begin_inset space \hfill{}
16137 \begin_inset space \hspace*{}
16142 \begin_inset VSpace medskip
16146 \begin_inset Newline newline
16149 So inserting space to the top of row for normal tables is only useful when
16150 you don't have vertical lines.
16153 \begin_layout Description
16155 \begin_inset space ~
16159 \begin_inset space ~
16162 row will add space below the characters of the table row.
16163 If the table is a formal table LyX will insert as default 0.5
16164 \begin_inset space \thinspace{}
16167 em space, for normal tables the default size is 2
16168 \begin_inset space \thinspace{}
16174 \begin_layout Description
16176 \begin_inset space ~
16179 rows adds space between the current and the following row.
16180 If the table is a formal table LyX will insert as default 0.5
16181 \begin_inset space \thinspace{}
16185 For normal tables the inserted space will unfortunately destroy the vertical
16186 table lines as in the following table:
16187 \begin_inset VSpace medskip
16191 \begin_inset Newline newline
16195 \begin_inset space \hspace*{}
16200 \begin_inset space \hfill{}
16204 \begin_inset Tabular
16205 <lyxtabular version="3" rows="3" columns="1">
16207 <column alignment="center" valignment="top" width="0">
16209 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16212 \begin_layout Plain Layout
16219 <row interlinespace="3mm">
16220 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16223 \begin_layout Plain Layout
16224 \begin_inset Formula $\downarrow$
16228 \begin_inset space \thinspace{}
16231 mm space between row
16232 \begin_inset Formula $\downarrow$
16242 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16245 \begin_layout Plain Layout
16246 \begin_inset Formula $\uparrow$
16250 \begin_inset space \thinspace{}
16253 mm space between row
16254 \begin_inset Formula $\uparrow$
16268 \begin_inset space \hfill{}
16272 \begin_inset space \hspace*{}
16277 \begin_inset VSpace medskip
16281 \begin_inset Newline newline
16284 So inserting space between rows for normal tables is only useful when you
16285 don't have vertical lines.
16288 \begin_layout Standard
16289 \begin_inset VSpace bigskip
16292 When you want to add extra height to all cells of all tables, you can do
16293 this with the following preamble lines:
16296 \begin_layout Standard
16301 @ifundefined{extrarowheight}
16302 \begin_inset Newline newline
16309 \begin_layout Plain Layout
16320 usepackage{array}}{}
16321 \begin_inset Newline newline
16328 extrarowheight}{height}
16331 \begin_layout Standard
16332 But this has the disadvantage that the cell texts are no longer exactly
16333 vertically centered.
16338 will be loaded automatically by LyX when you use self defined table formats.
16339 To avoid that it is loaded twice the command
16345 is used in the above command.)
16348 \begin_layout Subsection
16349 Special Cell Alignment
16353 \begin_layout Plain Layout
16354 Table Customization ! Special Cell Alignment
16362 \begin_layout Standard
16363 Sometimes it looks better when the cell entries of a column are aligned
16364 with a special character, e.
16365 \begin_inset space \thinspace{}
16369 \begin_inset space ~
16372 with the decimal separator as in Table
16373 \begin_inset space ~
16377 \begin_inset CommandInset ref
16379 reference "tab:Table-cells-of"
16386 \begin_layout Standard
16387 \begin_inset Float table
16393 \begin_layout Plain Layout
16394 \begin_inset Caption
16396 \begin_layout Plain Layout
16397 \begin_inset CommandInset label
16399 name "tab:Table-cells-of"
16403 Table cells of a column aligned with the decimal separator.
16411 \begin_layout Plain Layout
16413 \begin_inset Tabular
16414 <lyxtabular version="3" rows="4" columns="2">
16416 <column alignment="right" valignment="top" width="0">
16417 <column alignment="left" valignment="top" width="0" special="@{}l">
16419 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16422 \begin_layout Plain Layout
16428 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16431 \begin_layout Plain Layout
16439 <cell alignment="center" valignment="top" usebox="none">
16442 \begin_layout Plain Layout
16448 <cell alignment="center" valignment="top" usebox="none">
16451 \begin_layout Plain Layout
16459 <cell alignment="center" valignment="top" usebox="none">
16462 \begin_layout Plain Layout
16468 <cell alignment="center" valignment="top" usebox="none">
16471 \begin_layout Plain Layout
16479 <cell alignment="center" valignment="top" usebox="none">
16482 \begin_layout Plain Layout
16488 <cell alignment="center" valignment="top" usebox="none">
16491 \begin_layout Plain Layout
16510 \begin_layout Standard
16511 This table was created with a 4×2 table.
16512 The heading is a centered multicolumn.
16513 The first column is right-aligned and contains the digits before the decimal
16514 point and the decimal point.
16515 The second column is left aligned and contains the digits after the decimal
16517 To omit the space that is normally between two table columns, use the following
16518 LaTeX-argument for the second column:
16521 \begin_layout Standard
16527 \begin_layout Standard
16529 \begin_inset space ~
16533 \begin_inset CommandInset ref
16535 reference "tab:Several-table-cell"
16539 shows some example alignments.
16540 For the alignment with the relation sign, you must add the second smallest
16541 math-space at the beginning of the last column to get the correct space
16542 surrounding the relation sign.
16545 \begin_layout Standard
16546 \begin_inset Float table
16551 \begin_layout Plain Layout
16552 \begin_inset Caption
16554 \begin_layout Plain Layout
16555 \begin_inset CommandInset label
16557 name "tab:Several-table-cell"
16561 Several table cell alignments.
16569 \begin_layout Plain Layout
16571 \begin_inset Tabular
16572 <lyxtabular version="3" rows="4" columns="6">
16574 <column alignment="right" valignment="top" width="0">
16575 <column alignment="left" valignment="top" width="0" special="@{}l">
16576 <column alignment="right" valignment="top" width="0">
16577 <column alignment="left" valignment="top" width="0" special="@{}l">
16578 <column alignment="right" valignment="top" width="0">
16579 <column alignment="left" valignment="top" width="0" special="@{}l">
16581 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16584 \begin_layout Plain Layout
16590 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16593 \begin_layout Plain Layout
16599 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16602 \begin_layout Plain Layout
16608 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16611 \begin_layout Plain Layout
16617 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16620 \begin_layout Plain Layout
16626 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16629 \begin_layout Plain Layout
16637 <cell alignment="center" valignment="top" usebox="none">
16640 \begin_layout Plain Layout
16646 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16649 \begin_layout Plain Layout
16651 \begin_inset space \thinspace{}
16659 <cell alignment="center" valignment="top" usebox="none">
16662 \begin_layout Plain Layout
16663 \begin_inset Formula $10\cdot$
16671 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16674 \begin_layout Plain Layout
16675 \begin_inset Formula $10^{\mbox{-}17}$
16683 <cell alignment="center" valignment="top" usebox="none">
16686 \begin_layout Plain Layout
16687 \begin_inset Formula $\Gamma(t)\propto$
16695 <cell alignment="center" valignment="top" usebox="none">
16698 \begin_layout Plain Layout
16699 \begin_inset Formula $\:\Upsilon(t)$
16709 <cell alignment="center" valignment="top" usebox="none">
16712 \begin_layout Plain Layout
16718 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16721 \begin_layout Plain Layout
16723 \begin_inset space \thinspace{}
16731 <cell alignment="center" valignment="top" usebox="none">
16734 \begin_layout Plain Layout
16735 \begin_inset Formula $5.78\cdot$
16743 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16746 \begin_layout Plain Layout
16747 \begin_inset Formula $10^{7}$
16755 <cell alignment="center" valignment="top" usebox="none">
16758 \begin_layout Plain Layout
16759 \begin_inset Formula $A\ne$
16767 <cell alignment="center" valignment="top" usebox="none">
16770 \begin_layout Plain Layout
16771 \begin_inset Formula $\: B_{\mathrm{red}}$
16781 <cell alignment="center" valignment="top" usebox="none">
16784 \begin_layout Plain Layout
16790 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16793 \begin_layout Plain Layout
16795 \begin_inset space \thinspace{}
16803 <cell alignment="center" valignment="top" usebox="none">
16806 \begin_layout Plain Layout
16808 \begin_inset Formula $33.5\cdot$
16816 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16819 \begin_layout Plain Layout
16820 \begin_inset Formula $10^{4}$
16828 <cell alignment="center" valignment="top" usebox="none">
16831 \begin_layout Plain Layout
16832 \begin_inset Formula $\sin(\alpha)\ge$
16840 <cell alignment="center" valignment="top" usebox="none">
16843 \begin_layout Plain Layout
16844 \begin_inset Formula $\:\sin(\beta)$
16865 \begin_layout Standard
16866 \begin_inset VSpace bigskip
16869 There is also the LaTeX-package
16877 \begin_layout Plain Layout
16878 LaTeX-packages ! dcolumn
16883 that provides table cell alignments.
16884 But this unfortunately treats the cell entries as math and doesn't allow
16885 formulas in table cells: The first column of Table
16886 \begin_inset space ~
16890 \begin_inset CommandInset ref
16892 reference "tab:Several-table-cell"
16900 like the first column in Table
16901 \begin_inset space ~
16905 \begin_inset CommandInset ref
16907 reference "tab:Alignments-when"
16911 and only with some tricks like the expected.
16912 The alignment of the second and third column of Table
16913 \begin_inset space ~
16917 \begin_inset CommandInset ref
16919 reference "tab:Several-table-cell"
16923 is not possible with
16930 \begin_layout Standard
16931 \begin_inset Float table
16937 \begin_layout Plain Layout
16938 \begin_inset Caption
16940 \begin_layout Plain Layout
16941 \begin_inset CommandInset label
16943 name "tab:Alignments-when"
16947 Alignments when LaTeX-package dcolumn is used.
16948 For all column alignments tricks have to be used to get the output.
16956 \begin_layout Plain Layout
16958 \begin_inset Tabular
16959 <lyxtabular version="3" rows="4" columns="3">
16961 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{-1}">
16962 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{4.9}">
16963 <column alignment="center" valignment="top" width="0" special="D{~}{\,}{9.7}">
16965 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16968 \begin_layout Plain Layout
16974 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16977 \begin_layout Plain Layout
16983 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16986 \begin_layout Plain Layout
16994 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16997 \begin_layout Plain Layout
16999 \begin_inset space \thinspace{}
17007 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17010 \begin_layout Plain Layout
17012 \begin_inset space \thinspace{}
17016 \begin_inset Formula $\mbox{bottles}$
17024 <cell alignment="center" valignment="top" usebox="none">
17027 \begin_layout Plain Layout
17032 \begin_layout Plain Layout
17042 \begin_inset Formula $\mbox{bottles}$
17052 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17055 \begin_layout Plain Layout
17057 \begin_inset space \thinspace{}
17065 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17068 \begin_layout Plain Layout
17070 \begin_inset space \thinspace{}
17074 \begin_inset Formula $\mbox{Pixels}$
17082 <cell alignment="center" valignment="top" usebox="none">
17085 \begin_layout Plain Layout
17090 \begin_layout Plain Layout
17100 \begin_inset Formula $\mbox{Pixels}$
17110 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17113 \begin_layout Plain Layout
17115 \begin_inset space \thinspace{}
17123 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17126 \begin_layout Plain Layout
17128 \begin_inset space \thinspace{}
17132 \begin_inset Formula $\mbox{cm}$
17140 <cell alignment="center" valignment="top" usebox="none">
17143 \begin_layout Plain Layout
17148 \begin_layout Plain Layout
17158 \begin_inset Formula $\mbox{cm}$
17179 \begin_layout Subsection
17180 Customized Cell/Column Format
17181 \begin_inset CommandInset label
17183 name "sub:Customized-Format"
17191 \begin_layout Plain Layout
17192 Table Customization ! Cell/Column Format
17200 \begin_layout Standard
17201 Calculating the needed width for spanned columns like in section
17202 \begin_inset space ~
17206 \begin_inset CommandInset ref
17208 reference "sub:Multicolumn-Calculations"
17212 is very annoying if you have several tables with multicolumn cells.
17213 To make life easier, you can define a cell/column format in the preamble,
17214 so that it can be used in all tables of the document.
17215 The format is defined with the command
17218 \begin_layout Standard
17223 newcolumntype{name of format}[number of arguments]{commands}
17226 \begin_layout Standard
17227 The format name may only consist of one letter.
17252 are predefined and cannot be used.
17253 But all letters are allowed as capitals.
17256 \begin_layout Standard
17257 \begin_inset VSpace medskip
17263 \begin_layout Standard
17264 For vertically and horizontally centered multicolumn cells with a fixed
17265 width you can define the cell format
17268 \begin_layout Standard
17273 newcolumntype{M}[1]{>{
17280 \begin_layout Standard
17287 avoids the problem of hyphenating the first word, as described in section
17288 \begin_inset space ~
17292 \begin_inset CommandInset ref
17294 reference "sub:Multiple-Lines-in"
17299 Now you can simply enter
17302 \begin_layout Standard
17308 \begin_layout Standard
17309 as LaTeX-argument in the table dialog to create a multicolumn.
17312 \begin_layout Standard
17313 \begin_inset VSpace bigskip
17319 \begin_layout Standard
17320 For cells spanned by a multicolumn cell, you can define the format
17323 \begin_layout Standard
17328 newcolumntype{S}[2]{>{
17333 \begin_inset Newline newline
17340 \begin_layout Plain Layout
17355 \begin_layout Plain Layout
17366 arrayrulewidth)*(1-#2))/#2}}
17369 \begin_layout Standard
17370 This format uses equation
17371 \begin_inset CommandInset ref
17377 to calculate the needed width so that each spanned cell has the same width.
17380 \begin_layout Standard
17384 \begin_layout Standard
17387 S{width of multicolumn cell}{number of spanned columns}
17390 \begin_layout Standard
17391 as LaTeX-argument of the column.
17394 \begin_layout Standard
17395 \begin_inset VSpace bigskip
17401 \begin_layout Standard
17402 For colored columns, you can define
17405 \begin_layout Standard
17410 newcolumntype{K}[1]{>{
17417 \begin_layout Standard
17419 \begin_inset Quotes eld
17423 \begin_inset Quotes erd
17426 at the end creates a column with a flexible width whose text is horizontally
17431 \begin_layout Standard
17437 \begin_layout Standard
17441 \begin_layout Standard
17442 \begin_inset VSpace bigskip
17448 \begin_layout Standard
17450 \begin_inset space ~
17454 \begin_inset CommandInset ref
17456 reference "tab:Table-using-user-defined"
17460 use the LaTeX-arguments
17463 \begin_layout Standard
17469 \begin_layout Standard
17470 for the first column and the multicolumn,
17473 \begin_layout Standard
17479 \begin_layout Standard
17480 for the the last column, and
17483 \begin_layout Standard
17489 \begin_layout Standard
17490 for the cells in the second column.
17493 \begin_layout Standard
17494 \begin_inset Float table
17500 \begin_layout Plain Layout
17501 \begin_inset Caption
17503 \begin_layout Plain Layout
17504 \begin_inset CommandInset label
17506 name "tab:Table-using-user-defined"
17510 Table using user-defined table formats
17518 \begin_layout Plain Layout
17520 \begin_inset Tabular
17521 <lyxtabular version="3" rows="3" columns="4">
17523 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
17524 <column alignment="center" valignment="middle" width="0" special="S{2.5cm}{2}">
17525 <column alignment="center" valignment="middle" width="0">
17526 <column alignment="center" valignment="middle" width="0" special="K{red}">
17528 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17531 \begin_layout Plain Layout
17532 verylongtablecellword
17537 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
17540 \begin_layout Plain Layout
17541 multiple lines multicolumn
17546 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17549 \begin_layout Plain Layout
17555 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17558 \begin_layout Plain Layout
17566 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17569 \begin_layout Plain Layout
17575 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17578 \begin_layout Plain Layout
17584 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17587 \begin_layout Plain Layout
17593 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17596 \begin_layout Plain Layout
17604 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17607 \begin_layout Plain Layout
17613 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17616 \begin_layout Plain Layout
17622 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17625 \begin_layout Plain Layout
17631 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17634 \begin_layout Plain Layout
17653 \begin_layout Subsection
17655 \begin_inset CommandInset label
17657 name "sub:Line-Thickness"
17665 \begin_layout Plain Layout
17666 Table Customization ! Line Thickness
17674 \begin_layout Standard
17675 The line thickness for all lines in a table can be adjusted with the length
17683 To set for example a line thickness of 1.5
17684 \begin_inset space \thinspace{}
17688 \begin_inset space ~
17692 \begin_inset CommandInset ref
17694 reference "tab:Table-with-1.5"
17698 , insert the command
17701 \begin_layout Standard
17708 arrayrulewidth}{1.5pt}
17711 \begin_layout Standard
17712 in TeX-Code before the table or table float.
17713 The changed thickness is valid for all following tables.
17714 To use the default value again, set
17721 \begin_inset space \thinspace{}
17724 pt in TeX-Code behind the table or table float.
17727 \begin_layout Standard
17731 \begin_layout Plain Layout
17737 arrayrulewidth}{1.5pt}
17743 \begin_inset Float table
17748 \begin_layout Plain Layout
17749 \begin_inset Caption
17751 \begin_layout Plain Layout
17752 \begin_inset CommandInset label
17754 name "tab:Table-with-1.5"
17759 \begin_inset space \thinspace{}
17770 \begin_layout Plain Layout
17772 \begin_inset Tabular
17773 <lyxtabular version="3" rows="3" columns="3">
17775 <column alignment="center" valignment="top" width="0">
17776 <column alignment="center" valignment="top" width="0">
17777 <column alignment="center" valignment="top" width="0">
17779 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17782 \begin_layout Plain Layout
17788 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17791 \begin_layout Plain Layout
17797 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17800 \begin_layout Plain Layout
17808 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17811 \begin_layout Plain Layout
17817 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17820 \begin_layout Plain Layout
17826 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17829 \begin_layout Plain Layout
17837 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17840 \begin_layout Plain Layout
17846 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17849 \begin_layout Plain Layout
17855 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17858 \begin_layout Plain Layout
17878 \begin_layout Plain Layout
17884 arrayrulewidth}{0.4pt}
17892 \begin_layout Standard
17893 \begin_inset VSpace bigskip
17896 To set the line thickness to 1.5
17897 \begin_inset space \thinspace{}
17900 pt only for horizontal lines, like in Table
17901 \begin_inset space ~
17905 \begin_inset CommandInset ref
17907 reference "tab:Table-with-horizontal"
17911 , insert these commands in TeX-Code before the table or table float:
17914 \begin_layout Standard
17924 \begin_inset Newline newline
17932 \begin_inset Newline newline
17941 arrayrulewidth 1.5pt}
17942 \begin_inset Newline newline
17953 arrayrulewidth 0.4pt}}
17956 \begin_layout Standard
17957 To return to the default line thickness, insert this command in TeX-Code
17958 behind the table or table float:
17961 \begin_layout Standard
17973 \begin_layout Standard
17977 \begin_layout Plain Layout
17988 \begin_layout Plain Layout
17997 \begin_layout Plain Layout
18005 arrayrulewidth 1.5pt}
18008 \begin_layout Plain Layout
18018 arrayrulewidth 0.4pt}}
18024 \begin_inset Float table
18029 \begin_layout Plain Layout
18030 \begin_inset Caption
18032 \begin_layout Plain Layout
18033 \begin_inset CommandInset label
18035 name "tab:Table-with-horizontal"
18040 \begin_inset space \thinspace{}
18043 pt thick horizontal lines
18051 \begin_layout Plain Layout
18053 \begin_inset Tabular
18054 <lyxtabular version="3" rows="3" columns="3">
18056 <column alignment="center" valignment="top" width="0">
18057 <column alignment="center" valignment="top" width="0">
18058 <column alignment="center" valignment="top" width="0">
18060 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18063 \begin_layout Plain Layout
18069 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18072 \begin_layout Plain Layout
18078 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18081 \begin_layout Plain Layout
18089 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18092 \begin_layout Plain Layout
18098 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18101 \begin_layout Plain Layout
18107 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18110 \begin_layout Plain Layout
18118 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18121 \begin_layout Plain Layout
18127 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18130 \begin_layout Plain Layout
18136 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18139 \begin_layout Plain Layout
18159 \begin_layout Plain Layout
18175 \begin_layout Standard
18176 \begin_inset VSpace bigskip
18179 To set the line thickness to 1.5
18180 \begin_inset space \thinspace{}
18183 pt only for vertical lines, create the following column format in the document
18184 preamble, according to the description in section
18185 \begin_inset space ~
18189 \begin_inset CommandInset ref
18191 reference "sub:Customized-Format"
18198 \begin_layout Standard
18203 newcolumntype{V}{!{
18205 vrule width 1.5pt}}
18208 \begin_layout Standard
18210 \begin_inset space ~
18214 \begin_inset CommandInset ref
18216 reference "tab:Table-with-vertical"
18223 \begin_layout Standard
18229 \begin_layout Standard
18230 was used for the last column and
18233 \begin_layout Standard
18239 \begin_layout Standard
18240 for the other columns.
18243 \begin_layout Standard
18244 \begin_inset Float table
18249 \begin_layout Plain Layout
18250 \begin_inset Caption
18252 \begin_layout Plain Layout
18253 \begin_inset CommandInset label
18255 name "tab:Table-with-vertical"
18260 \begin_inset space \thinspace{}
18263 pt thick vertical lines
18271 \begin_layout Plain Layout
18273 \begin_inset Tabular
18274 <lyxtabular version="3" rows="3" columns="3">
18276 <column alignment="center" valignment="top" width="0" special="Vc">
18277 <column alignment="center" valignment="top" width="0" special="Vc">
18278 <column alignment="center" valignment="top" width="0" special="VcV">
18280 <cell alignment="center" valignment="top" topline="true" usebox="none">
18283 \begin_layout Plain Layout
18289 <cell alignment="center" valignment="top" topline="true" usebox="none">
18292 \begin_layout Plain Layout
18298 <cell alignment="center" valignment="top" topline="true" usebox="none">
18301 \begin_layout Plain Layout
18309 <cell alignment="center" valignment="top" topline="true" usebox="none">
18312 \begin_layout Plain Layout
18318 <cell alignment="center" valignment="top" topline="true" usebox="none">
18321 \begin_layout Plain Layout
18327 <cell alignment="center" valignment="top" topline="true" usebox="none">
18330 \begin_layout Plain Layout
18338 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18341 \begin_layout Plain Layout
18347 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18350 \begin_layout Plain Layout
18356 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18359 \begin_layout Plain Layout
18378 \begin_layout Subsection
18383 \begin_layout Plain Layout
18384 Table Customization ! Dashed Lines
18392 \begin_layout Standard
18396 \begin_layout Plain Layout
18406 \begin_inset Note Note
18409 \begin_layout Plain Layout
18410 The following section will only be displayed when the LaTeX-package
18422 \begin_layout Standard
18423 \begin_inset Float table
18429 \begin_layout Plain Layout
18430 \begin_inset Caption
18432 \begin_layout Plain Layout
18433 \begin_inset CommandInset label
18435 name "tab:Table-with-dashed"
18439 Table with dashed lines
18447 \begin_layout Plain Layout
18449 \begin_inset Tabular
18450 <lyxtabular version="3" rows="5" columns="5">
18452 <column alignment="center" valignment="top" width="0">
18453 <column alignment="center" valignment="top" width="0">
18454 <column alignment="center" valignment="top" width="0" special=":c">
18455 <column alignment="center" valignment="top" width="0">
18456 <column alignment="center" valignment="top" width="0">
18458 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18461 \begin_layout Plain Layout
18467 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18470 \begin_layout Plain Layout
18476 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18479 \begin_layout Plain Layout
18485 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18488 \begin_layout Plain Layout
18494 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18497 \begin_layout Plain Layout
18505 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18508 \begin_layout Plain Layout
18514 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18517 \begin_layout Plain Layout
18523 <cell alignment="center" valignment="top" topline="true" usebox="none">
18526 \begin_layout Plain Layout
18532 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18535 \begin_layout Plain Layout
18541 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18544 \begin_layout Plain Layout
18552 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18555 \begin_layout Plain Layout
18559 \begin_layout Plain Layout
18573 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18576 \begin_layout Plain Layout
18582 <cell alignment="center" valignment="top" usebox="none">
18585 \begin_layout Plain Layout
18591 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18594 \begin_layout Plain Layout
18600 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
18603 \begin_layout Plain Layout
18611 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18614 \begin_layout Plain Layout
18618 \begin_layout Plain Layout
18632 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18635 \begin_layout Plain Layout
18641 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
18644 \begin_layout Plain Layout
18650 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none" special="c:">
18653 \begin_layout Plain Layout
18659 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18662 \begin_layout Plain Layout
18670 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18673 \begin_layout Plain Layout
18679 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18682 \begin_layout Plain Layout
18688 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18691 \begin_layout Plain Layout
18697 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18700 \begin_layout Plain Layout
18706 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18709 \begin_layout Plain Layout
18728 \begin_layout Standard
18729 LyX doesn't natively support dashed lines, so you have to use TeX-Code.
18730 As prerequisite the LaTeX-package
18738 \begin_layout Plain Layout
18739 LaTeX-packages ! arydshln
18744 must be loaded in the document preamble with the command
18747 \begin_layout Standard
18752 usepackage{arydshln}
18755 \begin_layout Standard
18756 To make a vertical line dashed, enter the colon
18757 \begin_inset Quotes eld
18761 \begin_inset Quotes erd
18764 together with the character for the horizontal alignment as LaTeX-argument
18765 in the table cell dialog.
18768 \begin_layout Standard
18769 For a horizontal dashed line add the command
18772 \begin_layout Standard
18780 \begin_layout Standard
18781 in TeX-Code as first element of the first cell in the table row.
18784 \begin_layout Standard
18785 For dashed multicolumn lines use the command
18788 \begin_layout Standard
18793 cdashline{line number
18798 \begin_layout Standard
18799 in TeX-Code as first element of the first cell in the table row.
18800 If you have for example a multicolumn spanning over columns 2 to 4 and
18801 you want to have a dashed line above, add the command
18804 \begin_layout Standard
18812 \begin_layout Standard
18813 as first element of the first cell in the row of the multicolumn.
18816 \begin_layout Standard
18817 \begin_inset VSpace bigskip
18823 \begin_layout Standard
18825 \begin_inset space ~
18829 \begin_inset CommandInset ref
18831 reference "tab:Table-with-dashed"
18836 \begin_inset Quotes eld
18844 \begin_inset Quotes erd
18847 as LaTeX-argument of the third column.
18848 The TeX-Code command
18854 was inserted to the first cell of the third row and the the TeX-Code command
18855 \begin_inset Newline newline
18864 was inserted to the first cell of the fourth row.
18867 \begin_layout Standard
18868 \begin_inset Note Greyedout
18871 \begin_layout Plain Layout
18876 The used LaTeX-package
18880 is apparently not compatible with the LaTeX-package
18888 \begin_layout Plain Layout
18889 LaTeX-packages ! colortbl
18894 that is used for colored tables in section
18895 \begin_inset space ~
18899 \begin_inset CommandInset ref
18901 reference "sec:Colored-Tables"
18906 That means colored tables cannot have dashed lines.
18914 \begin_layout Standard
18918 \begin_layout Plain Layout
18928 \begin_inset Note Note
18931 \begin_layout Plain Layout
18932 The following will be displayed when the LaTeX-package
18944 \begin_layout Standard
18945 You need to install the package
18949 to see the content of this section in the output.
18952 \begin_layout Standard
18956 \begin_layout Plain Layout
18968 \begin_layout Chapter
18973 \begin_layout Plain Layout
18982 \begin_layout Section
18984 \begin_inset CommandInset label
18986 name "sec:FloatIntroduction"
18994 \begin_layout Plain Layout
18995 Floats ! Introduction
19003 \begin_layout Standard
19004 A float is a block of text associated with some sort of label, which doesn't
19005 have a fixed location.
19007 \begin_inset Quotes eld
19011 \begin_inset Quotes erd
19014 forward or backward a page or two, to wherever it fits best.
19022 \begin_inset space ~
19027 are also floats, because they can float to the next page when there are
19028 too many notes at the page.
19031 \begin_layout Standard
19032 Floats allow a high quality layout.
19033 Images and tables can evenly be spread to the pages to avoid white space
19034 and pages without text.
19035 As the floating often destroys the context between the text and the image/table
19036 , every float can be referenced in the text.
19037 Floats are therefore numbered.
19038 Referencing is described in section
19039 \begin_inset space ~
19043 \begin_inset CommandInset ref
19045 reference "sec:Referencing-Floats"
19052 \begin_layout Standard
19053 To insert a float, use the menu
19055 Insert\SpecialChar \menuseparator
19063 inset, a box with a label.
19064 The label will automatically be translated to the document language in
19066 Behind the label you can insert the caption text.
19067 The image or table is inserted above or below the caption in a separate
19068 paragraph within the float.
19069 More about the caption placement is described in section
19070 \begin_inset space ~
19074 \begin_inset CommandInset ref
19076 reference "sec:Caption-Placement"
19081 To keep your LyX-document readable, you can open and close the float box
19082 by left-clicking on the box label.
19083 A closed float box looks like this:
19084 \begin_inset Graphics
19085 filename clipart/floatQt4.png
19087 scaleBeforeRotation
19091 -- a gray button with a red label.
19094 \begin_layout Standard
19095 It is recommended to insert floats as a separate paragraph to avoid possible
19096 LaTeX-errors that can occur when the surrounding text is specially formatted.
19099 \begin_layout Standard
19100 Existing figures or tables can be put into a float by marking them and then
19101 pressing the corresponding toolbar button for a new float.
19104 \begin_layout Section
19108 \begin_layout Standard
19109 Besides figure and table floats that are described in section
19110 \begin_inset space ~
19114 \begin_inset CommandInset ref
19116 reference "sec:Figure-Floats"
19121 \begin_inset CommandInset ref
19123 reference "sec:Table-Floats"
19127 , respectively, LyX offers the float types
19138 \begin_layout Subsection
19143 \begin_layout Plain Layout
19144 Floats ! Algorithms
19152 \begin_layout Standard
19153 \begin_inset Float algorithm
19159 \begin_layout Plain Layout
19160 \begin_inset Caption
19162 \begin_layout Plain Layout
19163 \begin_inset CommandInset label
19165 name "alg:Example-Algorithm-float"
19169 Example Algorithm float
19177 \begin_layout LyX-Code
19179 \begin_inset Newline newline
19182 Sum:= Sum + A(I); /*comment*/
19183 \begin_inset Newline newline
19187 \begin_inset VSpace -4mm
19198 \begin_layout Standard
19199 This float type is inserted with the menu
19201 Insert\SpecialChar \menuseparator
19202 Floats\SpecialChar \menuseparator
19206 It is used for program codes and descriptions of algorithms.
19207 A possible environment for algorithms is the
19211 , described in LyX's
19217 \begin_inset space ~
19221 \begin_inset CommandInset ref
19223 reference "alg:Example-Algorithm-float"
19227 is an example of an algorithm float where -4
19228 \begin_inset space \thinspace{}
19231 mm vertical space was added at the end of the float to have the bottom rule
19232 exactly below the last text line.
19235 \begin_layout Standard
19236 The float label is not automatically translated into the document language.
19237 If your document is not in English, you have to do this manually by adding
19238 the following line to the document preamble
19243 \begin_layout Standard
19248 floatname{algorithm}{your
19249 \begin_inset space ~
19255 \begin_layout Standard
19259 \begin_inset space ~
19265 \begin_inset Quotes eld
19273 \begin_inset Quotes erd
19279 \begin_layout Standard
19280 To insert the list of algorithms you can not use the menu
19282 Insert\SpecialChar \menuseparator
19284 \begin_inset space \thinspace{}
19288 \begin_inset space \thinspace{}
19291 TOC\SpecialChar \menuseparator
19294 when your document is a non-English one.
19295 In this case use this command in TeX-Code instead:
19298 \begin_layout Standard
19303 listof{algorithm}{your
19304 \begin_inset space ~
19310 \begin_layout Standard
19314 \begin_inset space ~
19320 \begin_inset Quotes eld
19328 \begin_inset Quotes erd
19334 \begin_layout Standard
19335 Algorithm floats are not by default numbered in the scheme
19336 \begin_inset Quotes eld
19340 \begin_inset Quotes erd
19343 like it is the case for table and figure floats in many document-classes.
19344 To number algorithm floats in the same scheme, add this command to your
19348 \begin_layout Standard
19353 numberwithin{algorithm}{chapter}
19356 \begin_layout Standard
19357 To be able to use the command
19366 \begin_inset space ~
19371 in the document settings the option
19374 \begin_inset space ~
19378 \begin_inset space ~
19382 \begin_inset space ~
19390 \begin_layout Subsection
19395 \begin_layout Plain Layout
19396 Floats ! Wrap Floats
19404 \begin_layout Standard
19405 \begin_inset Wrap figure
19412 \begin_layout Plain Layout
19413 \begin_inset Graphics
19414 filename clipart/mobius.eps
19416 scaleBeforeRotation
19417 rotateOrigin center
19424 \begin_layout Plain Layout
19425 \begin_inset Caption
19427 \begin_layout Plain Layout
19428 \begin_inset CommandInset label
19430 name "fig:This-is-a"
19434 This is a figure wrap float.
19444 This float type is used if you want to wrap text around a figure or table
19445 so that it only occupies some fraction of the column width.
19446 It can be inserted using the menu
19448 Insert\SpecialChar \menuseparator
19449 Floats\SpecialChar \menuseparator
19451 \begin_inset space ~
19455 \begin_inset space ~
19463 \begin_inset space ~
19467 \begin_inset space ~
19472 if the LaTeX-package
19480 \begin_layout Plain Layout
19481 LaTeX-packages ! wrapfig
19485 \begin_layout Plain Layout
19503 \begin_layout Plain Layout
19504 Installing a LaTeX-package is explained it in the
19507 \begin_inset space ~
19517 The settings of the float can be modified by right-clicking on the float
19519 The mandatory settings are the float
19532 that specifies how much the float is set into the paragraph
19533 \begin_inset space \thinspace{}
19537 \begin_inset space \thinspace{}
19540 page margin, and the
19543 \begin_inset space ~
19548 that specifies how many text lines the float will approximately need.
19549 The line span is often hard to be approximated, so better only use it when
19550 you encounter float placement problems.
19551 You can furthermore decide if LaTeX is allowed to let the float float within
19552 the paragraph or to surrounding paragraphs.
19554 \begin_inset space ~
19558 \begin_inset CommandInset ref
19560 reference "fig:This-is-a"
19564 is an example text wrap float with a width of 40
19565 \begin_inset space \thinspace{}
19569 \begin_inset space \thinspace{}
19572 cm overhang, set to the left.
19576 \begin_layout Plain Layout
19577 Available units are explained in appendix
19578 \begin_inset space ~
19582 \begin_inset CommandInset ref
19584 reference "cha:Units-available-in"
19596 \begin_layout Standard
19597 \begin_inset Note Greyedout
19600 \begin_layout Plain Layout
19606 \begin_inset space ~
19609 wrap float floats are fragile! E.
19610 \begin_inset space \thinspace{}
19614 \begin_inset space ~
19617 having a figure too close to the bottom of the page can mess things up in
19618 the way that the float doesn't appear in the output or that it is placed
19619 over some other text.
19627 \begin_layout Standard
19631 \begin_layout Itemize
19632 Wrap floats should not be placed in paragraphs that run over a page break.
19633 That means that wrap floats should better be inserted to the exact place
19634 when the document is nearly finished and you are able to estimate where
19635 page breaks will appear.
19638 \begin_layout Itemize
19639 Wrap floats should either be placed in an own paragraph before the paragraph
19640 where they should wrap into or within a paragraph.
19643 \begin_layout Itemize
19644 Wrap floats in consecutive paragraphs may cause troubles, so assure that
19645 there is a text paragraph between them as separator.
19648 \begin_layout Itemize
19649 Wrap floats are not allowed in section headings or tables.
19652 \begin_layout Section
19657 \begin_layout Plain Layout
19666 \begin_layout Standard
19667 Floats are usually numbered either independent from the sections the floats
19668 are in, or in the scheme
19669 \begin_inset Quotes eld
19673 \begin_inset Quotes erd
19677 \begin_inset Quotes eld
19681 \begin_inset Quotes erd
19685 This depends on the used document class.
19688 \begin_layout Standard
19689 To change the section independent numbering, you can use this command in
19690 the document preamble:
19693 \begin_layout Standard
19705 \begin_layout Standard
19712 is the command that prints the table number, for figure floats, the command
19726 prints in the command above the table number as small roman number.
19729 \begin_layout Standard
19730 To change the numbering scheme for example to
19731 \begin_inset Quotes eld
19735 \begin_inset Quotes erd
19738 , use this command in the preamble:
19741 \begin_layout Standard
19746 numberwithin{table}{subsection}
19749 \begin_layout Standard
19750 To be able to use the command
19759 \begin_inset space ~
19764 in the document settings the option
19767 \begin_inset space ~
19771 \begin_inset space ~
19775 \begin_inset space ~
19783 \begin_layout Standard
19784 Please also have a look at section
19785 \begin_inset space ~
19789 \begin_inset CommandInset ref
19791 reference "sub:Footnote-Numbering"
19795 for the details and important notes about the numbering commands.
19798 \begin_layout Section
19800 \begin_inset CommandInset label
19802 name "sec:Referencing-Floats"
19810 \begin_layout Plain Layout
19811 Floats ! References
19820 \begin_layout Plain Layout
19821 References ! to Floats
19829 \begin_layout Standard
19830 To reference a float, insert a label into its caption using the menu
19832 Insert\SpecialChar \menuseparator
19835 or the toolbar button
19836 \begin_inset Graphics
19837 filename ../images/label-insert.png
19839 scaleBeforeRotation
19844 A grey label box like this one:
19845 \begin_inset Graphics
19846 filename clipart/labelQt4.png
19848 scaleBeforeRotation
19852 will be inserted and the label window pops up asking for the label text.
19853 LyX offers as text the first words of the caption with a prefix.
19854 The prefix depends on the float type, e.
19855 \begin_inset space \thinspace{}
19859 \begin_inset space ~
19862 for figure floats the prefix will be "
19869 \begin_layout Standard
19870 The label is used as anchor and name for the reference.
19871 You can refer to the label using the menu
19873 Insert\SpecialChar \menuseparator
19876 or the toolbar button
19877 \begin_inset Graphics
19878 filename ../images/dialog-show-new-inset_ref.png
19880 scaleBeforeRotation
19885 A grey cross-reference box like this one:
19886 \begin_inset Graphics
19887 filename clipart/referenceQt4.png
19889 scaleBeforeRotation
19893 will be inserted and the cross-reference window appear showing all labels
19895 If you have multiple LyX-documents opened, choose the one you are working
19896 on from the drop-list at the top of the dialog.
19897 You can now sort the labels alphabetically and then choose one.
19898 At the position of the cross-reference box the float number will appear
19902 \begin_layout Standard
19903 It is recommended to use a protected space between the cross-reference name
19904 and its number to avoid line breaks between them.
19905 If a cross-reference refers to a non-existing label, you will see two question
19906 marks in the output instead of the reference.
19909 \begin_layout Standard
19910 You can change labels at any time by clicking on the label box.
19911 References to the changed label will automatically change its link to the
19912 new label text, so that you don't need to take care about this.
19915 \begin_layout Standard
19919 \begin_inset space ~
19923 \begin_inset space ~
19928 in the cross-reference window sets the cursor before the referred label.
19929 The button text changes then to Go
19930 \begin_inset space ~
19933 Back and you can use it to set the cursor back to the cross-reference.
19934 Right-clicking on a cross-reference box also sets the cursor before the
19935 referenced label but without a possibility to go back.
19938 \begin_layout Subsection
19939 Cross-Reference Formats
19940 \begin_inset CommandInset label
19942 name "sub:Cross-Reference-Formats"
19950 \begin_layout Plain Layout
19951 References ! Formats
19959 \begin_layout Standard
19960 There are six varieties of cross-references:
19963 \begin_layout Description
19964 <reference>: prints the float number, this is the default:
19965 \begin_inset CommandInset ref
19967 reference "fig:Two-distorted-images"
19974 \begin_layout Description
19975 (<reference>): prints the float number within two parentheses, this is the
19976 style normally used to reference formulas, especially when the reference
19978 \begin_inset Quotes eld
19982 \begin_inset Quotes erd
19986 \begin_inset CommandInset ref
19995 \begin_layout Description
19996 <page>: prints the page number: Page
19997 \begin_inset space ~
20001 \begin_inset CommandInset ref
20002 LatexCommand pageref
20003 reference "fig:Two-distorted-images"
20010 \begin_layout Description
20012 \begin_inset space ~
20016 \begin_inset space ~
20019 <page>: prints the text "on page" and the page number:
20020 \begin_inset CommandInset ref
20021 LatexCommand vpageref
20022 reference "fig:Two-distorted-images"
20029 \begin_layout Description
20031 \begin_inset space ~
20035 \begin_inset space ~
20039 \begin_inset space ~
20042 <page>: prints the float number, the text "on page", and the page number:
20044 \begin_inset CommandInset ref
20046 reference "fig:Two-distorted-images"
20053 \begin_layout Description
20055 \begin_inset space ~
20058 reference: prints a self defined cross-reference format.
20060 \begin_inset Note Greyedout
20063 \begin_layout Plain Layout
20068 This feature is only available when you have the LaTeX-package
20080 \begin_layout Standard
20081 Note that the style <page> won't print the page number if the label is on
20082 the previous, the same, or the next page.
20084 \begin_inset space \thinspace{}
20088 \begin_inset space ~
20092 \begin_inset Quotes eld
20100 \begin_inset Quotes erd
20106 \begin_layout Standard
20107 The number and current page of the referred document part in the output,
20108 is automatically calculated by LaTeX.
20109 The varieties are adjusted in the field
20113 of the cross-reference window, that appear when you click on the cross-referenc
20117 \begin_layout Subsection
20118 Automatic Reference Naming
20122 \begin_layout Plain Layout
20123 References ! Automatic Reference Naming
20131 \begin_layout Standard
20140 \begin_layout Plain Layout
20141 LaTeX-packages ! hyperref
20146 , that is enabled in the
20154 dialog, provides a very useful feature that cross-references automatically
20155 include the name of the referenced floats (or text parts like
20160 So you will save to write e.
20161 \begin_inset space \thinspace{}
20165 \begin_inset space ~
20169 \begin_inset Quotes eld
20173 \begin_inset Quotes erd
20176 before every reference to a figure.
20177 To use this feature, enable
20181 and insert this line to the LaTeX preamble:
20184 \begin_layout Standard
20200 \begin_layout Standard
20201 When you prefer other reference names than the default ones, for example
20202 you want instead of
20203 \begin_inset Quotes eld
20207 \begin_inset Quotes erd
20211 \begin_inset Quotes eld
20215 \begin_inset space \thinspace{}
20219 \begin_inset Quotes eld
20222 , you can redefine the name by inserting this to the preamble:
20225 \begin_layout Standard
20236 sectionautorefname}
20237 \begin_inset Newline newline
20244 \begin_layout Plain Layout
20258 \begin_layout Standard
20259 When you are using another document language than English, replace
20260 \begin_inset Newline newline
20275 , where *** is the name of the used language.
20278 \begin_layout Standard
20279 To get automatic names, but not for certain reference types, for example
20280 not for equations, use this preamble code:
20283 \begin_layout Standard
20291 \begin_inset Newline newline
20301 \begin_inset Newline newline
20312 equationautorefname}
20313 \begin_inset Newline newline
20320 \begin_layout Plain Layout
20336 \begin_layout Standard
20337 More about this topic can be found in
20342 \begin_inset CommandInset citation
20351 \begin_layout Standard
20352 \begin_inset Note Greyedout
20355 \begin_layout Plain Layout
20360 Automatic reference naming cannot be used when you use cross-references
20364 \begin_inset space ~
20369 style, as described in section
20370 \begin_inset space ~
20374 \begin_inset CommandInset ref
20376 reference "sub:Cross-Reference-Formats"
20388 \begin_layout Standard
20393 manual is an example where automatic reference naming is used.
20396 \begin_layout Subsection
20398 \begin_inset CommandInset label
20400 name "sub:Reference-Position"
20408 \begin_layout Plain Layout
20409 References ! Reference Position
20417 \begin_layout Standard
20426 \begin_layout Plain Layout
20427 LaTeX-packages ! hyperref
20440 dialog to link cross-references in the output, you will see that clicking
20441 on an image float reference jumps to the image label.
20442 The caption will be the first text part on the screen, so that you cannot
20443 see the image without scrolling.
20444 This is because the reference link anchor is placed at the position of
20446 With the use of the package
20454 \begin_layout Plain Layout
20455 LaTeX-packages ! hypcap
20460 , which is part of the LaTeX-package
20468 \begin_layout Plain Layout
20469 LaTeX-packages ! oberdiek
20474 , the link anchor is placed at the beginning of a float.
20475 To use this feature for figure floats, load
20479 in the document preamble with the line
20482 \begin_layout Standard
20487 usepackage[figure]{hypcap}
20490 \begin_layout Standard
20495 for all float types but this is not recommended for stability reasons.
20496 For more informations, have a look at
20501 \begin_inset CommandInset citation
20510 \begin_layout Standard
20511 \begin_inset Note Greyedout
20514 \begin_layout Plain Layout
20523 has no effect for references to subfigures.
20531 \begin_layout Section
20533 \begin_inset CommandInset label
20535 name "sec:Float-Placement"
20543 \begin_layout Plain Layout
20552 \begin_layout Standard
20553 Right-clicking on a float-box opens a dialog where you can alter the placement
20554 options that LaTeX uses for positioning the float.
20555 \begin_inset Newline newline
20561 \begin_inset space ~
20566 is only useful for two-column documents: If you select it, the float will
20567 span across both columns on the page instead of being confined to just
20569 \begin_inset Newline newline
20575 \begin_inset space ~
20580 is used to rotate floats, see section
20581 \begin_inset CommandInset ref
20583 reference "sec:Rotated-Floats"
20590 \begin_layout Standard
20591 You can use one ore more of the following options in the float dialog to
20592 set the placement for a particular float when you uncheck the option
20595 \begin_inset space ~
20599 \begin_inset space ~
20607 \begin_layout Description
20609 \begin_inset space ~
20613 \begin_inset space ~
20616 possible try to place the float on the position where it is inserted
20619 \begin_layout Description
20621 \begin_inset space ~
20625 \begin_inset space ~
20628 page try to place the float on the top of the current page
20631 \begin_layout Description
20633 \begin_inset space ~
20637 \begin_inset space ~
20640 page try to place the float on the bottom of the current page
20643 \begin_layout Description
20645 \begin_inset space ~
20649 \begin_inset space ~
20652 floats try to place the float on an own page
20655 \begin_layout Standard
20656 The order of the above option is
20661 That means, if you use the default placement, LaTeX will first try out
20665 \begin_inset space ~
20669 \begin_inset space ~
20677 \begin_inset space ~
20681 \begin_inset space ~
20686 , and then the others.
20687 If you don't use the default, LaTeX will try only the checked options but
20689 If none of the 4 placements are possible the procedure is internally repeated
20690 but it is tried to put the float on the following page.
20693 \begin_layout Standard
20694 By default, each option has its own rules:
20697 \begin_layout Labeling
20698 \labelwidthstring 00.00.0000
20702 \begin_inset space ~
20706 \begin_inset space ~
20711 only floats occupying less than 70
20712 \begin_inset space \thinspace{}
20715 % of the page can be placed at the top of a page (
20724 \begin_layout Labeling
20725 \labelwidthstring 00.00.0000
20729 \begin_inset space ~
20733 \begin_inset space ~
20738 : only floats occupying less than 30
20739 \begin_inset space \thinspace{}
20742 % of the page can be placed at the bottom of a page.
20752 \begin_layout Labeling
20753 \labelwidthstring 00.00.0000
20757 \begin_inset space ~
20761 \begin_inset space ~
20766 : only if more than 50
20767 \begin_inset space \thinspace{}
20770 % of the page are occupied by floats, several floats can be set together
20781 \begin_layout Standard
20782 If you don't like these rules, you can ignore them by using the additional
20786 \begin_inset space ~
20790 \begin_inset space ~
20796 \begin_inset Newline newline
20799 You can also redefine the rules with LaTeX-commands that are given in parenthese
20800 s behind the rules description above.
20801 To increase for example the often too small default of the bottom-rule
20803 \begin_inset space \thinspace{}
20806 % of the page, add this line to your document preamble:
20809 \begin_layout Standard
20816 bottomfraction}{0.5}
20819 \begin_layout Standard
20820 Sometimes you might need, under all circumstances, a float to be placed
20821 exactly at the position where it is inserted.
20822 For this case you can use the option
20825 \begin_inset space ~
20831 Use this option very rarely and only if the document is nearly ready to
20833 Because the float is then no longer able to
20834 \begin_inset Quotes eld
20838 \begin_inset Quotes erd
20841 when you change your document and this will often destroy the page layout.
20844 \begin_layout Standard
20845 There are no placement options for text wrap floats, because they are always
20846 surrounded by the text of a certain paragraph.
20847 \begin_inset VSpace bigskip
20853 \begin_layout Standard
20854 Sometimes you have the problem that a float is placed at the top of a page
20855 while its corresponding section starts at the middle of the page, so that
20856 the reader could think the float is part of the previous section.
20857 To avoid this the LaTeX-command
20864 It suppresses a given float placement for the page where it is inserted
20865 and can therefore be used to avoid that floats could be set before a section
20867 To get this, add these commands to your document preamble:
20870 \begin_layout Standard
20880 \begin_inset Newline newline
20894 \begin_layout Standard
20895 You can define the same for all section headings, like chapters and subsections.
20896 This definition is not recommended to be used for small text parts like
20897 subsubsections because LaTeX may then have problems to find a suitable
20901 \begin_layout Standard
20902 \begin_inset VSpace bigskip
20905 In some cases it is required to have all figures/tables at the end of the
20907 For this purpose the LaTeX-package
20915 \begin_layout Plain Layout
20916 LaTeX-packages ! endfloat
20922 It puts all figure and table floats at the end of the document into own
20924 At the original float position a text hint like
20925 \begin_inset Quotes eld
20931 \begin_inset space ~
20937 \begin_inset Quotes erd
20941 The endfloat-package is loaded in the preamble with the line
20944 \begin_layout Standard
20949 usepackage[options]{endfloat}
20952 \begin_layout Standard
20953 There are various package options to format the created figure/table sections.
20954 For more information we refer to the
20959 \begin_inset CommandInset citation
20966 \begin_inset Newline newline
20970 \begin_inset Note Greyedout
20973 \begin_layout Plain Layout
20978 doesn't provide an automatic translation for the text hint, you have to
20979 do this manually, see section
20980 \begin_inset space ~
20984 \begin_inset CommandInset citation
20996 \begin_inset Newline newline
21000 \begin_inset Note Greyedout
21003 \begin_layout Plain Layout
21008 There is currently a bug in
21012 when the caption contains a German
21013 \begin_inset Quotes eld
21017 \begin_inset Quotes erd
21021 Use in this case the command
21022 \begin_inset Quotes eld
21032 \begin_inset Quotes erd
21035 in TeX-Code instead of
21036 \begin_inset Quotes eld
21040 \begin_inset Quotes erd
21051 \begin_layout Standard
21052 \begin_inset VSpace bigskip
21055 For more details about float placements, have a look at LaTeX books,
21056 \begin_inset CommandInset citation
21058 key "latexcompanion,latexguide,latexbook"
21065 \begin_layout Section
21067 \begin_inset CommandInset label
21069 name "sec:Rotated-Floats"
21077 \begin_layout Plain Layout
21086 \begin_layout Standard
21087 Especially for wide tables you might have floats rotated.
21088 To rotate a whole float including the caption, right-click on the float-box
21092 \begin_inset space ~
21100 \begin_layout Standard
21101 Rotated floats are always placed on its own page (or column, in case you
21102 have a multi-column document).
21103 You can let them span several columns using the float settings option
21106 \begin_inset space ~
21112 Floats are rotated so that you can read them from the outside margin.
21113 To force a certain rotation direction for all pages, you can add either
21122 to the document class options.
21125 \begin_layout Standard
21126 Referencing rotated floats is the same like for normal floats, the caption
21127 format is also the same: Table
21128 \begin_inset space ~
21132 \begin_inset CommandInset ref
21134 reference "tab:Rotated-table"
21138 is an example of a rotated table float.
21141 \begin_layout Standard
21142 \begin_inset Note Greyedout
21145 \begin_layout Plain Layout
21150 Not all DVI-viewers are able to display rotated floats.
21158 \begin_layout Standard
21159 \begin_inset Float table
21164 \begin_layout Plain Layout
21165 \begin_inset Caption
21167 \begin_layout Plain Layout
21168 \begin_inset CommandInset label
21170 name "tab:Rotated-table"
21182 \begin_layout Plain Layout
21184 \begin_inset Tabular
21185 <lyxtabular version="3" rows="1" columns="5">
21187 <column alignment="center" valignment="top" width="0">
21188 <column alignment="center" valignment="top" width="0">
21189 <column alignment="center" valignment="top" width="0">
21190 <column alignment="center" valignment="top" width="0">
21191 <column alignment="center" valignment="top" width="0">
21193 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21196 \begin_layout Plain Layout
21202 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21205 \begin_layout Plain Layout
21211 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21214 \begin_layout Plain Layout
21220 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21223 \begin_layout Plain Layout
21229 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21232 \begin_layout Plain Layout
21251 \begin_layout Section
21252 Floats Side by Side
21256 \begin_layout Plain Layout
21257 Floats ! Side by side
21265 \begin_layout Standard
21266 To place floats side by side, like for Figure
21267 \begin_inset space ~
21271 \begin_inset CommandInset ref
21273 reference "fig:Float-left"
21278 \begin_inset CommandInset ref
21280 reference "fig:Float-right"
21289 In it two minipage boxes are inserted.
21293 \begin_layout Plain Layout
21294 Minipages are explained in section
21295 \begin_inset space ~
21299 \begin_inset CommandInset ref
21301 reference "sec:Minipages"
21310 The width is set to 45
21311 \begin_inset space \thinspace{}
21315 \begin_inset space \thinspace{}
21318 column% and the box alignment to
21323 The minipage boxes contain the image and the caption in the same way as
21324 they are in a float.
21325 The only difference is that the image unit
21328 \begin_inset space ~
21332 \begin_inset space ~
21337 is now calculated according to the width of the minipage boxes.
21340 \begin_layout Standard
21341 \begin_inset Float figure
21346 \begin_layout Plain Layout
21347 \begin_inset Box Frameless
21356 height_special "totalheight"
21359 \begin_layout Plain Layout
21361 \begin_inset Graphics
21362 filename clipart/mobius.eps
21365 scaleBeforeRotation
21372 \begin_layout Plain Layout
21373 \begin_inset Caption
21375 \begin_layout Plain Layout
21376 \begin_inset CommandInset label
21378 name "fig:Float-left"
21382 Float on the left side.
21393 \begin_inset space \hfill{}
21397 \begin_inset Box Frameless
21406 height_special "totalheight"
21409 \begin_layout Plain Layout
21411 \begin_inset Graphics
21412 filename clipart/platypus.eps
21415 scaleBeforeRotation
21422 \begin_layout Plain Layout
21423 \begin_inset Caption
21425 \begin_layout Plain Layout
21426 \begin_inset CommandInset label
21428 name "fig:Float-right"
21432 Float on the right side.
21445 \begin_layout Plain Layout
21454 \begin_layout Section
21459 \begin_layout Plain Layout
21460 Caption ! Formatting
21469 \begin_layout Plain Layout
21470 Floats ! Caption Formatting
21476 \begin_inset CommandInset label
21478 name "sec:Caption-Formatting"
21485 \begin_layout Standard
21490 environment is the default paragraph environment for
21495 On the LyX screen captions appear as label, e.
21496 \begin_inset space \thinspace{}
21500 \begin_inset space ~
21504 \begin_inset Quotes eld
21512 \begin_inset Quotes erd
21515 followed by the caption text.
21517 \begin_inset Quotes eld
21521 \begin_inset Quotes erd
21524 is the actual reference number.
21525 By default the label and the number are in the same font as the caption
21526 text and a colon follows the number to divide the label from the text.
21527 This caption format is not suitable for all document formats.
21531 \begin_layout Standard
21532 To change the default caption format, load the LaTeX-package
21540 \begin_layout Plain Layout
21541 LaTeX-packages ! caption
21546 in the document preamble with this line:
21549 \begin_layout Standard
21554 usepackage[format definition]{caption}
21557 \begin_layout Standard
21558 To have for example the label and the number in sans-serif bold font and
21559 the table captions always above the table like in this document, use the
21563 \begin_layout Standard
21568 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
21571 \begin_layout Standard
21572 You can also define different caption formats for the different float types.
21573 In this case load the
21577 package without format specific options and define the different formats
21578 with the help of the command
21581 \begin_layout Standard
21586 captionsetup[float type]{format definition}
21589 \begin_layout Standard
21590 in the document preamble.
21591 For example the caption formats of Figure
21592 \begin_inset space ~
21596 \begin_inset CommandInset ref
21598 reference "fig:This-is-an-fig"
21603 \begin_inset space ~
21607 \begin_inset CommandInset ref
21609 reference "tab:This-is-an-tab"
21613 can be created using these commands in the document preamble:
21616 \begin_layout Standard
21621 usepackage[tableposition=top]{caption}
21624 \begin_inset Newline newline
21631 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
21632 \begin_inset Newline newline
21639 \begin_layout Plain Layout
21647 captionsetup[figure]
21655 \begin_inset Newline newline
21660 captionsetup[table]{labelfont={bf,sf}}
21663 \begin_layout Standard
21664 \begin_inset Note Greyedout
21667 \begin_layout Plain Layout
21676 has no effect when a
21684 \begin_layout Plain Layout
21685 LaTeX-packages ! koma-script
21690 document class is used.
21691 In this case the document class option
21703 \begin_layout Standard
21704 For more information about the package
21708 we refer to its documentation
21709 \begin_inset CommandInset citation
21718 \begin_layout Standard
21719 To change the label name from e.g.
21721 \begin_inset Quotes eld
21725 \begin_inset Quotes erd
21729 \begin_inset Quotes eld
21733 \begin_inset Quotes erd
21736 use this preamble command:
21739 \begin_layout Standard
21746 fnum@figure}{Image~
21751 \begin_layout Standard
21758 inserts the figure number and
21761 \begin_inset Quotes eld
21767 \begin_inset Quotes erd
21770 creates a protected space.
21773 \begin_layout Standard
21774 \begin_inset VSpace bigskip
21785 \begin_layout Plain Layout
21786 LaTeX-packages ! koma-script
21793 article (koma-script)
21801 letter (koma-script)
21805 report (koma-script)
21808 \begin_inset space \thinspace{}
21811 ), you can alternatively to the
21819 's built-in command
21826 For example, to have the caption label in bold, add this command to your
21830 \begin_layout Standard
21835 setkomafont{captionlabel}{
21840 \begin_layout Standard
21841 For more information about
21852 \begin_inset CommandInset citation
21861 \begin_layout Standard
21865 \begin_layout Plain Layout
21869 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
21876 \begin_inset Note Note
21879 \begin_layout Plain Layout
21880 The caption format is changed only for this example.
21888 \begin_layout Standard
21889 \begin_inset Float figure
21895 \begin_layout Plain Layout
21897 \begin_inset Graphics
21898 filename clipart/mobius.eps
21901 scaleBeforeRotation
21908 \begin_layout Plain Layout
21909 \begin_inset Caption
21911 \begin_layout Plain Layout
21912 \begin_inset CommandInset label
21914 name "fig:This-is-an-fig"
21918 This is an example figure caption that is longer than one line to show the
21919 different caption format.
21920 Here a self-defined caption format is used.
21933 \begin_layout Standard
21937 \begin_layout Plain Layout
21941 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
21950 \begin_layout Standard
21951 \begin_inset Float table
21957 \begin_layout Plain Layout
21958 \begin_inset Caption
21960 \begin_layout Plain Layout
21961 \begin_inset CommandInset label
21963 name "tab:This-is-an-tab"
21967 This is an example table caption that is longer than one line to show the
21968 different caption format.
21969 Here the standard caption format for tables in this document is used.
21977 \begin_layout Plain Layout
21979 \begin_inset Tabular
21980 <lyxtabular version="3" rows="1" columns="5">
21982 <column alignment="center" valignment="top" width="0">
21983 <column alignment="center" valignment="top" width="0">
21984 <column alignment="center" valignment="top" width="0">
21985 <column alignment="center" valignment="top" width="0">
21986 <column alignment="center" valignment="top" width="0">
21988 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21991 \begin_layout Plain Layout
21997 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22000 \begin_layout Plain Layout
22006 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22009 \begin_layout Plain Layout
22015 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22018 \begin_layout Plain Layout
22024 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22027 \begin_layout Plain Layout
22046 \begin_layout Section
22051 \begin_layout Plain Layout
22052 Caption ! Placement
22061 \begin_layout Plain Layout
22062 Floats ! Caption Placement
22068 \begin_inset CommandInset label
22070 name "sec:Caption-Placement"
22077 \begin_layout Standard
22078 The common caption placement rule is:
22081 \begin_layout Description
22082 Figure: Caption is set below the figure
22085 \begin_layout Description
22086 Table: Caption is set above the table
22089 \begin_layout Standard
22090 Having the caption above the table is unfortunately not supported in LaTeX's
22092 That means if you are using the document classes
22108 there will be no space between the caption and the table.
22109 To insert the needed space, add the following option to the load command
22110 of the LaTeX-package
22114 in your document preamble
22118 \begin_layout Plain Layout
22120 \begin_inset space ~
22124 \begin_inset CommandInset ref
22126 reference "sec:Caption-Formatting"
22130 for more information of the package
22142 \begin_layout Standard
22148 \begin_layout Standard
22157 \begin_layout Plain Layout
22158 LaTeX-packages ! koma-script
22165 article (koma-script)
22173 letter (koma-script)
22177 report (koma-script)
22180 \begin_inset space \thinspace{}
22183 ), you can alternatively to the
22187 package set the document class option
22194 \begin_layout Standard
22195 \begin_inset VSpace bigskip
22198 It is also possible to set the caption beside a figure or table.
22199 To get this the LaTeX-package
22207 \begin_layout Plain Layout
22208 LaTeX-packages ! sidecap
22213 has to be loaded in the document preamble with the line
22216 \begin_layout Standard
22221 usepackage[option]{sidecap}
22224 \begin_layout Standard
22225 If you set no option, the caption is placed on the side of the outer page
22226 margin -- to the right on odd pages, to the left on even pages.
22227 You can change the placement to inner margin with the option
22232 To force the placement always to the right or left, use the option
22243 \begin_layout Standard
22247 \begin_layout Plain Layout
22257 \begin_inset Note Note
22260 \begin_layout Plain Layout
22261 The following section will only be displayed when the LaTeX-package
22273 \begin_layout Standard
22274 To place in LyX the caption of a float on the side, it is necessary to add
22275 these commands to the document preamble:
22278 \begin_layout Standard
22284 \begin_layout Standard
22292 \begin_inset Newline newline
22299 \begin_layout Plain Layout
22315 \begin_inset Newline newline
22322 \begin_layout Plain Layout
22338 \begin_inset Newline newline
22345 \begin_layout Plain Layout
22356 renewenvironment{table}{
22363 \begin_layout Standard
22371 \begin_inset Newline newline
22378 \begin_layout Plain Layout
22394 \begin_inset Newline newline
22401 \begin_layout Plain Layout
22419 \begin_layout Standard
22427 \begin_inset Newline newline
22434 \begin_layout Plain Layout
22450 \begin_inset Newline newline
22457 \begin_layout Plain Layout
22473 \begin_inset Newline newline
22480 \begin_layout Plain Layout
22491 renewenvironment{figure}{
22498 \begin_layout Standard
22506 \begin_inset Newline newline
22513 \begin_layout Plain Layout
22529 \begin_inset Newline newline
22536 \begin_layout Plain Layout
22554 \begin_layout Standard
22560 \begin_layout Standard
22561 The commands allow you to redefine the floats so that the caption is set
22563 For figure floats use the command
22566 \begin_layout Standard
22574 \begin_layout Standard
22575 in TeX-Code before the float.
22576 Behind the float insert the command
22579 \begin_layout Standard
22587 \begin_layout Standard
22588 in TeX-Code to get back to the original float definition.
22591 \begin_layout Standard
22592 For table floats use the corresponding commands
22595 \begin_layout Standard
22609 \begin_layout Standard
22611 \begin_inset space ~
22615 \begin_inset CommandInset ref
22617 reference "fig:cap-beside-fig"
22622 \begin_inset space ~
22626 \begin_inset CommandInset ref
22628 reference "tab:cap-beside-tab"
22632 are examples where the caption is set beside.
22635 \begin_layout Standard
22636 You can see in the examples that the caption text appears at the top of
22637 the floats for table floats and at the bottom for figure floats.
22638 To change this, you can use the command
22641 \begin_layout Standard
22646 sidecaptionvpos{float type}{placement}
22649 \begin_layout Standard
22650 in the document preamble or in TeX-Code before the float.
22651 The float type is either
22659 , the placement can be
22660 \begin_inset Quotes eld
22668 \begin_inset Quotes erd
22672 \begin_inset Quotes eld
22680 \begin_inset Quotes erd
22684 \begin_inset Quotes eld
22692 \begin_inset Quotes erd
22696 To have for example the caption of figure floats vertically centered, use
22700 \begin_layout Standard
22705 sidecaptionvpos{figure}{c}
22708 \begin_layout Standard
22709 This was used for Figure
22710 \begin_inset space ~
22714 \begin_inset CommandInset ref
22716 reference "fig:cap-beside-fig-2"
22723 \begin_layout Standard
22724 \begin_inset VSpace medskip
22727 For more information about the package
22731 we refer to its documentation
22732 \begin_inset CommandInset citation
22741 \begin_layout Standard
22742 \begin_inset Note Greyedout
22745 \begin_layout Plain Layout
22758 \begin_layout Plain Layout
22759 LaTeX-packages ! hypcap
22764 , described in section
22765 \begin_inset space ~
22769 \begin_inset CommandInset ref
22771 reference "sub:Reference-Position"
22775 , has no effect on floats with the caption set beside.
22783 \begin_layout Standard
22787 \begin_layout Plain Layout
22799 \begin_layout Standard
22800 \begin_inset Float figure
22805 \begin_layout Plain Layout
22806 \begin_inset Graphics
22807 filename clipart/escher-lsd.eps
22809 scaleBeforeRotation
22816 \begin_layout Plain Layout
22817 \begin_inset Caption
22819 \begin_layout Plain Layout
22820 \begin_inset CommandInset label
22822 name "fig:cap-beside-fig"
22826 This is a caption beside a figure.
22839 \begin_layout Standard
22843 \begin_layout Plain Layout
22855 \begin_layout Standard
22856 \begin_inset Float table
22861 \begin_layout Plain Layout
22862 \begin_inset Caption
22864 \begin_layout Plain Layout
22865 \begin_inset CommandInset label
22867 name "tab:cap-beside-tab"
22871 This is a caption beside a table.
22879 \begin_layout Plain Layout
22880 \begin_inset Tabular
22881 <lyxtabular version="3" rows="4" columns="5">
22883 <column alignment="center" valignment="top" width="0">
22884 <column alignment="center" valignment="top" width="0">
22885 <column alignment="center" valignment="top" width="0">
22886 <column alignment="center" valignment="top" width="0">
22887 <column alignment="center" valignment="top" width="0">
22889 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22892 \begin_layout Plain Layout
22898 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22901 \begin_layout Plain Layout
22907 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22910 \begin_layout Plain Layout
22916 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22919 \begin_layout Plain Layout
22925 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22928 \begin_layout Plain Layout
22936 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22939 \begin_layout Plain Layout
22945 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22948 \begin_layout Plain Layout
22954 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22957 \begin_layout Plain Layout
22963 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22966 \begin_layout Plain Layout
22972 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22975 \begin_layout Plain Layout
22983 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22986 \begin_layout Plain Layout
22992 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22995 \begin_layout Plain Layout
23001 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23004 \begin_layout Plain Layout
23010 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23013 \begin_layout Plain Layout
23019 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23022 \begin_layout Plain Layout
23030 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23033 \begin_layout Plain Layout
23039 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23042 \begin_layout Plain Layout
23048 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23051 \begin_layout Plain Layout
23057 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23060 \begin_layout Plain Layout
23066 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23069 \begin_layout Plain Layout
23088 \begin_layout Standard
23092 \begin_layout Plain Layout
23104 \begin_layout Standard
23108 \begin_layout Plain Layout
23112 sidecaptionvpos{figure}{c}
23118 \begin_inset Float figure
23123 \begin_layout Plain Layout
23124 \begin_inset Graphics
23125 filename clipart/escher-lsd.eps
23127 scaleBeforeRotation
23134 \begin_layout Plain Layout
23135 \begin_inset Caption
23137 \begin_layout Plain Layout
23138 \begin_inset CommandInset label
23140 name "fig:cap-beside-fig-2"
23144 This is a vertically centered caption beside a figure.
23157 \begin_layout Standard
23161 \begin_layout Plain Layout
23173 \begin_layout Standard
23177 \begin_layout Plain Layout
23187 \begin_inset Note Note
23190 \begin_layout Plain Layout
23191 The following will be displayed when the LaTeX-package
23203 \begin_layout Standard
23204 You need to install the LaTeX-package
23208 to see the following part of this section in the output.
23211 \begin_layout Standard
23215 \begin_layout Plain Layout
23227 \begin_layout Section
23232 \begin_layout Plain Layout
23233 Floats ! Float Lists
23241 \begin_layout Standard
23242 Similar to the the table of contents where the sections of the document
23243 are listed, there are listings for all float types, like the figures of
23245 You can insert them via the
23247 Insert\SpecialChar \menuseparator
23249 \begin_inset space ~
23253 \begin_inset space ~
23261 \begin_layout Standard
23262 The list entries are the float captions or its short title, the float number,
23263 and the page number where they appear in the document.
23266 \begin_layout Standard
23267 You can find the list of figures and tables at the end of this document.
23270 \begin_layout Chapter
23274 \begin_layout Section
23279 \begin_layout Plain Layout
23288 \begin_layout Standard
23289 Notes are inserted with the toolbar button
23290 \begin_inset Graphics
23291 filename ../images/note-insert.png
23293 scaleBeforeRotation
23299 Insert\SpecialChar \menuseparator
23303 There are three types of notes:
23306 \begin_layout Description
23308 \begin_inset space ~
23311 Note This note type is for internal notes that won't appear in the output.
23312 Its note-box looks like this:
23313 \begin_inset Newline newline
23317 \begin_inset Newline newline
23321 \begin_inset Graphics
23322 filename clipart/LyXNoteImageQt4.png
23325 scaleBeforeRotation
23330 \begin_inset Note Note
23333 \begin_layout Plain Layout
23334 This is text in a note box that doesn't appear in the output.
23342 \begin_layout Description
23343 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
23344 ent, when you export the document to LaTeX via the menu
23346 File\SpecialChar \menuseparator
23347 Export\SpecialChar \menuseparator
23348 LaTeX (pdflatex) / (plain)
23351 Its note-box looks like this:
23352 \begin_inset Newline newline
23356 \begin_inset Newline newline
23360 \begin_inset Graphics
23361 filename clipart/CommentNoteImageQt4.png
23364 scaleBeforeRotation
23369 \begin_inset Note Comment
23372 \begin_layout Plain Layout
23373 This is text in a note box that only appears as comment in LaTeX-files.
23381 \begin_layout Description
23383 \begin_inset space ~
23386 Out This note will appear in the output as grey text.
23387 Its note-box looks like this:
23388 \begin_inset Newline newline
23392 \begin_inset Newline newline
23396 \begin_inset Graphics
23397 filename clipart/GreyedOutNoteImageQt4.png
23400 scaleBeforeRotation
23405 \begin_inset Newline newline
23412 \begin_layout Plain Layout
23416 renewenvironment{lyxgreyedout}
23419 \begin_layout Plain Layout
23423 textcolor[gray]{0.8}
23433 \begin_inset Note Greyedout
23436 \begin_layout Plain Layout
23441 \begin_layout Plain Layout
23442 This is an example footnote within a greyed out note.
23447 of a comment that appears in the output as grey text.
23456 \begin_layout Plain Layout
23460 renewenvironment{lyxgreyedout}
23463 \begin_layout Plain Layout
23477 \begin_inset Note Note
23480 \begin_layout Plain Layout
23481 The greyed out note is here redefined to show it with the original LyX definitio
23482 n because greyed out notes are redefined in the preamble of this document,
23483 as described below, to have blue text.
23489 \begin_inset Newline newline
23493 \begin_inset Newline newline
23496 As you can see in the example, the first line of greyed out notes is a bit
23497 indented and greyed out notes can have footnotes.
23500 \begin_layout Standard
23501 \begin_inset VSpace bigskip
23504 When you use the toolbar button
23505 \begin_inset Graphics
23506 filename ../images/note-insert.png
23508 scaleBeforeRotation
23515 \begin_inset space ~
23521 You can switch between the five note types by right-clicking on the note-box.
23526 If you want to turn existing text into a note, mark it and click on the
23540 To change a note to text, press the backspace key when the cursor is in
23541 the first position of a note, or press the deletey key when the cursor
23542 is in the very last position of the note, respectively.
23545 \begin_layout Standard
23546 \begin_inset VSpace bigskip
23549 You can change the text color of the greyed out notes in the preamble with
23550 the following command:
23553 \begin_layout Standard
23558 renewenvironment{lyxgreyedout}
23559 \begin_inset Newline newline
23566 \begin_layout Plain Layout
23584 \begin_layout Standard
23585 The available colors and the method to define own colors is explained in
23587 \begin_inset space ~
23591 \begin_inset CommandInset ref
23593 reference "sec:Colored-Tables"
23600 \begin_layout Standard
23601 Notes that appear in blue in this document are set using greyed out notes
23605 \begin_layout Section
23607 \begin_inset CommandInset label
23609 name "sec:Footnotes"
23617 \begin_layout Plain Layout
23627 \begin_layout Plain Layout
23636 \begin_layout Standard
23637 Footnotes can be inserted using the toolbar button
23638 \begin_inset Graphics
23639 filename ../images/footnote-insert.png
23641 scaleBeforeRotation
23647 Insert\SpecialChar \menuseparator
23659 then the following footnote-box:
23660 \begin_inset Graphics
23661 filename clipart/footnoteQt4.png
23663 scaleBeforeRotation
23671 where you can enter the footnote text.
23672 If you want to turn existing text into a footnote, mark it and click on
23694 to text, press the Backspace key when the cursor is in the first position
23703 , or press the Delete key when the cursor is in the very last position of
23715 \begin_layout Standard
23716 Here is an example footnote:
23724 \begin_layout Plain Layout
23725 \begin_inset CommandInset label
23727 name "foot:This-is-an"
23731 This is an example footnote.
23744 \begin_layout Plain Layout
23748 newcounter{MyRepeatFoot}
23751 \begin_layout Plain Layout
23755 setcounter{MyRepeatFoot}{
23765 \begin_layout Standard
23766 The footnote will appear in the output as a superscript number at the text
23767 position where the footnote box is placed.
23768 The footnote text is placed at the bottom of the current page.
23769 The footnote number is calculated by LaTeX, the numbers are consecutive.
23770 It depends on your document-class, if the footnote number is reset for
23774 \begin_layout Standard
23775 Footnotes can be referenced like floats: Insert a label into the footnote
23776 and cross-reference this label in the text as described in section
23777 \begin_inset space ~
23781 \begin_inset CommandInset ref
23783 reference "sec:Referencing-Floats"
23788 \begin_inset Newline newline
23791 This is a cross-reference of Footnote
23792 \begin_inset space ~
23796 \begin_inset CommandInset ref
23798 reference "foot:This-is-an"
23805 \begin_layout Standard
23806 \begin_inset VSpace defskip
23809 To use footnotes within tables, you have to use minipages, see section
23810 \begin_inset space ~
23814 \begin_inset CommandInset ref
23816 reference "sec:Minipages"
23821 Footnotes within longtables are described in section
23822 \begin_inset space ~
23826 \begin_inset CommandInset ref
23828 reference "sub:Footnotes-in-Longtables"
23835 \begin_layout Standard
23836 \begin_inset VSpace defskip
23839 To create only a mark for a footnote, use the command
23843 footnotemark[number]
23846 This is used when you have the same annotation several times in a text
23847 but doesn't want to print the footnote text every time.
23848 \begin_inset Newline newline
23851 As you don't know the number of the repeating footnote while you are writing
23852 the text, you have to store its number.
23853 For the following footnote mark example, these commands were inserted in
23854 TeX-Code behind Footnote
23855 \begin_inset space ~
23859 \begin_inset CommandInset ref
23861 reference "foot:This-is-an"
23865 to store the footnote number:
23868 \begin_layout Standard
23873 newcounter{MyRepeatFoot}
23874 \begin_inset Newline newline
23879 setcounter{MyRepeatFoot}{
23884 \begin_layout Standard
23885 The footnote mark was then created with this command:
23888 \begin_layout Standard
23898 \begin_layout Standard
23899 Here is an example footnote mark:
23907 \begin_layout Plain Layout
23921 \begin_layout Subsection
23923 \begin_inset CommandInset label
23925 name "sub:Footnote-Numbering"
23933 \begin_layout Plain Layout
23934 Footnotes ! Numbering
23942 \begin_layout Standard
23943 To reset the footnote number back to 1 after each section
23945 , add this command to your document preamble:
23948 \begin_layout Standard
23953 @addtoreset{footnote}{section}
23956 \begin_layout Standard
23957 \begin_inset VSpace bigskip
23960 The following preamble command changes the footnote numbering style to small
23964 \begin_layout Standard
23976 \begin_layout Standard
23980 \begin_layout Plain Layout
23993 This is a footnote with roman numbering:
23997 \begin_layout Plain Layout
23998 This is an example footnote with roman numbering.
24006 \begin_layout Standard
24007 To change the numbering style to capital roman numerals replace in the command
24022 \begin_inset Quotes eld
24026 \begin_inset Quotes erd
24029 footnotes with capital or small Latin letters use
24043 \begin_inset Quotes eld
24047 \begin_inset Quotes erd
24050 footnotes with symbols use
24059 \begin_layout Standard
24060 \begin_inset Note Greyedout
24063 \begin_layout Plain Layout
24068 You can only number 26 footnotes with Latin letters, because this numbering
24069 is limited to single letters.
24075 \begin_inset Newline newline
24079 \begin_inset Note Greyedout
24082 \begin_layout Plain Layout
24087 You can only number 9 footnotes with symbols.
24095 \begin_layout Standard
24096 To return to the default numbering style when you changed to another one,
24109 in the command above.
24113 \begin_layout Plain Layout
24129 \begin_layout Standard
24130 \begin_inset VSpace bigskip
24136 \begin_layout Standard
24137 If you want to have footnotes numbered in the scheme
24138 \begin_inset Quotes eld
24142 \begin_inset Quotes erd
24145 , add the following command to your document preamble:
24148 \begin_layout Standard
24153 numberwithin{footnote}{chapter}
24156 \begin_layout Standard
24157 To be able to use the command
24166 \begin_inset space ~
24171 in the document settings the option
24174 \begin_inset space ~
24178 \begin_inset space ~
24182 \begin_inset space ~
24190 \begin_layout Standard
24194 \begin_layout Plain Layout
24198 numberwithin{footnote}{chapter}
24203 This is another example footnote:
24209 \begin_layout Plain Layout
24210 This is a footnote numbered in the scheme
24211 \begin_inset Quotes eld
24215 \begin_inset Quotes erd
24229 \begin_layout Plain Layout
24245 \begin_layout Standard
24246 \begin_inset Note Greyedout
24249 \begin_layout Plain Layout
24260 always prints out the footnote number as arabic number; previous redefinitions
24261 to get non-arabic numbers are overwritten.
24269 \begin_layout Standard
24270 So to get for example the scheme
24271 \begin_inset Quotes eld
24277 \begin_inset Quotes erd
24280 , use this command instead of
24289 \begin_layout Standard
24303 \begin_layout Subsection
24308 \begin_layout Plain Layout
24309 Footnotes ! Placement
24317 \begin_layout Standard
24318 If you have several footnotes in one page, they appear without vertical
24319 space between them at the bottom of the page.
24320 To make them better readable you can e.
24321 \begin_inset space \thinspace{}
24325 \begin_inset space ~
24329 \begin_inset space \thinspace{}
24332 mm space with the following preamble command:
24335 \begin_layout Standard
24345 \begin_inset Newline newline
24359 \begin_layout Standard
24360 \begin_inset VSpace bigskip
24363 In a two-column document the footnotes appear at the bottom of every column,
24365 \begin_inset space ~
24369 \begin_inset CommandInset ref
24371 reference "fig:Standard-footnote-placement"
24376 If the footnotes should only appear at the bottom of the right column,
24378 \begin_inset space ~
24382 \begin_inset CommandInset ref
24384 reference "fig:Footnote-placement-in"
24388 , use the LaTeX-package
24396 \begin_layout Plain Layout
24397 LaTeX-packages ! ftnright
24402 with this command in the document preamble:
24405 \begin_layout Standard
24410 usepackage{ftnright}
24413 \begin_layout Standard
24414 \begin_inset Float figure
24420 \begin_layout Plain Layout
24424 \begin_layout Plain Layout
24434 \begin_inset Graphics
24435 filename clipart/without_fntright.pdf
24437 scaleBeforeRotation
24445 \begin_layout Plain Layout
24455 \begin_layout Plain Layout
24456 \begin_inset Caption
24458 \begin_layout Plain Layout
24459 \begin_inset CommandInset label
24461 name "fig:Standard-footnote-placement"
24465 Standard footnote placement in two-column documents.
24478 \begin_layout Standard
24479 \begin_inset Float figure
24485 \begin_layout Plain Layout
24489 \begin_layout Plain Layout
24499 \begin_inset Graphics
24500 filename clipart/with_fntright.pdf
24502 scaleBeforeRotation
24510 \begin_layout Plain Layout
24520 \begin_layout Plain Layout
24521 \begin_inset Caption
24523 \begin_layout Plain Layout
24524 \begin_inset CommandInset label
24526 name "fig:Footnote-placement-in"
24530 Footnote placement in two-column documents when the LaTeX-package
24547 \begin_layout Standard
24548 \begin_inset VSpace bigskip
24551 In some scientific literature it is usual to collect the footnotes and print
24552 them in a separate paragraph at the the end of a section, like in Figure
24553 \begin_inset space ~
24557 \begin_inset CommandInset ref
24559 reference "fig:Endnotes----footnotes"
24564 They are then so called
24565 \begin_inset Quotes eld
24569 \begin_inset Quotes erd
24576 \begin_layout Plain Layout
24582 To use endnotes instead of footnotes in your document, load the LaTeX-package
24591 \begin_layout Plain Layout
24592 LaTeX-packages ! endnotes
24597 with the document preamble lines
24600 \begin_layout Standard
24605 usepackage{endnotes}
24606 \begin_inset Newline newline
24618 \begin_layout Standard
24619 To insert the collected footnotes, insert the command
24622 \begin_layout Standard
24630 \begin_layout Standard
24631 in TeX-Code at the the end of a section or chapter.
24634 \begin_layout Standard
24635 \begin_inset Float figure
24640 \begin_layout Plain Layout
24645 \begin_layout Plain Layout
24655 \begin_inset Graphics
24656 filename clipart/endnotes.pdf
24657 scaleBeforeRotation
24665 \begin_layout Plain Layout
24675 \begin_layout Plain Layout
24676 \begin_inset Caption
24678 \begin_layout Plain Layout
24679 \begin_inset CommandInset label
24681 name "fig:Endnotes----footnotes"
24685 Endnotes -- footnotes are printed in a separate paragraph at the end of
24686 sections or chapters.
24699 \begin_layout Standard
24700 \begin_inset VSpace medskip
24703 The paragraph heading for the endnotes isn't automatically translated into
24704 the document language, this must be done manually.
24705 The following preamble command translate the default English name
24706 \begin_inset Quotes eld
24710 \begin_inset Quotes erd
24713 to the German translation
24714 \begin_inset Quotes eld
24718 \begin_inset Quotes erd
24724 \begin_layout Standard
24731 notesname}{Anmerkungen}
24734 \begin_layout Standard
24735 \begin_inset VSpace medskip
24738 The numbering of endnotes can be changed like the footnote numbering as
24739 described in section
24740 \begin_inset space ~
24744 \begin_inset CommandInset ref
24746 reference "sub:Footnote-Numbering"
24750 ; just replace the command
24763 To reset the endnote number use the command
24769 as described in section
24770 \begin_inset space ~
24774 \begin_inset CommandInset ref
24776 reference "sub:Footnote-Numbering"
24780 and replace the command parameter
24791 \begin_layout Standard
24792 To create only a mark for an endnote, use the command
24796 endnotemark[number]
24798 similar to the command
24804 , described in section
24805 \begin_inset space ~
24809 \begin_inset CommandInset ref
24811 reference "sec:Footnotes"
24818 \begin_layout Standard
24819 \begin_inset VSpace bigskip
24822 Footnotes can also be placed in the page margin and the footnote text alignment
24823 can be changed, see the LaTeX-package
24831 \begin_layout Plain Layout
24832 LaTeX-packages ! footmisc
24838 \begin_inset CommandInset citation
24844 for more information about this.
24847 \begin_layout Standard
24848 For various further footnote formatting issues have a look at LaTeX-books,
24850 \begin_inset CommandInset citation
24852 key "latexcompanion,latexguide,latexbook"
24859 \begin_layout Section
24864 \begin_layout Plain Layout
24865 Notes ! Margin Notes
24873 \begin_layout Standard
24874 Margin notes look and behave in LyX like footnotes.
24875 They are inserted via the menu
24877 Insert\SpecialChar \menuseparator
24879 \begin_inset space ~
24884 or the toolbar button
24885 \begin_inset Graphics
24886 filename ../images/marginalnote-insert.png
24888 scaleBeforeRotation
24903 \begin_inset Quotes eld
24907 \begin_inset Quotes erd
24910 appears where you can enter the text of the margin note.
24913 \begin_layout Standard
24914 At the side is an example margin note.
24919 \begin_inset Marginal
24922 \begin_layout Plain Layout
24923 This is a margin note.
24931 \begin_layout Standard
24932 Margin notes appear at the right side in single-sided documents.
24933 In double-sided documents they appear in the outer margin -- left on even
24934 pages, right on odd pages.
24935 The text of margin notes is aligned opposite to the outer margin -- right-align
24936 ed when the note appears in the left margin.
24937 The first line of the margin note is placed at the position of the text
24938 line where it is inserted in the document.
24941 \begin_layout Standard
24942 \begin_inset VSpace bigskip
24945 To place the margin note in the inner margin, add the command
24948 \begin_layout Standard
24956 \begin_layout Standard
24957 in TeX-Code before a margin note.
24958 The new placement is valid for all following margin notes.
24963 \begin_layout Plain Layout
24973 \begin_inset Marginal
24976 \begin_layout Plain Layout
24977 This is a margin note in the inner margin.
24985 \begin_inset Newline newline
24991 \begin_inset Note Greyedout
24994 \begin_layout Plain Layout
24999 There is often not enough space in the inner margin so that the notes are
25000 not correctly displayed in the output.
25008 \begin_layout Standard
25009 To return to the default placement insert the command
25012 \begin_layout Standard
25020 \begin_layout Standard
25025 \begin_layout Plain Layout
25035 \begin_inset Note Greyedout
25038 \begin_layout Plain Layout
25043 The command is ignored when it is within a paragraph where also the command
25058 \begin_layout Standard
25059 \begin_inset VSpace bigskip
25066 \begin_inset Marginal
25069 \begin_layout Plain Layout
25070 AVeryLongMarginParWord that isn't hyphenated.
25078 Similar to the case described in section
25079 \begin_inset space ~
25083 \begin_inset CommandInset ref
25085 reference "sub:Multiple-Lines-in"
25089 , long words cannot be hyphenated when they are the first word in a margin
25091 To avoid this, insert 0
25092 \begin_inset space \thinspace{}
25095 pt horizontal space before the word
25100 \begin_inset Marginal
25103 \begin_layout Plain Layout
25104 \begin_inset space \hspace*{}
25108 AVeryLongMarginParWord that is hyphenated.
25116 \begin_layout Standard
25117 \begin_inset VSpace bigskip
25123 \begin_layout Standard
25124 \begin_inset Note Greyedout
25127 \begin_layout Plain Layout
25132 Margin notes can normally not be used inside tables, floats, and footnotes.
25140 \begin_layout Standard
25141 \begin_inset VSpace bigskip
25147 \begin_layout Standard
25151 \begin_layout Plain Layout
25161 \begin_inset Note Note
25164 \begin_layout Plain Layout
25165 The following section will only be displayed when the LaTeX-package
25177 \begin_layout Standard
25178 This restriction can be evaded by using the LaTeX-package
25186 \begin_layout Plain Layout
25187 LaTeX-packages ! marginnote
25193 By adding these two lines to your document preamble, the command used by
25194 LyX for margin notes is redefined to use the command provided by the
25201 \begin_layout Standard
25206 usepackage{marginnote}
25207 \begin_inset Newline newline
25219 \begin_layout Standard
25220 This is also used in this document because
25224 has another useful feature: You can set a vertical offset for the note.
25225 This is often needed when too many margin notes are too close together
25226 or for a better page layout.
25227 The offset is set in LyX as TeX-Code directly behind the margin note in
25231 \begin_layout Standard
25237 \begin_layout Standard
25238 where the offset is a length with one of the units listed in Table
25239 \begin_inset space ~
25243 \begin_inset CommandInset ref
25245 reference "tab:Units"
25250 A negative value shifts the note up, a positive value shifts it down.
25254 For example the margin note beside this text line is shifted up 1.5
25255 \begin_inset space \thinspace{}
25258 cm with the TeX-Code-command
25259 \begin_inset Quotes eld
25269 \begin_inset Quotes erd
25273 \begin_inset Marginal
25276 \begin_layout Plain Layout
25277 This margin note is shifted up 1.5
25278 \begin_inset space \thinspace{}
25281 cm from its original position.
25293 \begin_layout Plain Layout
25303 \begin_layout Standard
25304 \begin_inset VSpace medskip
25311 you can also change the alignment of the text in the margin note.
25312 For example the commands
25315 \begin_layout Standard
25322 raggedleftmarginnote}{
25325 \begin_inset Newline newline
25332 raggedrightmarginnote}{
25337 \begin_layout Standard
25338 set the alignment to centered.
25343 raggedleftmarginnote
25345 denotes margin notes that appear at the left side.
25352 \begin_layout Plain Layout
25358 raggedleftmarginnote}{
25363 \begin_layout Plain Layout
25369 raggedrightmarginnote}{
25377 \begin_inset Marginal
25380 \begin_layout Plain Layout
25381 The text of this margin note is centered.
25392 \begin_layout Standard
25399 raggedleftmarginnote}{
25402 \begin_inset Newline newline
25409 raggedrightmarginnote}{
25418 \begin_layout Plain Layout
25424 raggedleftmarginnote}{
25429 \begin_layout Plain Layout
25435 raggedrightmarginnote}{
25445 \begin_layout Standard
25446 \begin_inset VSpace medskip
25449 For the other features of
25453 we refer to its documentation
25454 \begin_inset CommandInset citation
25463 \begin_layout Standard
25464 \begin_inset VSpace bigskip
25467 You can adjust the layout of margin notes by changing its definition.
25468 To create for example a header for all margin notes with the underlined,
25469 sans-serif, and bold header text
25470 \begin_inset Quotes eld
25482 \begin_inset Quotes erd
25485 , add this to your document preamble:
25488 \begin_layout Standard
25498 \begin_inset Newline newline
25508 \begin_inset Newline newline
25515 \begin_layout Plain Layout
25532 underbar{Attention!}}}%
25533 \begin_inset Newline newline
25540 \begin_layout Plain Layout
25558 \begin_layout Standard
25565 \begin_layout Plain Layout
25576 \begin_layout Plain Layout
25587 \begin_layout Plain Layout
25595 underbar{Attention!}}}%
25598 \begin_layout Plain Layout
25612 \begin_inset Marginal
25615 \begin_layout Plain Layout
25616 This is a margin note with a defined heading.
25628 \begin_layout Plain Layout
25642 \begin_layout Plain Layout
25659 \begin_inset Note Note
25662 \begin_layout Plain Layout
25663 The margin note format is changed only for this example.
25671 \begin_layout Standard
25675 \begin_layout Plain Layout
25685 \begin_inset Note Note
25688 \begin_layout Plain Layout
25689 The following will be displayed when the LaTeX-package
25701 \begin_layout Standard
25702 You need to install the LaTeX-package
25706 to see the following part of this section in the output.
25709 \begin_layout Standard
25713 \begin_layout Plain Layout
25725 \begin_layout Chapter
25729 \begin_layout Section
25734 \begin_layout Plain Layout
25735 Boxes ! Introduction
25743 \begin_layout Standard
25744 Boxes are used to format a block of text.
25745 Boxes can be used to write documents with multiple languages, see section
25746 \begin_inset space ~
25750 \begin_inset CommandInset ref
25752 reference "sec:Minipages"
25756 , to frame texts, see section
25757 \begin_inset space ~
25761 \begin_inset CommandInset ref
25763 reference "sec:Decoration"
25767 , to prevent words to be hyphenated, see section
25768 \begin_inset space ~
25772 \begin_inset CommandInset ref
25774 reference "sec:Prevent-Hyphenation"
25778 , to align text, see section
25779 \begin_inset space ~
25783 \begin_inset CommandInset ref
25785 reference "sub:Vertical-Alignment"
25789 , or to set the background color of texts, see section
25790 \begin_inset space ~
25794 \begin_inset CommandInset ref
25796 reference "sec:Colored-Boxes"
25803 \begin_layout Standard
25804 Boxes can be inserted with the menu
25806 Insert\SpecialChar \menuseparator
25809 or the toolbar button
25810 \begin_inset Graphics
25811 filename ../images/box-insert.png
25813 scaleBeforeRotation
25818 A grey box with the label
25823 \begin_inset Graphics
25824 filename clipart/BoxInsetDefaultQt4.png
25826 scaleBeforeRotation
25831 The box type can be specified by right-clicking on the box.
25832 The appearing box dialog offers the
25835 \begin_inset space ~
25853 is the default for new boxes and is explained in section
25854 \begin_inset space ~
25858 \begin_inset CommandInset ref
25860 reference "sec:Minipages"
25868 is described in section
25869 \begin_inset space ~
25873 \begin_inset CommandInset ref
25875 reference "sec:Parboxes"
25882 \begin_layout Standard
25883 Boxes aren't numbered and can therefore not be referenced like floats or
25887 \begin_layout Standard
25888 \begin_inset Note Greyedout
25891 \begin_layout Plain Layout
25896 Boxes must not be the item in an
25912 \begin_layout Standard
25913 \begin_inset Note Greyedout
25916 \begin_layout Plain Layout
25921 For an unknown reason you can only set the
25924 \begin_inset space ~
25933 when you use a framed box.
25937 \begin_inset space ~
25942 type and without frames are explained in section
25943 \begin_inset space ~
25947 \begin_inset CommandInset ref
25949 reference "sec:Prevent-Hyphenation"
25961 \begin_layout Section
25963 \begin_inset CommandInset label
25965 name "sec:Box-Dialog"
25973 \begin_layout Plain Layout
25982 \begin_layout Subsection
25987 \begin_layout Plain Layout
25996 \begin_layout Standard
25997 In the box dialog you can adjust the box geometry in the fields
26006 The available units for the geometry are explained in Table
26007 \begin_inset space ~
26011 \begin_inset CommandInset ref
26013 reference "tab:Units"
26022 offers the following additional sizes:
26025 \begin_layout Description
26026 Depth This is the plain text
26027 \begin_inset Quotes eld
26031 \begin_inset Quotes erd
26035 It ignores the total depth when there are multiple text lines in the box:
26036 \begin_inset Newline newline
26040 \begin_inset Newline newline
26044 \begin_inset Newline newline
26048 \begin_inset Box Boxed
26057 height_special "depth"
26060 \begin_layout Plain Layout
26062 Box height set to 1
26063 \begin_inset space \thinspace{}
26072 \begin_inset Newline newline
26076 \begin_inset Newline newline
26082 \begin_layout Description
26083 Height This is the heigth of the text that is inside the box.
26085 \begin_inset space \thinspace{}
26089 \begin_inset space ~
26092 2 for this size will set the box heigth to 2 times the text height:
26093 \begin_inset Box Boxed
26102 height_special "height"
26105 \begin_layout Plain Layout
26107 Box height set to 2
26108 \begin_inset space \thinspace{}
26119 \begin_layout Description
26121 \begin_inset space ~
26124 Height This is the Height
26125 \begin_inset space \thinspace{}
26129 \begin_inset space \thinspace{}
26133 \begin_inset Box Boxed
26142 height_special "totalheight"
26145 \begin_layout Plain Layout
26147 Box height set to 1
26148 \begin_inset space \thinspace{}
26152 \begin_inset space ~
26163 \begin_layout Description
26164 Width This sets the width of the box as heigth:
26165 \begin_inset Box Boxed
26174 height_special "width"
26177 \begin_layout Plain Layout
26179 Box height set to 1
26180 \begin_inset space \thinspace{}
26191 \begin_layout Subsection
26196 \begin_layout Plain Layout
26205 \begin_layout Standard
26206 When you have chosen an
26209 \begin_inset space ~
26214 , the vertical box alignment can be:
26217 \begin_layout Description
26218 Top This is an example text line.
26220 \begin_inset Box Boxed
26229 height_special "totalheight"
26232 \begin_layout Plain Layout
26234 This box is top-aligned.
26239 This is an example text line.
26242 \begin_layout Description
26243 Middle This is an example text line.
26245 \begin_inset Box Boxed
26254 height_special "totalheight"
26257 \begin_layout Plain Layout
26259 This box is middle-aligned.
26264 This is an example text line.
26267 \begin_layout Description
26268 Bottom This is an example text line.
26270 \begin_inset Box Boxed
26279 height_special "totalheight"
26282 \begin_layout Plain Layout
26284 This box is bottom-aligned.
26289 This is an example text line.
26292 \begin_layout Standard
26293 \begin_inset Note Greyedout
26296 \begin_layout Plain Layout
26301 The vertical box aligment can be lost in the output when you have two boxes
26302 in a line and one has e.
26303 \begin_inset space \thinspace{}
26307 \begin_inset space ~
26310 a shadow and the other one not.
26318 \begin_layout Standard
26319 The horizontal box alignment can be set via LyX's paragraph dialog when
26320 you set the box into its own paragraph.
26323 \begin_layout Standard
26324 \begin_inset VSpace bigskip
26327 When you have chosen an
26330 \begin_inset space ~
26335 , the box content can be vertical aligned to:
26338 \begin_layout Description
26339 top This is an example text line.
26341 \begin_inset Box Boxed
26350 height_special "totalheight"
26353 \begin_layout Plain Layout
26355 This box text is top-aligned.
26360 This is an example text line.
26363 \begin_layout Description
26364 middle This is an example text line.
26366 \begin_inset Box Boxed
26375 height_special "totalheight"
26378 \begin_layout Plain Layout
26380 This box text is middle-aligned.
26385 This is an example text line.
26388 \begin_layout Description
26389 bottom This is an example text line.
26391 \begin_inset Box Boxed
26400 height_special "totalheight"
26403 \begin_layout Plain Layout
26405 This box text is bottom-aligned.
26410 This is an example text line.
26413 \begin_layout Description
26414 stretch This is an example text line.
26416 \begin_inset Box Boxed
26425 height_special "totalheight"
26428 \begin_layout Plain Layout
26433 \begin_layout Plain Layout
26438 \begin_layout Plain Layout
26445 This is an example text line.
26448 \begin_layout Standard
26449 To stretch the box content, it must consist of more than one paragraph.
26450 In the example above every text line is in an own paragraph.
26453 \begin_layout Standard
26454 \begin_inset VSpace bigskip
26457 To align the box content horizontally you can use LyX's paragraph dialog
26458 when you have chosen an
26461 \begin_inset space ~
26469 \begin_layout Standard
26471 \begin_inset Box Boxed
26480 height_special "totalheight"
26483 \begin_layout Plain Layout
26488 \begin_layout Plain Layout
26493 \begin_layout Plain Layout
26503 \begin_layout Standard
26504 If you haven't set an
26507 \begin_inset space ~
26512 , you can align the box content horizontally in the box dialog.
26515 \begin_layout Standard
26517 \begin_inset Box Boxed
26526 height_special "totalheight"
26529 \begin_layout Plain Layout
26531 This box text is horizontally stretched.
26539 \begin_layout Subsection
26541 \begin_inset CommandInset label
26543 name "sec:Decoration"
26551 \begin_layout Plain Layout
26560 \begin_layout Standard
26561 The type of the box can be specified in the box-dialog in the drop-down
26567 The following types are possible:
26570 \begin_layout Description
26572 \begin_inset space ~
26576 \begin_inset space ~
26579 frame This draws a rectangle frame around the box.
26580 The frame line thickness has the size of
26588 \begin_inset Box Boxed
26597 height_special "totalheight"
26600 \begin_layout Plain Layout
26610 \begin_layout Description
26612 \begin_inset space ~
26616 \begin_inset space ~
26619 break When you use the decoration
26621 simple rectangular frame
26623 and no inner box, you can allow page breaks within a box.
26624 Note that then, in contrary to other framed boxes, the frame always uses
26625 the whole column width, the box is set as its own paragraph, and
26637 has no effect on this box type.
26638 The frame line thickness has the size of
26646 \begin_inset Box Framed
26655 height_special "totalheight"
26658 \begin_layout Plain Layout
26659 Allow page break box
26667 \begin_layout Description
26669 \begin_inset space ~
26673 \begin_inset space ~
26676 thin This draws an oval frame around the box.
26677 The frame line thickness has the size 0.4
26678 \begin_inset space \thinspace{}
26683 \begin_inset Box ovalbox
26692 height_special "totalheight"
26695 \begin_layout Plain Layout
26705 \begin_layout Description
26707 \begin_inset space ~
26711 \begin_inset space ~
26714 thick This draws an oval frame around the box.
26715 The frame line thickness has the size 0.8
26716 \begin_inset space \thinspace{}
26721 \begin_inset Box Ovalbox
26730 height_special "totalheight"
26733 \begin_layout Plain Layout
26743 \begin_layout Description
26745 \begin_inset space ~
26748 shadow This draws a rectangle frame with a shadow around the box.
26749 The frame line thickness has the size of
26755 , the shadow has a width of 4
26756 \begin_inset space \thinspace{}
26761 \begin_inset Box Shadowbox
26770 height_special "totalheight"
26773 \begin_layout Plain Layout
26783 \begin_layout Description
26785 \begin_inset space ~
26788 background This draws a box with red background color.
26789 In contrary to colored boxes
26793 \begin_layout Plain Layout
26795 \begin_inset space \thinspace{}
26799 \begin_inset CommandInset ref
26801 reference "sec:Colored-Boxes"
26810 , it always uses the whole column width and the box is set as its own paragraph.
26812 \begin_inset Box Shaded
26821 height_special "totalheight"
26824 \begin_layout Plain Layout
26825 Shaded background box
26833 \begin_layout Description
26835 \begin_inset space ~
26839 \begin_inset space ~
26842 frame This draws a double-line rectangle frame around the box.
26843 The line thickness of the inner frame is 0.75
26844 \begin_inset space \thinspace{}
26853 , the thickness of the outer frame is 1.5
26854 \begin_inset space \thinspace{}
26864 The distance between the lines is 1.5
26865 \begin_inset space \thinspace{}
26875 \begin_inset space \thinspace{}
26879 \begin_inset space \thinspace{}
26883 \begin_inset space \thinspace{}
26888 \begin_inset Box Doublebox
26897 height_special "totalheight"
26900 \begin_layout Plain Layout
26902 Double rectangular box
26910 \begin_layout Standard
26911 \begin_inset VSpace bigskip
26914 LyX's box label will reflect the different frame types.
26915 To be able to use all types, the LaTeX-package
26923 \begin_layout Plain Layout
26924 LaTeX-packages ! fancybox
26932 \begin_layout Section
26937 \begin_layout Plain Layout
26938 Boxes ! Customization
26946 \begin_layout Standard
26947 The default value for the size
26954 \begin_inset space \thinspace{}
26958 It can be changed with the following command in TeX-Code to e.
26959 \begin_inset space \thinspace{}
26963 \begin_inset space ~
26967 \begin_inset space \thinspace{}
26973 \begin_layout Standard
26983 \begin_layout Standard
26987 \begin_layout Plain Layout
26999 \begin_inset Box Boxed
27008 height_special "totalheight"
27011 \begin_layout Plain Layout
27013 Rectangular box with
27020 \begin_inset space \thinspace{}
27024 \begin_inset space \thinspace{}
27028 \begin_inset space \thinspace{}
27040 \begin_layout Plain Layout
27054 \begin_layout Standard
27055 \begin_inset VSpace bigskip
27058 The space between the frame and the box content is for all frame styles
27060 \begin_inset space \thinspace{}
27064 You can change it by setting the length
27071 For example the command
27074 \begin_layout Standard
27084 \begin_layout Standard
27085 sets the value to 10
27086 \begin_inset space \thinspace{}
27089 pt, like for the following box:
27092 \begin_layout Standard
27096 \begin_layout Plain Layout
27108 \begin_inset Box Boxed
27117 height_special "totalheight"
27120 \begin_layout Plain Layout
27122 Rectangular box with
27129 \begin_inset space \thinspace{}
27133 \begin_inset space \thinspace{}
27137 \begin_inset space \thinspace{}
27149 \begin_layout Plain Layout
27163 \begin_layout Standard
27164 \begin_inset VSpace bigskip
27167 The diameter of the round corners of the oval boxes can be set with the
27178 \begin_layout Standard
27186 \begin_layout Standard
27187 sets the diameter to 1
27188 \begin_inset space \thinspace{}
27195 \begin_layout Standard
27203 \begin_layout Standard
27204 sets the diameter to
27207 \begin_inset space \thinspace{}
27211 \begin_inset space \thinspace{}
27214 minimum(width and heigth of box)
27226 \begin_layout Standard
27230 \begin_layout Plain Layout
27240 \begin_inset Box Ovalbox
27249 height_special "totalheight"
27252 \begin_layout Plain Layout
27261 \begin_inset space \thinspace{}
27265 \begin_inset space \thinspace{}
27269 \begin_inset space \thinspace{}
27281 \begin_layout Plain Layout
27293 \begin_layout Standard
27294 \begin_inset VSpace bigskip
27297 The size of the shadow can be adjusted by changing the length
27305 \begin_inset space \thinspace{}
27308 pt for the following box by this command:
27311 \begin_layout Standard
27321 \begin_layout Standard
27325 \begin_layout Plain Layout
27337 \begin_inset Box Shadowbox
27346 height_special "totalheight"
27349 \begin_layout Plain Layout
27358 \begin_inset space \thinspace{}
27362 \begin_inset space \thinspace{}
27366 \begin_inset space \thinspace{}
27378 \begin_layout Plain Layout
27392 \begin_layout Standard
27393 \begin_inset VSpace bigskip
27399 \begin_layout Standard
27400 The default value for the size
27407 \begin_inset space \thinspace{}
27411 The default space between the note content and the frame is 9
27412 \begin_inset space \thinspace{}
27415 pt and can be changed with the value of
27422 For example the frame appearance of the following
27426 is set with the TeX-Code commands
27429 \begin_layout Standard
27437 \begin_inset Newline newline
27447 \begin_layout Standard
27451 \begin_layout Plain Layout
27460 \begin_layout Plain Layout
27472 \begin_inset Box Framed
27481 height_special "totalheight"
27484 \begin_layout Plain Layout
27498 \begin_layout Plain Layout
27507 \begin_layout Plain Layout
27521 \begin_layout Standard
27522 \begin_inset VSpace bigskip
27528 \begin_layout Standard
27533 boxes the default space between the box content and the box border is 3
27534 \begin_inset space \thinspace{}
27537 pt and can be changed with the value of
27544 The default background color red can either be changed locally with the
27549 definecolor{shadebox}
27551 or globally with the menu
27553 Tools\SpecialChar \menuseparator
27554 Preferences\SpecialChar \menuseparator
27555 Colors\SpecialChar \menuseparator
27557 \begin_inset space ~
27569 command is explained in section
27570 \begin_inset space ~
27574 \begin_inset CommandInset ref
27576 reference "sec:Colored-Tables"
27584 \begin_layout Plain Layout
27591 requires the LaTeX-package
27595 in the preamble, see section
27596 \begin_inset space ~
27600 \begin_inset CommandInset ref
27602 reference "sec:Colored-Boxes"
27611 For example the appearance of the following shaded background note is set
27612 with the TeX-Code commands
27615 \begin_layout Standard
27625 \begin_inset Newline newline
27632 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
27635 \begin_layout Standard
27639 \begin_layout Plain Layout
27648 \begin_layout Plain Layout
27652 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
27658 \begin_inset Box Shaded
27667 height_special "totalheight"
27670 \begin_layout Plain Layout
27673 This is yellow text in a
27683 box with dark green background.
27692 \begin_layout Plain Layout
27701 \begin_layout Plain Layout
27705 definecolor{shadecolor}{rgb}{1,0,0}
27713 \begin_layout Standard
27714 \begin_inset VSpace bigskip
27717 Changed lengths and widths are valid for all boxes following the commands
27721 \begin_layout Section
27723 \begin_inset CommandInset label
27725 name "sec:Minipages"
27733 \begin_layout Plain Layout
27742 \begin_layout Standard
27743 Minipages are treated by LaTeX as pages within pages and can therefore for
27744 example have their own footnotes.
27747 \begin_layout Standard
27748 Minipages are useful when you write documents with different languages.
27751 \begin_layout Standard
27752 Below are two example minipages side by side.
27753 Their width is set to 45
27754 \begin_inset space \thinspace{}
27757 col% and they are separated by a horizontal fill, that was inserted via
27760 Insert\SpecialChar \menuseparator
27762 \begin_inset space ~
27765 Formatting\SpecialChar \menuseparator
27767 \begin_inset space ~
27773 \begin_inset Newpage newpage
27779 \begin_layout Standard
27780 \begin_inset Box Frameless
27789 height_special "totalheight"
27792 \begin_layout Plain Layout
27795 Dies ist ein deutscher Text.
27796 Dies ist ein deutscher Text.
27797 Dies ist ein deutscher Text.
27798 Dies ist ein deutscher Text.
27799 Dies ist ein deutscher Text.
27800 Dies ist ein deutscher Text.
27801 Dies ist ein deutscher Text.
27802 Dies ist ein deutscher Text.
27803 Dies ist ein deutscher Text.
27804 Dies ist ein deutscher Text.
27805 Dies ist ein deutscher Text.
27806 Dies ist ein deutscher Text.
27807 Dies ist ein deutscher Text
27811 \begin_layout Plain Layout
27814 Dies ist eine deutsche Fußnote.
27820 Dies ist ein deutscher Text.
27821 Dies ist ein deutscher Text.
27827 \begin_inset space \hfill{}
27831 \begin_inset Box Frameless
27840 height_special "totalheight"
27843 \begin_layout Plain Layout
27844 This is an English Text.
27845 This is an English Text.
27846 This is an English Text.
27847 This is an English Text.
27848 This is an English Text.
27849 This is an English Text.
27850 This is an English Text.
27851 This is an English Text.
27852 This is an English Text.
27853 This is an English Text.
27854 This is an English Text.
27855 This is an English Text.
27856 This is an English Text.
27857 This is an English Text.
27858 This is an English Text.
27859 This is an English Text.
27863 \begin_layout Plain Layout
27864 This is an English footnote.
27869 This is an English Text.
27878 \begin_layout Standard
27879 \begin_inset VSpace bigskip
27882 Another application for minipages are footnotes within tables.
27883 Due to a LaTeX restriction footnotes within tables doesn't appear at the
27884 bottom of the current page.
27885 But when you put the table with the footnote to a minipage, the footnote
27886 will appear at its bottom, numbered with Latin letters.
27887 The footnote number is reset to 1 in every minipage but not outside the
27891 \begin_layout Standard
27892 The footnote of this table doesn't appear:
27893 \begin_inset Tabular
27894 <lyxtabular version="3" rows="3" columns="4">
27896 <column alignment="center" valignment="top" width="0pt">
27897 <column alignment="center" valignment="top" width="0pt">
27898 <column alignment="center" valignment="top" width="0pt">
27899 <column alignment="center" valignment="top" width="0pt">
27901 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27904 \begin_layout Plain Layout
27910 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27913 \begin_layout Plain Layout
27919 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27922 \begin_layout Plain Layout
27927 \begin_layout Plain Layout
27928 This is a footnote within a table.
27938 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27941 \begin_layout Plain Layout
27949 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27952 \begin_layout Plain Layout
27958 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27961 \begin_layout Plain Layout
27967 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27970 \begin_layout Plain Layout
27976 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27979 \begin_layout Plain Layout
27987 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27990 \begin_layout Plain Layout
27996 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27999 \begin_layout Plain Layout
28005 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28008 \begin_layout Plain Layout
28014 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28017 \begin_layout Plain Layout
28031 \begin_layout Standard
28033 \begin_inset Box Frameless
28042 height_special "totalheight"
28045 \begin_layout Plain Layout
28047 \begin_inset Tabular
28048 <lyxtabular version="3" rows="3" columns="4">
28050 <column alignment="center" valignment="top" width="0pt">
28051 <column alignment="center" valignment="top" width="0pt">
28052 <column alignment="center" valignment="top" width="0pt">
28053 <column alignment="center" valignment="top" width="0pt">
28055 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28058 \begin_layout Plain Layout
28064 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28067 \begin_layout Plain Layout
28073 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28076 \begin_layout Plain Layout
28081 \begin_layout Plain Layout
28082 This is a footnote within a table.
28092 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28095 \begin_layout Plain Layout
28103 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28106 \begin_layout Plain Layout
28112 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28115 \begin_layout Plain Layout
28121 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28124 \begin_layout Plain Layout
28130 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28133 \begin_layout Plain Layout
28141 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28144 \begin_layout Plain Layout
28150 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28153 \begin_layout Plain Layout
28159 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28162 \begin_layout Plain Layout
28168 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28171 \begin_layout Plain Layout
28190 \begin_layout Standard
28191 \begin_inset VSpace bigskip
28194 The document-wide paragraph settings are ignored within minipages.
28195 That means that there will be no space between paragraphs in minipages
28196 although you set it to e.
28197 \begin_inset space \thinspace{}
28201 \begin_inset space ~
28208 in the document settings.
28211 \begin_layout Standard
28212 Minipages can also be used to set a background color for text parts, see
28214 \begin_inset space ~
28218 \begin_inset CommandInset ref
28220 reference "sub:Color-for-Paragraphs"
28227 \begin_layout Standard
28228 \begin_inset Note Greyedout
28231 \begin_layout Plain Layout
28236 You cannot have floats or margin notes inside minipages but minipages can
28237 be used inside tables, floats, and other boxes.
28245 \begin_layout Section
28247 \begin_inset CommandInset label
28249 name "sec:Parboxes"
28257 \begin_layout Plain Layout
28266 \begin_layout Standard
28267 Parboxes are very similar to minipages with the difference that they cannot
28269 The main difference to minipages is that minipages are in contrary to parboxes
28270 no real boxes but LaTeX-environments.
28273 \begin_layout Standard
28275 \begin_inset Box Frameless
28284 height_special "totalheight"
28287 \begin_layout Plain Layout
28288 This a text within a parbox.
28289 This a text within a parbox.
28292 \begin_layout Plain Layout
28293 This footnote won't appear:
28297 \begin_layout Plain Layout
28298 This footnote is inside a parbox and will therefore not appear.
28311 \begin_layout Section
28312 Boxes for Words and Characters
28316 \begin_layout Plain Layout
28317 Boxes ! for Characters
28325 \begin_layout Subsection
28326 Prevent Hyphenation
28327 \begin_inset CommandInset label
28329 name "sec:Prevent-Hyphenation"
28337 \begin_layout Plain Layout
28338 Boxes ! to Prevent Hyphenation
28346 \begin_layout Standard
28347 You can use a special kind of boxes to prevent words or text to be hyphenated.
28348 \begin_inset Newline newline
28351 Here is an example text:
28354 \begin_layout Standard
28355 This line is an example to show how you can prevent the hyphenation of
28356 \begin_inset Quotes eld
28360 \begin_inset Quotes erd
28366 \begin_layout Standard
28367 To prevent the hyphenation of the word
28368 \begin_inset Quotes eld
28372 \begin_inset Quotes erd
28378 \begin_layout Standard
28386 \begin_layout Standard
28387 in TeX-Code before the word.
28388 Behind the word insert a closing brace
28389 \begin_inset Quotes eld
28397 \begin_inset Quotes erd
28403 \begin_layout Standard
28404 This is the result:
28407 \begin_layout Standard
28408 This line is an example to show how you can prevent the hyphenation of
28412 \begin_layout Plain Layout
28422 \begin_inset Quotes eld
28426 \begin_inset Quotes erd
28433 \begin_layout Plain Layout
28443 \begin_layout Standard
28444 You can alternatively set the command
28445 \begin_inset Quotes eld
28455 \begin_inset Quotes grd
28458 as TeX-Code directly before the word:
28461 \begin_layout Standard
28462 This line is an example to show how you can prevent the hyphenation of
28463 \begin_inset Quotes eld
28470 \begin_layout Plain Layout
28480 \begin_inset Quotes erd
28486 \begin_layout Standard
28487 Of course the word now protrudes over the side margin.
28488 To avoid this, add via the menu
28490 Insert\SpecialChar \menuseparator
28492 \begin_inset space ~
28495 Formatting\SpecialChar \menuseparator
28497 \begin_inset space ~
28506 ) a line break before the word:
28509 \begin_layout Standard
28510 This line is an example to show how you can prevent the hyphenation of
28511 \begin_inset Newline newline
28518 \begin_layout Plain Layout
28528 \begin_inset Quotes eld
28532 \begin_inset Quotes erd
28539 \begin_layout Plain Layout
28549 \begin_layout Subsection
28551 \begin_inset CommandInset label
28553 name "sub:Vertical-Alignment"
28561 \begin_layout Plain Layout
28562 Boxes ! for Vertical Alignment
28571 \begin_layout Plain Layout
28580 \begin_layout Standard
28581 With the help of the command
28587 you can align words, characters or other boxes vertically to the surrounding
28595 is used with the following scheme:
28598 \begin_layout Standard
28603 raisebox{lift}[height][depth]{box content}
28606 \begin_layout Standard
28607 The lift can be a positive value to raise the box or a negative value to
28611 \begin_layout Standard
28612 To align for example the word
28613 \begin_inset Quotes eld
28617 \begin_inset Quotes erd
28620 so that the bottom of the
28621 \begin_inset Quotes eld
28625 \begin_inset Quotes erd
28629 \begin_inset Quotes eld
28633 \begin_inset Quotes erd
28636 is at the baseline, insert the command
28639 \begin_layout Standard
28649 \begin_layout Standard
28650 in TeX-Code before the word.
28651 Behind the word insert a closing brace
28652 \begin_inset Quotes eld
28660 \begin_inset Quotes erd
28664 \begin_inset Newline newline
28667 This is the result:
28670 \begin_layout Standard
28671 This is a text line with the word
28675 \begin_layout Plain Layout
28687 \begin_inset Quotes eld
28691 \begin_inset Quotes erd
28698 \begin_layout Plain Layout
28708 \begin_layout Standard
28709 \begin_inset VSpace bigskip
28712 When you raise or lower characters in a line, the line distance will be
28716 \begin_layout Standard
28717 This is a text line with the word
28721 \begin_layout Plain Layout
28733 \begin_inset Quotes eld
28737 \begin_inset Quotes erd
28744 \begin_layout Plain Layout
28752 \begin_inset Newline newline
28755 This is a text line with the word
28759 \begin_layout Plain Layout
28769 \begin_inset Quotes eld
28773 \begin_inset Quotes erd
28780 \begin_layout Plain Layout
28790 \begin_layout Standard
28791 If you want to prevent this for a certain reason, set the box height to
28796 \begin_layout Standard
28806 \begin_layout Standard
28807 This is a text line with the word
28811 \begin_layout Plain Layout
28823 \begin_inset Quotes eld
28827 \begin_inset Quotes erd
28834 \begin_layout Plain Layout
28842 \begin_inset Newline newline
28845 This is a text line with the word
28849 \begin_layout Plain Layout
28853 raisebox{0.5cm}[0pt]{
28859 \begin_inset Quotes eld
28863 \begin_inset Quotes erd
28870 \begin_layout Plain Layout
28880 \begin_layout Section
28882 \begin_inset CommandInset label
28884 name "sec:Colored-Boxes"
28892 \begin_layout Plain Layout
28901 \begin_layout Subsection
28906 \begin_layout Plain Layout
28915 \begin_layout Standard
28916 To color the background of text the text must be put into a so called
28917 \begin_inset Quotes eld
28921 \begin_inset Quotes erd
28925 This requires that the LaTeX-package
28933 \begin_layout Plain Layout
28934 LaTeX-packages ! color
28939 is loaded in the document preamble with the command
28942 \begin_layout Standard
28947 @ifundefined{textcolor}
28948 \begin_inset Newline newline
28955 \begin_layout Plain Layout
28966 usepackage{color}}{}
28969 \begin_layout Standard
28974 will be loaded automatically by LyX when you color text
28978 \begin_layout Plain Layout
28979 To avoid that it is loaded twice the command
28993 \begin_layout Standard
28994 \begin_inset VSpace medskip
28997 Colorboxes are created with the command
29004 This will be used with the following scheme:
29007 \begin_layout Standard
29012 colorbox{color}{box content}
29015 \begin_layout Standard
29016 The box content can also be a box and colorboxes can also be within other
29020 \begin_layout Standard
29021 The following colors are predefined:
29022 \begin_inset Newline newline
29061 \begin_inset Newline newline
29064 You can also define your own color as described in section
29065 \begin_inset space ~
29069 \begin_inset CommandInset ref
29071 reference "sec:Colored-Tables"
29078 \begin_layout Standard
29080 \begin_inset space \thinspace{}
29084 \begin_inset space ~
29087 a red background for a word, insert the command
29090 \begin_layout Standard
29098 \begin_layout Standard
29099 before the word in TeX-Code.
29100 Behind the word insert a closing brace
29101 \begin_inset Quotes eld
29109 \begin_inset Quotes erd
29113 \begin_inset Newline newline
29116 This is the result:
29119 \begin_layout Standard
29120 This is a line where the word
29124 \begin_layout Plain Layout
29134 \begin_inset Quotes eld
29138 \begin_inset Quotes erd
29145 \begin_layout Plain Layout
29152 has a red background.
29155 \begin_layout Standard
29156 \begin_inset VSpace bigskip
29159 If you would have the box frame in a different color, you can use the command
29166 with the following scheme:
29169 \begin_layout Standard
29174 fcolorbox{frame color}{box color}{box content}
29177 \begin_layout Standard
29191 The frame thickness and the space between the frame and the box content
29192 can be adjusted with the lengths
29204 , respectively, as described in section
29205 \begin_inset space ~
29209 \begin_inset CommandInset ref
29211 reference "sec:Decoration"
29218 \begin_layout Standard
29219 For the following example the command
29222 \begin_layout Standard
29227 fcolorbox{cyan}{magenta}{
29230 \begin_layout Standard
29234 \begin_layout Standard
29235 Here is an example where the frame line thickness was set to 1
29236 \begin_inset space \thinspace{}
29240 \begin_inset Newline newline
29247 \begin_layout Plain Layout
29262 \begin_layout Plain Layout
29266 fcolorbox{cyan}{magenta}{
29271 This is text within a colored, framed box.
29275 \begin_layout Plain Layout
29285 \begin_layout Standard
29286 \begin_inset VSpace bigskip
29289 Of course you can also have colored text inside a colorbox:
29290 \begin_inset Newline newline
29297 \begin_layout Plain Layout
29301 fcolorbox{cyan}{magenta}{
29308 This is colored text within a colored, framed box.
29314 \begin_layout Plain Layout
29325 \begin_layout Plain Layout
29339 \begin_layout Standard
29342 \begin_inset VSpace medskip
29348 \begin_layout Standard
29349 \begin_inset Note Greyedout
29352 \begin_layout Plain Layout
29357 Text in colorboxes cannot have line breaks.
29358 To color multiple text lines or paragraphs, use a box inside a colorbox
29359 as described in the following.
29367 \begin_layout Subsection
29368 Color for Paragraphs
29369 \begin_inset CommandInset label
29371 name "sub:Color-for-Paragraphs"
29379 \begin_layout Plain Layout
29380 Color ! for Paragraphs
29388 \begin_layout Standard
29389 To set the background color for more than one text line, put the text into
29391 Before the minipage insert the
29400 \begin_layout Standard
29408 \begin_layout Standard
29410 Behind the minipage insert a closing brace
29411 \begin_inset Quotes eld
29419 \begin_inset Quotes erd
29425 \begin_layout Standard
29429 \begin_layout Plain Layout
29433 colorbox{lightgrey}{
29439 \begin_inset Box Frameless
29448 height_special "totalheight"
29451 \begin_layout Plain Layout
29452 This is text with background color.
29453 This is text with background color.
29456 \begin_layout Plain Layout
29457 \begin_inset VSpace defskip
29460 The text can have footnotes
29464 \begin_layout Plain Layout
29465 Another example footnote
29470 and can include tables and figures.
29473 \begin_layout Plain Layout
29475 \begin_inset Tabular
29476 <lyxtabular version="3" rows="3" columns="3">
29478 <column alignment="center" valignment="top" width="0">
29479 <column alignment="center" valignment="top" width="0">
29480 <column alignment="center" valignment="top" width="0">
29482 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29485 \begin_layout Plain Layout
29491 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29494 \begin_layout Plain Layout
29500 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29503 \begin_layout Plain Layout
29511 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29514 \begin_layout Plain Layout
29520 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29523 \begin_layout Plain Layout
29525 \begin_inset Quotes erd
29533 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29536 \begin_layout Plain Layout
29544 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29547 \begin_layout Plain Layout
29553 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29556 \begin_layout Plain Layout
29562 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29565 \begin_layout Plain Layout
29585 \begin_layout Plain Layout
29595 \begin_layout Section
29596 Rotated and Scaled Boxes
29599 \begin_layout Standard
29600 To use the the commands described in this section, the LaTeX-package
29608 \begin_layout Plain Layout
29609 LaTeX-packages ! graphicx
29614 needs to be loaded in the document preamble with the command
29617 \begin_layout Standard
29622 @ifundefined{rotatebox}
29623 \begin_inset Newline newline
29630 \begin_layout Plain Layout
29641 usepackage{graphicx}}{}
29644 \begin_layout Standard
29645 \begin_inset Note Greyedout
29648 \begin_layout Plain Layout
29653 Some DVI-viewers can't display rotated or scaled material.
29661 \begin_layout Standard
29662 \begin_inset Note Greyedout
29665 \begin_layout Plain Layout
29670 Floats mustn't be inside a rotated or scaled box.
29678 \begin_layout Subsection
29683 \begin_layout Plain Layout
29693 \begin_layout Plain Layout
29703 \begin_layout Plain Layout
29713 \begin_layout Plain Layout
29714 Table Customization ! Rotating
29722 \begin_layout Standard
29723 To rotate material, you can put it into a rotated box.
29724 Such a box is created using the command
29730 in TeX-Code with the following scheme:
29733 \begin_layout Standard
29738 rotatebox[rotation origin]{rotation angle}{box content}
29741 \begin_layout Standard
29742 The rotation origin is specified in the form
29747 The following positions are possible:
29767 (top), and also expedient combinations of the four base positions.
29772 means, that the rotation origin is at the top left corner of the box.
29773 When no rotation origin is specified, the position
29778 The rotation angle is a number that can be negative that specifies the
29780 The rotation direction is counterclockwise.
29783 \begin_layout Standard
29784 In the following example the command
29788 rotatebox[origin=c]{60}{
29790 was inserted as TeX-Code before the text
29791 \begin_inset Quotes eld
29795 \begin_inset Quotes erd
29798 ; after the text the box was closed by a closing brace
29805 \begin_layout Standard
29810 \begin_layout Plain Layout
29814 rotatebox[origin=c]{60}{
29823 \begin_layout Plain Layout
29833 \begin_layout Standard
29834 The box content can also be another box or an inline formula:
29837 \begin_layout Standard
29842 \begin_layout Plain Layout
29846 rotatebox[origin=r]{-60}{
29852 \begin_inset Box Doublebox
29861 height_special "totalheight"
29864 \begin_layout Plain Layout
29874 \begin_layout Plain Layout
29885 \begin_layout Plain Layout
29889 rotatebox[origin=lb]{60}{
29895 \begin_inset Formula $\int A\,\mathrm{d}x=B$
29902 \begin_layout Plain Layout
29912 \begin_layout Standard
29913 or an image or table:
29916 \begin_layout Standard
29921 \begin_layout Plain Layout
29925 rotatebox[origin=lb]{90}{
29931 \begin_inset Graphics
29932 filename clipart/platypus.eps
29942 \begin_layout Plain Layout
29949 with a rotated image
29953 \begin_layout Plain Layout
29957 rotatebox[origin=l]{-90}{
29963 \begin_inset Tabular
29964 <lyxtabular version="3" rows="2" columns="2">
29966 <column alignment="center" valignment="top" width="0">
29967 <column alignment="center" valignment="top" width="0">
29969 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29972 \begin_layout Plain Layout
29978 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29981 \begin_layout Plain Layout
29989 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29992 \begin_layout Plain Layout
29998 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30001 \begin_layout Plain Layout
30016 \begin_layout Plain Layout
30026 \begin_layout Subsection
30031 \begin_layout Plain Layout
30041 \begin_layout Plain Layout
30051 \begin_layout Plain Layout
30061 \begin_layout Plain Layout
30062 Table Customization ! Scaling
30070 \begin_layout Standard
30071 To scale material the commands
30083 can be used as TeX-Code.
30086 \begin_layout Standard
30093 is used with the following scheme:
30096 \begin_layout Standard
30101 scalebox{horizontal}[vertical]{box content}
30104 \begin_layout Standard
30105 Horizontal and vertical are the corresponding scaling factors.
30106 If no vertical scaling factor is given, the horizontal factor will also
30107 be used as vertical one.
30110 \begin_layout Standard
30117 creates for example a double size
30121 \begin_layout Plain Layout
30134 \begin_layout Plain Layout
30141 , compared to the document text size.
30144 \begin_layout Standard
30149 scalebox{2}[1]{Hello}
30151 in contrary distorts the
30155 \begin_layout Plain Layout
30168 \begin_layout Plain Layout
30178 \begin_layout Standard
30179 If a the scaling factor is negative, the box content will be mirrored.
30180 Therefore the command
30184 scalebox{-1}[1]{Hello}
30186 can be used to create mirror writing:
30190 \begin_layout Plain Layout
30203 \begin_layout Plain Layout
30213 \begin_layout Standard
30218 scalebox{1}[-1]{Hello}
30224 \begin_layout Plain Layout
30237 \begin_layout Plain Layout
30247 \begin_layout Standard
30252 scalebox{-1}[1]{box content}
30254 there exists the command
30255 \begin_inset Newline newline
30262 reflectbox{box content}
30267 \begin_layout Standard
30268 \begin_inset VSpace bigskip
30277 is used to scale the box to a defined width and height.
30278 The command scheme is:
30281 \begin_layout Standard
30286 resizebox{width}{height}{box content}
30289 \begin_layout Standard
30290 Is one of the two command arguments given as exclamation mark
30294 , the size is set so that the aspect ratio of the box content is kept.
30297 \begin_layout Standard
30302 resizebox{2cm}{1cm}{Hello}
30308 \begin_layout Plain Layout
30312 resizebox{2cm}{1cm}{
30321 \begin_layout Plain Layout
30329 \begin_inset Newline newline
30336 resizebox{2cm}{!}{Hello}
30342 \begin_layout Plain Layout
30355 \begin_layout Plain Layout
30365 \begin_layout Standard
30366 \begin_inset VSpace bigskip
30370 \begin_inset Note Greyedout
30373 \begin_layout Plain Layout
30390 are set to zero, no LaTeX-errors occur when exporting the document but
30391 the exported files can not or only partly be displayed.
30399 \begin_layout Standard
30400 \begin_inset VSpace bigskip
30406 \begin_layout Standard
30407 The boxes can be combined in any order.
30409 \begin_inset space \thinspace{}
30413 \begin_inset space ~
30417 \begin_inset Newline newline
30424 rotatebox[origin=c]{-45}{
30428 reflectbox{Hello}}}
30429 \begin_inset Newline newline
30437 \begin_layout Standard
30442 \begin_layout Plain Layout
30446 rotatebox[origin=c]{-45}{
30459 \begin_layout Plain Layout
30469 \begin_layout Standard
30471 Images, tables, and inline formulas are allowed as box content:
30474 \begin_layout Standard
30479 \begin_layout Plain Layout
30483 rotatebox[origin=c]{-30}{
30493 \begin_inset Graphics
30494 filename clipart/platypus.eps
30504 \begin_layout Plain Layout
30515 \begin_layout Plain Layout
30519 rotatebox[origin=c]{-45}{
30529 \begin_inset Tabular
30530 <lyxtabular version="3" rows="2" columns="2">
30532 <column alignment="center" valignment="top" width="0">
30533 <column alignment="center" valignment="top" width="0">
30535 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30538 \begin_layout Plain Layout
30544 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30547 \begin_layout Plain Layout
30555 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30558 \begin_layout Plain Layout
30564 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30567 \begin_layout Plain Layout
30582 \begin_layout Plain Layout
30593 \begin_layout Plain Layout
30597 rotatebox[origin=c]{-45}{
30607 \begin_inset Formula $\int A\,\mathrm{d}x=B$
30614 \begin_layout Plain Layout
30624 \begin_layout Standard
30625 When the global formula style
30629 is used in the document
30633 \begin_layout Plain Layout
30635 \begin_inset Quotes eld
30639 \begin_inset Quotes erd
30642 is added to the document class options.
30647 , also display formulas can be scaled.
30650 \begin_layout Chapter
30655 \begin_layout Plain Layout
30664 \begin_layout Standard
30667 Insert\SpecialChar \menuseparator
30670 you can insert external material to your document.
30674 \begin_layout Description
30676 \begin_inset space ~
30679 Document Another LyX document; its content is directly inserted to your
30683 \begin_layout Description
30685 \begin_inset space ~
30688 Text A text document; every of its text lines is inserted to your document
30692 \begin_layout Description
30694 \begin_inset space ~
30698 \begin_inset space ~
30702 \begin_inset space ~
30705 Lines A text document; its text lines are inserted as they are.
30706 Empty text lines creates a new paragraph in your document.
30709 \begin_layout Description
30711 \begin_inset space ~
30714 Material Files in various formats.
30717 \begin_layout Description
30719 \begin_inset space ~
30722 Document LyX or LaTeX-documents.
30725 \begin_layout Section
30730 \begin_layout Plain Layout
30731 External Stuff ! External Material
30739 \begin_layout Standard
30740 The external material feature allows you to insert files to your document
30741 without converting them previously to a format that can be read by the
30742 document output format because LyX takes care of needed conversions.
30743 This is similar to images that can be inserted in various image formats
30747 \begin_layout Standard
30748 External material can be inserted via the
30752 dialog that is accessible with the menu
30754 Insert\SpecialChar \menuseparator
30755 File\SpecialChar \menuseparator
30757 \begin_inset space ~
30763 Currently the following file types (
30770 \begin_layout Description
30771 ChessDiagram This template supports chess position diagrams made with the
30775 \begin_inset CommandInset href
30778 target "http://en.wikipedia.org/wiki/XBoard"
30787 \begin_layout Description
30788 Date This inserts the date in the form
30793 This is a date inserted as external material:
30794 \begin_inset External
30801 \begin_inset space ~
30805 \begin_inset Note Note
30808 \begin_layout Plain Layout
30809 Remove the protected space when bug 4398 is fixed!
30815 \begin_inset Newline newline
30818 The date is not shown within LyX, only in the output.
30819 There are two other methods of inserting a date: Via menu
30821 Insert\SpecialChar \menuseparator
30824 and with the LaTeX command
30831 The different methods are compared in Table
30832 \begin_inset space ~
30836 \begin_inset CommandInset ref
30838 reference "tab:Comparison-of-the"
30845 \begin_layout Description
30846 LilyPond This template is used for music notation typeset with the program
30847 \begin_inset Newline linebreak
30853 \begin_inset CommandInset href
30856 target "http://en.wikipedia.org/wiki/LilyPond"
30865 \begin_layout Description
30866 PDFPages With this template you can insert PDF documents to your document.
30867 To insert certain or all pages of a PDF, use the
30877 LaTeX and LyX options
30879 tab according to the template description in the dialog.
30884 option is given, only the first page of the PDF will be inserted.
30887 \begin_layout Description
30888 RasterImage This can be used for bitmap images.
30889 Nearly all popular image formats are supported.
30890 The image can be treated in the
30894 dialog like the images that are usually included via the
30898 dialog as described in section
30899 \begin_inset space ~
30903 \begin_inset CommandInset ref
30905 reference "sec:Graphics-Dialog"
30910 The difference is that only raster images are allowed, that means that
30911 PDF and EPS-images are not supported.
30914 \begin_layout Description
30915 XFig This template supports images created with the program
30918 \begin_inset CommandInset href
30921 target "http://en.wikipedia.org/wiki/Xfig"
30930 \begin_layout Standard
30931 \begin_inset Float table
30937 \begin_layout Plain Layout
30938 \begin_inset Caption
30940 \begin_layout Plain Layout
30941 \begin_inset CommandInset label
30943 name "tab:Comparison-of-the"
30947 Comparison of the date input methods.
30955 \begin_layout Plain Layout
30957 \begin_inset Tabular
30958 <lyxtabular version="3" rows="4" columns="4">
30960 <column alignment="center" valignment="top" width="0">
30961 <column alignment="center" valignment="top" width="0">
30962 <column alignment="center" valignment="top" width="0">
30963 <column alignment="center" valignment="top" width="0">
30965 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30968 \begin_layout Plain Layout
30974 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30977 \begin_layout Plain Layout
30980 External Material\SpecialChar \menuseparator
30986 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30989 \begin_layout Plain Layout
30992 Insert\SpecialChar \menuseparator
30998 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31001 \begin_layout Plain Layout
31013 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31016 \begin_layout Plain Layout
31022 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31025 \begin_layout Plain Layout
31031 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31034 \begin_layout Plain Layout
31040 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31043 \begin_layout Plain Layout
31044 as TeX-Code inset box
31051 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31054 \begin_layout Plain Layout
31060 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31063 \begin_layout Plain Layout
31069 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31072 \begin_layout Plain Layout
31078 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31081 \begin_layout Plain Layout
31089 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31092 \begin_layout Plain Layout
31098 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31101 \begin_layout Plain Layout
31107 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31110 \begin_layout Plain Layout
31116 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31119 \begin_layout Plain Layout
31138 \begin_layout Standard
31139 When you use the option
31151 dialog, only the path to the inserted file is shown in the output.
31152 \begin_inset Newline newline
31155 External material is displayed in LyX either as box like this:
31156 \begin_inset Graphics
31157 filename clipart/ExternalMaterialQt4.png
31159 scaleBeforeRotation
31163 or as image, depending on the option
31169 LaTeX and LyX options
31174 \begin_layout Standard
31181 manual explains how you can define your own templates.
31184 \begin_layout Section
31186 \begin_inset CommandInset label
31188 name "sec:Child-Documents"
31196 \begin_layout Plain Layout
31197 External Stuff ! Child Documents
31206 \begin_layout Plain Layout
31215 \begin_layout Standard
31216 Child documents are used when you have a long document consisting of several
31217 larger parts or sections.
31218 For maintenance it is often useful and sometimes even required to split
31219 the document in several files that can be revised separately.
31220 The different documents are then the so called child documents and a master
31221 document connects them to print the full document or parts of it.
31224 \begin_layout Standard
31225 Included documents are displayed in LyX as a box like this:
31226 \begin_inset Graphics
31227 filename clipart/ChildDocumentQt4.png
31229 scaleBeforeRotation
31233 To include child documents to a master document use the menu
31235 Insert\SpecialChar \menuseparator
31236 File\SpecialChar \menuseparator
31238 \begin_inset space ~
31244 A dialog pops up where you can choose between four include methods:
31247 \begin_layout Description
31248 Include You can include LyX and LaTeX-documents.
31257 dialog, the included documents will be opened in LyX in a new file tab
31258 so that you can modify it.
31259 \begin_inset Newline newline
31265 \begin_layout Standard
31266 Here is a child document inserted using
31271 \begin_inset CommandInset include
31272 LatexCommand include
31273 filename "DummyDocument1.lyx"
31280 \begin_layout Standard
31281 The section numbering includes the sections of the included files in the
31282 order they are inserted in the master document.
31283 The included example document has for example a subsection that is numbered
31284 as subsection of this section.
31285 Labels of included documents can be referenced: Subsection
31286 \begin_inset space ~
31290 \begin_inset CommandInset ref
31292 reference "sub:External-Subsection-1"
31299 \begin_layout Standard
31300 The preamble of the child document is ignored, only the preamble of the
31301 master document is used.
31302 Included documents are inserted starting on a new page and end with a page
31306 \begin_layout Standard
31307 With the LaTeX-command
31313 you can specify which included child documents are processed when the output
31315 This is useful when you are perhaps only working on a certain chapter of
31316 your large document as this saves compiling time.
31323 is inserted to the master document preamble.
31324 It takes a comma-separated list of the filenames as argument, e.g.
31327 \begin_layout Standard
31332 includeonly{chapter1,chapter5}
31335 \begin_layout Standard
31336 will only process the included files named
31337 \begin_inset Quotes eld
31341 \begin_inset Quotes erd
31345 \begin_inset Quotes eld
31349 \begin_inset Quotes erd
31353 \begin_inset Quotes eld
31357 \begin_inset Quotes erd
31363 \begin_layout Standard
31364 \begin_inset Note Greyedout
31367 \begin_layout Plain Layout
31372 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
31373 w the document in case that the child document uses another document class
31374 than the master document as this will lead to unexpected outputs.
31382 \begin_layout Description
31383 Input This method is very similar to the Include method.
31384 The differences are:
31388 \begin_layout Itemize
31389 Input files don't start with a new page and don't end with a page break.
31392 \begin_layout Itemize
31393 Input files can be previewed in LyX when
31396 \begin_inset space ~
31401 is enabled in LyX's preferences under
31404 \begin_inset space ~
31408 \begin_inset space ~
31411 feel\SpecialChar \menuseparator
31417 \begin_layout Itemize
31428 \begin_layout Standard
31429 Here is a child document inserted using
31434 \begin_inset CommandInset include
31436 filename "DummyDocument2.lyx"
31443 \begin_layout Description
31444 Verbatim With this method every text file can be included.
31445 The file is shown in the output with its source code, no command used in
31446 the text is invoked.
31447 You can use the option
31449 Mark spaces in output
31451 that displays the character
31452 \begin_inset Quotes eld
31459 \begin_layout Plain Layout
31469 \begin_inset Quotes erd
31472 for every space character in the source code.
31473 The difference to the method via the menu
31475 Insert\SpecialChar \menuseparator
31476 File\SpecialChar \menuseparator
31478 \begin_inset space ~
31483 is that the document content is not shown in LyX.
31486 \begin_layout Standard
31487 Here is a child document inserted as Verbatim:
31488 \begin_inset CommandInset include
31489 LatexCommand verbatiminput
31490 filename "DummyTextDocument.txt"
31495 \begin_inset VSpace bigskip
31498 Here is a child document inserted as Verbatim using the
31500 Mark spaces in output
31503 \begin_inset CommandInset include
31504 LatexCommand verbatiminput*
31505 filename "DummyTextDocument.txt"
31512 \begin_layout Standard
31513 \begin_inset VSpace bigskip
31519 \begin_layout Standard
31520 \begin_inset Note Greyedout
31523 \begin_layout Plain Layout
31528 As you can see in the examples above, the text of the documents included
31533 is not broken at the end of the document lines.
31541 \begin_layout Description
31542 Listings This type is described in chapter
31543 \begin_inset space ~
31547 \begin_inset CommandInset ref
31549 reference "cha:Program-Code-Listings"
31556 \begin_layout Standard
31557 \begin_inset Note Greyedout
31560 \begin_layout Plain Layout
31565 Including the same document twice in a document using different methods
31566 could cause LaTeX-problems.
31574 \begin_layout Chapter
31575 Program Code Listings
31576 \begin_inset CommandInset label
31578 name "cha:Program-Code-Listings"
31586 \begin_layout Plain Layout
31596 \begin_layout Plain Layout
31606 \begin_layout Plain Layout
31615 \begin_layout Standard
31616 To include and typeset program code you can use the
31620 inset that can be inserted via the menu
31622 Insert\SpecialChar \menuseparator
31634 \begin_layout Plain Layout
31635 LaTeX-packages ! listings
31640 provides a powerful and flexible way to insert program source code to your
31644 \begin_layout Standard
31645 Right-clicking on a listings inset opens the context menu containing where
31646 you can set the listings format.
31649 \begin_layout Standard
31650 By default, a listing starts a new paragraph in the output.
31651 The placement option
31654 \begin_inset space ~
31659 prints the listing inline like this:
31660 \begin_inset listings
31661 lstparams "language={C++}"
31665 \begin_layout Plain Layout
31673 \begin_inset Newline newline
31680 creates a listings float where you can specify the placement options
31681 \begin_inset Quotes eld
31689 \begin_inset Quotes erd
31693 \begin_inset Quotes eld
31701 \begin_inset Quotes erd
31705 \begin_inset Quotes eld
31713 \begin_inset Quotes erd
31717 \begin_inset Quotes eld
31725 \begin_inset Quotes erd
31728 corresponding to the float placement options described in section
31729 \begin_inset space ~
31733 \begin_inset CommandInset ref
31735 reference "sec:Float-Placement"
31740 The placement options can be mixed and are inserted without any separation,
31742 \begin_inset space \thinspace{}
31746 \begin_inset space ~
31750 \begin_inset Quotes eld
31758 \begin_inset Quotes erd
31763 \begin_inset Quotes eld
31767 \begin_inset Quotes erd
31770 has sometimes no effect, but you don't need to use the
31774 option in this case as also non-float listings can have captions and be
31778 \begin_layout Standard
31779 You can add captions to listings with the menu
31781 Insert\SpecialChar \menuseparator
31785 Listings can be referenced like floats: Listing
31786 \begin_inset space ~
31790 \begin_inset CommandInset ref
31792 reference "lst:Example-Listing"
31799 \begin_layout Standard
31800 \begin_inset listings
31801 lstparams "language=Python"
31805 \begin_layout Plain Layout
31807 \begin_inset Caption
31809 \begin_layout Plain Layout
31810 \begin_inset CommandInset label
31812 name "lst:Example-Listing"
31816 Example Listing float
31821 # Example listing float
31824 \begin_layout Plain Layout
31829 \begin_layout Plain Layout
31831 'this is a python function'
31834 \begin_layout Plain Layout
31844 \begin_layout Standard
31845 When you have set a programming language in the listings dialog, the keywords
31846 of this language will be recognized and specially typeset in the output.
31847 In the example listings the Python keyword
31848 \begin_inset Quotes eld
31852 \begin_inset Quotes erd
31855 is recognized and printed bold in the output.
31858 \begin_layout Standard
31859 \begin_inset Note Greyedout
31862 \begin_layout Plain Layout
31867 If you don't get bold keywords when using typewriter fonts, your
31871 font probably doesn't provide a bold shape.
31872 In this case select a different one in the menu
31874 Document\SpecialChar \menuseparator
31875 Settings\SpecialChar \menuseparator
31887 provide bold shapes.)
31895 \begin_layout Standard
31899 \begin_inset space ~
31904 of the listings dialog you can specify the line numbering style.
31905 You can insert a number to specify which lines are numbered to the field
31911 When you insert e.g.
31913 \begin_inset Quotes eld
31917 \begin_inset Quotes erd
31920 , only every 3rd line will be numbered.
31923 \begin_layout Standard
31924 You can furthermore specify a range of lines, only these will then appear
31928 Extended character table
31930 should be used when you use national characters like the German umlauts
31932 \begin_inset Newline newline
31935 Here is an example listing with left line numbering, step
31936 \begin_inset Quotes eld
31940 \begin_inset Quotes erd
31944 \begin_inset Quotes eld
31948 \begin_inset Quotes erd
31952 \begin_inset Quotes eld
31955 Extended character table
31956 \begin_inset Quotes erd
31960 \begin_inset Quotes eld
31964 \begin_inset space ~
31968 \begin_inset space ~
31972 \begin_inset Quotes erd
31976 \begin_inset space \thinspace{}
31980 \begin_inset space \thinspace{}
31986 \begin_layout Standard
31987 \begin_inset listings
31988 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
31992 \begin_layout Plain Layout
31997 \begin_layout Plain Layout
31999 'this is a python function'
32002 \begin_layout Plain Layout
32007 \begin_layout Plain Layout
32012 \begin_layout Plain Layout
32014 'This is a German word: Tschüß'
32017 \begin_layout Plain Layout
32022 \begin_layout Plain Layout
32027 \begin_layout Plain Layout
32029 'this is a python function'
32032 \begin_layout Plain Layout
32042 \begin_layout Standard
32043 \begin_inset Note Greyedout
32046 \begin_layout Plain Layout
32051 Due to a bug in the
32055 package the line numbering is shifted by a line by every previous listing.
32056 That's the reason why the lines 2 and 5 are numbered in the above listing
32057 and not the lines 3 and 6.
32065 \begin_layout Standard
32066 \begin_inset VSpace bigskip
32072 \begin_layout Standard
32073 It is also possible to print lines from a file as listing.
32074 To do this, use the menu
32076 Insert\SpecialChar \menuseparator
32077 File\SpecialChar \menuseparator
32080 and choose the type
32088 \begin_layout Plain Layout
32089 The other child document types are described in section
32090 \begin_inset space ~
32094 \begin_inset CommandInset ref
32096 reference "sec:Child-Documents"
32105 In the child document dialog you can specify the listing parameters in
32107 To show a list of all available parameters, type in a question mark
32108 \begin_inset Quotes eld
32112 \begin_inset Quotes erd
32118 \begin_layout Standard
32119 To reference child document listings, write a label text into the corresponding
32120 field of the child document dialog.
32121 The label can then be referenced using the menu
32123 Insert\SpecialChar \menuseparator
32129 \begin_layout Standard
32131 \begin_inset space ~
32135 \begin_inset CommandInset ref
32137 reference "lst:file-listing"
32141 is an example for a listing of a file; there the lines 10
32142 \begin_inset space \thinspace{}
32146 \begin_inset space \thinspace{}
32149 15 of this LyX file are listed.
32152 \begin_layout Standard
32153 \begin_inset CommandInset include
32154 LatexCommand lstinputlisting
32155 filename "EmbeddedObjects.lyx"
32156 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
32163 \begin_layout Standard
32164 \begin_inset VSpace bigskip
32170 \begin_layout Standard
32171 Global listings settings can be set in the
32173 Document\SpecialChar \menuseparator
32174 Settings\SpecialChar \menuseparator
32178 To get there a list of available options, type in a question mark
32179 \begin_inset Quotes eld
32183 \begin_inset Quotes erd
32189 \begin_inset space ~
32197 \begin_layout Standard
32198 For more information about the
32202 package, we refer to its documentation
32203 \begin_inset CommandInset citation
32212 \begin_layout Standard
32213 \begin_inset Newpage newpage
32219 \begin_layout Chapter
32221 Units available in LyX
32225 \begin_layout Plain Layout
32232 \begin_inset CommandInset label
32234 name "cha:Units-available-in"
32241 \begin_layout Standard
32242 To understand the units described in this documentation, Table
32243 \begin_inset space ~
32247 \begin_inset CommandInset ref
32249 reference "tab:Units"
32253 explains all units available in LyX.
32256 \begin_layout Standard
32257 \begin_inset Float table
32263 \begin_layout Plain Layout
32264 \begin_inset Caption
32266 \begin_layout Plain Layout
32267 \begin_inset CommandInset label
32281 \begin_layout Plain Layout
32282 \begin_inset VSpace medskip
32288 \begin_layout Plain Layout
32290 \begin_inset Tabular
32291 <lyxtabular version="3" rows="20" columns="2">
32293 <column alignment="center" valignment="top" width="0">
32294 <column alignment="center" valignment="top" width="0">
32296 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32299 \begin_layout Plain Layout
32305 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
32308 \begin_layout Plain Layout
32316 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32319 \begin_layout Plain Layout
32325 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32328 \begin_layout Plain Layout
32336 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32339 \begin_layout Plain Layout
32345 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32348 \begin_layout Plain Layout
32356 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32359 \begin_layout Plain Layout
32365 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32368 \begin_layout Plain Layout
32376 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32379 \begin_layout Plain Layout
32385 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32388 \begin_layout Plain Layout
32390 \begin_inset space \thinspace{}
32394 \begin_inset space \thinspace{}
32404 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32407 \begin_layout Plain Layout
32413 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32416 \begin_layout Plain Layout
32418 \begin_inset space \thinspace{}
32422 \begin_inset space \thinspace{}
32432 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32435 \begin_layout Plain Layout
32441 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32444 \begin_layout Plain Layout
32445 scaled point (65536
32446 \begin_inset space \thinspace{}
32450 \begin_inset space \thinspace{}
32460 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32463 \begin_layout Plain Layout
32469 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32472 \begin_layout Plain Layout
32474 \begin_inset space \thinspace{}
32478 \begin_inset space \thinspace{}
32488 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32491 \begin_layout Plain Layout
32497 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32500 \begin_layout Plain Layout
32502 \begin_inset space \thinspace{}
32506 \begin_inset Formula $\approx$
32510 \begin_inset space \thinspace{}
32520 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32523 \begin_layout Plain Layout
32529 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32532 \begin_layout Plain Layout
32534 \begin_inset space \thinspace{}
32538 \begin_inset space \thinspace{}
32548 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32551 \begin_layout Plain Layout
32557 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32560 \begin_layout Plain Layout
32561 % of original image width
32568 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32571 \begin_layout Plain Layout
32577 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32580 \begin_layout Plain Layout
32588 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32591 \begin_layout Plain Layout
32597 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32600 \begin_layout Plain Layout
32608 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32611 \begin_layout Plain Layout
32617 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32620 \begin_layout Plain Layout
32628 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32631 \begin_layout Plain Layout
32637 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32640 \begin_layout Plain Layout
32648 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32651 \begin_layout Plain Layout
32657 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32660 \begin_layout Plain Layout
32668 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32671 \begin_layout Plain Layout
32677 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32680 \begin_layout Plain Layout
32688 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32691 \begin_layout Plain Layout
32697 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32700 \begin_layout Plain Layout
32712 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32715 \begin_layout Plain Layout
32721 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32724 \begin_layout Plain Layout
32736 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32739 \begin_layout Plain Layout
32745 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
32748 \begin_layout Plain Layout
32750 \begin_inset space \thinspace{}
32754 \begin_inset space \thinspace{}
32775 \begin_layout Chapter
32776 Output File Formats with Graphics
32777 \begin_inset CommandInset label
32779 name "cha:Output-File-Formats"
32786 \begin_layout Section
32791 \begin_layout Plain Layout
32801 \begin_layout Plain Layout
32806 \begin_layout Plain Layout
32817 \begin_layout Plain Layout
32832 \begin_layout Standard
32833 This file type has the extension
32834 \begin_inset Quotes eld
32842 \begin_inset Quotes erd
32847 \begin_inset Quotes eld
32851 \begin_inset Quotes erd
32854 (DVI), because it is completely portable; you can move them from one machine
32855 to another without needing to do any sort of conversion.
32856 At the time when this file-format was developed, this was no matter of
32858 DVIs are used for quick previews and as pre-stage for other output formats,
32862 \begin_layout Standard
32863 \begin_inset Note Greyedout
32866 \begin_layout Plain Layout
32871 DVI-files doesn't contain images, they will only be a linked.
32876 So don't forget this, if you move your
32880 file to another computer.
32881 This property can also slow down your computer when you view the DVI.
32882 Because the DVI-viewer has to convert the image in the background to make
32883 it visible when you scroll in the DVI.
32884 So we recommend to use PDF for files with many images.
32887 \begin_layout Standard
32888 You can export your document to DVI by using the menu
32890 File\SpecialChar \menuseparator
32891 Export\SpecialChar \menuseparator
32895 You can view your document as DVI via the
32899 menu or by using the toolbar button
32900 \begin_inset Graphics
32901 filename ../images/buffer-view_dvi.png
32903 scaleBeforeRotation
32910 \begin_layout Section
32912 \begin_inset CommandInset label
32914 name "sec:PostScript"
32922 \begin_layout Plain Layout
32923 File Formats ! PostScript
32932 \begin_layout Plain Layout
32937 \begin_layout Plain Layout
32948 \begin_layout Plain Layout
32963 \begin_layout Standard
32964 This file type has the extension
32965 \begin_inset Quotes eld
32973 \begin_inset Quotes erd
32977 PostScript was developed by the company
32981 as printer language.
32982 The file contains therefore commands that the printer uses to print the
32984 PostScript can be seen as
32985 \begin_inset Quotes eld
32988 programming language
32989 \begin_inset Quotes erd
32992 ; you can calculate with it and draw diagrams and images
32996 \begin_layout Plain Layout
32997 If you are interested to learn more about this, have a look at the LaTeX-package
33003 \begin_inset CommandInset citation
33015 Due to this ability, the files are often bigger than PDFs.
33018 \begin_layout Standard
33019 PostScript can only contain images in the format
33020 \begin_inset Quotes eld
33023 Encapsulated PostScript
33024 \begin_inset Quotes erd
33027 (EPS, file extension
33028 \begin_inset Quotes eld
33036 \begin_inset Quotes erd
33040 As LyX allows you to use any known image format in your document, it has
33041 to convert images in the background to EPS.
33042 If you have e.g 50 images in your document, LyX has to do 50 conversions
33043 whenever you view or export your document.
33044 This will slow down your work flow with LyX drastically.
33045 So if you plan to use PostScript, you can insert your images directly as
33046 EPS to avoid this problem.
33049 \begin_layout Standard
33050 You can export your document to PostScript using the menu
33052 File\SpecialChar \menuseparator
33053 Export\SpecialChar \menuseparator
33057 You can view your document as PostScript via the
33061 menu or by using the toolbar button
33062 \begin_inset Graphics
33063 filename ../images/buffer-view_ps.png
33065 scaleBeforeRotation
33072 \begin_layout Section
33077 \begin_layout Plain Layout
33087 \begin_layout Plain Layout
33096 \begin_layout Standard
33097 This file type has the extension
33098 \begin_inset Quotes eld
33106 \begin_inset Quotes erd
33111 \begin_inset Quotes eld
33114 Portable Document Format
33115 \begin_inset Quotes erd
33118 (PDF) is developed by
33122 as derivative from PostScript.
33123 It is more compressed and it uses much less commands than PostScript.
33125 \begin_inset Quotes eld
33129 \begin_inset Quotes erd
33132 implies, it can be processed at any computer system and the printed output
33133 looks exactly the same.
33136 \begin_layout Standard
33137 PDF can contain images in its own PDF format, in the format
33138 \begin_inset Quotes eld
33141 Joint Photographic Experts Group
33142 \begin_inset Quotes erd
33145 (JPG, file extension
33146 \begin_inset Quotes eld
33154 \begin_inset Quotes erd
33158 \begin_inset Quotes eld
33166 \begin_inset Quotes erd
33169 ), and in the format
33170 \begin_inset Quotes eld
33173 Portable Network Graphics
33174 \begin_inset Quotes erd
33177 (PNG, file extension
33178 \begin_inset Quotes eld
33186 \begin_inset Quotes erd
33190 Nevertheless you can use any other image format, because LyX converts them
33191 in the background to one of these formats.
33192 But as described in the section about PostScript, the image conversion
33193 will slow down your work flow.
33194 So it is recommended to use images in one of the three mentioned formats.
33197 \begin_layout Standard
33198 You can export your document to PDF via the menu
33200 File\SpecialChar \menuseparator
33203 in three different ways:
33206 \begin_layout Description
33208 \begin_inset space ~
33211 (ps2pdf) This uses the program
33215 that creates a PDF from a PostScript-version of your file.
33216 The PostScript-version is produced by the program
33220 which uses a DVI-version as intermediate step.
33221 So this export variant consist of three conversions.
33224 \begin_layout Description
33226 \begin_inset space ~
33229 (dvipdfm) This uses the program
33233 that converts your file in the background to DVI and in a second step to
33237 \begin_layout Description
33239 \begin_inset space ~
33242 (pdflatex) This uses the program
33246 that converts your file directly to PDF.
33249 \begin_layout Standard
33250 It is recommended to use
33253 \begin_inset space ~
33262 supports all features of actual PDF-versions, is quick and works stable
33268 is not under development and therefore a bit outdated.
33271 \begin_layout Standard
33272 You can view your document as PDF via the
33276 menu or by using the toolbar button
33277 \begin_inset Graphics
33278 filename ../images/buffer-view_pdf2.png
33280 scaleBeforeRotation
33291 \begin_inset space ~
33299 \begin_layout Chapter
33300 Explanation of Equation
33301 \begin_inset space ~
33305 \begin_inset CommandInset ref
33312 \begin_inset CommandInset label
33314 name "cha:Explanation-of-Equation"
33321 \begin_layout Standard
33327 \begin_inset Formula $W_{\mathrm{tot\, n}}$
33330 can be calculated to
33333 \begin_layout Standard
33334 \begin_inset Formula \begin{equation}
33335 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}
33342 \begin_layout Standard
33344 \begin_inset Formula $W_{g\, n}$
33347 is the given width of all cells.
33354 is the LaTeX-length between the cell text and the cell border, its default
33356 \begin_inset space \thinspace{}
33366 is the thickness of the cell border line, the default is 0.4
33367 \begin_inset space \thinspace{}
33373 \begin_layout Standard
33375 \begin_inset space ~
33379 \begin_inset CommandInset ref
33381 reference "eq:Wtot_n"
33385 , the total width of a multicolumn
33386 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
33392 \begin_layout Standard
33393 \begin_inset Formula \begin{equation}
33394 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
33401 \begin_layout Standard
33402 By setting equation
33403 \begin_inset space ~
33407 \begin_inset CommandInset ref
33409 reference "eq:Wtot_n"
33414 \begin_inset CommandInset ref
33416 reference "eq:Wtot_mult"
33420 equal we can calculate the needed given width
33421 \begin_inset Formula $W_{g\, n}$
33428 columns are spanned, so that each column has a total width of
33429 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
33435 \begin_layout Standard
33436 \begin_inset Formula \begin{equation}
33437 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
33444 \begin_layout Bibliography
33445 \begin_inset CommandInset bibitem
33446 LatexCommand bibitem
33447 key "latexcompanion"
33451 Frank Mittelbach and Michel Goossens:
33453 The LaTeX Companion Second Edition.
33456 Addison-Wesley, 2004
33459 \begin_layout Bibliography
33460 \begin_inset CommandInset bibitem
33461 LatexCommand bibitem
33466 Helmut Kopka and Patrick W.
33469 A Guide to LaTeX Fourth Edition.
33472 Addison-Wesley, 2003
33475 \begin_layout Bibliography
33476 \begin_inset CommandInset bibitem
33477 LatexCommand bibitem
33484 LaTeX: A Document Preparation System.
33487 Addison-Wesley, second edition, 1994
33490 \begin_layout Bibliography
33491 \begin_inset CommandInset bibitem
33492 LatexCommand bibitem
33497 Documentation of the LaTeX-package
33500 \begin_inset CommandInset href
33503 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
33513 \begin_layout Plain Layout
33514 LaTeX-packages ! booktabs
33522 \begin_layout Bibliography
33523 \begin_inset CommandInset bibitem
33524 LatexCommand bibitem
33529 Documentation of the LaTeX-package
33532 \begin_inset CommandInset href
33535 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf"
33545 \begin_layout Plain Layout
33546 LaTeX-packages ! caption
33554 \begin_layout Bibliography
33555 \begin_inset CommandInset bibitem
33556 LatexCommand bibitem
33561 Documentation of the LaTeX-package
33564 \begin_inset CommandInset href
33567 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
33577 \begin_layout Plain Layout
33578 LaTeX-packages ! endfloat
33586 \begin_layout Bibliography
33587 \begin_inset CommandInset bibitem
33588 LatexCommand bibitem
33593 Documentation of the LaTeX-package
33596 \begin_inset CommandInset href
33599 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/wrapfig/wrapfig.sty"
33609 \begin_layout Plain Layout
33610 LaTeX-packages ! wrapfig
33614 \begin_layout Plain Layout
33631 \begin_layout Bibliography
33632 \begin_inset CommandInset bibitem
33633 LatexCommand bibitem
33638 Documentation of the LaTeX-package
33641 \begin_inset CommandInset href
33644 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
33654 \begin_layout Plain Layout
33655 LaTeX-packages ! footmisc
33663 \begin_layout Bibliography
33664 \begin_inset CommandInset bibitem
33665 LatexCommand bibitem
33670 Documentation of the LaTeX-package
33673 \begin_inset CommandInset href
33676 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
33686 \begin_layout Plain Layout
33687 LaTeX-packages ! hyperref
33695 \begin_layout Bibliography
33696 \begin_inset CommandInset bibitem
33697 LatexCommand bibitem
33702 Documentation of the LaTeX-package
33705 \begin_inset CommandInset href
33708 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
33718 \begin_layout Plain Layout
33719 LaTeX-packages ! hyperref
33727 \begin_layout Bibliography
33728 \begin_inset CommandInset bibitem
33729 LatexCommand bibitem
33734 Documentation of the LaTeX-package
33737 \begin_inset CommandInset href
33740 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf"
33750 \begin_layout Plain Layout
33751 LaTeX-packages ! koma-script
33759 \begin_layout Bibliography
33760 \begin_inset CommandInset bibitem
33761 LatexCommand bibitem
33766 Documentation of the LaTeX-package
33769 \begin_inset CommandInset href
33772 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
33782 \begin_layout Plain Layout
33783 LaTeX-packages ! listings
33791 \begin_layout Bibliography
33792 \begin_inset CommandInset bibitem
33793 LatexCommand bibitem
33798 Documentation of the LaTeX-package
33801 \begin_inset CommandInset href
33804 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
33814 \begin_layout Plain Layout
33815 LaTeX-packages ! marginnote
33823 \begin_layout Bibliography
33824 \begin_inset CommandInset bibitem
33825 LatexCommand bibitem
33830 Web page of the LaTeX-package
33833 \begin_inset CommandInset href
33836 target "http://tug.org/PSTricks/"
33846 \begin_layout Plain Layout
33847 LaTeX-packages ! PSTricks
33855 \begin_layout Bibliography
33856 \begin_inset CommandInset bibitem
33857 LatexCommand bibitem
33862 Documentation of the LaTeX-package
33865 \begin_inset CommandInset href
33868 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
33878 \begin_layout Plain Layout
33879 LaTeX-packages ! sidecap
33887 \begin_layout Bibliography
33888 \begin_inset CommandInset bibitem
33889 LatexCommand bibitem
33895 \begin_inset CommandInset href
33898 target "http://wiki.lyx.org/LyX/NewInLyX16"
33902 about new features in
33909 \begin_layout Standard
33910 \begin_inset CommandInset index_print
33911 LatexCommand printindex
33918 \begin_layout Standard
33919 \begin_inset FloatList figure
33926 \begin_layout Standard
33927 \begin_inset FloatList table
33934 \begin_layout Standard
33935 \begin_inset FloatList algorithm