1 #LyX 1.6.0rc5 created this file. For more info see http://www.lyx.org/
11 % set fonts for nicer pdf view
12 \IfFileExists{lmodern.sty}
13 {\usepackage{lmodern}}{}
15 \fi % end if pdflatex is used
17 % that links to image floats jumps
18 % to the beginning of the float and
20 \usepackage[figure]{hypcap}
22 % the pages of the TOC is numbered roman
23 % and a PDF-bookmark for the TOC is added
24 \let\myTOC\tableofcontents
25 \renewcommand\tableofcontents{%
27 \pdfbookmark[1]{\contentsname}{}
31 % provides caption formatting
32 \usepackage[labelfont={bf,sf}, tableposition=top]{caption}[2004/07/16]
34 % provides commands to set caption
35 % beside tables/images
38 \newcommand{\TabBesBeg}{%
40 \let\MyEndtable\endtable
41 \renewenvironment{table}{\begin{SCtable}}{\end{SCtable}}}
43 \newcommand{\TabBesEnd}{%
45 \let\endtable\MyEndtable}
47 \newcommand{\FigBesBeg}{%
49 \let\MyEndfigure\endfigure
50 \renewenvironment{figure}{\begin{SCfigure}}{\end{SCfigure}}}
52 \newcommand{\FigBesEnd}{%
54 \let\endfigure\MyEndfigure}
56 % enables calculation of values,
59 % provides special table cell alignments
62 % increase the bottom float placement fraction
63 \renewcommand{\bottomfraction}{0.5}
65 % avoids that floats are placed before their
66 % corresponding section starts
67 \let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
69 % speed up the longtable calculation
70 \setcounter{LTchunksize}{100}
72 % used for scaled and rotated boxes
73 \@ifundefined{rotatebox}{\usepackage{graphicx}}{}
75 % used for colored tables
76 \@ifundefined{textcolor}
77 {\usepackage{color}}{}
78 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
79 \definecolor{lightgrey}{gray}{0.8}
81 % check for package colortbl
82 % used for colored table cells
84 \IfFileExists{colortbl.sty}
85 {\usepackage{colortbl}
86 \setboolean{colortbl}{true}}
87 {\setboolean{colortbl}{false}}
91 %\renewcommand{\multirowsetup}{\centering}
93 % used for book-style tables
96 % used to have extra space in table cells
97 \@ifundefined{extrarowheight}
98 {\usepackage{array}}{}
99 \setlength{\extrarowheight}{2pt}
101 % used for customized tables
104 {>{\centering\hspace{0pt}}m{#1}}
107 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
110 {>{\columncolor{#1}\hspace{0pt}}c}
112 \newcolumntype{V}{!{\vrule width 1.5pt}}
114 \newcolumntype{W}{!{\color{green}\vline}}
117 % insert additional vertical space of
118 % 1.5 mm between footnotes
120 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
122 % number algorithm floats within chapters
123 \numberwithin{algorithm}{chapter}
125 % redefine the greyed out note
126 \renewenvironment{lyxgreyedout}
127 {\textcolor{blue}\bgroup}{\egroup}
129 % ------------------------------------
130 % used to check for needed LaTeX packages
133 % check for package arydshln
134 % used for tables with dashed lines
135 \newboolean{arydshln}
136 \IfFileExists{arydshln.sty}
137 {\usepackage{arydshln}
138 \setboolean{arydshln}{true}}
139 {\setboolean{arydshln}{false}}
141 % check for package marginnote
142 % used for margin notes
143 \newboolean{marginnote}
144 \IfFileExists{marginnote.sty}
145 {\usepackage{marginnote}
146 \let\marginpar\marginnote
147 \setboolean{marginnote}{true}}
148 {\setboolean{marginnote}{false}}
150 % check for package sidecap
151 % used for captions on the side
153 \IfFileExists{sidecap.sty}
154 {\usepackage{sidecap}
155 \let\marginpar\marginnote
156 \setboolean{sidecap}{true}}
157 {\setboolean{sidecap}{false}}
159 % redefine the \LyX macro for PDF bookmarks
160 \def\LyX{\texorpdfstring{%
161 L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
164 \options fleqn,liststotoc,bibtotoc,idxtotoc,BCOR7.5mm,titlepage,tablecaptionabove
165 \use_default_options false
170 \font_typewriter default
171 \font_default_family default
181 \pdf_title "LyX's Figure, Table, Floats, Notes, and Boxes manual"
182 \pdf_author "LyX Team, Uwe Stöhr"
183 \pdf_subject "LyX-documentation about figures, tables, floats, notes, and boxes"
184 \pdf_keywords "LyX, Tables, Figures, Floats, Boxes, Notes"
186 \pdf_bookmarksnumbered true
187 \pdf_bookmarksopen true
188 \pdf_bookmarksopenlevel 1
189 \pdf_breaklinks false
193 \pdf_pdfusetitle false
194 \pdf_quoted_options " linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false, pdfpagelabels"
201 \paperorientation portrait
204 \paragraph_separation skip
206 \quotes_language english
209 \paperpagestyle default
213 \tracking_changes false
214 \output_changes false
222 LyX's detailed Figure, Table, Floats, Notes, Boxes and External Material
231 \begin_layout Plain Layout
233 If you have comments or error corrections, please send them to the LyX Documenta
235 \begin_inset CommandInset href
237 name "lyx-docs@lists.lyx.org"
238 target "lyx-docs@lists.lyx.org?subject=EmbeddedObjects manual"
249 \begin_inset Note Note
252 \begin_layout Plain Layout
259 \begin_inset Newline newline
263 \begin_inset Newline newline
271 \begin_layout Standard
272 \begin_inset CommandInset toc
273 LatexCommand tableofcontents
280 \begin_layout Standard
281 \begin_inset Note Note
284 \begin_layout Plain Layout
285 To export all parts of this document to PDF, PS, or DVI the LaTeX-packages
303 If they are not installed you can export the document anyway but the sections
304 where the packages are required won't appear in the output.
307 \begin_layout Plain Layout
308 The latest PDF-version of this document can be found here:
309 \begin_inset Newline newline
314 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
322 \begin_layout Chapter
327 \begin_layout Plain Layout
337 \begin_layout Plain Layout
342 \begin_layout Plain Layout
353 \begin_layout Plain Layout
368 \begin_layout Section
373 \begin_layout Plain Layout
374 Figures ! Graphics Dialog
380 \begin_inset CommandInset label
382 name "sec:Graphics-Dialog"
389 \begin_layout Standard
390 To insert an image into your document, place the cursor at the text position
391 you want and click on the toolbar icon
392 \begin_inset Graphics
393 filename ../images/dialog-show-new-inset_graphics.png
401 Insert\SpecialChar \menuseparator
405 Then a dialog will appear to choose the file to load.
406 The image will appear in the output exactly at the position where it is
410 \begin_layout Standard
411 The graphics dialog can be called at any time by clicking on an image.
412 This dialog has three tabs:
415 \begin_layout Description
420 Here you can choose an image file and adjust its appearance in the output.
421 The available units for the image size are explained in appendix
426 \begin_inset CommandInset ref
428 reference "cha:Units-available-in"
433 \begin_inset Newline newline
440 \begin_layout Plain Layout
446 You can rotate images counter-clockwise by setting a rotation angle and
448 The image will also be rotated inside LyX.
449 \begin_inset Newline newline
456 \begin_layout Plain Layout
462 Images can be scaled by using a percentage value or by setting the width
463 and height explicitly.
464 If you set only the width or only the height, the other size will be determined
466 If you set both, then the image will be transformed to the given size,
467 possibly distorting it.
468 To prevent the image from distortion, use the option
470 Maintain aspect ratio
473 The image will then be scaled so that its width and height don't exceed
474 the specified dimensions.
475 \begin_inset Newline newline
478 Images can be opened in a program of your choice when pressing the
483 The program can be set for every image format in the file format settings
484 in LyX's preferences.
487 \begin_layout Description
492 Alternatively to the usage of scaling units it is possible to set image
493 coordinates to adjust the height and width of the image in the output.
494 The coordinates can also be calculated automatically by pressing the button
524 will only print the image region within the given coordinates.
525 Normally you don't need to take care about image coordinates and can ignore
529 \begin_layout Description
546 In this tab you can modify the appearance of the image within LyX and LaTeX
547 experts can specify additional LaTeX options.
548 \begin_inset Newline newline
559 makes the image appear in the output only as a frame with the size of the
561 \begin_inset Newline newline
580 option only affects zipped EPS-graphics, e.
581 \begin_inset space \thinspace{}
585 \begin_inset space \space{}
593 When the option is used the images will not be unzipped on export, since
594 LaTeX can handle them as they are.
595 \begin_inset Newline newline
598 Zipped EPS-graphics are useful to save disk space when you choose PostScript
599 as output format, see appendix
604 \begin_inset CommandInset ref
606 reference "sec:PostScript"
611 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
613 \begin_inset Newline newline
621 \begin_inset Newline newline
626 zgrep %%Bounding x.eps.gz > x.eps.bb
629 \begin_inset Newline newline
632 The second command creates the bounding box file
633 \begin_inset Quotes eld
637 \begin_inset Quotes erd
640 that is needed by LaTeX for zipped graphics.
641 \begin_inset Newline newline
656 allows you define or join an image settings group.
660 \begin_layout Plain Layout
661 Figures ! Settings grouping
666 Images within such a group share their settings, so adjusting one image
667 of the group automatically also adjusts all other images of the group in
669 So you can for example change the size for a bunch of images without the
670 need to manually change each of them.
671 Joining an existing group can also be done using the context menu of the
672 image by checking the name of the desired group.
675 \begin_layout Standard
676 \begin_inset VSpace bigskip
682 \begin_layout Standard
683 This is an example image in EPS format
687 \begin_layout Plain Layout
688 Image formats are explained in section
693 \begin_inset CommandInset ref
695 reference "sec:Image-Formats"
704 within a separate, horizontally centered paragraph:
707 \begin_layout Standard
709 \begin_inset Graphics
710 filename clipart/mobius.eps
720 \begin_layout Standard
721 This is the same image like the one above but in draft mode:
724 \begin_layout Standard
726 \begin_inset Graphics
727 filename clipart/mobius.eps
738 \begin_layout Standard
739 \begin_inset Newpage newpage
745 \begin_layout Section
747 \begin_inset CommandInset label
749 name "sec:Figure-Floats"
757 \begin_layout Plain Layout
767 \begin_layout Plain Layout
776 \begin_layout Standard
777 For general explanations about floats, have a look at section
782 \begin_inset CommandInset ref
784 reference "sec:FloatIntroduction"
791 \begin_layout Standard
793 \begin_inset Graphics
794 filename ../images/float-insert_figure.png
802 Insert\SpecialChar \menuseparator
803 Float\SpecialChar \menuseparator
806 inserts a float with a caption that has the label
807 \begin_inset Quotes eld
815 \begin_inset Quotes erd
818 (# is the actual number).
819 You can insert the image above the caption, like in Figure
824 \begin_inset CommandInset ref
826 reference "fig:kill-plat"
830 or below the caption, like in Figure
835 \begin_inset CommandInset ref
837 reference "fig:escher"
842 More about the caption placement is described in section
847 \begin_inset CommandInset ref
849 reference "sec:Caption-Placement"
856 \begin_layout Standard
857 \begin_inset Float figure
862 \begin_layout Plain Layout
864 \begin_inset Graphics
865 filename clipart/platypus.eps
875 \begin_layout Plain Layout
878 \begin_layout Plain Layout
879 \begin_inset CommandInset label
885 A severely distorted platypus in a float.
898 \begin_layout Standard
899 \begin_inset Float figure
904 \begin_layout Plain Layout
907 \begin_layout Plain Layout
908 \begin_inset CommandInset label
923 \begin_layout Plain Layout
925 \begin_inset Graphics
926 filename clipart/escher-lsd.eps
941 \begin_layout Standard
945 \begin_layout Plain Layout
946 References ! to Figures
956 \begin_inset CommandInset ref
958 reference "fig:kill-plat"
963 \begin_inset CommandInset ref
965 reference "fig:escher"
969 are examples of referenced figures.
970 Figures can be referenced in the text by referencing their label.
971 To do this insert a label in the caption using the menu
973 Insert\SpecialChar \menuseparator
976 or the toolbar button
977 \begin_inset Graphics
978 filename ../images/label-insert.png
985 You can now refer to the label using the menu
987 Insert\SpecialChar \menuseparator
994 or the toolbar button
995 \begin_inset Graphics
996 filename ../images/dialog-show-new-inset_ref.png
1003 It is important to use references to floats, rather than using vague references
1005 \begin_inset Quotes eld
1009 \begin_inset Quotes erd
1012 , because as LaTeX will reposition the floats in the final document, it
1014 \begin_inset Quotes eld
1018 \begin_inset Quotes erd
1022 \begin_inset Newline newline
1025 Referencing is explained in detail in section
1026 \begin_inset space ~
1030 \begin_inset CommandInset ref
1032 reference "sec:Referencing-Floats"
1039 \begin_layout Standard
1040 Normally only one image is inserted to a figure float, but sometimes you
1041 might want to use two images with separate subcaptions.
1042 This can be done by inserting image floats into existing image floats.
1043 Note that only the main caption of the float is added to the List of Figures.
1045 \begin_inset space ~
1049 \begin_inset CommandInset ref
1051 reference "fig:Two-distorted-images"
1055 is an example of a figure float with two images set side by side.
1056 You can also set the images one below the other.
1058 \begin_inset space ~
1062 \begin_inset CommandInset ref
1064 reference "fig:Undefinable-structure"
1069 \begin_inset CommandInset ref
1071 reference "fig:A-Platypus"
1078 \begin_layout Standard
1079 \begin_inset Float figure
1084 \begin_layout Plain Layout
1085 \begin_inset space \hfill{}
1089 \begin_inset Float figure
1094 \begin_layout Plain Layout
1095 \begin_inset Caption
1097 \begin_layout Plain Layout
1098 \begin_inset CommandInset label
1100 name "fig:Undefinable-structure"
1104 Undefinable structure.
1112 \begin_layout Plain Layout
1113 \begin_inset Graphics
1114 filename clipart/escher-lsd.eps
1127 \begin_inset space \hfill{}
1131 \begin_inset Float figure
1136 \begin_layout Plain Layout
1137 \begin_inset Caption
1139 \begin_layout Plain Layout
1140 \begin_inset CommandInset label
1142 name "fig:A-Platypus"
1154 \begin_layout Plain Layout
1155 \begin_inset Graphics
1156 filename clipart/platypus.eps
1169 \begin_inset space \hfill{}
1175 \begin_layout Plain Layout
1176 \begin_inset Caption
1178 \begin_layout Plain Layout
1179 \begin_inset CommandInset label
1181 name "fig:Two-distorted-images"
1185 Two distorted images.
1186 Both images are in the image settings group named
1187 \begin_inset Quotes eld
1191 \begin_inset Quotes erd
1207 \begin_layout Standard
1208 \begin_inset Newpage newpage
1214 \begin_layout Section
1216 \begin_inset CommandInset label
1218 name "sec:Image-Formats"
1226 \begin_layout Plain Layout
1236 \begin_layout Plain Layout
1237 Figures ! Image Formats
1245 \begin_layout Standard
1246 You can insert images in any known file format.
1247 But as explained in appendix
1248 \begin_inset space ~
1252 \begin_inset CommandInset ref
1254 reference "cha:Output-File-Formats"
1258 , every output document format allows only a few image formats.
1259 LyX uses therefore the program
1263 in the background to convert the images to the right format.
1264 To increase your work flow by avoiding these conversions in the background,
1265 you can use only the image formats that can directly be embedded in the
1267 The output file formats are explained in appendix
1268 \begin_inset space ~
1272 \begin_inset CommandInset ref
1274 reference "cha:Output-File-Formats"
1281 \begin_layout Standard
1282 Similar to fonts there are two types of image formats:
1285 \begin_layout Description
1287 \begin_inset space ~
1290 images consist of pixel values, often in a compressed form.
1291 They are therefore not fully scalable and look pixeled in large zooms.
1292 Well-known bitmap image formats are
1293 \begin_inset Quotes eld
1296 Graphics Interchange Format
1297 \begin_inset Quotes erd
1300 (GIF, file extension
1301 \begin_inset Quotes eld
1309 \begin_inset Quotes erd
1316 \begin_layout Plain Layout
1321 \begin_layout Plain Layout
1332 \begin_layout Plain Layout
1345 \begin_inset Quotes eld
1348 Portable Network Graphics
1349 \begin_inset Quotes erd
1352 (PNG, file extension
1353 \begin_inset Quotes eld
1361 \begin_inset Quotes erd
1368 \begin_layout Plain Layout
1373 \begin_layout Plain Layout
1384 \begin_layout Plain Layout
1397 \begin_inset Quotes eld
1400 Joint Photographic Experts Group
1401 \begin_inset Quotes erd
1404 (JPG, file extension
1405 \begin_inset Quotes eld
1413 \begin_inset Quotes erd
1417 \begin_inset Quotes eld
1425 \begin_inset Quotes erd
1432 \begin_layout Plain Layout
1437 \begin_layout Plain Layout
1448 \begin_layout Plain Layout
1463 \begin_layout Description
1465 \begin_inset space ~
1468 images consist of vectors and can therefore be scaled to any size without
1470 The scaling ability is necessary if you want to create presentations, because
1471 presentations are always scaled by the video projector.
1472 Scaling is also useful for online documents to let the user zoom into diagrams.
1473 \begin_inset Newline newline
1476 Well-known scalable image formats are
1477 \begin_inset Quotes eld
1480 Scalable Vector Graphics
1481 \begin_inset Quotes erd
1484 (SVG, file extension
1485 \begin_inset Quotes eld
1493 \begin_inset Quotes erd
1500 \begin_layout Plain Layout
1505 \begin_layout Plain Layout
1516 \begin_layout Plain Layout
1529 \begin_inset Quotes eld
1532 Encapsulated PostScript
1533 \begin_inset Quotes erd
1536 (EPS, file extension
1537 \begin_inset Quotes eld
1545 \begin_inset Quotes erd
1552 \begin_layout Plain Layout
1557 \begin_layout Plain Layout
1568 \begin_layout Plain Layout
1581 \begin_inset Quotes eld
1584 Portable Document Format
1585 \begin_inset Quotes erd
1588 (PDF, file extension
1589 \begin_inset Quotes eld
1597 \begin_inset Quotes erd
1604 \begin_layout Plain Layout
1611 \begin_inset Quotes eld
1615 \begin_inset Quotes erd
1618 (WMF, file extension
1619 \begin_inset Quotes eld
1627 \begin_inset Quotes erd
1634 \begin_layout Plain Layout
1639 \begin_layout Plain Layout
1650 \begin_layout Plain Layout
1664 \begin_inset Quotes eld
1668 \begin_inset Quotes erd
1671 , because you can convert any bitmap image to a PDF or EPS-image and the
1672 result will still be a bitmap image.
1673 In this cases only a header with the image properties is added to the original
1678 \begin_layout Plain Layout
1679 In the case of PDF, the original image is additionally compressed.
1685 The PDF-files generated by
1689 are for example bitmap images.
1692 \begin_layout Standard
1693 Normally it is not possible to convert a bitmap image into a scalable one,
1695 Only the image formats PDF and EPS can directly be embedded to PDF and
1696 PostScript output files, respectively.
1697 SVG and WMF-images are recalculated to bitmaps when the output file is
1698 generated because there is currently no adequate WMF/SVG
1699 \begin_inset Formula $\to$
1702 PDF/EPS converter available.
1705 \begin_layout Chapter
1710 \begin_layout Plain Layout
1719 \begin_layout Section
1724 \begin_layout Plain Layout
1725 Table ! Introduction
1733 \begin_layout Standard
1734 You can insert a table using either the toolbar button
1735 \begin_inset Graphics
1736 filename ../images/tabular-insert.png
1744 Insert\SpecialChar \menuseparator
1748 The toolbar button offers you a graphical selection: Move the mouse to
1749 set the column/row number of the table that should be created and then
1750 press a mouse button.
1751 When you use the menu to create a table, a dialog will appear, asking you
1752 for the number of rows and columns.
1753 \begin_inset Newline newline
1756 The default table has lines around any cell and the first row appears separated
1757 from the rest of the table.
1758 This separation occurs due to a double line: The cells of the first row
1759 have a line below them and the cells of the second row have a line above
1761 Here is an example table:
1764 \begin_layout Standard
1766 \begin_inset Tabular
1767 <lyxtabular version="3" rows="4" columns="4">
1769 <column alignment="center" valignment="top" width="0">
1770 <column alignment="center" valignment="top" width="0">
1771 <column alignment="center" valignment="top" width="0">
1772 <column alignment="center" valignment="top" width="0">
1774 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1777 \begin_layout Plain Layout
1783 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1786 \begin_layout Plain Layout
1801 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1804 \begin_layout Plain Layout
1810 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1813 \begin_layout Plain Layout
1821 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1824 \begin_layout Plain Layout
1839 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1842 \begin_layout Plain Layout
1848 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1851 \begin_layout Plain Layout
1857 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1860 \begin_layout Plain Layout
1868 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1871 \begin_layout Plain Layout
1886 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1889 \begin_layout Plain Layout
1895 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1898 \begin_layout Plain Layout
1904 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1907 \begin_layout Plain Layout
1915 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1918 \begin_layout Plain Layout
1933 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1936 \begin_layout Plain Layout
1942 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1945 \begin_layout Plain Layout
1951 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1954 \begin_layout Plain Layout
1968 \begin_layout Section
1973 \begin_layout Plain Layout
1982 \begin_layout Standard
1983 You can alter a table by clicking on it with the right mouse button, which
1984 brings up the table dialog.
1985 Here you can adjust the settings of that cell and row/column respectively
1986 where the cursor is currently placed.
1987 Most of the dialog options also work on selections.
1988 This means if you select more cells, columns or rows, the action is done
1989 for the whole selection.
1990 Note that there is a difference between selecting the
1994 of the cell, and the cell itself.
1995 You can alter tables with the following tabs of the table dialog:
1998 \begin_layout Description
2002 \begin_inset space ~
2007 Here you can set the horizontal alignment and the width of the current
2009 When you have set a width you can also adjust the vertical alignment of
2011 A given width will allow the cell to have line breaks and multiple paragraphs
2012 of text, see section
2013 \begin_inset space ~
2017 \begin_inset CommandInset ref
2019 reference "sub:Multiple-Lines-in"
2024 If you set no width, the column is as wide as their widest cell content
2026 \begin_inset Newline newline
2029 Furthermore, you can mark one or multiple cells of one row as a multicolumn
2031 \begin_inset space ~
2035 \begin_inset CommandInset ref
2037 reference "sub:Multicolumns"
2042 \begin_inset Newline newline
2045 The rotate check boxes rotates the current cell, a selection, or the whole
2046 table counter-clockwise by 90°.
2047 The rotation is not shown within LyX, only in the output.
2048 \begin_inset Newline newline
2052 \begin_inset Note Greyedout
2055 \begin_layout Plain Layout
2060 Not all DVI-viewers are able to display rotations.
2066 \begin_inset Newline newline
2069 It is also possible to enter a LaTeX-argument which is needed for special
2070 table formattings, see section
2071 \begin_inset space ~
2075 \begin_inset CommandInset ref
2077 reference "sub:Multicolumn-Calculations"
2082 \begin_inset CommandInset ref
2084 reference "sec:Colored-Tables"
2091 \begin_layout Description
2096 In this tab you can add and delete border lines for the current row/column.
2097 \begin_inset Newline newline
2100 Using the style option
2104 will convert the table to a formal table as described in section
2105 \begin_inset space ~
2109 \begin_inset CommandInset ref
2111 reference "sec:Formal-Tables"
2116 \begin_inset Newline newline
2119 You can also add here space to table rows as decribed in section
2120 \begin_inset space ~
2124 \begin_inset CommandInset ref
2126 reference "sub:Row-Spacing"
2133 \begin_layout Description
2138 This tab is to make a table a so called
2139 \begin_inset Quotes eld
2147 \begin_inset Quotes erd
2150 that can run over several pages.
2152 \begin_inset space ~
2156 \begin_inset CommandInset ref
2158 reference "sec:Longtables"
2163 \begin_inset CommandInset ref
2165 reference "sec:Special-Longtable-Issues"
2169 describe the longtable features in detail.
2172 \begin_layout Standard
2173 When the table toolbar is opened, you can move the cursor with the arrow
2174 keys from cell to cell and the property of the current cell will immediately
2175 be displayed in the dialog.
2178 \begin_layout Section
2183 \begin_layout Plain Layout
2192 \begin_layout Standard
2193 The table toolbar is an alternative to the table dialog to be able to alter
2195 It should normally appear at the bottom of LyX's main window when the cursor
2197 You can alternatively switch it on to appear always, by right-clicking
2198 in LyX's main menu bar.
2201 \begin_layout Standard
2202 The toolbar has the following icons:
2205 \begin_layout Labeling
2206 \labelwidthstring 00.00.0000
2207 \begin_inset Graphics
2208 filename ../images/tabular-feature_append-row.png
2213 adds a row below the current cell or selection
2216 \begin_layout Labeling
2217 \labelwidthstring 00.00.0000
2218 \begin_inset Graphics
2219 filename ../images/tabular-feature_append-column.png
2224 adds a column right beside the current cell or selection
2227 \begin_layout Labeling
2228 \labelwidthstring 00.00.0000
2229 \begin_inset Graphics
2230 filename ../images/tabular-feature_delete-row.png
2235 deletes the current row or selection
2238 \begin_layout Labeling
2239 \labelwidthstring 00.00.0000
2240 \begin_inset Graphics
2241 filename ../images/tabular-feature_delete-column.png
2246 deletes the current column or selection
2249 \begin_layout Labeling
2250 \labelwidthstring 00.00.0000
2251 \begin_inset Graphics
2252 filename ../images/tabular-feature_toggle-line-top.png
2257 adds a line at the top of the current cell / row or of a selection
2260 \begin_layout Labeling
2261 \labelwidthstring 00.00.0000
2262 \begin_inset Graphics
2263 filename ../images/tabular-feature_toggle-line-bottom.png
2268 adds a line at the bottom of the current cell / row or of a selection
2271 \begin_layout Labeling
2272 \labelwidthstring 00.00.0000
2273 \begin_inset Graphics
2274 filename ../images/tabular-feature_toggle-line-left.png
2279 adds a line at the left side of the current cell / row or of a selection
2282 \begin_layout Labeling
2283 \labelwidthstring 00.00.0000
2284 \begin_inset Graphics
2285 filename ../images/tabular-feature_toggle-line-right.png
2290 adds a line at the right side of the current cell / row or of a selection
2293 \begin_layout Labeling
2294 \labelwidthstring 00.00.0000
2295 \begin_inset Graphics
2296 filename ../images/tabular-feature_set-all-lines.png
2301 adds lines around the current or selected cells - if the current cell no
2302 multicolumn this also affects the current row and column
2305 \begin_layout Labeling
2306 \labelwidthstring 00.00.0000
2307 \begin_inset Graphics
2308 filename ../images/tabular-feature_unset-all-lines.png
2313 deletes all lines of the current or selected cells - if the current cell
2314 no multicolumn this also affects the current row and column
2317 \begin_layout Labeling
2318 \labelwidthstring 00.00.0000
2319 \begin_inset Graphics
2320 filename ../images/tabular-feature_align-left.png
2325 left-aligns the content of the current cell / column
2328 \begin_layout Labeling
2329 \labelwidthstring 00.00.0000
2330 \begin_inset Graphics
2331 filename ../images/tabular-feature_align-center.png
2336 centers the content of the current cell / column horizontally
2339 \begin_layout Labeling
2340 \labelwidthstring 00.00.0000
2341 \begin_inset Graphics
2342 filename ../images/tabular-feature_align-right.png
2347 right-aligns the content of the current cell / column
2350 \begin_layout Labeling
2351 \labelwidthstring 00.00.0000
2352 \begin_inset Graphics
2353 filename ../images/tabular-feature_valign-top.png
2358 aligns the content of the current cell vertically to the top
2361 \begin_layout Labeling
2362 \labelwidthstring 00.00.0000
2363 \begin_inset Graphics
2364 filename ../images/tabular-feature_valign-middle.png
2369 centers the content of the current cell vertically
2372 \begin_layout Labeling
2373 \labelwidthstring 00.00.0000
2374 \begin_inset Graphics
2375 filename ../images/tabular-feature_valign-bottom.png
2380 aligns the content of the current cell vertically to the bottom
2383 \begin_layout Labeling
2384 \labelwidthstring 00.00.0000
2385 \begin_inset Graphics
2386 filename ../images/tabular-feature_set-rotate-cell.png
2391 rotates the current cell or selection counter-clockwise by 90°
2394 \begin_layout Labeling
2395 \labelwidthstring 00.00.0000
2396 \begin_inset Graphics
2397 filename ../images/tabular-feature_set-rotate-tabular.png
2402 rotates the whole table counter-clockwise by 90°
2405 \begin_layout Labeling
2406 \labelwidthstring 00.00.0000
2407 \begin_inset Graphics
2408 filename ../images/tabular-feature_multicolumn.png
2413 sets the current cell or selection as a multicolumn
2416 \begin_layout Standard
2417 \begin_inset Note Greyedout
2420 \begin_layout Plain Layout
2425 For the output the vertical alignment of the first cell in a row is used
2426 for all following cells in the row.
2434 \begin_layout Section
2439 \begin_layout Plain Layout
2448 \begin_layout Standard
2449 Additionally to the table dialog and toolbar, the menu
2451 Edit\SpecialChar \menuseparator
2454 allows you to add and delete border lines for the current row/column and
2455 to set the current selection as multicolumn.
2456 The menu is only available when the cursor is inside a table.
2459 \begin_layout Section
2461 \begin_inset CommandInset label
2463 name "sec:Table-Floats"
2471 \begin_layout Plain Layout
2481 \begin_layout Plain Layout
2490 \begin_layout Standard
2491 For general explanations about floats, have a look at section
2492 \begin_inset space ~
2496 \begin_inset CommandInset ref
2498 reference "sec:FloatIntroduction"
2505 \begin_layout Standard
2506 \begin_inset Float table
2512 \begin_layout Plain Layout
2513 \begin_inset Caption
2515 \begin_layout Plain Layout
2516 \begin_inset CommandInset label
2518 name "tab:a table float"
2530 \begin_layout Plain Layout
2532 \begin_inset Tabular
2533 <lyxtabular version="3" rows="3" columns="3">
2535 <column alignment="center" valignment="top" width="0pt">
2536 <column alignment="center" valignment="top" width="0pt">
2537 <column alignment="center" valignment="top" width="0pt">
2539 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2542 \begin_layout Plain Layout
2557 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2560 \begin_layout Plain Layout
2575 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2578 \begin_layout Plain Layout
2595 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2598 \begin_layout Plain Layout
2613 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2616 \begin_layout Plain Layout
2631 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2634 \begin_layout Plain Layout
2651 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2654 \begin_layout Plain Layout
2664 \begin_inset Formula $\int x^{2}dx$
2672 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2675 \begin_layout Plain Layout
2685 \begin_inset Formula $\left[\begin{array}{cc}
2687 c & d\end{array}\right]$
2695 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2698 \begin_layout Plain Layout
2708 \begin_inset Formula $1+1=2$
2729 \begin_layout Standard
2730 Table floats can be inserted using the menu
2732 Insert\SpecialChar \menuseparator
2733 Float\SpecialChar \menuseparator
2736 or the toolbar button
2737 \begin_inset Graphics
2738 filename ../images/float-insert_table.png
2747 \begin_layout Standard
2748 The float appears as a collapsible box with a caption that has the label
2750 \begin_inset Quotes eld
2754 \begin_inset space ~
2758 \begin_inset Quotes erd
2761 (# is the actual table number).
2762 You can insert tables to the float above or below the caption.
2765 \begin_layout Standard
2767 \begin_inset space ~
2771 \begin_inset CommandInset ref
2773 reference "tab:a table float"
2777 is an example table within a table float.
2780 \begin_layout Standard
2781 Having the caption above the table is the common rule that is unfortunately
2782 not supported in LaTeX's standard classes.
2783 That means if you are using the document classes
2799 there will be no space between the caption and the table.
2800 To insert the needed space, add the following option to the load command
2801 of the LaTeX-package
2809 \begin_layout Plain Layout
2810 LaTeX-packages ! caption
2815 in your document preamble
2819 \begin_layout Plain Layout
2820 For more information have a look at section
2821 \begin_inset space ~
2825 \begin_inset CommandInset ref
2827 reference "sec:Caption-Placement"
2839 \begin_layout Standard
2845 \begin_layout Standard
2850 , which is described in section
2851 \begin_inset space ~
2855 \begin_inset CommandInset ref
2857 reference "sec:Caption-Formatting"
2861 , is used to adjust the caption format.
2864 \begin_layout Standard
2868 \begin_layout Plain Layout
2869 References ! to Tables
2874 Tables can be cross-referenced in the text by referencing their label.
2875 To do this insert a label in the caption using the menu
2877 Insert\SpecialChar \menuseparator
2880 or the toolbar button
2881 \begin_inset Graphics
2882 filename ../images/label-insert.png
2889 You can now refer to the label using the menu
2891 Insert\SpecialChar \menuseparator
2893 \begin_inset space ~
2898 or the toolbar button
2899 \begin_inset Graphics
2900 filename ../images/dialog-show-new-inset_ref.png
2907 \begin_inset Newline newline
2910 Referencing is explained in detail in section
2911 \begin_inset space ~
2915 \begin_inset CommandInset ref
2917 reference "sec:Referencing-Floats"
2924 \begin_layout Section
2926 \begin_inset CommandInset label
2928 name "sec:Longtables"
2936 \begin_layout Plain Layout
2946 \begin_layout Plain Layout
2955 \begin_layout Standard
2956 If the table is too long to fit on one page, you can use the option
2959 \begin_inset space ~
2963 \begin_inset space ~
2972 of the table dialog to split the table automatically over more pages.
2973 Doing this enables the following options:
2976 \begin_layout Description
2981 : The current row and all rows above, that don't have any special options
2982 defined, are defined to be the header rows of all pages of the longtable;
2983 except for the first page, if
2986 \begin_inset space ~
2992 This therefore called the main header.
2995 \begin_layout Description
2999 \begin_inset space ~
3004 : The current row and all rows above, that don't have any special options
3005 defined, are defined to be the header rows of the first page of the longtable.
3008 \begin_layout Description
3013 : The current row and all rows below, that don't have any special options
3014 defined, are defined to be the footer rows of all pages of the longtable;
3015 except for the last page, if
3018 \begin_inset space ~
3026 \begin_layout Description
3030 \begin_inset space ~
3035 : The current row and all rows below, that don't have any special options
3036 defined, are defined to be the footer rows of the last page of the longtable.
3039 \begin_layout Description
3040 Caption: The first row is reset as single column.
3041 You can now insert there the table caption via the menu
3043 Insert\SpecialChar \menuseparator
3047 More about longtable captions is explained in sec.
3048 \begin_inset space \thinspace{}
3052 \begin_inset CommandInset ref
3054 reference "sub:Longtable-Captions"
3061 \begin_layout Standard
3062 You can also specify a row where the table is splitted.
3063 If you set more than one option in the same table row, you should be aware
3064 of the fact that only the first one is used in the given table row.
3065 The others will then be defined as
3070 In this context, first means first in this order:
3077 \begin_inset space ~
3080 header, Footer, Last
3081 \begin_inset space ~
3087 See the following longtable to see how it works:
3090 \begin_layout Standard
3092 \begin_inset Tabular
3093 <lyxtabular version="3" rows="69" columns="3">
3094 <features islongtable="true">
3095 <column alignment="left" valignment="top" width="0cm">
3096 <column alignment="left" valignment="top" width="0pt">
3097 <column alignment="center" valignment="top" width="0pt">
3098 <row endfirsthead="true">
3099 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3102 \begin_layout Plain Layout
3105 Example Phone List (ignore the names)
3110 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3113 \begin_layout Plain Layout
3119 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3122 \begin_layout Plain Layout
3129 <row endfirsthead="true">
3130 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3133 \begin_layout Plain Layout
3141 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3144 \begin_layout Plain Layout
3150 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3153 \begin_layout Plain Layout
3162 <row endhead="true">
3163 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3166 \begin_layout Plain Layout
3174 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3177 \begin_layout Plain Layout
3183 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3186 \begin_layout Plain Layout
3193 <row endhead="true">
3194 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3197 \begin_layout Plain Layout
3205 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3208 \begin_layout Plain Layout
3214 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3217 \begin_layout Plain Layout
3226 <row endfoot="true">
3227 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
3230 \begin_layout Plain Layout
3231 continued on next page
3236 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3239 \begin_layout Plain Layout
3245 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3248 \begin_layout Plain Layout
3256 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3259 \begin_layout Plain Layout
3267 <cell alignment="center" valignment="top" usebox="none">
3270 \begin_layout Plain Layout
3276 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3279 \begin_layout Plain Layout
3287 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3290 \begin_layout Plain Layout
3298 <cell alignment="center" valignment="top" usebox="none">
3301 \begin_layout Plain Layout
3307 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3310 \begin_layout Plain Layout
3318 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3321 \begin_layout Plain Layout
3329 <cell alignment="center" valignment="top" usebox="none">
3332 \begin_layout Plain Layout
3338 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3341 \begin_layout Plain Layout
3349 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3352 \begin_layout Plain Layout
3360 <cell alignment="center" valignment="top" usebox="none">
3363 \begin_layout Plain Layout
3369 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3372 \begin_layout Plain Layout
3380 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3383 \begin_layout Plain Layout
3391 <cell alignment="center" valignment="top" usebox="none">
3394 \begin_layout Plain Layout
3400 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3403 \begin_layout Plain Layout
3411 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3414 \begin_layout Plain Layout
3422 <cell alignment="center" valignment="top" usebox="none">
3425 \begin_layout Plain Layout
3431 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3434 \begin_layout Plain Layout
3442 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3445 \begin_layout Plain Layout
3453 <cell alignment="center" valignment="top" usebox="none">
3456 \begin_layout Plain Layout
3462 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3465 \begin_layout Plain Layout
3473 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3476 \begin_layout Plain Layout
3484 <cell alignment="center" valignment="top" usebox="none">
3487 \begin_layout Plain Layout
3493 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3496 \begin_layout Plain Layout
3504 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3507 \begin_layout Plain Layout
3515 <cell alignment="center" valignment="top" usebox="none">
3518 \begin_layout Plain Layout
3524 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3527 \begin_layout Plain Layout
3535 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3538 \begin_layout Plain Layout
3546 <cell alignment="center" valignment="top" usebox="none">
3549 \begin_layout Plain Layout
3555 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3558 \begin_layout Plain Layout
3566 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3569 \begin_layout Plain Layout
3577 <cell alignment="center" valignment="top" usebox="none">
3580 \begin_layout Plain Layout
3586 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3589 \begin_layout Plain Layout
3597 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3600 \begin_layout Plain Layout
3608 <cell alignment="center" valignment="top" usebox="none">
3611 \begin_layout Plain Layout
3617 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3620 \begin_layout Plain Layout
3628 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3631 \begin_layout Plain Layout
3639 <cell alignment="center" valignment="top" usebox="none">
3642 \begin_layout Plain Layout
3648 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3651 \begin_layout Plain Layout
3659 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3662 \begin_layout Plain Layout
3670 <cell alignment="center" valignment="top" usebox="none">
3673 \begin_layout Plain Layout
3679 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3682 \begin_layout Plain Layout
3690 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3693 \begin_layout Plain Layout
3701 <cell alignment="center" valignment="top" usebox="none">
3704 \begin_layout Plain Layout
3710 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3713 \begin_layout Plain Layout
3721 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3724 \begin_layout Plain Layout
3732 <cell alignment="center" valignment="top" usebox="none">
3735 \begin_layout Plain Layout
3741 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3744 \begin_layout Plain Layout
3752 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3755 \begin_layout Plain Layout
3763 <cell alignment="center" valignment="top" usebox="none">
3766 \begin_layout Plain Layout
3772 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3775 \begin_layout Plain Layout
3783 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3786 \begin_layout Plain Layout
3794 <cell alignment="center" valignment="top" usebox="none">
3797 \begin_layout Plain Layout
3803 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3806 \begin_layout Plain Layout
3814 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3817 \begin_layout Plain Layout
3825 <cell alignment="center" valignment="top" usebox="none">
3828 \begin_layout Plain Layout
3834 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3837 \begin_layout Plain Layout
3845 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3848 \begin_layout Plain Layout
3856 <cell alignment="center" valignment="top" usebox="none">
3859 \begin_layout Plain Layout
3865 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3868 \begin_layout Plain Layout
3876 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3879 \begin_layout Plain Layout
3887 <cell alignment="center" valignment="top" usebox="none">
3890 \begin_layout Plain Layout
3896 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3899 \begin_layout Plain Layout
3907 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3910 \begin_layout Plain Layout
3918 <cell alignment="center" valignment="top" usebox="none">
3921 \begin_layout Plain Layout
3927 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3930 \begin_layout Plain Layout
3938 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3941 \begin_layout Plain Layout
3949 <cell alignment="center" valignment="top" usebox="none">
3952 \begin_layout Plain Layout
3958 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3961 \begin_layout Plain Layout
3969 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3972 \begin_layout Plain Layout
3980 <cell alignment="center" valignment="top" usebox="none">
3983 \begin_layout Plain Layout
3989 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3992 \begin_layout Plain Layout
4000 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4003 \begin_layout Plain Layout
4011 <cell alignment="center" valignment="top" usebox="none">
4014 \begin_layout Plain Layout
4020 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4023 \begin_layout Plain Layout
4031 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4034 \begin_layout Plain Layout
4042 <cell alignment="center" valignment="top" usebox="none">
4045 \begin_layout Plain Layout
4051 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4054 \begin_layout Plain Layout
4062 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4065 \begin_layout Plain Layout
4073 <cell alignment="center" valignment="top" usebox="none">
4076 \begin_layout Plain Layout
4082 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4085 \begin_layout Plain Layout
4093 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4096 \begin_layout Plain Layout
4104 <cell alignment="center" valignment="top" usebox="none">
4107 \begin_layout Plain Layout
4113 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4116 \begin_layout Plain Layout
4124 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4127 \begin_layout Plain Layout
4135 <cell alignment="center" valignment="top" usebox="none">
4138 \begin_layout Plain Layout
4144 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4147 \begin_layout Plain Layout
4155 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4158 \begin_layout Plain Layout
4166 <cell alignment="center" valignment="top" usebox="none">
4169 \begin_layout Plain Layout
4175 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4178 \begin_layout Plain Layout
4186 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4189 \begin_layout Plain Layout
4197 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4200 \begin_layout Plain Layout
4206 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4209 \begin_layout Plain Layout
4217 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4220 \begin_layout Plain Layout
4226 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4229 \begin_layout Plain Layout
4235 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4238 \begin_layout Plain Layout
4246 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4249 \begin_layout Plain Layout
4257 <cell alignment="center" valignment="top" usebox="none">
4260 \begin_layout Plain Layout
4266 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4269 \begin_layout Plain Layout
4277 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4280 \begin_layout Plain Layout
4288 <cell alignment="center" valignment="top" usebox="none">
4291 \begin_layout Plain Layout
4297 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4300 \begin_layout Plain Layout
4308 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4311 \begin_layout Plain Layout
4319 <cell alignment="center" valignment="top" usebox="none">
4322 \begin_layout Plain Layout
4328 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4331 \begin_layout Plain Layout
4339 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4342 \begin_layout Plain Layout
4350 <cell alignment="center" valignment="top" usebox="none">
4353 \begin_layout Plain Layout
4359 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4362 \begin_layout Plain Layout
4370 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4373 \begin_layout Plain Layout
4381 <cell alignment="center" valignment="top" usebox="none">
4384 \begin_layout Plain Layout
4390 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4393 \begin_layout Plain Layout
4401 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4404 \begin_layout Plain Layout
4412 <cell alignment="center" valignment="top" usebox="none">
4415 \begin_layout Plain Layout
4421 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4424 \begin_layout Plain Layout
4432 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4435 \begin_layout Plain Layout
4443 <cell alignment="center" valignment="top" usebox="none">
4446 \begin_layout Plain Layout
4452 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4455 \begin_layout Plain Layout
4463 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4466 \begin_layout Plain Layout
4474 <cell alignment="center" valignment="top" usebox="none">
4477 \begin_layout Plain Layout
4483 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4486 \begin_layout Plain Layout
4494 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4497 \begin_layout Plain Layout
4505 <cell alignment="center" valignment="top" usebox="none">
4508 \begin_layout Plain Layout
4514 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4517 \begin_layout Plain Layout
4525 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4528 \begin_layout Plain Layout
4536 <cell alignment="center" valignment="top" usebox="none">
4539 \begin_layout Plain Layout
4545 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4548 \begin_layout Plain Layout
4556 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4559 \begin_layout Plain Layout
4567 <cell alignment="center" valignment="top" usebox="none">
4570 \begin_layout Plain Layout
4576 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4579 \begin_layout Plain Layout
4587 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4590 \begin_layout Plain Layout
4598 <cell alignment="center" valignment="top" usebox="none">
4601 \begin_layout Plain Layout
4607 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4610 \begin_layout Plain Layout
4618 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4621 \begin_layout Plain Layout
4629 <cell alignment="center" valignment="top" usebox="none">
4632 \begin_layout Plain Layout
4638 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4641 \begin_layout Plain Layout
4649 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4652 \begin_layout Plain Layout
4660 <cell alignment="center" valignment="top" usebox="none">
4663 \begin_layout Plain Layout
4669 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4672 \begin_layout Plain Layout
4680 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4683 \begin_layout Plain Layout
4691 <cell alignment="center" valignment="top" usebox="none">
4694 \begin_layout Plain Layout
4700 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4703 \begin_layout Plain Layout
4711 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4714 \begin_layout Plain Layout
4722 <cell alignment="center" valignment="top" usebox="none">
4725 \begin_layout Plain Layout
4731 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4734 \begin_layout Plain Layout
4742 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4745 \begin_layout Plain Layout
4753 <cell alignment="center" valignment="top" usebox="none">
4756 \begin_layout Plain Layout
4762 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4765 \begin_layout Plain Layout
4773 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4776 \begin_layout Plain Layout
4784 <cell alignment="center" valignment="top" usebox="none">
4787 \begin_layout Plain Layout
4793 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4796 \begin_layout Plain Layout
4804 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4807 \begin_layout Plain Layout
4815 <cell alignment="center" valignment="top" usebox="none">
4818 \begin_layout Plain Layout
4824 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4827 \begin_layout Plain Layout
4835 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4838 \begin_layout Plain Layout
4846 <cell alignment="center" valignment="top" usebox="none">
4849 \begin_layout Plain Layout
4855 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4858 \begin_layout Plain Layout
4866 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4869 \begin_layout Plain Layout
4877 <cell alignment="center" valignment="top" usebox="none">
4880 \begin_layout Plain Layout
4886 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4889 \begin_layout Plain Layout
4897 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4900 \begin_layout Plain Layout
4908 <cell alignment="center" valignment="top" usebox="none">
4911 \begin_layout Plain Layout
4917 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4920 \begin_layout Plain Layout
4928 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4931 \begin_layout Plain Layout
4939 <cell alignment="center" valignment="top" usebox="none">
4942 \begin_layout Plain Layout
4948 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4951 \begin_layout Plain Layout
4959 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4962 \begin_layout Plain Layout
4970 <cell alignment="center" valignment="top" usebox="none">
4973 \begin_layout Plain Layout
4979 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4982 \begin_layout Plain Layout
4990 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4993 \begin_layout Plain Layout
5001 <cell alignment="center" valignment="top" usebox="none">
5004 \begin_layout Plain Layout
5010 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5013 \begin_layout Plain Layout
5021 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5024 \begin_layout Plain Layout
5032 <cell alignment="center" valignment="top" usebox="none">
5035 \begin_layout Plain Layout
5041 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5044 \begin_layout Plain Layout
5052 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5055 \begin_layout Plain Layout
5063 <cell alignment="center" valignment="top" usebox="none">
5066 \begin_layout Plain Layout
5072 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5075 \begin_layout Plain Layout
5083 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5086 \begin_layout Plain Layout
5094 <cell alignment="center" valignment="top" usebox="none">
5097 \begin_layout Plain Layout
5103 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5106 \begin_layout Plain Layout
5114 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5117 \begin_layout Plain Layout
5125 <cell alignment="center" valignment="top" usebox="none">
5128 \begin_layout Plain Layout
5134 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5137 \begin_layout Plain Layout
5145 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5148 \begin_layout Plain Layout
5156 <cell alignment="center" valignment="top" usebox="none">
5159 \begin_layout Plain Layout
5165 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5168 \begin_layout Plain Layout
5176 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5179 \begin_layout Plain Layout
5187 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5190 \begin_layout Plain Layout
5196 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5199 \begin_layout Plain Layout
5206 <row endlastfoot="true">
5207 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5210 \begin_layout Plain Layout
5216 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5219 \begin_layout Plain Layout
5225 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5228 \begin_layout Plain Layout
5243 \begin_layout Plain Layout
5247 addtocounter{table}{-1}
5253 \begin_inset Note Note
5256 \begin_layout Plain Layout
5257 See greyed-out note in section
5258 \begin_inset space ~
5262 \begin_inset CommandInset ref
5264 reference "sub:Longtable-Captions"
5268 for an explanation of this command.
5276 \begin_layout Subsection
5277 Footnotes in Longtables
5278 \begin_inset CommandInset label
5280 name "sub:Footnotes-in-Longtables"
5288 \begin_layout Plain Layout
5289 Longtables ! Footnotes
5297 \begin_layout Standard
5298 Footnotes can be inserted to every longtable cell.
5299 They appear at the bottom of the page where the table cell with the footnote
5302 \begin_inset space ~
5306 \begin_inset CommandInset ref
5308 reference "tab:DiffCaptions"
5312 has for example a footnote.
5315 \begin_layout Subsection
5320 \begin_layout Plain Layout
5321 Longtables ! Alignment
5329 \begin_layout Standard
5330 Longtables are by default centered.
5331 In contrary to the alignment of the table columns and row, the table alignment
5332 can currently not be changed in the table dialog.
5333 To change the alignment of longtables you have to change the value of the
5346 by inserting this line as TeX-Code before the corresponding longtable:
5349 \begin_layout Standard
5359 \begin_layout Standard
5360 Where the value can have any of the units listed in Table
5361 \begin_inset space ~
5365 \begin_inset CommandInset ref
5367 reference "tab:Units"
5378 controls the horizontal distance from the left page border to the longtable,
5385 the distance from the right side.
5386 The default value for both lengths is
5392 , which is in this case the same as an horizontal fill in LyX.
5395 \begin_layout Standard
5396 The following longtable was left-aligned by setting
5403 \begin_inset space \thinspace{}
5410 \begin_layout Plain Layout
5424 \begin_layout Standard
5425 \begin_inset Tabular
5426 <lyxtabular version="3" rows="5" columns="5">
5427 <features islongtable="true">
5428 <column alignment="center" valignment="top" width="0">
5429 <column alignment="center" valignment="top" width="0">
5430 <column alignment="center" valignment="top" width="0">
5431 <column alignment="center" valignment="top" width="0">
5432 <column alignment="center" valignment="top" width="0">
5434 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5437 \begin_layout Plain Layout
5443 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5446 \begin_layout Plain Layout
5452 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5455 \begin_layout Plain Layout
5461 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5464 \begin_layout Plain Layout
5470 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5473 \begin_layout Plain Layout
5481 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5484 \begin_layout Plain Layout
5490 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5493 \begin_layout Plain Layout
5499 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5502 \begin_layout Plain Layout
5508 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5511 \begin_layout Plain Layout
5517 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5520 \begin_layout Plain Layout
5528 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5531 \begin_layout Plain Layout
5537 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5540 \begin_layout Plain Layout
5546 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5549 \begin_layout Plain Layout
5555 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5558 \begin_layout Plain Layout
5564 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5567 \begin_layout Plain Layout
5575 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5578 \begin_layout Plain Layout
5584 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5587 \begin_layout Plain Layout
5593 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5596 \begin_layout Plain Layout
5602 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5605 \begin_layout Plain Layout
5611 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5614 \begin_layout Plain Layout
5622 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5625 \begin_layout Plain Layout
5631 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5634 \begin_layout Plain Layout
5640 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5643 \begin_layout Plain Layout
5649 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5652 \begin_layout Plain Layout
5658 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5661 \begin_layout Plain Layout
5676 \begin_layout Plain Layout
5692 \begin_layout Subsection
5697 \begin_layout Plain Layout
5698 Longtables ! Captions
5704 \begin_inset CommandInset label
5706 name "sub:Longtable-Captions"
5713 \begin_layout Standard
5714 A longtable cannot be put into a table float because floats can only be
5715 on one page but the caption environment of floats can also be used for
5717 Therefore the caption is inserted as first row of the table, as explained
5719 \begin_inset space \thinspace{}
5723 \begin_inset CommandInset ref
5725 reference "sec:Longtables"
5730 The first table row is then only a dummy row for the caption, the actual
5731 table starts with the second row.
5734 \begin_layout Standard
5735 Here is a short longtable to see how it works:
5738 \begin_layout Standard
5739 \begin_inset Tabular
5740 <lyxtabular version="3" rows="6" columns="5">
5741 <features islongtable="true">
5742 <column alignment="center" valignment="top" width="0">
5743 <column alignment="center" valignment="top" width="0">
5744 <column alignment="center" valignment="top" width="0">
5745 <column alignment="center" valignment="top" width="0">
5746 <column alignment="center" valignment="top" width="0">
5747 <row caption="true">
5748 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
5751 \begin_layout Plain Layout
5752 \begin_inset Caption
5754 \begin_layout Plain Layout
5755 Longtable with caption
5759 \begin_layout Plain Layout
5775 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5778 \begin_layout Plain Layout
5784 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5787 \begin_layout Plain Layout
5793 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5796 \begin_layout Plain Layout
5802 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5805 \begin_layout Plain Layout
5813 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5816 \begin_layout Plain Layout
5822 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5825 \begin_layout Plain Layout
5831 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5834 \begin_layout Plain Layout
5840 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5843 \begin_layout Plain Layout
5849 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5852 \begin_layout Plain Layout
5860 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5863 \begin_layout Plain Layout
5869 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5872 \begin_layout Plain Layout
5878 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5881 \begin_layout Plain Layout
5887 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5890 \begin_layout Plain Layout
5896 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5899 \begin_layout Plain Layout
5907 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5910 \begin_layout Plain Layout
5916 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5919 \begin_layout Plain Layout
5925 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5928 \begin_layout Plain Layout
5934 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5937 \begin_layout Plain Layout
5943 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5946 \begin_layout Plain Layout
5954 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5957 \begin_layout Plain Layout
5963 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5966 \begin_layout Plain Layout
5972 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5975 \begin_layout Plain Layout
5981 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5984 \begin_layout Plain Layout
5990 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5993 \begin_layout Plain Layout
6001 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6004 \begin_layout Plain Layout
6010 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6013 \begin_layout Plain Layout
6019 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6022 \begin_layout Plain Layout
6028 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6031 \begin_layout Plain Layout
6037 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6040 \begin_layout Plain Layout
6054 \begin_layout Standard
6055 \begin_inset VSpace medskip
6059 \begin_inset Note Greyedout
6062 \begin_layout Plain Layout
6067 The table number is increased for every longtable, also if you didn't set
6069 For this reason you could have the case that e.
6070 \begin_inset space \thinspace{}
6074 \begin_inset space \space{}
6078 \begin_inset space ~
6081 2.4 follows on Table
6082 \begin_inset space ~
6085 2.1 in the list of tables if there are two longtables without captions.
6086 To avoid this you can add the following command in TeX-Code behind every
6087 longtable without a caption:
6090 \begin_layout Plain Layout
6095 addtocounter{table}{-1}
6103 \begin_layout Standard
6104 \begin_inset Note Greyedout
6107 \begin_layout Plain Layout
6120 \begin_layout Plain Layout
6121 LaTeX-packages ! hyperref
6134 dialog to link cross-references, the link to a longtable caption will always
6135 point to the beginning of the document.
6143 \begin_layout Standard
6144 \begin_inset Newpage newpage
6150 \begin_layout Subsubsection
6151 References to Longtables
6155 \begin_layout Plain Layout
6156 Longtables ! References
6164 \begin_layout Standard
6165 \begin_inset Tabular
6166 <lyxtabular version="3" rows="6" columns="5">
6167 <features islongtable="true">
6168 <column alignment="center" valignment="top" width="0">
6169 <column alignment="center" valignment="top" width="0">
6170 <column alignment="center" valignment="top" width="0">
6171 <column alignment="center" valignment="top" width="0">
6172 <column alignment="center" valignment="top" width="0">
6173 <row caption="true">
6174 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6177 \begin_layout Plain Layout
6178 \begin_inset Caption
6180 \begin_layout Plain Layout
6181 Referenced longtable
6182 \begin_inset CommandInset label
6184 name "tab:RefExample"
6198 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6201 \begin_layout Plain Layout
6207 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6210 \begin_layout Plain Layout
6216 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6219 \begin_layout Plain Layout
6225 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6228 \begin_layout Plain Layout
6236 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6239 \begin_layout Plain Layout
6245 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6248 \begin_layout Plain Layout
6254 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6257 \begin_layout Plain Layout
6263 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6266 \begin_layout Plain Layout
6272 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6275 \begin_layout Plain Layout
6283 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6286 \begin_layout Plain Layout
6292 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6295 \begin_layout Plain Layout
6301 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6304 \begin_layout Plain Layout
6310 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6313 \begin_layout Plain Layout
6319 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6322 \begin_layout Plain Layout
6330 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6333 \begin_layout Plain Layout
6339 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6342 \begin_layout Plain Layout
6348 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6351 \begin_layout Plain Layout
6357 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6360 \begin_layout Plain Layout
6366 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6369 \begin_layout Plain Layout
6377 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6380 \begin_layout Plain Layout
6386 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6389 \begin_layout Plain Layout
6395 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6398 \begin_layout Plain Layout
6404 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6407 \begin_layout Plain Layout
6413 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6416 \begin_layout Plain Layout
6424 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6427 \begin_layout Plain Layout
6433 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6436 \begin_layout Plain Layout
6442 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6445 \begin_layout Plain Layout
6451 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6454 \begin_layout Plain Layout
6460 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6463 \begin_layout Plain Layout
6477 \begin_layout Standard
6478 To reference a longtable, insert a label into the caption.
6481 \begin_layout Standard
6482 This is a reference to Table
6483 \begin_inset space ~
6487 \begin_inset CommandInset ref
6489 reference "tab:RefExample"
6496 \begin_layout Standard
6497 The caption layout can be set together with all other captions of your document
6498 using the LaTeX-package
6506 \begin_layout Plain Layout
6507 LaTeX-packages ! caption
6513 \begin_inset space ~
6517 \begin_inset CommandInset ref
6519 reference "sec:Caption-Formatting"
6526 \begin_layout Subsubsection
6531 \begin_layout Plain Layout
6532 Longtables ! Caption Width
6540 \begin_layout Standard
6541 The maximal width of of caption lines is defined by the length
6548 Its default value is 4
6549 \begin_inset space \thinspace{}
6553 To change it add the following command to your document preamble or as
6554 TeX-Code into your document before the longtable that should be affected
6557 \begin_layout Standard
6567 \begin_layout Standard
6568 where the width could have one of the units listed in appendix
6569 \begin_inset space ~
6573 \begin_inset CommandInset ref
6575 reference "cha:Units-available-in"
6582 \begin_layout Standard
6583 The following tables show the difference:
6586 \begin_layout Standard
6587 \begin_inset Tabular
6588 <lyxtabular version="3" rows="6" columns="5">
6589 <features islongtable="true">
6590 <column alignment="center" valignment="top" width="0">
6591 <column alignment="center" valignment="top" width="0">
6592 <column alignment="center" valignment="top" width="0">
6593 <column alignment="center" valignment="top" width="0">
6594 <column alignment="center" valignment="top" width="0">
6595 <row caption="true">
6596 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6599 \begin_layout Plain Layout
6600 \begin_inset Caption
6602 \begin_layout Plain Layout
6603 long full title with default width long full title with default width long
6604 full title with default width
6608 \begin_layout Plain Layout
6609 caption with default width
6624 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6627 \begin_layout Plain Layout
6633 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6636 \begin_layout Plain Layout
6642 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6645 \begin_layout Plain Layout
6651 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6654 \begin_layout Plain Layout
6662 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6665 \begin_layout Plain Layout
6671 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6674 \begin_layout Plain Layout
6680 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6683 \begin_layout Plain Layout
6689 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6692 \begin_layout Plain Layout
6698 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6701 \begin_layout Plain Layout
6709 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6712 \begin_layout Plain Layout
6718 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6721 \begin_layout Plain Layout
6727 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6730 \begin_layout Plain Layout
6736 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6739 \begin_layout Plain Layout
6745 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6748 \begin_layout Plain Layout
6756 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6759 \begin_layout Plain Layout
6765 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6768 \begin_layout Plain Layout
6774 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6777 \begin_layout Plain Layout
6783 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6786 \begin_layout Plain Layout
6792 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6795 \begin_layout Plain Layout
6803 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6806 \begin_layout Plain Layout
6812 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6815 \begin_layout Plain Layout
6821 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6824 \begin_layout Plain Layout
6830 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6833 \begin_layout Plain Layout
6839 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6842 \begin_layout Plain Layout
6850 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6853 \begin_layout Plain Layout
6859 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6862 \begin_layout Plain Layout
6868 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6871 \begin_layout Plain Layout
6877 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6880 \begin_layout Plain Layout
6886 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6889 \begin_layout Plain Layout
6903 \begin_layout Standard
6907 \begin_layout Plain Layout
6919 \begin_inset Tabular
6920 <lyxtabular version="3" rows="6" columns="5">
6921 <features islongtable="true">
6922 <column alignment="center" valignment="top" width="0">
6923 <column alignment="center" valignment="top" width="0">
6924 <column alignment="center" valignment="top" width="0">
6925 <column alignment="center" valignment="top" width="0">
6926 <column alignment="center" valignment="top" width="0">
6927 <row caption="true">
6928 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6931 \begin_layout Plain Layout
6932 \begin_inset Caption
6934 \begin_layout Plain Layout
6935 long full title with width set to 5
6936 \begin_inset space \thinspace{}
6939 cm long full title with width set to 5
6940 \begin_inset space \thinspace{}
6943 cm long full title with width set to 5
6944 \begin_inset space \thinspace{}
6951 \begin_layout Plain Layout
6953 \begin_inset space \thinspace{}
6957 \begin_inset space \thinspace{}
6961 \begin_inset space \thinspace{}
6979 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6982 \begin_layout Plain Layout
6988 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6991 \begin_layout Plain Layout
6997 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7000 \begin_layout Plain Layout
7006 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7009 \begin_layout Plain Layout
7017 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7020 \begin_layout Plain Layout
7026 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7029 \begin_layout Plain Layout
7035 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7038 \begin_layout Plain Layout
7044 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7047 \begin_layout Plain Layout
7053 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7056 \begin_layout Plain Layout
7064 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7067 \begin_layout Plain Layout
7073 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7076 \begin_layout Plain Layout
7082 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7085 \begin_layout Plain Layout
7091 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7094 \begin_layout Plain Layout
7100 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7103 \begin_layout Plain Layout
7111 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7114 \begin_layout Plain Layout
7120 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7123 \begin_layout Plain Layout
7129 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7132 \begin_layout Plain Layout
7138 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7141 \begin_layout Plain Layout
7147 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7150 \begin_layout Plain Layout
7158 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7161 \begin_layout Plain Layout
7167 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7170 \begin_layout Plain Layout
7176 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7179 \begin_layout Plain Layout
7185 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7188 \begin_layout Plain Layout
7194 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7197 \begin_layout Plain Layout
7205 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7208 \begin_layout Plain Layout
7214 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7217 \begin_layout Plain Layout
7223 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7226 \begin_layout Plain Layout
7232 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7235 \begin_layout Plain Layout
7241 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7244 \begin_layout Plain Layout
7258 \begin_layout Standard
7262 \begin_layout Plain Layout
7276 \begin_layout Standard
7277 \begin_inset Note Greyedout
7280 \begin_layout Plain Layout
7285 When the LaTeX-package
7293 \begin_layout Plain Layout
7294 LaTeX-packages ! caption
7299 is used, as in this document, the full page width is used for the caption
7300 when you use the default value of 4
7301 \begin_inset space \thinspace{}
7311 To get in this case exactly a 4
7312 \begin_inset space \thinspace{}
7315 in wide caption, you can either use a value slightly different from 4.0
7316 \begin_inset space \thinspace{}
7320 \begin_inset space \thinspace{}
7324 \begin_inset space \space{}
7328 \begin_inset space \thinspace{}
7331 in, or the LaTeX-command
7335 captionsetup{width=value}
7337 that is provided by the
7349 \begin_layout Subsubsection
7350 Different Captions for Table Pages
7354 \begin_layout Plain Layout
7355 Longtables ! Different Captions for Pages
7363 \begin_layout Standard
7364 When the other captions should differ from the one of the first table page,
7365 insert a caption with a non-empty short title in a dummy caption row marked
7367 The caption used for the other table pages is inserted as caption without
7368 a short title in a dummy caption row that is marked as main header.
7369 When this caption shouldn't include the table number, use the command
7372 \begin_layout Standard
7377 caption*{caption text}
7380 \begin_layout Standard
7381 instead of LyX's caption box.
7382 The label to reference the table is inserted into the caption of the first
7385 \begin_inset space ~
7389 \begin_inset CommandInset ref
7391 reference "tab:DiffCaptions"
7395 is an example for a longtable with different heading where the second caption
7396 doesn't include the table number.
7399 \begin_layout Standard
7401 \begin_inset Tabular
7402 <lyxtabular version="3" rows="60" columns="3">
7403 <features islongtable="true">
7404 <column alignment="left" valignment="top" width="0cm">
7405 <column alignment="left" valignment="top" width="0pt">
7406 <column alignment="center" valignment="top" width="0pt">
7407 <row endfirsthead="true" caption="true">
7408 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7411 \begin_layout Plain Layout
7412 \begin_inset Caption
7414 \begin_layout Plain Layout
7416 \begin_inset CommandInset label
7418 name "tab:DiffCaptions"
7426 \begin_layout Plain Layout
7442 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7445 \begin_layout Plain Layout
7451 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7454 \begin_layout Plain Layout
7461 <row endfirsthead="true">
7462 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7465 \begin_layout Plain Layout
7468 Example Phone List (ignore the names)
7473 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7476 \begin_layout Plain Layout
7482 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7485 \begin_layout Plain Layout
7492 <row endfirsthead="true">
7493 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7496 \begin_layout Plain Layout
7504 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7507 \begin_layout Plain Layout
7513 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7516 \begin_layout Plain Layout
7525 <row endhead="true" caption="true">
7526 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7529 \begin_layout Plain Layout
7533 \begin_layout Plain Layout
7537 caption*{Continued Example Phone List}
7551 <cell multicolumn="2" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7554 \begin_layout Plain Layout
7560 <cell multicolumn="2" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7563 \begin_layout Plain Layout
7570 <row endhead="true">
7571 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7574 \begin_layout Plain Layout
7582 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7585 \begin_layout Plain Layout
7591 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7594 \begin_layout Plain Layout
7601 <row endhead="true">
7602 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
7605 \begin_layout Plain Layout
7613 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7616 \begin_layout Plain Layout
7622 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7625 \begin_layout Plain Layout
7634 <row endfoot="true">
7635 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
7638 \begin_layout Plain Layout
7639 continued on next page
7644 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7647 \begin_layout Plain Layout
7653 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7656 \begin_layout Plain Layout
7664 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7667 \begin_layout Plain Layout
7675 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7678 \begin_layout Plain Layout
7684 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
7687 \begin_layout Plain Layout
7695 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7698 \begin_layout Plain Layout
7706 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7709 \begin_layout Plain Layout
7715 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7718 \begin_layout Plain Layout
7726 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7729 \begin_layout Plain Layout
7737 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7740 \begin_layout Plain Layout
7746 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7749 \begin_layout Plain Layout
7757 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7760 \begin_layout Plain Layout
7768 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7771 \begin_layout Plain Layout
7777 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7780 \begin_layout Plain Layout
7788 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7791 \begin_layout Plain Layout
7799 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7802 \begin_layout Plain Layout
7808 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7811 \begin_layout Plain Layout
7819 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7822 \begin_layout Plain Layout
7830 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7833 \begin_layout Plain Layout
7839 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7842 \begin_layout Plain Layout
7850 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7853 \begin_layout Plain Layout
7861 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7864 \begin_layout Plain Layout
7870 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7873 \begin_layout Plain Layout
7881 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7884 \begin_layout Plain Layout
7892 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7895 \begin_layout Plain Layout
7901 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7904 \begin_layout Plain Layout
7912 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7915 \begin_layout Plain Layout
7923 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7926 \begin_layout Plain Layout
7932 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7935 \begin_layout Plain Layout
7943 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7946 \begin_layout Plain Layout
7954 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7957 \begin_layout Plain Layout
7963 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7966 \begin_layout Plain Layout
7974 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7977 \begin_layout Plain Layout
7985 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7988 \begin_layout Plain Layout
7994 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7997 \begin_layout Plain Layout
8005 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8008 \begin_layout Plain Layout
8016 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8019 \begin_layout Plain Layout
8025 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8028 \begin_layout Plain Layout
8036 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8039 \begin_layout Plain Layout
8047 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8050 \begin_layout Plain Layout
8056 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8059 \begin_layout Plain Layout
8067 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8070 \begin_layout Plain Layout
8078 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8081 \begin_layout Plain Layout
8087 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8090 \begin_layout Plain Layout
8098 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8101 \begin_layout Plain Layout
8110 \begin_layout Plain Layout
8121 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8124 \begin_layout Plain Layout
8130 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8133 \begin_layout Plain Layout
8141 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8144 \begin_layout Plain Layout
8152 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8155 \begin_layout Plain Layout
8161 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8164 \begin_layout Plain Layout
8172 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8175 \begin_layout Plain Layout
8183 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8186 \begin_layout Plain Layout
8192 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8195 \begin_layout Plain Layout
8203 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8206 \begin_layout Plain Layout
8214 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8217 \begin_layout Plain Layout
8223 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8226 \begin_layout Plain Layout
8234 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8237 \begin_layout Plain Layout
8245 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8248 \begin_layout Plain Layout
8254 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8257 \begin_layout Plain Layout
8265 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8268 \begin_layout Plain Layout
8276 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8279 \begin_layout Plain Layout
8285 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8288 \begin_layout Plain Layout
8296 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8299 \begin_layout Plain Layout
8307 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8310 \begin_layout Plain Layout
8316 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8319 \begin_layout Plain Layout
8327 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8330 \begin_layout Plain Layout
8338 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8341 \begin_layout Plain Layout
8347 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8350 \begin_layout Plain Layout
8358 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8361 \begin_layout Plain Layout
8369 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8372 \begin_layout Plain Layout
8378 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8381 \begin_layout Plain Layout
8389 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8392 \begin_layout Plain Layout
8400 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8403 \begin_layout Plain Layout
8409 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8412 \begin_layout Plain Layout
8420 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8423 \begin_layout Plain Layout
8431 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8434 \begin_layout Plain Layout
8440 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8443 \begin_layout Plain Layout
8451 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8454 \begin_layout Plain Layout
8462 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8465 \begin_layout Plain Layout
8471 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8474 \begin_layout Plain Layout
8482 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8485 \begin_layout Plain Layout
8493 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8496 \begin_layout Plain Layout
8502 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8505 \begin_layout Plain Layout
8513 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8516 \begin_layout Plain Layout
8524 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8527 \begin_layout Plain Layout
8533 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8536 \begin_layout Plain Layout
8544 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8547 \begin_layout Plain Layout
8555 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8558 \begin_layout Plain Layout
8564 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8567 \begin_layout Plain Layout
8575 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8578 \begin_layout Plain Layout
8586 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8589 \begin_layout Plain Layout
8595 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8598 \begin_layout Plain Layout
8606 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8609 \begin_layout Plain Layout
8617 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8620 \begin_layout Plain Layout
8626 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8629 \begin_layout Plain Layout
8637 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8640 \begin_layout Plain Layout
8646 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8649 \begin_layout Plain Layout
8655 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8658 \begin_layout Plain Layout
8666 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8669 \begin_layout Plain Layout
8677 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8680 \begin_layout Plain Layout
8686 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8689 \begin_layout Plain Layout
8697 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8700 \begin_layout Plain Layout
8708 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8711 \begin_layout Plain Layout
8717 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8720 \begin_layout Plain Layout
8728 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8731 \begin_layout Plain Layout
8739 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8742 \begin_layout Plain Layout
8748 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8751 \begin_layout Plain Layout
8759 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8762 \begin_layout Plain Layout
8770 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8773 \begin_layout Plain Layout
8779 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8782 \begin_layout Plain Layout
8790 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8793 \begin_layout Plain Layout
8801 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8804 \begin_layout Plain Layout
8810 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8813 \begin_layout Plain Layout
8821 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8824 \begin_layout Plain Layout
8832 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8835 \begin_layout Plain Layout
8841 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8844 \begin_layout Plain Layout
8852 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8855 \begin_layout Plain Layout
8863 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8866 \begin_layout Plain Layout
8872 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8875 \begin_layout Plain Layout
8883 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8886 \begin_layout Plain Layout
8894 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8897 \begin_layout Plain Layout
8903 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8906 \begin_layout Plain Layout
8914 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8917 \begin_layout Plain Layout
8925 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8928 \begin_layout Plain Layout
8934 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8937 \begin_layout Plain Layout
8945 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8948 \begin_layout Plain Layout
8956 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8959 \begin_layout Plain Layout
8965 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8968 \begin_layout Plain Layout
8976 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8979 \begin_layout Plain Layout
8987 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8990 \begin_layout Plain Layout
8996 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8999 \begin_layout Plain Layout
9007 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9010 \begin_layout Plain Layout
9018 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9021 \begin_layout Plain Layout
9027 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9030 \begin_layout Plain Layout
9038 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9041 \begin_layout Plain Layout
9049 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9052 \begin_layout Plain Layout
9058 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9061 \begin_layout Plain Layout
9069 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9072 \begin_layout Plain Layout
9080 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9083 \begin_layout Plain Layout
9089 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9092 \begin_layout Plain Layout
9100 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9103 \begin_layout Plain Layout
9111 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9114 \begin_layout Plain Layout
9120 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9123 \begin_layout Plain Layout
9131 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9134 \begin_layout Plain Layout
9142 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9145 \begin_layout Plain Layout
9151 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9154 \begin_layout Plain Layout
9162 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9165 \begin_layout Plain Layout
9173 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9176 \begin_layout Plain Layout
9182 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9185 \begin_layout Plain Layout
9193 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9196 \begin_layout Plain Layout
9204 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9207 \begin_layout Plain Layout
9213 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9216 \begin_layout Plain Layout
9224 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9227 \begin_layout Plain Layout
9235 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9238 \begin_layout Plain Layout
9244 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9247 \begin_layout Plain Layout
9255 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9258 \begin_layout Plain Layout
9266 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9269 \begin_layout Plain Layout
9275 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9278 \begin_layout Plain Layout
9285 <row endlastfoot="true">
9286 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9289 \begin_layout Plain Layout
9295 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
9298 \begin_layout Plain Layout
9304 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9307 \begin_layout Plain Layout
9321 \begin_layout Section
9322 Special Longtable Issues
9323 \begin_inset CommandInset label
9325 name "sec:Special-Longtable-Issues"
9332 \begin_layout Subsection
9333 Longtable Calculation
9337 \begin_layout Plain Layout
9338 Longtables ! Calculation
9346 \begin_layout Standard
9347 LaTeX calculates the height of table pages and their page breaks using so
9349 Chunks are pieces of the tables that are at once in LaTeX's memory.
9350 The default value is historically set to only 20 table rows.
9351 If you are using longtables with many pages this may slow down the creation
9353 You can safely increase the chunk size to values of 100-1000 by adding
9354 this command line to your document preamble:
9357 \begin_layout Standard
9362 setcounter{LTchunksize}{100}
9365 \begin_layout Subsection
9366 Floats and Longtables
9370 \begin_layout Plain Layout
9379 \begin_layout Standard
9380 There might be problems when a float appears on the same page where a longtable
9382 To avoid such situation, add the command
9388 as TeX-Code before your longtable.
9391 \begin_layout Subsection
9396 \begin_layout Plain Layout
9397 Longtables ! Forced Page Breaks
9405 \begin_layout Standard
9406 By default tables are only broken between rows.
9407 If you have a cell with multiples lines and want to have a page break within
9408 the cell, insert the new line command
9409 \begin_inset Quotes eld
9421 \begin_inset Quotes erd
9424 as TeX-Code at this point of the cell where it should be broken.
9433 command you have to insert in TeX-Code so many
9434 \begin_inset Quotes eld
9442 \begin_inset Quotes erd
9445 characters like the number of the following table columns.
9450 is the character to separate table cells.
9451 Write in TeX-Code after each
9455 the content of the corresponding following cell and delete the content
9457 \begin_inset Newline newline
9468 command, insert so many
9472 characters like the number of table columns before the current column.
9474 \begin_inset space ~
9478 \begin_inset CommandInset ref
9480 reference "tab:ForcedPagebreak"
9484 the cell that should be broken is in the second column followed by another
9486 Therefore the following command was inserted in the cell as TeX-Code behind
9488 \begin_inset Quotes eld
9496 \begin_inset Quotes erd
9502 \begin_layout Standard
9510 \begin_inset Newline newline
9516 \begin_layout Standard
9518 \begin_inset Quotes eld
9522 \begin_inset Quotes erd
9525 in the third columns of the row was deleted.
9526 If your footer row of the longtable has for a certain reason no upper line
9527 but you would have a horizontal line where the cell is broken, use this
9531 \begin_layout Standard
9539 \begin_inset Newline newline
9547 \begin_layout Standard
9548 When the cell to be broken is in the last column, the command
9551 \begin_layout Standard
9561 \begin_layout Standard
9562 must be inserted as TeX-Code at the beginning of the cell.
9563 This assures that the part of the cell that will be displayed on the new
9564 page appears with the full width.
9567 \begin_layout Standard
9569 \begin_inset Tabular
9570 <lyxtabular version="3" rows="39" columns="3">
9571 <features islongtable="true">
9572 <column alignment="left" valignment="top" width="0cm">
9573 <column alignment="left" valignment="top" width="3cm">
9574 <column alignment="center" valignment="top" width="0pt">
9575 <row endfirsthead="true" caption="true">
9576 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
9579 \begin_layout Plain Layout
9580 \begin_inset Caption
9582 \begin_layout Plain Layout
9583 Table with forced page break in table cell
9584 \begin_inset CommandInset label
9586 name "tab:ForcedPagebreak"
9594 \begin_layout Plain Layout
9595 Table with forced page break in table cell
9610 <cell multicolumn="2" alignment="center" valignment="top" rightline="true" usebox="none">
9613 \begin_layout Plain Layout
9619 <cell multicolumn="2" alignment="center" valignment="top" rightline="true" usebox="none">
9622 \begin_layout Plain Layout
9629 <row endfirsthead="true">
9630 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9633 \begin_layout Plain Layout
9636 Example Phone List (ignore the names)
9641 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9644 \begin_layout Plain Layout
9650 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9653 \begin_layout Plain Layout
9660 <row endfirsthead="true">
9661 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9664 \begin_layout Plain Layout
9672 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9675 \begin_layout Plain Layout
9681 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9684 \begin_layout Plain Layout
9693 <row endhead="true" caption="true">
9694 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
9697 \begin_layout Plain Layout
9701 \begin_layout Plain Layout
9705 caption*{Continued table with forced page break in table cell}
9719 <cell multicolumn="2" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
9722 \begin_layout Plain Layout
9728 <cell multicolumn="2" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
9731 \begin_layout Plain Layout
9738 <row endhead="true">
9739 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9742 \begin_layout Plain Layout
9750 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9753 \begin_layout Plain Layout
9759 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9762 \begin_layout Plain Layout
9769 <row endhead="true">
9770 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9773 \begin_layout Plain Layout
9781 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9784 \begin_layout Plain Layout
9790 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9793 \begin_layout Plain Layout
9802 <row endfoot="true">
9803 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
9806 \begin_layout Plain Layout
9807 continued on next page
9812 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9815 \begin_layout Plain Layout
9821 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9824 \begin_layout Plain Layout
9832 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9835 \begin_layout Plain Layout
9843 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9846 \begin_layout Plain Layout
9852 <cell alignment="right" valignment="top" rightline="true" usebox="none">
9855 \begin_layout Plain Layout
9863 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9866 \begin_layout Plain Layout
9874 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9877 \begin_layout Plain Layout
9883 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9886 \begin_layout Plain Layout
9894 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9897 \begin_layout Plain Layout
9905 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9908 \begin_layout Plain Layout
9914 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9917 \begin_layout Plain Layout
9925 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9928 \begin_layout Plain Layout
9936 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9939 \begin_layout Plain Layout
9945 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9948 \begin_layout Plain Layout
9956 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9959 \begin_layout Plain Layout
9967 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9970 \begin_layout Plain Layout
9976 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9979 \begin_layout Plain Layout
9987 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9990 \begin_layout Plain Layout
9998 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10001 \begin_layout Plain Layout
10007 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10010 \begin_layout Plain Layout
10018 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10021 \begin_layout Plain Layout
10029 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10032 \begin_layout Plain Layout
10038 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10041 \begin_layout Plain Layout
10049 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10052 \begin_layout Plain Layout
10060 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10063 \begin_layout Plain Layout
10069 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10072 \begin_layout Plain Layout
10080 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10083 \begin_layout Plain Layout
10091 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10094 \begin_layout Plain Layout
10100 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10103 \begin_layout Plain Layout
10111 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10114 \begin_layout Plain Layout
10122 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10125 \begin_layout Plain Layout
10131 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10134 \begin_layout Plain Layout
10142 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10145 \begin_layout Plain Layout
10153 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10156 \begin_layout Plain Layout
10162 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10165 \begin_layout Plain Layout
10173 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10176 \begin_layout Plain Layout
10184 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10187 \begin_layout Plain Layout
10193 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10196 \begin_layout Plain Layout
10204 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10207 \begin_layout Plain Layout
10215 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10218 \begin_layout Plain Layout
10224 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10227 \begin_layout Plain Layout
10235 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10238 \begin_layout Plain Layout
10246 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10249 \begin_layout Plain Layout
10255 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10258 \begin_layout Plain Layout
10266 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10269 \begin_layout Plain Layout
10277 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10280 \begin_layout Plain Layout
10286 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10289 \begin_layout Plain Layout
10297 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10300 \begin_layout Plain Layout
10308 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10311 \begin_layout Plain Layout
10317 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10320 \begin_layout Plain Layout
10328 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10331 \begin_layout Plain Layout
10339 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10342 \begin_layout Plain Layout
10348 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10351 \begin_layout Plain Layout
10359 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10362 \begin_layout Plain Layout
10370 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10373 \begin_layout Plain Layout
10379 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10382 \begin_layout Plain Layout
10390 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10393 \begin_layout Plain Layout
10401 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10404 \begin_layout Plain Layout
10410 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10413 \begin_layout Plain Layout
10421 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10424 \begin_layout Plain Layout
10432 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10435 \begin_layout Plain Layout
10441 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10444 \begin_layout Plain Layout
10452 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10455 \begin_layout Plain Layout
10463 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10466 \begin_layout Plain Layout
10472 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10475 \begin_layout Plain Layout
10483 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10486 \begin_layout Plain Layout
10494 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10497 \begin_layout Plain Layout
10503 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10506 \begin_layout Plain Layout
10514 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10517 \begin_layout Plain Layout
10525 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10528 \begin_layout Plain Layout
10530 Fürst von Montecompatri, 11.
10531 Fürst von Sulmona und Vivaro, 10.
10532 Fürst von Rossano, 5.
10533 Herzog von Canemorte, 11.
10534 Herzog von Palombara, 5.
10535 Herzog von Castelchiodato,
10539 \begin_layout Plain Layout
10548 \begin_layout Plain Layout
10556 Herzog von Poggionativo, 11.
10557 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10558 Graf von Valinfreda, 11.
10559 Baron von Cropalati, 11.
10560 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10565 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10568 \begin_layout Plain Layout
10576 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10579 \begin_layout Plain Layout
10587 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10590 \begin_layout Plain Layout
10596 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10599 \begin_layout Plain Layout
10607 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10610 \begin_layout Plain Layout
10618 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10621 \begin_layout Plain Layout
10627 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10630 \begin_layout Plain Layout
10638 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10641 \begin_layout Plain Layout
10649 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10652 \begin_layout Plain Layout
10658 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10661 \begin_layout Plain Layout
10669 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10672 \begin_layout Plain Layout
10680 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10683 \begin_layout Plain Layout
10689 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10692 \begin_layout Plain Layout
10700 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10703 \begin_layout Plain Layout
10711 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10714 \begin_layout Plain Layout
10720 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10723 \begin_layout Plain Layout
10731 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10734 \begin_layout Plain Layout
10742 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10745 \begin_layout Plain Layout
10751 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10754 \begin_layout Plain Layout
10762 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10765 \begin_layout Plain Layout
10773 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10776 \begin_layout Plain Layout
10782 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10785 \begin_layout Plain Layout
10793 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10796 \begin_layout Plain Layout
10804 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
10807 \begin_layout Plain Layout
10813 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
10816 \begin_layout Plain Layout
10823 <row endlastfoot="true">
10824 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
10827 \begin_layout Plain Layout
10833 <cell multicolumn="2" alignment="center" valignment="top" rightline="true" usebox="none">
10836 \begin_layout Plain Layout
10842 <cell multicolumn="2" alignment="center" valignment="top" rightline="true" usebox="none">
10845 \begin_layout Plain Layout
10859 \begin_layout Standard
10860 \begin_inset Newpage newpage
10866 \begin_layout Section
10867 Multiple Lines Columns and Rows
10870 \begin_layout Subsection
10871 Multiple Lines in Table Cells
10872 \begin_inset CommandInset label
10874 name "sub:Multiple-Lines-in"
10882 \begin_layout Plain Layout
10883 Multiple Lines in Table Cells
10892 \begin_layout Plain Layout
10901 \begin_layout Standard
10903 \begin_inset Float table
10909 \begin_layout Plain Layout
10910 \begin_inset Caption
10912 \begin_layout Plain Layout
10913 \begin_inset CommandInset label
10915 name "tab:Table-with-multiple"
10919 Table with multiple lines in cells
10927 \begin_layout Plain Layout
10929 \begin_inset Tabular
10930 <lyxtabular version="3" rows="3" columns="3">
10932 <column alignment="center" valignment="middle" width="2.5cm">
10933 <column alignment="center" valignment="middle" width="0">
10934 <column alignment="center" valignment="middle" width="0">
10936 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10939 \begin_layout Plain Layout
10941 \begin_inset Newline linebreak
10949 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10952 \begin_layout Plain Layout
10958 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10961 \begin_layout Plain Layout
10969 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10972 \begin_layout Plain Layout
10978 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10981 \begin_layout Plain Layout
10987 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10990 \begin_layout Plain Layout
10998 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11001 \begin_layout Plain Layout
11007 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11010 \begin_layout Plain Layout
11016 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11019 \begin_layout Plain Layout
11038 \begin_layout Standard
11039 Adjusting a fixed width for a column, enables to enter text as a paragraph
11040 with multiple lines and hyphenations.
11043 \begin_layout Standard
11045 \begin_inset space ~
11049 \begin_inset CommandInset ref
11051 reference "tab:Table-with-multiple"
11055 , create a 3×3 table, mark the first cell and right-click on it.
11056 In the appearing table dialog we set a cell width of 2.5
11057 \begin_inset space \thinspace{}
11060 cm and choose centered for the vertical and horizontal alignment.
11061 The vertical alignment is used for all cells of the row.
11062 As our text is smaller than than 2.5
11063 \begin_inset space \thinspace{}
11066 cm, only one line will appear.
11067 To get two lines, a justified line break (shortcut
11070 arg "newline-insert linebreak"
11074 If the text is wider than the set cell width, it will automatically be
11075 broken to several lines.
11078 \begin_layout Standard
11079 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11080 by LaTeX if it is the first entry.
11081 Therefore you need to insert something, to make the word not being the
11083 So add a horizontal space of 0
11084 \begin_inset space \thinspace{}
11087 pt before the word.
11088 As the space is zero, it doesn't change the output.
11090 \begin_inset space ~
11094 \begin_inset CommandInset ref
11096 reference "tab:Table-with-and"
11103 \begin_layout Standard
11104 \begin_inset Float table
11110 \begin_layout Plain Layout
11111 \begin_inset Caption
11113 \begin_layout Plain Layout
11114 \begin_inset CommandInset label
11116 name "tab:Table-with-and"
11120 Table with and without hyphenation
11128 \begin_layout Plain Layout
11129 \begin_inset space \hfill{}
11133 \begin_inset Tabular
11134 <lyxtabular version="3" rows="3" columns="3">
11136 <column alignment="center" valignment="middle" width="2.5cm">
11137 <column alignment="center" valignment="middle" width="0">
11138 <column alignment="center" valignment="middle" width="0">
11140 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11143 \begin_layout Plain Layout
11144 verylongtablecellword
11149 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11152 \begin_layout Plain Layout
11158 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11161 \begin_layout Plain Layout
11169 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11172 \begin_layout Plain Layout
11178 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11181 \begin_layout Plain Layout
11187 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11190 \begin_layout Plain Layout
11198 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11201 \begin_layout Plain Layout
11207 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11210 \begin_layout Plain Layout
11216 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11219 \begin_layout Plain Layout
11231 \begin_inset space \hfill{}
11235 \begin_inset Tabular
11236 <lyxtabular version="3" rows="3" columns="3">
11238 <column alignment="center" valignment="middle" width="2.5cm">
11239 <column alignment="center" valignment="middle" width="0">
11240 <column alignment="center" valignment="middle" width="0">
11242 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11245 \begin_layout Plain Layout
11246 \begin_inset space \hspace{}
11250 verylongtablecellword
11255 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11258 \begin_layout Plain Layout
11264 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11267 \begin_layout Plain Layout
11275 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11278 \begin_layout Plain Layout
11284 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11287 \begin_layout Plain Layout
11293 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11296 \begin_layout Plain Layout
11304 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11307 \begin_layout Plain Layout
11313 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11316 \begin_layout Plain Layout
11322 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11325 \begin_layout Plain Layout
11337 \begin_inset space \hfill{}
11348 \begin_layout Subsection
11350 \begin_inset CommandInset label
11352 name "sub:Multicolumns"
11360 \begin_layout Plain Layout
11370 \begin_layout Plain Layout
11371 Table ! Multicolumns
11379 \begin_layout Subsubsection
11383 \begin_layout Standard
11384 To span a cell over multiple columns, mark as much cells within a line that
11385 should be one spanned cell and use either the table-toolbar button
11386 \begin_inset Graphics
11387 filename ../images/tabular-feature_multicolumn.png
11389 scaleBeforeRotation
11395 Edit\SpecialChar \menuseparator
11396 Table\SpecialChar \menuseparator
11399 , or right click on the marked cells and choose multicolumn in the appearing
11400 table dialog under the tab
11407 \begin_layout Standard
11408 Multicolumns have there own cell settings.
11409 That means changing cell borders, cell alignment, and the width only affects
11411 Here is an example table with a multicolumn cell in the first row and one
11412 in the last row without the upper border:
11415 \begin_layout Standard
11417 \begin_inset Tabular
11418 <lyxtabular version="3" rows="3" columns="4">
11419 <features firstHeadTopDL="true" firstHeadBottomDL="true">
11420 <column alignment="center" valignment="top" width="0pt">
11421 <column alignment="center" valignment="middle" width="0">
11422 <column alignment="center" valignment="top" width="0in">
11423 <column alignment="center" valignment="top" width="0pt">
11425 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11428 \begin_layout Plain Layout
11434 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11437 \begin_layout Plain Layout
11443 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11446 \begin_layout Plain Layout
11452 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11455 \begin_layout Plain Layout
11463 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11466 \begin_layout Plain Layout
11481 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11484 \begin_layout Plain Layout
11490 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11493 \begin_layout Plain Layout
11499 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11502 \begin_layout Plain Layout
11510 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11513 \begin_layout Plain Layout
11519 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11522 \begin_layout Plain Layout
11528 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11531 \begin_layout Plain Layout
11537 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11540 \begin_layout Plain Layout
11554 \begin_layout Subsubsection
11555 Multicolumn Calculations
11556 \begin_inset CommandInset label
11558 name "sub:Multicolumn-Calculations"
11566 \begin_layout Plain Layout
11567 Multicolumns ! Calculations
11575 \begin_layout Standard
11576 LyX supports multicolumns directly, but we have to take notice of the cell
11577 width of the columns spanned by the multicolumn cell.
11580 \begin_layout Standard
11581 \begin_inset Float table
11587 \begin_layout Plain Layout
11588 \begin_inset Caption
11590 \begin_layout Plain Layout
11591 \begin_inset CommandInset label
11593 name "tab:Table-with-centered"
11597 Table with centered multicolumn text above two columns that have exactly
11598 half the width of the multicolumn cell
11599 \begin_inset OptArg
11602 \begin_layout Plain Layout
11603 Perfect multicolumn table
11616 \begin_layout Plain Layout
11618 \begin_inset Tabular
11619 <lyxtabular version="3" rows="3" columns="3">
11621 <column alignment="center" valignment="middle" width="0" special=">{\centering}m{1.25cm-6.2pt}">
11622 <column alignment="center" valignment="middle" width="0">
11623 <column alignment="center" valignment="top" width="0">
11625 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11628 \begin_layout Plain Layout
11629 multiple lines multicolumn
11634 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11637 \begin_layout Plain Layout
11643 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11646 \begin_layout Plain Layout
11654 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11657 \begin_layout Plain Layout
11663 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11666 \begin_layout Plain Layout
11672 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11675 \begin_layout Plain Layout
11683 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11686 \begin_layout Plain Layout
11692 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11695 \begin_layout Plain Layout
11701 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11704 \begin_layout Plain Layout
11723 \begin_layout Standard
11724 To create for example Table
11725 \begin_inset space ~
11729 \begin_inset CommandInset ref
11731 reference "tab:Table-with-centered"
11735 , mark the first two cells in the first row of a 3×3 table and right-click
11737 Now choose for this cell
11746 \begin_inset space \thinspace{}
11749 cm in the table dialog.
11750 The spanned columns should have exactly half the width of the multicolumn
11751 cell, so that you would adjust a width of 1.25
11752 \begin_inset space \thinspace{}
11755 cm for the first column.
11756 The second column has then automatically a width of 1.25
11757 \begin_inset space \thinspace{}
11760 cm (multicolumn width - width of first column).
11761 This was done for Table
11762 \begin_inset space ~
11766 \begin_inset CommandInset ref
11768 reference "tab:Table-without-half"
11775 \begin_layout Standard
11776 \begin_inset Float table
11781 \begin_layout Plain Layout
11782 \begin_inset Caption
11784 \begin_layout Plain Layout
11785 \begin_inset CommandInset label
11787 name "tab:Table-without-half"
11791 Table where the spanned table columns have not exactly half the width of
11792 the multicolumn cell
11793 \begin_inset OptArg
11796 \begin_layout Plain Layout
11797 Imperfect multicolumn table
11810 \begin_layout Plain Layout
11812 \begin_inset Tabular
11813 <lyxtabular version="3" rows="3" columns="3">
11815 <column alignment="center" valignment="top" width="1.25cm">
11816 <column alignment="center" valignment="top" width="0">
11817 <column alignment="center" valignment="top" width="0">
11819 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
11822 \begin_layout Plain Layout
11823 multiple lines multicolumn
11828 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11831 \begin_layout Plain Layout
11837 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11840 \begin_layout Plain Layout
11848 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11851 \begin_layout Plain Layout
11857 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11860 \begin_layout Plain Layout
11866 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11869 \begin_layout Plain Layout
11877 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11880 \begin_layout Plain Layout
11886 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11889 \begin_layout Plain Layout
11895 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11898 \begin_layout Plain Layout
11917 \begin_layout Standard
11918 You can see that the first column has not the half width of the multicolumn
11919 cell, it is a bit bigger.
11920 The reason is that the given width of a cell
11921 \begin_inset Formula $W_{g}$
11924 is not its total width
11925 \begin_inset Formula $W_{\mathrm{tot}}$
11928 because a cell is always a bit larger than its given width.
11930 \begin_inset space ~
11934 \begin_inset CommandInset ref
11936 reference "cha:Explanation-of-Equation"
11940 explains it in detail.
11943 \begin_layout Standard
11944 The needed given width
11945 \begin_inset Formula $W_{g\, n}$
11952 columns are spanned can be calculated, so that each column has a total
11954 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
11958 \begin_inset Formula \begin{equation}
11959 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}\end{equation}
11966 \begin_layout Standard
11967 In our case we have
11968 \begin_inset Formula $n=2$
11972 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
11975 cm and the default values for the lengths, so that equation
11976 \begin_inset CommandInset ref
11983 \begin_inset Formula \begin{equation}
11984 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}\end{equation}
11991 \begin_layout Standard
11992 To enable calculations in LaTeX, the LaTeX-package
11996 must be loaded with the document preamble line
12000 \begin_layout Plain Layout
12001 LaTeX-packages ! calc
12009 \begin_layout Standard
12017 \begin_layout Standard
12018 LyX does not allow to calculate lengths in the width-field of the table
12020 Therefore you have to format the column by inserting a LaTeX-argument in
12022 Here is an overview about the arguments:
12025 \begin_layout Itemize
12030 creates cell with a fixed width, its text is vertically top-aligned
12033 \begin_layout Itemize
12038 creates cell with a fixed width, its text is vertically centered
12041 \begin_layout Itemize
12046 creates cell with a fixed width, its text is vertically bottom-aligned
12049 \begin_layout Standard
12050 By entering a LaTeX-argument, all cell settings set in the table dialog
12054 \begin_layout Standard
12055 \begin_inset Note Greyedout
12058 \begin_layout Plain Layout
12063 Due to a bug, LyX shows the overwritten settings anyway.
12071 \begin_layout Standard
12072 As the text should be horizontally centered, the command
12079 You can now enter the following LaTeX-argument for the first spanned column:
12082 \begin_layout Standard
12087 centering}m{1.25cm-6.2pt}
12090 \begin_layout Standard
12095 means, that the commands inside the braces are applied before the cell
12099 \begin_layout Standard
12100 Although we have chosen centered alignment for the text of the multicolumn
12101 cell, it is still left aligned.
12102 This is because LyX only applies the alignment to single columns.
12103 So we have to use for the multicolumn the LaTeX-argument
12106 \begin_layout Standard
12114 \begin_layout Subsection
12119 \begin_layout Plain Layout
12129 \begin_layout Plain Layout
12138 \begin_layout Standard
12139 In contrary to multicolumns multirows are not yet supported by LyX so a
12140 bit of TeX-Code needs to be used.
12141 To use multirows load the LaTeX-package
12149 \begin_layout Plain Layout
12150 LaTeX-packages ! multirow
12155 in your document preamble with the command
12158 \begin_layout Standard
12163 usepackage{multirow}
12166 \begin_layout Standard
12167 Multirows are created with the command
12170 \begin_layout Standard
12175 multirow{number of rows}{cell width}{cell entry}
12178 \begin_layout Standard
12179 To create the following table:
12182 \begin_layout Standard
12187 \begin_layout Plain Layout
12201 \begin_inset Tabular
12202 <lyxtabular version="3" rows="3" columns="3">
12204 <column alignment="center" valignment="top" width="0">
12205 <column alignment="center" valignment="top" width="0">
12206 <column alignment="center" valignment="top" width="0">
12208 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12211 \begin_layout Plain Layout
12217 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12220 \begin_layout Plain Layout
12226 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12229 \begin_layout Plain Layout
12237 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12240 \begin_layout Plain Layout
12244 \begin_layout Plain Layout
12248 multirow{2}{2.5cm}{
12257 \begin_layout Plain Layout
12269 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12272 \begin_layout Plain Layout
12278 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12281 \begin_layout Plain Layout
12289 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
12292 \begin_layout Plain Layout
12298 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12301 \begin_layout Plain Layout
12307 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12310 \begin_layout Plain Layout
12325 \begin_layout Plain Layout
12341 \begin_layout Standard
12342 create a 3×3 table.
12343 To get rid of the line above the last cell in the first column, the cell
12344 is marked as multicolumn and the upper border is unset.
12345 The multirow is now created in the second row of the first column by inserting
12349 \begin_layout Standard
12354 multirow{2}{2.5cm}{
12357 \begin_layout Standard
12359 According to the command parameters the multirow spans now two rows and
12361 \begin_inset space \thinspace{}
12365 The content of the multirow cell follows outside the TeX-Code box and the
12366 command is finished with a right brace
12370 in another TeX-Code-box behind the text.
12373 \begin_layout Standard
12380 left-aligns its content by default.
12381 To override the default, renew the command
12390 \begin_layout Standard
12402 \begin_layout Standard
12403 in TeX-Code in the document preamble.
12404 Then all entries of multirow cells in the document are centered.
12405 If centering is only needed for several tables, you can renew the command
12406 in an TeX-Code box just before the table instead of the preamble.
12407 If the text should be right-aligned, replace
12420 To return to left-alignment
12429 \begin_layout Section
12431 \begin_inset CommandInset label
12433 name "sec:Formal-Tables"
12441 \begin_layout Plain Layout
12450 \begin_layout Standard
12451 Tables are often typeset in books similar to Table
12452 \begin_inset space ~
12456 \begin_inset CommandInset ref
12458 reference "tab:Example-booktabs-table"
12463 This kind of tables is called
12464 \begin_inset Quotes eld
12472 \begin_inset Quotes erd
12476 To make a table a formal table use the option
12484 tab of the table dialog.
12487 \begin_layout Standard
12488 \begin_inset Float table
12494 \begin_layout Plain Layout
12495 \begin_inset Caption
12497 \begin_layout Plain Layout
12498 \begin_inset CommandInset label
12500 name "tab:Example-booktabs-table"
12504 Example booktabs-table
12512 \begin_layout Plain Layout
12514 \begin_inset Tabular
12515 <lyxtabular version="3" rows="8" columns="4">
12516 <features booktabs="true">
12517 <column alignment="center" valignment="top" width="0">
12518 <column alignment="center" valignment="top" width="0">
12519 <column alignment="center" valignment="top" width="0">
12520 <column alignment="center" valignment="top" width="0">
12522 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12525 \begin_layout Plain Layout
12531 <cell alignment="center" valignment="top" topline="true" usebox="none">
12534 \begin_layout Plain Layout
12536 \begin_inset space \thinspace{}
12544 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
12547 \begin_layout Plain Layout
12549 \begin_inset space \thinspace{}
12557 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12560 \begin_layout Plain Layout
12568 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12571 \begin_layout Plain Layout
12575 \begin_layout Plain Layout
12588 \begin_layout Plain Layout
12597 Detector thickness [µm]
12602 <cell alignment="center" valignment="top" usebox="none">
12605 \begin_layout Plain Layout
12611 <cell alignment="center" valignment="top" usebox="none">
12614 \begin_layout Plain Layout
12620 <cell alignment="center" valignment="top" usebox="none">
12623 \begin_layout Plain Layout
12631 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12634 \begin_layout Plain Layout
12640 <cell alignment="center" valignment="top" topline="true" usebox="none">
12643 \begin_layout Plain Layout
12649 <cell alignment="center" valignment="top" topline="true" usebox="none">
12652 \begin_layout Plain Layout
12658 <cell alignment="center" valignment="top" topline="true" usebox="none">
12661 \begin_layout Plain Layout
12668 <row topspace="default">
12669 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12672 \begin_layout Plain Layout
12673 Spatial resolution [µm]
12678 <cell alignment="center" valignment="top" usebox="none">
12681 \begin_layout Plain Layout
12687 <cell alignment="center" valignment="top" usebox="none">
12690 \begin_layout Plain Layout
12696 <cell alignment="center" valignment="top" usebox="none">
12699 \begin_layout Plain Layout
12706 <row topspace="default">
12707 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12710 \begin_layout Plain Layout
12712 \begin_inset Formula $f_{\mathrm{max}}$
12720 <cell alignment="center" valignment="top" usebox="none">
12723 \begin_layout Plain Layout
12729 <cell alignment="center" valignment="top" usebox="none">
12732 \begin_layout Plain Layout
12738 <cell alignment="center" valignment="top" usebox="none">
12741 \begin_layout Plain Layout
12748 <row topspace="default">
12749 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12752 \begin_layout Plain Layout
12756 \begin_layout Plain Layout
12760 cmidrule(l{10pt}){1-1}
12765 LSF-spatial resolution
12770 <cell alignment="center" valignment="top" usebox="none">
12773 \begin_layout Plain Layout
12779 <cell alignment="center" valignment="top" usebox="none">
12782 \begin_layout Plain Layout
12788 <cell alignment="center" valignment="top" usebox="none">
12791 \begin_layout Plain Layout
12799 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12802 \begin_layout Plain Layout
12808 <cell alignment="center" valignment="top" usebox="none">
12811 \begin_layout Plain Layout
12817 <cell alignment="center" valignment="top" usebox="none">
12820 \begin_layout Plain Layout
12826 <cell alignment="center" valignment="top" usebox="none">
12829 \begin_layout Plain Layout
12837 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
12840 \begin_layout Plain Layout
12846 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12849 \begin_layout Plain Layout
12855 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12858 \begin_layout Plain Layout
12864 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12867 \begin_layout Plain Layout
12886 \begin_layout Standard
12887 Spaces to table rows can be added using the
12891 tab of the table dialog as described in section
12892 \begin_inset space ~
12896 \begin_inset CommandInset ref
12898 reference "sub:Row-Spacing"
12905 \begin_layout Standard
12906 In contrary to normal tables, formal tables have no vertical table lines.
12907 The horizontal table lines can be set like for normal tables but they appear
12908 with different width in the output:
12909 \begin_inset Newline newline
12912 The first and the last table line have a default width of 0.08
12913 \begin_inset space \thinspace{}
12916 em while the other lines have a default width of 0.05
12917 \begin_inset space \thinspace{}
12923 \begin_layout Standard
12924 The default widths can be changed with the following preamble lines
12927 \begin_layout Standard
12937 \begin_inset Newline newline
12949 \begin_layout Standard
12950 This example is for the first line, the so called
12955 If you want to change the width for the last line, replace
12964 To change the width for the other lines replace
12973 You can use all units listed in appendix
12974 \begin_inset space ~
12978 \begin_inset CommandInset ref
12980 reference "cha:Units-available-in"
12987 \begin_layout Standard
12988 Lines that don't span over all table columns can be created by setting a
12989 table line for multicolumn cells.
12990 LyX will then internally use the command
12996 to create this line.
13000 \begin_layout Standard
13005 cmidrule[width](trim){startcol-endcol}
13008 \begin_layout Standard
13015 are are currently not supported by LyX so you have to use TeX-Code to be
13023 s can manually be created by inserting the command as TeX-Code as first
13024 cell entry of the first cell of a row.
13025 The line is then drawn in the output above the current row.
13028 \begin_layout Standard
13029 The default for the width is 0.03
13030 \begin_inset space \thinspace{}
13034 Startcol is the number of the column where the line starts and endcol the
13035 column number where the line ends.
13036 The endcol always needs to be specified, also when the line should span
13038 The optional parameter trim could be either
13046 where the trimwidth is also optional.
13047 Using for example the parameter
13051 means that the line is trimmed from its left end by 2
13052 \begin_inset space \thinspace{}
13056 If you don't specify the trimwidth the lines are trimmed by the default
13058 \begin_inset space \thinspace{}
13064 \begin_layout Standard
13065 \begin_inset VSpace bigskip
13069 \begin_inset space ~
13073 \begin_inset CommandInset ref
13075 reference "tab:Example-booktabs-table"
13079 was created using the commands
13082 \begin_layout Standard
13092 \begin_layout Standard
13093 at the beginning of the in the second row and
13096 \begin_layout Standard
13101 cmidrule(l{10pt}){1-1}
13104 \begin_layout Standard
13108 \begin_layout Standard
13109 \begin_inset VSpace bigskip
13115 \begin_layout Standard
13116 You might want to have overlapping
13123 \begin_inset space ~
13127 \begin_inset CommandInset ref
13129 reference "tab:Special-booktabs-table"
13134 This can be achieved with the TeX-Code command
13137 \begin_layout Standard
13145 \begin_layout Standard
13146 The command that was used for the second row of Table
13147 \begin_inset space ~
13151 \begin_inset CommandInset ref
13153 reference "tab:Special-booktabs-table"
13160 \begin_layout Standard
13174 \begin_layout Standard
13175 The command for the sixth row is
13178 \begin_layout Standard
13190 \begin_layout Standard
13191 \begin_inset VSpace bigskip
13197 \begin_layout Standard
13198 If you are anyway not satisfied with the border line spacing, you can use
13199 the following command to produce lines that span over all table columns
13204 \begin_layout Standard
13209 specialrule{width}{space above}{space below}
13212 \begin_layout Standard
13213 For more informations about these specialties, we refer to the manual of
13219 \begin_inset CommandInset citation
13229 \begin_layout Plain Layout
13230 LaTeX-packages ! booktabs
13238 \begin_layout Standard
13239 \begin_inset Float table
13245 \begin_layout Plain Layout
13246 \begin_inset Caption
13248 \begin_layout Plain Layout
13249 \begin_inset CommandInset label
13251 name "tab:Special-booktabs-table"
13255 Special booktabs-table
13263 \begin_layout Plain Layout
13265 \begin_inset Tabular
13266 <lyxtabular version="3" rows="8" columns="4">
13267 <features booktabs="true">
13268 <column alignment="center" valignment="top" width="0">
13269 <column alignment="center" valignment="top" width="0">
13270 <column alignment="center" valignment="top" width="0">
13271 <column alignment="center" valignment="top" width="0">
13273 <cell alignment="center" valignment="top" topline="true" usebox="none">
13276 \begin_layout Plain Layout
13282 <cell alignment="center" valignment="top" topline="true" usebox="none">
13285 \begin_layout Plain Layout
13287 \begin_inset space \thinspace{}
13295 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
13298 \begin_layout Plain Layout
13300 \begin_inset space \thinspace{}
13308 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13311 \begin_layout Plain Layout
13319 <cell alignment="center" valignment="top" usebox="none">
13322 \begin_layout Plain Layout
13326 \begin_layout Plain Layout
13339 \begin_layout Plain Layout
13352 \begin_layout Plain Layout
13365 \begin_layout Plain Layout
13374 Detector thickness [µm]
13379 <cell alignment="center" valignment="top" usebox="none">
13382 \begin_layout Plain Layout
13388 <cell alignment="center" valignment="top" usebox="none">
13391 \begin_layout Plain Layout
13397 <cell alignment="center" valignment="top" usebox="none">
13400 \begin_layout Plain Layout
13408 <cell alignment="center" valignment="top" topline="true" usebox="none">
13411 \begin_layout Plain Layout
13417 <cell alignment="center" valignment="top" topline="true" usebox="none">
13420 \begin_layout Plain Layout
13426 <cell alignment="center" valignment="top" topline="true" usebox="none">
13429 \begin_layout Plain Layout
13435 <cell alignment="center" valignment="top" topline="true" usebox="none">
13438 \begin_layout Plain Layout
13445 <row topspace="default">
13446 <cell alignment="center" valignment="top" usebox="none">
13449 \begin_layout Plain Layout
13450 Spatial resolution [µm]
13455 <cell alignment="center" valignment="top" usebox="none">
13458 \begin_layout Plain Layout
13464 <cell alignment="center" valignment="top" usebox="none">
13467 \begin_layout Plain Layout
13473 <cell alignment="center" valignment="top" usebox="none">
13476 \begin_layout Plain Layout
13483 <row topspace="default">
13484 <cell alignment="center" valignment="top" usebox="none">
13487 \begin_layout Plain Layout
13489 \begin_inset Formula $f_{\mathrm{max}}$
13497 <cell alignment="center" valignment="top" usebox="none">
13500 \begin_layout Plain Layout
13506 <cell alignment="center" valignment="top" usebox="none">
13509 \begin_layout Plain Layout
13515 <cell alignment="center" valignment="top" usebox="none">
13518 \begin_layout Plain Layout
13526 <cell alignment="center" valignment="top" topline="true" usebox="none">
13529 \begin_layout Plain Layout
13533 \begin_layout Plain Layout
13546 \begin_layout Plain Layout
13555 LSF-spatial resolution
13560 <cell alignment="center" valignment="top" topline="true" usebox="none">
13563 \begin_layout Plain Layout
13569 <cell alignment="center" valignment="top" topline="true" usebox="none">
13572 \begin_layout Plain Layout
13578 <cell alignment="center" valignment="top" topline="true" usebox="none">
13581 \begin_layout Plain Layout
13589 <cell alignment="center" valignment="top" usebox="none">
13592 \begin_layout Plain Layout
13598 <cell alignment="center" valignment="top" usebox="none">
13601 \begin_layout Plain Layout
13607 <cell alignment="center" valignment="top" usebox="none">
13610 \begin_layout Plain Layout
13616 <cell alignment="center" valignment="top" usebox="none">
13619 \begin_layout Plain Layout
13627 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13630 \begin_layout Plain Layout
13636 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13639 \begin_layout Plain Layout
13645 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13648 \begin_layout Plain Layout
13654 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13657 \begin_layout Plain Layout
13676 \begin_layout Section
13677 Vertical Table Alignment
13681 \begin_layout Plain Layout
13690 \begin_layout Standard
13691 To align tables vertically in a text line the table must be inside a box.
13692 The box can then be vertically aligned as described in section
13693 \begin_inset space ~
13697 \begin_inset CommandInset ref
13699 reference "sec:Box-Dialog"
13706 \begin_layout Standard
13707 In the following example the tables are inside a minipage
13711 \begin_layout Plain Layout
13712 Minipages are described in section
13713 \begin_inset space ~
13717 \begin_inset CommandInset ref
13719 reference "sec:Minipages"
13728 box that has a width of 15
13729 \begin_inset space \thinspace{}
13735 \begin_layout Itemize
13737 \begin_inset Box Frameless
13746 height_special "totalheight"
13749 \begin_layout Plain Layout
13750 \begin_inset Tabular
13751 <lyxtabular version="3" rows="3" columns="3">
13753 <column alignment="center" valignment="top" width="0">
13754 <column alignment="center" valignment="top" width="0">
13755 <column alignment="center" valignment="top" width="0">
13757 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13760 \begin_layout Plain Layout
13766 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13769 \begin_layout Plain Layout
13775 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13778 \begin_layout Plain Layout
13786 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13789 \begin_layout Plain Layout
13795 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13798 \begin_layout Plain Layout
13804 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13807 \begin_layout Plain Layout
13815 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13818 \begin_layout Plain Layout
13824 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13827 \begin_layout Plain Layout
13833 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13836 \begin_layout Plain Layout
13856 \begin_layout Plain Layout
13868 \begin_inset Box Frameless
13877 height_special "totalheight"
13880 \begin_layout Plain Layout
13881 \begin_inset Tabular
13882 <lyxtabular version="3" rows="3" columns="3">
13884 <column alignment="center" valignment="top" width="0">
13885 <column alignment="center" valignment="top" width="0">
13886 <column alignment="center" valignment="top" width="0">
13888 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13891 \begin_layout Plain Layout
13897 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13900 \begin_layout Plain Layout
13906 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13909 \begin_layout Plain Layout
13917 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13920 \begin_layout Plain Layout
13926 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13929 \begin_layout Plain Layout
13935 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13938 \begin_layout Plain Layout
13946 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13949 \begin_layout Plain Layout
13955 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13958 \begin_layout Plain Layout
13964 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13967 \begin_layout Plain Layout
13987 \begin_layout Plain Layout
13997 \begin_layout Itemize
13999 \begin_inset Box Frameless
14008 height_special "totalheight"
14011 \begin_layout Plain Layout
14012 \begin_inset Tabular
14013 <lyxtabular version="3" rows="3" columns="3">
14015 <column alignment="center" valignment="top" width="0">
14016 <column alignment="center" valignment="top" width="0">
14017 <column alignment="center" valignment="top" width="0">
14019 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14022 \begin_layout Plain Layout
14028 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14031 \begin_layout Plain Layout
14037 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14040 \begin_layout Plain Layout
14048 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14051 \begin_layout Plain Layout
14057 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14060 \begin_layout Plain Layout
14066 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14069 \begin_layout Plain Layout
14077 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14080 \begin_layout Plain Layout
14086 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14089 \begin_layout Plain Layout
14095 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14098 \begin_layout Plain Layout
14117 \begin_layout Itemize
14119 \begin_inset Box Frameless
14128 height_special "totalheight"
14131 \begin_layout Plain Layout
14132 \begin_inset Tabular
14133 <lyxtabular version="3" rows="3" columns="3">
14135 <column alignment="center" valignment="top" width="0">
14136 <column alignment="center" valignment="top" width="0">
14137 <column alignment="center" valignment="top" width="0">
14139 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14142 \begin_layout Plain Layout
14148 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14151 \begin_layout Plain Layout
14157 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14160 \begin_layout Plain Layout
14168 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14171 \begin_layout Plain Layout
14177 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14180 \begin_layout Plain Layout
14186 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14189 \begin_layout Plain Layout
14197 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14200 \begin_layout Plain Layout
14206 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14209 \begin_layout Plain Layout
14215 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14218 \begin_layout Plain Layout
14238 \begin_layout Plain Layout
14250 \begin_inset Box Frameless
14259 height_special "totalheight"
14262 \begin_layout Plain Layout
14263 \begin_inset Tabular
14264 <lyxtabular version="3" rows="3" columns="3">
14266 <column alignment="center" valignment="top" width="0">
14267 <column alignment="center" valignment="top" width="0">
14268 <column alignment="center" valignment="top" width="0">
14270 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14273 \begin_layout Plain Layout
14279 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14282 \begin_layout Plain Layout
14288 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14291 \begin_layout Plain Layout
14299 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14302 \begin_layout Plain Layout
14308 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14311 \begin_layout Plain Layout
14317 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14320 \begin_layout Plain Layout
14328 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14331 \begin_layout Plain Layout
14337 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14340 \begin_layout Plain Layout
14346 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14349 \begin_layout Plain Layout
14369 \begin_layout Plain Layout
14379 \begin_layout Standard
14380 As you can see, the content of the first and last table row is not correctly
14381 aligned with the text line where the table is in.
14382 To get this alignment, the minipage box must be set into a raisebox
14386 \begin_layout Plain Layout
14387 Raiseboxes are described in section
14388 \begin_inset space ~
14392 \begin_inset CommandInset ref
14394 reference "sub:Vertical-Alignment"
14404 In the example above the second table in the first item is aligned using
14405 the TeX-Code-command
14408 \begin_layout Standard
14418 \begin_layout Standard
14420 Behind the box the closing brace
14424 is inserted as TeX-Code.
14425 For the second table in the last item the command
14428 \begin_layout Standard
14438 \begin_layout Standard
14442 \begin_layout Standard
14443 \begin_inset Note Greyedout
14446 \begin_layout Plain Layout
14451 The alignment of the table row content to the surrounding text line is
14453 The needed factor of the
14459 command for this alignment depends on the document font, the font size,
14460 and the table line thickness.
14468 \begin_layout Section
14470 \begin_inset CommandInset label
14472 name "sec:Colored-Tables"
14480 \begin_layout Plain Layout
14489 \begin_layout Subsection
14494 \begin_layout Plain Layout
14495 Table Color ! for Cells
14504 \begin_layout Plain Layout
14505 Color ! for Table Cells
14513 \begin_layout Standard
14514 \begin_inset Float table
14520 \begin_layout Plain Layout
14521 \begin_inset Caption
14523 \begin_layout Plain Layout
14524 \begin_inset CommandInset label
14526 name "tab:Table-colored-without"
14530 Table colored without using the package
14535 \begin_inset OptArg
14538 \begin_layout Plain Layout
14539 Table without colortbl
14552 \begin_layout Plain Layout
14554 \begin_inset Tabular
14555 <lyxtabular version="3" rows="3" columns="3">
14557 <column alignment="center" valignment="top" width="0">
14558 <column alignment="center" valignment="top" width="0">
14559 <column alignment="center" valignment="top" width="0">
14561 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14564 \begin_layout Plain Layout
14572 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14575 \begin_layout Plain Layout
14583 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14586 \begin_layout Plain Layout
14596 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14599 \begin_layout Plain Layout
14607 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14610 \begin_layout Plain Layout
14618 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14621 \begin_layout Plain Layout
14631 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14634 \begin_layout Plain Layout
14642 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14645 \begin_layout Plain Layout
14653 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14656 \begin_layout Plain Layout
14677 \begin_layout Standard
14678 If you only need colored text, mark the cells and choose a color in the
14681 Edit\SpecialChar \menuseparator
14683 \begin_inset space ~
14689 This was used to create Table
14690 \begin_inset space ~
14694 \begin_inset CommandInset ref
14696 reference "tab:Table-colored-without"
14701 In any other case you have to use the LaTeX-package
14709 \begin_layout Plain Layout
14710 LaTeX-packages ! colortbl
14718 \begin_layout Standard
14722 \begin_layout Plain Layout
14732 \begin_inset Note Note
14735 \begin_layout Plain Layout
14736 The following section part will only be displayed when the LaTeX-package
14749 \begin_layout Standard
14750 To create colored tables,
14754 must be loaded in the preamble with the line
14757 \begin_layout Standard
14762 usepackage{colortbl}
14765 \begin_layout Standard
14766 The color of a column is adjusted with the command
14769 \begin_layout Standard
14774 columncolor{name of color}
14777 \begin_layout Standard
14783 More about the command
14787 is described in section
14788 \begin_inset space ~
14792 \begin_inset CommandInset ref
14794 reference "sub:Multicolumn-Calculations"
14801 \begin_layout Standard
14802 The following color names are predefined:
14805 \begin_layout Standard
14839 \begin_layout Standard
14840 \begin_inset VSpace medskip
14846 \begin_layout Standard
14847 You can also define your own color with the command
14850 \begin_layout Standard
14855 definecolor{color name}{color model}{color values}
14858 \begin_layout Standard
14859 The color model can be
14862 \begin_layout Labeling
14863 \labelwidthstring 00.00.0000
14864 cmyk: cyan, magenta, yellow, black
14867 \begin_layout Labeling
14868 \labelwidthstring 00.00.0000
14869 rgb: red, green blue
14872 \begin_layout Labeling
14873 \labelwidthstring 00.00.0000
14877 \begin_layout Standard
14878 and the color values are comma separated numbers between 0 and 1 describing
14879 the factor for the corresponding color of the color model.
14882 \begin_layout Standard
14884 \begin_inset space \thinspace{}
14888 \begin_inset space \space{}
14895 " in the preamble with
14898 \begin_layout Standard
14903 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
14906 \begin_layout Standard
14914 \begin_layout Standard
14919 definecolor{lightgray}{gray}{0.8}
14922 \begin_layout Standard
14923 \begin_inset VSpace medskip
14929 \begin_layout Standard
14930 Lines are colored with the command
14933 \begin_layout Standard
14938 rowcolor{name of color}
14941 \begin_layout Standard
14942 and cells are colored with the command
14945 \begin_layout Standard
14950 cellcolor{name of color}
14953 \begin_layout Standard
14954 Both commands are inserted at the beginning of a cell as TeX-Code.
14957 \begin_layout Standard
14958 To color characters in the table, mark the cells and use the LyX menu
14960 Edit\SpecialChar \menuseparator
14962 \begin_inset space ~
14968 If a cell contains TeX-Code mark only the characters, otherwise the colored
14969 TeX-Code will cause LaTeX-errors.
14972 \begin_layout Standard
14973 \begin_inset Note Greyedout
14976 \begin_layout Plain Layout
14981 Not all DVI-viewers are able to display self-defined colors.
14989 \begin_layout Standard
14990 \begin_inset VSpace bigskip
14996 \begin_layout Standard
14998 \begin_inset space ~
15002 \begin_inset CommandInset ref
15004 reference "tab:Table-colored-using"
15008 do the following: The color of the first column should be
15016 \begin_layout Standard
15021 columncolor{darkgreen}
15026 \begin_layout Standard
15027 as LaTeX-argument for this column.
15028 The first row should be blue, therefore the TeX-Code command
15031 \begin_layout Standard
15039 \begin_layout Standard
15040 is inserted to the first cell of this row.
15041 Note that this overwrites the column color for the first cell.
15042 The last cell of the last row is colored magenta by inserting the TeX-Code
15046 \begin_layout Standard
15054 \begin_layout Standard
15055 The characters could now be colored using the menu
15057 Edit\SpecialChar \menuseparator
15059 \begin_inset space ~
15067 \begin_layout Standard
15068 \begin_inset Float table
15074 \begin_layout Plain Layout
15075 \begin_inset Caption
15077 \begin_layout Plain Layout
15078 \begin_inset CommandInset label
15080 name "tab:Table-colored-using"
15084 Table colored using the package
15089 \begin_inset OptArg
15092 \begin_layout Plain Layout
15093 Table with colortbl
15106 \begin_layout Plain Layout
15108 \begin_inset Tabular
15109 <lyxtabular version="3" rows="3" columns="3">
15111 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
15112 <column alignment="center" valignment="top" width="0">
15113 <column alignment="center" valignment="top" width="0">
15115 <cell alignment="center" valignment="top" usebox="none">
15118 \begin_layout Plain Layout
15122 \begin_layout Plain Layout
15138 <cell alignment="center" valignment="top" usebox="none">
15141 \begin_layout Plain Layout
15149 <cell alignment="center" valignment="top" usebox="none">
15152 \begin_layout Plain Layout
15162 <cell alignment="center" valignment="top" usebox="none">
15165 \begin_layout Plain Layout
15173 <cell alignment="center" valignment="top" usebox="none">
15176 \begin_layout Plain Layout
15184 <cell alignment="center" valignment="top" usebox="none">
15187 \begin_layout Plain Layout
15197 <cell alignment="center" valignment="top" usebox="none">
15200 \begin_layout Plain Layout
15208 <cell alignment="center" valignment="top" usebox="none">
15211 \begin_layout Plain Layout
15219 <cell alignment="center" valignment="top" usebox="none">
15222 \begin_layout Plain Layout
15226 \begin_layout Plain Layout
15255 \begin_layout Standard
15259 \begin_layout Plain Layout
15269 \begin_inset Note Note
15272 \begin_layout Plain Layout
15273 The following will be displayed when the LaTeX-package
15285 \begin_layout Standard
15286 You need to install the package
15290 to see the content of this section in the output.
15293 \begin_layout Standard
15297 \begin_layout Plain Layout
15309 \begin_layout Subsection
15314 \begin_layout Plain Layout
15315 Table Color ! for Lines
15324 \begin_layout Plain Layout
15325 Color ! for Table Lines
15333 \begin_layout Standard
15334 As described in section
15335 \begin_inset space ~
15339 \begin_inset CommandInset ref
15341 reference "sub:Line-Thickness"
15345 , the line thickness for all lines in a table can be adjusted with the length
15354 \begin_inset space \thinspace{}
15357 pt for all tables of this section.
15361 \begin_layout Plain Layout
15367 arrayrulewidth}{1.5pt}
15375 \begin_layout Standard
15376 To color vertical lines for example with green, create the following column
15377 format in the document preamble, according to the description in section
15378 \begin_inset space ~
15382 \begin_inset CommandInset ref
15384 reference "sub:Customized-Format"
15391 \begin_layout Standard
15396 newcolumntype{W}{!{
15403 \begin_layout Standard
15405 \begin_inset space ~
15409 \begin_inset CommandInset ref
15411 reference "tab:Table-with-vertical-colored"
15419 was used for the last column and
15423 for the other columns.
15426 \begin_layout Standard
15427 If you want to have several colors, define more column formats.
15430 \begin_layout Standard
15431 \begin_inset Float table
15437 \begin_layout Plain Layout
15438 \begin_inset Caption
15440 \begin_layout Plain Layout
15441 \begin_inset CommandInset label
15443 name "tab:Table-with-vertical-colored"
15447 Table with colored vertical lines
15455 \begin_layout Plain Layout
15457 \begin_inset Tabular
15458 <lyxtabular version="3" rows="3" columns="3">
15460 <column alignment="center" valignment="top" width="0" special="Wc">
15461 <column alignment="center" valignment="top" width="0" special="Wc">
15462 <column alignment="center" valignment="top" width="0" special="WcW">
15464 <cell alignment="center" valignment="top" topline="true" usebox="none">
15467 \begin_layout Plain Layout
15473 <cell alignment="center" valignment="top" topline="true" usebox="none">
15476 \begin_layout Plain Layout
15482 <cell alignment="center" valignment="top" topline="true" usebox="none">
15485 \begin_layout Plain Layout
15493 <cell alignment="center" valignment="top" topline="true" usebox="none">
15496 \begin_layout Plain Layout
15502 <cell alignment="center" valignment="top" topline="true" usebox="none">
15505 \begin_layout Plain Layout
15511 <cell alignment="center" valignment="top" topline="true" usebox="none">
15514 \begin_layout Plain Layout
15522 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15525 \begin_layout Plain Layout
15531 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15534 \begin_layout Plain Layout
15540 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15543 \begin_layout Plain Layout
15562 \begin_layout Standard
15563 \begin_inset VSpace bigskip
15566 To color horizontal lines for example with red, like in Table
15567 \begin_inset space ~
15571 \begin_inset CommandInset ref
15573 reference "tab:Table-with-horizontal-colored"
15577 , insert these commands in TeX-Code before the table or table float:
15580 \begin_layout Standard
15590 \begin_inset Newline newline
15598 \begin_inset Newline newline
15605 \begin_layout Plain Layout
15616 arrayrulecolor{red}
15620 arrayrulecolor{black}}
15623 \begin_layout Standard
15627 \begin_layout Plain Layout
15638 \begin_layout Plain Layout
15647 \begin_layout Plain Layout
15651 arrayrulecolor{red}
15655 arrayrulecolor{black}}
15661 \begin_inset Float table
15667 \begin_layout Plain Layout
15668 \begin_inset Caption
15670 \begin_layout Plain Layout
15671 \begin_inset CommandInset label
15673 name "tab:Table-with-horizontal-colored"
15677 Table with colored horizontal lines
15685 \begin_layout Plain Layout
15687 \begin_inset Tabular
15688 <lyxtabular version="3" rows="3" columns="3">
15690 <column alignment="center" valignment="top" width="0">
15691 <column alignment="center" valignment="top" width="0">
15692 <column alignment="center" valignment="top" width="0">
15694 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15697 \begin_layout Plain Layout
15703 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15706 \begin_layout Plain Layout
15712 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15715 \begin_layout Plain Layout
15723 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15726 \begin_layout Plain Layout
15732 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15735 \begin_layout Plain Layout
15741 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15744 \begin_layout Plain Layout
15752 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15755 \begin_layout Plain Layout
15761 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15764 \begin_layout Plain Layout
15770 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
15773 \begin_layout Plain Layout
15792 \begin_layout Standard
15793 To return to the default line color black, insert this command in TeX-Code
15794 behind the table or table float:
15797 \begin_layout Standard
15809 \begin_layout Standard
15811 \begin_inset space ~
15815 \begin_inset CommandInset ref
15817 reference "tab:Table-with-colored"
15821 is an example with colored vertical and horizontal lines.
15824 \begin_layout Standard
15825 \begin_inset Float table
15831 \begin_layout Plain Layout
15832 \begin_inset Caption
15834 \begin_layout Plain Layout
15835 \begin_inset CommandInset label
15837 name "tab:Table-with-colored"
15841 Table with colored lines
15849 \begin_layout Plain Layout
15851 \begin_inset Tabular
15852 <lyxtabular version="3" rows="3" columns="3">
15854 <column alignment="center" valignment="top" width="0" special="Wc">
15855 <column alignment="center" valignment="top" width="0" special="Wc">
15856 <column alignment="center" valignment="top" width="0" special="WcW">
15858 <cell alignment="center" valignment="top" topline="true" usebox="none">
15861 \begin_layout Plain Layout
15867 <cell alignment="center" valignment="top" topline="true" usebox="none">
15870 \begin_layout Plain Layout
15876 <cell alignment="center" valignment="top" topline="true" usebox="none">
15879 \begin_layout Plain Layout
15887 <cell alignment="center" valignment="top" topline="true" usebox="none">
15890 \begin_layout Plain Layout
15896 <cell alignment="center" valignment="top" topline="true" usebox="none">
15899 \begin_layout Plain Layout
15905 <cell alignment="center" valignment="top" topline="true" usebox="none">
15908 \begin_layout Plain Layout
15915 <row topspace="default">
15916 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15919 \begin_layout Plain Layout
15925 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15928 \begin_layout Plain Layout
15934 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15937 \begin_layout Plain Layout
15956 \begin_layout Standard
15960 \begin_layout Plain Layout
15976 \begin_layout Standard
15980 \begin_layout Plain Layout
15986 arrayrulewidth}{0.4pt}
15994 \begin_layout Section
15995 Table Customization
15999 \begin_layout Plain Layout
16000 Table Customization
16009 \begin_layout Plain Layout
16010 Table ! Customization
16018 \begin_layout Subsection
16020 \begin_inset CommandInset label
16022 name "sub:Row-Spacing"
16030 \begin_layout Plain Layout
16031 Table Customization ! Row Spacing
16039 \begin_layout Standard
16040 You can add vertical space to table rows in the
16044 tab of the table dialog.
16045 You find there three possibilities:
16048 \begin_layout Description
16050 \begin_inset space ~
16054 \begin_inset space ~
16057 row will add space above the characters of the table row.
16058 If the table is a formal table
16062 \begin_layout Plain Layout
16063 Formal tables are explained in section
16064 \begin_inset space ~
16068 \begin_inset CommandInset ref
16070 reference "sec:Formal-Tables"
16079 LyX will insert as default 0.5
16080 \begin_inset space \thinspace{}
16084 For normal tables the inserted space will unfortunately destroy the vertical
16085 table lines as in the following table:
16086 \begin_inset VSpace medskip
16090 \begin_inset Newline newline
16094 \begin_inset space \hspace*{}
16099 \begin_inset space \hfill{}
16103 \begin_inset Tabular
16104 <lyxtabular version="3" rows="3" columns="1">
16106 <column alignment="center" valignment="top" width="0">
16108 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16111 \begin_layout Plain Layout
16118 <row topspace="3mm">
16119 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16122 \begin_layout Plain Layout
16124 \begin_inset space \thinspace{}
16127 mm space top of row
16134 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16137 \begin_layout Plain Layout
16149 \begin_inset space \hfill{}
16153 \begin_inset space \hspace*{}
16158 \begin_inset VSpace medskip
16162 \begin_inset Newline newline
16165 So inserting space to the top of row for normal tables is only useful when
16166 you don't have vertical lines.
16169 \begin_layout Description
16171 \begin_inset space ~
16175 \begin_inset space ~
16178 row will add space below the characters of the table row.
16179 If the table is a formal table LyX will insert as default 0.5
16180 \begin_inset space \thinspace{}
16183 em space, for normal tables the default size is 2
16184 \begin_inset space \thinspace{}
16190 \begin_layout Description
16192 \begin_inset space ~
16195 rows adds space between the current and the following row.
16196 If the table is a formal table LyX will insert as default 0.5
16197 \begin_inset space \thinspace{}
16201 For normal tables the inserted space will unfortunately destroy the vertical
16202 table lines as in the following table:
16203 \begin_inset VSpace medskip
16207 \begin_inset Newline newline
16211 \begin_inset space \hspace*{}
16216 \begin_inset space \hfill{}
16220 \begin_inset Tabular
16221 <lyxtabular version="3" rows="3" columns="1">
16223 <column alignment="center" valignment="top" width="0">
16225 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16228 \begin_layout Plain Layout
16235 <row interlinespace="3mm">
16236 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16239 \begin_layout Plain Layout
16240 \begin_inset Formula $\downarrow$
16244 \begin_inset space \thinspace{}
16247 mm space between row
16248 \begin_inset Formula $\downarrow$
16258 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16261 \begin_layout Plain Layout
16262 \begin_inset Formula $\uparrow$
16266 \begin_inset space \thinspace{}
16269 mm space between row
16270 \begin_inset Formula $\uparrow$
16284 \begin_inset space \hfill{}
16288 \begin_inset space \hspace*{}
16293 \begin_inset VSpace medskip
16297 \begin_inset Newline newline
16300 So inserting space between rows for normal tables is only useful when you
16301 don't have vertical lines.
16304 \begin_layout Standard
16305 \begin_inset VSpace bigskip
16308 When you want to add extra height to all cells of all tables, you can do
16309 this with the following preamble lines:
16312 \begin_layout Standard
16317 @ifundefined{extrarowheight}
16318 \begin_inset Newline newline
16325 \begin_layout Plain Layout
16336 usepackage{array}}{}
16337 \begin_inset Newline newline
16344 extrarowheight}{height}
16347 \begin_layout Standard
16348 But this has the disadvantage that the cell texts are no longer exactly
16349 vertically centered.
16354 will be loaded automatically by LyX when you use self defined table formats.
16355 To avoid that it is loaded twice the command
16361 is used in the above command.)
16364 \begin_layout Subsection
16365 Special Cell Alignment
16369 \begin_layout Plain Layout
16370 Table Customization ! Special Cell Alignment
16378 \begin_layout Standard
16379 Sometimes it looks better when the cell entries of a column are aligned
16380 with a special character, e.
16381 \begin_inset space \thinspace{}
16385 \begin_inset space \space{}
16388 with the decimal separator as in Table
16389 \begin_inset space ~
16393 \begin_inset CommandInset ref
16395 reference "tab:Table-cells-of"
16402 \begin_layout Standard
16403 \begin_inset Float table
16409 \begin_layout Plain Layout
16410 \begin_inset Caption
16412 \begin_layout Plain Layout
16413 \begin_inset CommandInset label
16415 name "tab:Table-cells-of"
16419 Table cells of a column aligned with the decimal separator.
16427 \begin_layout Plain Layout
16429 \begin_inset Tabular
16430 <lyxtabular version="3" rows="4" columns="2">
16432 <column alignment="right" valignment="top" width="0">
16433 <column alignment="left" valignment="top" width="0" special="@{}l">
16435 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16438 \begin_layout Plain Layout
16444 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16447 \begin_layout Plain Layout
16455 <cell alignment="center" valignment="top" usebox="none">
16458 \begin_layout Plain Layout
16464 <cell alignment="center" valignment="top" usebox="none">
16467 \begin_layout Plain Layout
16475 <cell alignment="center" valignment="top" usebox="none">
16478 \begin_layout Plain Layout
16484 <cell alignment="center" valignment="top" usebox="none">
16487 \begin_layout Plain Layout
16495 <cell alignment="center" valignment="top" usebox="none">
16498 \begin_layout Plain Layout
16504 <cell alignment="center" valignment="top" usebox="none">
16507 \begin_layout Plain Layout
16526 \begin_layout Standard
16527 This table was created with a 4×2 table.
16528 The heading is a centered multicolumn.
16529 The first column is right-aligned and contains the digits before the decimal
16530 point and the decimal point.
16531 The second column is left aligned and contains the digits after the decimal
16533 To omit the space that is normally between two table columns, use the following
16534 LaTeX-argument for the second column:
16537 \begin_layout Standard
16543 \begin_layout Standard
16545 \begin_inset space ~
16549 \begin_inset CommandInset ref
16551 reference "tab:Several-table-cell"
16555 shows some example alignments.
16556 For the alignment with the relation sign, you must add the second smallest
16557 math-space at the beginning of the last column to get the correct space
16558 surrounding the relation sign.
16561 \begin_layout Standard
16562 \begin_inset Float table
16567 \begin_layout Plain Layout
16568 \begin_inset Caption
16570 \begin_layout Plain Layout
16571 \begin_inset CommandInset label
16573 name "tab:Several-table-cell"
16577 Several table cell alignments.
16585 \begin_layout Plain Layout
16587 \begin_inset Tabular
16588 <lyxtabular version="3" rows="4" columns="6">
16590 <column alignment="right" valignment="top" width="0">
16591 <column alignment="left" valignment="top" width="0" special="@{}l">
16592 <column alignment="right" valignment="top" width="0">
16593 <column alignment="left" valignment="top" width="0" special="@{}l">
16594 <column alignment="right" valignment="top" width="0">
16595 <column alignment="left" valignment="top" width="0" special="@{}l">
16597 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16600 \begin_layout Plain Layout
16606 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16609 \begin_layout Plain Layout
16615 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16618 \begin_layout Plain Layout
16624 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16627 \begin_layout Plain Layout
16633 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16636 \begin_layout Plain Layout
16642 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16645 \begin_layout Plain Layout
16653 <cell alignment="center" valignment="top" usebox="none">
16656 \begin_layout Plain Layout
16662 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16665 \begin_layout Plain Layout
16667 \begin_inset space \thinspace{}
16675 <cell alignment="center" valignment="top" usebox="none">
16678 \begin_layout Plain Layout
16679 \begin_inset Formula $10\cdot$
16687 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16690 \begin_layout Plain Layout
16691 \begin_inset Formula $10^{\mbox{-}17}$
16699 <cell alignment="center" valignment="top" usebox="none">
16702 \begin_layout Plain Layout
16703 \begin_inset Formula $\Gamma(t)\propto$
16711 <cell alignment="center" valignment="top" usebox="none">
16714 \begin_layout Plain Layout
16715 \begin_inset Formula $\:\Upsilon(t)$
16725 <cell alignment="center" valignment="top" usebox="none">
16728 \begin_layout Plain Layout
16734 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16737 \begin_layout Plain Layout
16739 \begin_inset space \thinspace{}
16747 <cell alignment="center" valignment="top" usebox="none">
16750 \begin_layout Plain Layout
16751 \begin_inset Formula $5.78\cdot$
16759 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16762 \begin_layout Plain Layout
16763 \begin_inset Formula $10^{7}$
16771 <cell alignment="center" valignment="top" usebox="none">
16774 \begin_layout Plain Layout
16775 \begin_inset Formula $A\ne$
16783 <cell alignment="center" valignment="top" usebox="none">
16786 \begin_layout Plain Layout
16787 \begin_inset Formula $\: B_{\mathrm{red}}$
16797 <cell alignment="center" valignment="top" usebox="none">
16800 \begin_layout Plain Layout
16806 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16809 \begin_layout Plain Layout
16811 \begin_inset space \thinspace{}
16819 <cell alignment="center" valignment="top" usebox="none">
16822 \begin_layout Plain Layout
16824 \begin_inset Formula $33.5\cdot$
16832 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16835 \begin_layout Plain Layout
16836 \begin_inset Formula $10^{4}$
16844 <cell alignment="center" valignment="top" usebox="none">
16847 \begin_layout Plain Layout
16848 \begin_inset Formula $\sin(\alpha)\ge$
16856 <cell alignment="center" valignment="top" usebox="none">
16859 \begin_layout Plain Layout
16860 \begin_inset Formula $\:\sin(\beta)$
16881 \begin_layout Standard
16882 \begin_inset VSpace bigskip
16885 There is also the LaTeX-package
16893 \begin_layout Plain Layout
16894 LaTeX-packages ! dcolumn
16899 that provides table cell alignments.
16900 But this unfortunately treats the cell entries as math and doesn't allow
16901 formulas in table cells: The first column of Table
16902 \begin_inset space ~
16906 \begin_inset CommandInset ref
16908 reference "tab:Several-table-cell"
16916 like the first column in Table
16917 \begin_inset space ~
16921 \begin_inset CommandInset ref
16923 reference "tab:Alignments-when"
16927 and only with some tricks like the expected.
16928 The alignment of the second and third column of Table
16929 \begin_inset space ~
16933 \begin_inset CommandInset ref
16935 reference "tab:Several-table-cell"
16939 is not possible with
16946 \begin_layout Standard
16947 \begin_inset Float table
16953 \begin_layout Plain Layout
16954 \begin_inset Caption
16956 \begin_layout Plain Layout
16957 \begin_inset CommandInset label
16959 name "tab:Alignments-when"
16963 Alignments when LaTeX-package dcolumn is used.
16964 For all column alignments tricks have to be used to get the output.
16972 \begin_layout Plain Layout
16974 \begin_inset Tabular
16975 <lyxtabular version="3" rows="4" columns="3">
16977 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{-1}">
16978 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{4.9}">
16979 <column alignment="center" valignment="top" width="0" special="D{~}{\,}{9.7}">
16981 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16984 \begin_layout Plain Layout
16990 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16993 \begin_layout Plain Layout
16999 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
17002 \begin_layout Plain Layout
17010 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17013 \begin_layout Plain Layout
17015 \begin_inset space \thinspace{}
17023 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17026 \begin_layout Plain Layout
17028 \begin_inset space \thinspace{}
17032 \begin_inset Formula $\mbox{bottles}$
17040 <cell alignment="center" valignment="top" usebox="none">
17043 \begin_layout Plain Layout
17048 \begin_layout Plain Layout
17058 \begin_inset Formula $\mbox{bottles}$
17068 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17071 \begin_layout Plain Layout
17073 \begin_inset space \thinspace{}
17081 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17084 \begin_layout Plain Layout
17086 \begin_inset space \thinspace{}
17090 \begin_inset Formula $\mbox{Pixels}$
17098 <cell alignment="center" valignment="top" usebox="none">
17101 \begin_layout Plain Layout
17106 \begin_layout Plain Layout
17116 \begin_inset Formula $\mbox{Pixels}$
17126 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17129 \begin_layout Plain Layout
17131 \begin_inset space \thinspace{}
17139 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17142 \begin_layout Plain Layout
17144 \begin_inset space \thinspace{}
17148 \begin_inset Formula $\mbox{cm}$
17156 <cell alignment="center" valignment="top" usebox="none">
17159 \begin_layout Plain Layout
17164 \begin_layout Plain Layout
17174 \begin_inset Formula $\mbox{cm}$
17195 \begin_layout Subsection
17196 Customized Cell/Column Format
17197 \begin_inset CommandInset label
17199 name "sub:Customized-Format"
17207 \begin_layout Plain Layout
17208 Table Customization ! Cell/Column Format
17216 \begin_layout Standard
17217 Calculating the needed width for spanned columns like in section
17218 \begin_inset space ~
17222 \begin_inset CommandInset ref
17224 reference "sub:Multicolumn-Calculations"
17228 is very annoying if you have several tables with multicolumn cells.
17229 To make life easier, you can define a cell/column format in the preamble,
17230 so that it can be used in all tables of the document.
17231 The format is defined with the command
17234 \begin_layout Standard
17239 newcolumntype{name of format}[number of arguments]{commands}
17242 \begin_layout Standard
17243 The format name may only consist of one letter.
17268 are predefined and cannot be used.
17269 But all letters are allowed as capitals.
17272 \begin_layout Standard
17273 \begin_inset VSpace medskip
17279 \begin_layout Standard
17280 For vertically and horizontally centered multicolumn cells with a fixed
17281 width you can define the cell format
17284 \begin_layout Standard
17289 newcolumntype{M}[1]{>{
17296 \begin_layout Standard
17303 avoids the problem of hyphenating the first word, as described in section
17304 \begin_inset space ~
17308 \begin_inset CommandInset ref
17310 reference "sub:Multiple-Lines-in"
17315 Now you can simply enter
17318 \begin_layout Standard
17324 \begin_layout Standard
17325 as LaTeX-argument in the table dialog to create a multicolumn.
17328 \begin_layout Standard
17329 \begin_inset VSpace bigskip
17335 \begin_layout Standard
17336 For cells spanned by a multicolumn cell, you can define the format
17339 \begin_layout Standard
17344 newcolumntype{S}[2]{>{
17349 \begin_inset Newline newline
17356 \begin_layout Plain Layout
17371 \begin_layout Plain Layout
17382 arrayrulewidth)*(1-#2))/#2}}
17385 \begin_layout Standard
17386 This format uses equation
17387 \begin_inset CommandInset ref
17393 to calculate the needed width so that each spanned cell has the same width.
17396 \begin_layout Standard
17400 \begin_layout Standard
17403 S{width of multicolumn cell}{number of spanned columns}
17406 \begin_layout Standard
17407 as LaTeX-argument of the column.
17410 \begin_layout Standard
17411 \begin_inset VSpace bigskip
17417 \begin_layout Standard
17418 For colored columns, you can define
17421 \begin_layout Standard
17426 newcolumntype{K}[1]{>{
17433 \begin_layout Standard
17435 \begin_inset Quotes eld
17439 \begin_inset Quotes erd
17442 at the end creates a column with a flexible width whose text is horizontally
17447 \begin_layout Standard
17453 \begin_layout Standard
17457 \begin_layout Standard
17458 \begin_inset VSpace bigskip
17464 \begin_layout Standard
17466 \begin_inset space ~
17470 \begin_inset CommandInset ref
17472 reference "tab:Table-using-user-defined"
17476 use the LaTeX-arguments
17479 \begin_layout Standard
17485 \begin_layout Standard
17486 for the first column and the multicolumn,
17489 \begin_layout Standard
17495 \begin_layout Standard
17496 for the the last column, and
17499 \begin_layout Standard
17505 \begin_layout Standard
17506 for the cells in the second column.
17509 \begin_layout Standard
17510 \begin_inset Float table
17516 \begin_layout Plain Layout
17517 \begin_inset Caption
17519 \begin_layout Plain Layout
17520 \begin_inset CommandInset label
17522 name "tab:Table-using-user-defined"
17526 Table using user-defined table formats
17534 \begin_layout Plain Layout
17536 \begin_inset Tabular
17537 <lyxtabular version="3" rows="3" columns="4">
17539 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
17540 <column alignment="center" valignment="middle" width="0" special="S{2.5cm}{2}">
17541 <column alignment="center" valignment="middle" width="0">
17542 <column alignment="center" valignment="middle" width="0" special="K{red}">
17544 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17547 \begin_layout Plain Layout
17548 verylongtablecellword
17553 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
17556 \begin_layout Plain Layout
17557 multiple lines multicolumn
17562 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17565 \begin_layout Plain Layout
17571 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17574 \begin_layout Plain Layout
17582 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17585 \begin_layout Plain Layout
17591 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17594 \begin_layout Plain Layout
17600 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17603 \begin_layout Plain Layout
17609 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17612 \begin_layout Plain Layout
17620 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17623 \begin_layout Plain Layout
17629 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17632 \begin_layout Plain Layout
17638 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17641 \begin_layout Plain Layout
17647 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17650 \begin_layout Plain Layout
17669 \begin_layout Subsection
17671 \begin_inset CommandInset label
17673 name "sub:Line-Thickness"
17681 \begin_layout Plain Layout
17682 Table Customization ! Line Thickness
17690 \begin_layout Standard
17691 The line thickness for all lines in a table can be adjusted with the length
17699 To set for example a line thickness of 1.5
17700 \begin_inset space \thinspace{}
17704 \begin_inset space ~
17708 \begin_inset CommandInset ref
17710 reference "tab:Table-with-1.5"
17714 , insert the command
17717 \begin_layout Standard
17724 arrayrulewidth}{1.5pt}
17727 \begin_layout Standard
17728 in TeX-Code before the table or table float.
17729 The changed thickness is valid for all following tables.
17730 To use the default value again, set
17737 \begin_inset space \thinspace{}
17740 pt in TeX-Code behind the table or table float.
17743 \begin_layout Standard
17747 \begin_layout Plain Layout
17753 arrayrulewidth}{1.5pt}
17759 \begin_inset Float table
17764 \begin_layout Plain Layout
17765 \begin_inset Caption
17767 \begin_layout Plain Layout
17768 \begin_inset CommandInset label
17770 name "tab:Table-with-1.5"
17775 \begin_inset space \thinspace{}
17786 \begin_layout Plain Layout
17788 \begin_inset Tabular
17789 <lyxtabular version="3" rows="3" columns="3">
17791 <column alignment="center" valignment="top" width="0">
17792 <column alignment="center" valignment="top" width="0">
17793 <column alignment="center" valignment="top" width="0">
17795 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17798 \begin_layout Plain Layout
17804 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17807 \begin_layout Plain Layout
17813 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17816 \begin_layout Plain Layout
17824 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17827 \begin_layout Plain Layout
17833 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17836 \begin_layout Plain Layout
17842 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17845 \begin_layout Plain Layout
17853 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17856 \begin_layout Plain Layout
17862 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17865 \begin_layout Plain Layout
17871 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17874 \begin_layout Plain Layout
17894 \begin_layout Plain Layout
17900 arrayrulewidth}{0.4pt}
17908 \begin_layout Standard
17909 \begin_inset VSpace bigskip
17912 To set the line thickness to 1.5
17913 \begin_inset space \thinspace{}
17916 pt only for horizontal lines, like in Table
17917 \begin_inset space ~
17921 \begin_inset CommandInset ref
17923 reference "tab:Table-with-horizontal"
17927 , insert these commands in TeX-Code before the table or table float:
17930 \begin_layout Standard
17940 \begin_inset Newline newline
17948 \begin_inset Newline newline
17957 arrayrulewidth 1.5pt}
17958 \begin_inset Newline newline
17969 arrayrulewidth 0.4pt}}
17972 \begin_layout Standard
17973 To return to the default line thickness, insert this command in TeX-Code
17974 behind the table or table float:
17977 \begin_layout Standard
17989 \begin_layout Standard
17993 \begin_layout Plain Layout
18004 \begin_layout Plain Layout
18013 \begin_layout Plain Layout
18021 arrayrulewidth 1.5pt}
18024 \begin_layout Plain Layout
18034 arrayrulewidth 0.4pt}}
18040 \begin_inset Float table
18045 \begin_layout Plain Layout
18046 \begin_inset Caption
18048 \begin_layout Plain Layout
18049 \begin_inset CommandInset label
18051 name "tab:Table-with-horizontal"
18056 \begin_inset space \thinspace{}
18059 pt thick horizontal lines
18067 \begin_layout Plain Layout
18069 \begin_inset Tabular
18070 <lyxtabular version="3" rows="3" columns="3">
18072 <column alignment="center" valignment="top" width="0">
18073 <column alignment="center" valignment="top" width="0">
18074 <column alignment="center" valignment="top" width="0">
18076 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18079 \begin_layout Plain Layout
18085 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18088 \begin_layout Plain Layout
18094 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18097 \begin_layout Plain Layout
18105 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18108 \begin_layout Plain Layout
18114 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18117 \begin_layout Plain Layout
18123 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18126 \begin_layout Plain Layout
18134 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18137 \begin_layout Plain Layout
18143 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18146 \begin_layout Plain Layout
18152 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18155 \begin_layout Plain Layout
18175 \begin_layout Plain Layout
18191 \begin_layout Standard
18192 \begin_inset VSpace bigskip
18195 To set the line thickness to 1.5
18196 \begin_inset space \thinspace{}
18199 pt only for vertical lines, create the following column format in the document
18200 preamble, according to the description in section
18201 \begin_inset space ~
18205 \begin_inset CommandInset ref
18207 reference "sub:Customized-Format"
18214 \begin_layout Standard
18219 newcolumntype{V}{!{
18221 vrule width 1.5pt}}
18224 \begin_layout Standard
18226 \begin_inset space ~
18230 \begin_inset CommandInset ref
18232 reference "tab:Table-with-vertical"
18239 \begin_layout Standard
18245 \begin_layout Standard
18246 was used for the last column and
18249 \begin_layout Standard
18255 \begin_layout Standard
18256 for the other columns.
18259 \begin_layout Standard
18260 \begin_inset Float table
18265 \begin_layout Plain Layout
18266 \begin_inset Caption
18268 \begin_layout Plain Layout
18269 \begin_inset CommandInset label
18271 name "tab:Table-with-vertical"
18276 \begin_inset space \thinspace{}
18279 pt thick vertical lines
18287 \begin_layout Plain Layout
18289 \begin_inset Tabular
18290 <lyxtabular version="3" rows="3" columns="3">
18292 <column alignment="center" valignment="top" width="0" special="Vc">
18293 <column alignment="center" valignment="top" width="0" special="Vc">
18294 <column alignment="center" valignment="top" width="0" special="VcV">
18296 <cell alignment="center" valignment="top" topline="true" usebox="none">
18299 \begin_layout Plain Layout
18305 <cell alignment="center" valignment="top" topline="true" usebox="none">
18308 \begin_layout Plain Layout
18314 <cell alignment="center" valignment="top" topline="true" usebox="none">
18317 \begin_layout Plain Layout
18325 <cell alignment="center" valignment="top" topline="true" usebox="none">
18328 \begin_layout Plain Layout
18334 <cell alignment="center" valignment="top" topline="true" usebox="none">
18337 \begin_layout Plain Layout
18343 <cell alignment="center" valignment="top" topline="true" usebox="none">
18346 \begin_layout Plain Layout
18354 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18357 \begin_layout Plain Layout
18363 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18366 \begin_layout Plain Layout
18372 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18375 \begin_layout Plain Layout
18394 \begin_layout Subsection
18399 \begin_layout Plain Layout
18400 Table Customization ! Dashed Lines
18408 \begin_layout Standard
18412 \begin_layout Plain Layout
18422 \begin_inset Note Note
18425 \begin_layout Plain Layout
18426 The following section will only be displayed when the LaTeX-package
18438 \begin_layout Standard
18439 \begin_inset Float table
18445 \begin_layout Plain Layout
18446 \begin_inset Caption
18448 \begin_layout Plain Layout
18449 \begin_inset CommandInset label
18451 name "tab:Table-with-dashed"
18455 Table with dashed lines
18463 \begin_layout Plain Layout
18465 \begin_inset Tabular
18466 <lyxtabular version="3" rows="5" columns="5">
18468 <column alignment="center" valignment="top" width="0">
18469 <column alignment="center" valignment="top" width="0">
18470 <column alignment="center" valignment="top" width="0" special=":c">
18471 <column alignment="center" valignment="top" width="0">
18472 <column alignment="center" valignment="top" width="0">
18474 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18477 \begin_layout Plain Layout
18483 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18486 \begin_layout Plain Layout
18492 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18495 \begin_layout Plain Layout
18501 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18504 \begin_layout Plain Layout
18510 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18513 \begin_layout Plain Layout
18521 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18524 \begin_layout Plain Layout
18530 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18533 \begin_layout Plain Layout
18539 <cell alignment="center" valignment="top" topline="true" usebox="none">
18542 \begin_layout Plain Layout
18548 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18551 \begin_layout Plain Layout
18557 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18560 \begin_layout Plain Layout
18568 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18571 \begin_layout Plain Layout
18575 \begin_layout Plain Layout
18589 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18592 \begin_layout Plain Layout
18598 <cell alignment="center" valignment="top" usebox="none">
18601 \begin_layout Plain Layout
18607 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18610 \begin_layout Plain Layout
18616 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
18619 \begin_layout Plain Layout
18627 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18630 \begin_layout Plain Layout
18634 \begin_layout Plain Layout
18648 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18651 \begin_layout Plain Layout
18657 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
18660 \begin_layout Plain Layout
18666 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none" special="c:">
18669 \begin_layout Plain Layout
18675 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18678 \begin_layout Plain Layout
18686 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18689 \begin_layout Plain Layout
18695 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18698 \begin_layout Plain Layout
18704 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18707 \begin_layout Plain Layout
18713 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18716 \begin_layout Plain Layout
18722 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18725 \begin_layout Plain Layout
18744 \begin_layout Standard
18745 LyX doesn't natively support dashed lines, so you have to use TeX-Code.
18746 As prerequisite the LaTeX-package
18754 \begin_layout Plain Layout
18755 LaTeX-packages ! arydshln
18760 must be loaded in the document preamble with the command
18763 \begin_layout Standard
18768 usepackage{arydshln}
18771 \begin_layout Standard
18772 To make a vertical line dashed, enter the colon
18773 \begin_inset Quotes eld
18777 \begin_inset Quotes erd
18780 together with the character for the horizontal alignment as LaTeX-argument
18781 in the table cell dialog.
18784 \begin_layout Standard
18785 For a horizontal dashed line add the command
18788 \begin_layout Standard
18796 \begin_layout Standard
18797 in TeX-Code as first element of the first cell in the table row.
18800 \begin_layout Standard
18801 For dashed multicolumn lines use the command
18804 \begin_layout Standard
18809 cdashline{line number
18814 \begin_layout Standard
18815 in TeX-Code as first element of the first cell in the table row.
18816 If you have for example a multicolumn spanning over columns 2 to 4 and
18817 you want to have a dashed line above, add the command
18820 \begin_layout Standard
18828 \begin_layout Standard
18829 as first element of the first cell in the row of the multicolumn.
18832 \begin_layout Standard
18833 \begin_inset VSpace bigskip
18839 \begin_layout Standard
18841 \begin_inset space ~
18845 \begin_inset CommandInset ref
18847 reference "tab:Table-with-dashed"
18852 \begin_inset Quotes eld
18860 \begin_inset Quotes erd
18863 as LaTeX-argument of the third column.
18864 The TeX-Code command
18870 was inserted to the first cell of the third row and the the TeX-Code command
18871 \begin_inset Newline newline
18880 was inserted to the first cell of the fourth row.
18883 \begin_layout Standard
18884 \begin_inset Note Greyedout
18887 \begin_layout Plain Layout
18892 The used LaTeX-package
18896 is apparently not compatible with the LaTeX-package
18904 \begin_layout Plain Layout
18905 LaTeX-packages ! colortbl
18910 that is used for colored tables in section
18911 \begin_inset space ~
18915 \begin_inset CommandInset ref
18917 reference "sec:Colored-Tables"
18922 That means colored tables cannot have dashed lines.
18930 \begin_layout Standard
18934 \begin_layout Plain Layout
18944 \begin_inset Note Note
18947 \begin_layout Plain Layout
18948 The following will be displayed when the LaTeX-package
18960 \begin_layout Standard
18961 You need to install the package
18965 to see the content of this section in the output.
18968 \begin_layout Standard
18972 \begin_layout Plain Layout
18984 \begin_layout Chapter
18989 \begin_layout Plain Layout
18998 \begin_layout Section
19000 \begin_inset CommandInset label
19002 name "sec:FloatIntroduction"
19010 \begin_layout Plain Layout
19011 Floats ! Introduction
19019 \begin_layout Standard
19020 A float is a block of text associated with some sort of label, which doesn't
19021 have a fixed location.
19023 \begin_inset Quotes eld
19027 \begin_inset Quotes erd
19030 forward or backward a page or two, to wherever it fits best.
19038 \begin_inset space ~
19043 are also floats, because they can float to the next page when there are
19044 too many notes at the page.
19047 \begin_layout Standard
19048 Floats allow a high quality layout.
19049 Images and tables can evenly be spread to the pages to avoid white space
19050 and pages without text.
19051 As the floating often destroys the context between the text and the image/table
19052 , every float can be referenced in the text.
19053 Floats are therefore numbered.
19054 Referencing is described in section
19055 \begin_inset space ~
19059 \begin_inset CommandInset ref
19061 reference "sec:Referencing-Floats"
19068 \begin_layout Standard
19069 To insert a float, use the menu
19071 Insert\SpecialChar \menuseparator
19079 inset, a box with a label.
19080 The label will automatically be translated to the document language in
19082 Behind the label you can insert the caption text.
19083 The image or table is inserted above or below the caption in a separate
19084 paragraph within the float.
19085 More about the caption placement is described in section
19086 \begin_inset space ~
19090 \begin_inset CommandInset ref
19092 reference "sec:Caption-Placement"
19097 To keep your LyX-document readable, you can open and close the float box
19098 by left-clicking on the box label.
19099 A closed float box looks like this:
19100 \begin_inset Graphics
19101 filename clipart/floatQt4.png
19103 scaleBeforeRotation
19107 -- a gray button with a red label.
19110 \begin_layout Standard
19111 It is recommended to insert floats as a separate paragraph to avoid possible
19112 LaTeX-errors that can occur when the surrounding text is specially formatted.
19115 \begin_layout Standard
19116 Existing figures or tables can be put into a float by marking them and then
19117 pressing the corresponding toolbar button for a new float.
19120 \begin_layout Section
19124 \begin_layout Standard
19125 Besides figure and table floats that are described in section
19126 \begin_inset space ~
19130 \begin_inset CommandInset ref
19132 reference "sec:Figure-Floats"
19137 \begin_inset CommandInset ref
19139 reference "sec:Table-Floats"
19143 , respectively, LyX offers the float types
19154 \begin_layout Subsection
19159 \begin_layout Plain Layout
19160 Floats ! Algorithms
19168 \begin_layout Standard
19169 \begin_inset Float algorithm
19175 \begin_layout Plain Layout
19176 \begin_inset Caption
19178 \begin_layout Plain Layout
19179 \begin_inset CommandInset label
19181 name "alg:Example-Algorithm-float"
19185 Example Algorithm float
19193 \begin_layout LyX-Code
19195 \begin_inset Newline newline
19198 Sum:= Sum + A(I); /*comment*/
19199 \begin_inset Newline newline
19203 \begin_inset VSpace -4mm
19214 \begin_layout Standard
19215 This float type is inserted with the menu
19217 Insert\SpecialChar \menuseparator
19218 Floats\SpecialChar \menuseparator
19222 It is used for program codes and descriptions of algorithms.
19223 A possible environment for algorithms is the
19227 , described in LyX's
19233 \begin_inset space ~
19237 \begin_inset CommandInset ref
19239 reference "alg:Example-Algorithm-float"
19243 is an example of an algorithm float where -4
19244 \begin_inset space \thinspace{}
19247 mm vertical space was added at the end of the float to have the bottom rule
19248 exactly below the last text line.
19251 \begin_layout Standard
19252 The float label is not automatically translated into the document language.
19253 If your document is not in English, you have to do this manually by adding
19254 the following line to the document preamble
19259 \begin_layout Standard
19264 floatname{algorithm}{your
19265 \begin_inset space ~
19271 \begin_layout Standard
19275 \begin_inset space ~
19281 \begin_inset Quotes eld
19289 \begin_inset Quotes erd
19295 \begin_layout Standard
19296 To insert the list of algorithms you can not use the menu
19298 Insert\SpecialChar \menuseparator
19300 \begin_inset space \thinspace{}
19304 \begin_inset space \thinspace{}
19307 TOC\SpecialChar \menuseparator
19310 when your document is a non-English one.
19311 In this case use this command in TeX-Code instead:
19314 \begin_layout Standard
19319 listof{algorithm}{your
19320 \begin_inset space ~
19326 \begin_layout Standard
19330 \begin_inset space ~
19336 \begin_inset Quotes eld
19344 \begin_inset Quotes erd
19350 \begin_layout Standard
19351 Algorithm floats are not by default numbered in the scheme
19352 \begin_inset Quotes eld
19356 \begin_inset Quotes erd
19359 like it is the case for table and figure floats in many document-classes.
19360 To number algorithm floats in the same scheme, add this command to your
19364 \begin_layout Standard
19369 numberwithin{algorithm}{chapter}
19372 \begin_layout Standard
19373 To be able to use the command
19382 \begin_inset space ~
19387 in the document settings the option
19390 \begin_inset space ~
19394 \begin_inset space ~
19398 \begin_inset space ~
19406 \begin_layout Subsection
19411 \begin_layout Plain Layout
19412 Floats ! Wrap Floats
19420 \begin_layout Standard
19421 \begin_inset Wrap figure
19428 \begin_layout Plain Layout
19429 \begin_inset Graphics
19430 filename clipart/mobius.eps
19432 scaleBeforeRotation
19433 rotateOrigin center
19440 \begin_layout Plain Layout
19441 \begin_inset Caption
19443 \begin_layout Plain Layout
19444 \begin_inset CommandInset label
19446 name "fig:This-is-a"
19450 This is a figure wrap float.
19460 This float type is used if you want to wrap text around a figure or table
19461 so that it only occupies some fraction of the column width.
19462 It can be inserted using the menu
19464 Insert\SpecialChar \menuseparator
19465 Floats\SpecialChar \menuseparator
19467 \begin_inset space ~
19471 \begin_inset space ~
19479 \begin_inset space ~
19483 \begin_inset space ~
19488 if the LaTeX-package
19496 \begin_layout Plain Layout
19497 LaTeX-packages ! wrapfig
19501 \begin_layout Plain Layout
19519 \begin_layout Plain Layout
19520 Installing a LaTeX-package is explained it in the
19523 \begin_inset space ~
19533 The settings of the float can be modified by right-clicking on the float
19535 The mandatory settings are the float
19548 that specifies how much the float is set into the paragraph
19549 \begin_inset space \thinspace{}
19553 \begin_inset space \thinspace{}
19556 page margin, and the
19559 \begin_inset space ~
19564 that specifies how many text lines the float will approximately need.
19565 The line span is often hard to be approximated, so better only use it when
19566 you encounter float placement problems.
19567 You can furthermore decide if LaTeX is allowed to let the float float within
19568 the paragraph or to surrounding paragraphs.
19570 \begin_inset space ~
19574 \begin_inset CommandInset ref
19576 reference "fig:This-is-a"
19580 is an example text wrap float with a width of 40
19581 \begin_inset space \thinspace{}
19585 \begin_inset space \thinspace{}
19588 cm overhang, set to the left.
19592 \begin_layout Plain Layout
19593 Available units are explained in appendix
19594 \begin_inset space ~
19598 \begin_inset CommandInset ref
19600 reference "cha:Units-available-in"
19612 \begin_layout Standard
19613 \begin_inset Note Greyedout
19616 \begin_layout Plain Layout
19622 \begin_inset space ~
19625 wrap float floats are fragile! E.
19626 \begin_inset space \thinspace{}
19630 \begin_inset space \space{}
19633 having a figure too close to the bottom of the page can mess things up in
19634 the way that the float doesn't appear in the output or that it is placed
19635 over some other text.
19643 \begin_layout Standard
19647 \begin_layout Itemize
19648 Wrap floats should not be placed in paragraphs that run over a page break.
19649 That means that wrap floats should better be inserted to the exact place
19650 when the document is nearly finished and you are able to estimate where
19651 page breaks will appear.
19654 \begin_layout Itemize
19655 Wrap floats should either be placed in an own paragraph before the paragraph
19656 where they should wrap into or within a paragraph.
19659 \begin_layout Itemize
19660 Wrap floats in consecutive paragraphs may cause troubles, so assure that
19661 there is a text paragraph between them as separator.
19664 \begin_layout Itemize
19665 Wrap floats are not allowed in section headings or tables.
19668 \begin_layout Section
19673 \begin_layout Plain Layout
19682 \begin_layout Standard
19683 Floats are usually numbered either independent from the sections the floats
19684 are in, or in the scheme
19685 \begin_inset Quotes eld
19689 \begin_inset Quotes erd
19693 \begin_inset Quotes eld
19697 \begin_inset Quotes erd
19701 This depends on the used document class.
19704 \begin_layout Standard
19705 To change the section independent numbering, you can use this command in
19706 the document preamble:
19709 \begin_layout Standard
19721 \begin_layout Standard
19728 is the command that prints the table number, for figure floats, the command
19742 prints in the command above the table number as small roman number.
19745 \begin_layout Standard
19746 To change the numbering scheme for example to
19747 \begin_inset Quotes eld
19751 \begin_inset Quotes erd
19754 , use this command in the preamble:
19757 \begin_layout Standard
19762 numberwithin{table}{subsection}
19765 \begin_layout Standard
19766 To be able to use the command
19775 \begin_inset space ~
19780 in the document settings the option
19783 \begin_inset space ~
19787 \begin_inset space ~
19791 \begin_inset space ~
19799 \begin_layout Standard
19800 Please also have a look at section
19801 \begin_inset space ~
19805 \begin_inset CommandInset ref
19807 reference "sub:Footnote-Numbering"
19811 for the details and important notes about the numbering commands.
19814 \begin_layout Section
19816 \begin_inset CommandInset label
19818 name "sec:Referencing-Floats"
19826 \begin_layout Plain Layout
19827 Floats ! References
19836 \begin_layout Plain Layout
19837 References ! to Floats
19845 \begin_layout Standard
19846 To reference a float, insert a label into its caption using the menu
19848 Insert\SpecialChar \menuseparator
19851 or the toolbar button
19852 \begin_inset Graphics
19853 filename ../images/label-insert.png
19855 scaleBeforeRotation
19860 A grey label box like this one:
19861 \begin_inset Graphics
19862 filename clipart/labelQt4.png
19864 scaleBeforeRotation
19868 will be inserted and the label window pops up asking for the label text.
19869 LyX offers as text the first words of the caption with a prefix.
19870 The prefix depends on the float type, e.
19871 \begin_inset space \thinspace{}
19875 \begin_inset space \space{}
19878 for figure floats the prefix will be "
19885 \begin_layout Standard
19886 The label is used as anchor and name for the reference.
19887 You can refer to the label using the menu
19889 Insert\SpecialChar \menuseparator
19892 or the toolbar button
19893 \begin_inset Graphics
19894 filename ../images/dialog-show-new-inset_ref.png
19896 scaleBeforeRotation
19901 A grey cross-reference box like this one:
19902 \begin_inset Graphics
19903 filename clipart/referenceQt4.png
19905 scaleBeforeRotation
19909 will be inserted and the cross-reference window appear showing all labels
19911 If you have multiple LyX-documents opened, choose the one you are working
19912 on from the drop-list at the top of the dialog.
19913 You can now sort the labels alphabetically and then choose one.
19914 At the position of the cross-reference box the float number will appear
19918 \begin_layout Standard
19919 It is recommended to use a protected space between the cross-reference name
19920 and its number to avoid line breaks between them.
19921 If a cross-reference refers to a non-existing label, you will see two question
19922 marks in the output instead of the reference.
19925 \begin_layout Standard
19926 You can change labels at any time by clicking on the label box.
19927 References to the changed label will automatically change its link to the
19928 new label text, so that you don't need to take care about this.
19931 \begin_layout Standard
19935 \begin_inset space ~
19939 \begin_inset space ~
19944 in the cross-reference window sets the cursor before the referred label.
19945 The button text changes then to Go
19946 \begin_inset space ~
19949 Back and you can use it to set the cursor back to the cross-reference.
19950 Right-clicking on a cross-reference box also sets the cursor before the
19951 referenced label but without a possibility to go back.
19954 \begin_layout Subsection
19955 Cross-Reference Formats
19956 \begin_inset CommandInset label
19958 name "sub:Cross-Reference-Formats"
19966 \begin_layout Plain Layout
19967 References ! Formats
19975 \begin_layout Standard
19976 There are six varieties of cross-references:
19979 \begin_layout Description
19980 <reference>: prints the float number, this is the default:
19981 \begin_inset CommandInset ref
19983 reference "fig:Two-distorted-images"
19990 \begin_layout Description
19991 (<reference>): prints the float number within two parentheses, this is the
19992 style normally used to reference formulas, especially when the reference
19994 \begin_inset Quotes eld
19998 \begin_inset Quotes erd
20002 \begin_inset CommandInset ref
20011 \begin_layout Description
20012 <page>: prints the page number: Page
20013 \begin_inset space ~
20017 \begin_inset CommandInset ref
20018 LatexCommand pageref
20019 reference "fig:Two-distorted-images"
20026 \begin_layout Description
20028 \begin_inset space ~
20032 \begin_inset space ~
20035 <page>: prints the text "on page" and the page number:
20036 \begin_inset CommandInset ref
20037 LatexCommand vpageref
20038 reference "fig:Two-distorted-images"
20045 \begin_layout Description
20047 \begin_inset space ~
20051 \begin_inset space ~
20055 \begin_inset space ~
20058 <page>: prints the float number, the text "on page", and the page number:
20060 \begin_inset CommandInset ref
20062 reference "fig:Two-distorted-images"
20069 \begin_layout Description
20071 \begin_inset space ~
20074 reference: prints a self defined cross-reference format.
20076 \begin_inset Note Greyedout
20079 \begin_layout Plain Layout
20084 This feature is only available when you have the LaTeX-package
20096 \begin_layout Standard
20097 Note that the style <page> won't print the page number if the label is on
20098 the previous, the same, or the next page.
20100 \begin_inset space \thinspace{}
20104 \begin_inset space \space{}
20108 \begin_inset Quotes eld
20116 \begin_inset Quotes erd
20122 \begin_layout Standard
20123 The number and current page of the referred document part in the output,
20124 is automatically calculated by LaTeX.
20125 The varieties are adjusted in the field
20129 of the cross-reference window, that appear when you click on the cross-referenc
20133 \begin_layout Subsection
20134 Automatic Reference Naming
20138 \begin_layout Plain Layout
20139 References ! Automatic Reference Naming
20147 \begin_layout Standard
20156 \begin_layout Plain Layout
20157 LaTeX-packages ! hyperref
20162 , that is enabled in the
20170 dialog, provides a very useful feature that cross-references automatically
20171 include the name of the referenced floats (or text parts like
20176 So you will save to write e.
20177 \begin_inset space \thinspace{}
20181 \begin_inset space \space{}
20185 \begin_inset Quotes eld
20189 \begin_inset Quotes erd
20192 before every reference to a figure.
20193 To use this feature, enable
20197 and insert this line to the LaTeX preamble:
20200 \begin_layout Standard
20216 \begin_layout Standard
20217 When you prefer other reference names than the default ones, for example
20218 you want instead of
20219 \begin_inset Quotes eld
20223 \begin_inset Quotes erd
20227 \begin_inset Quotes eld
20231 \begin_inset space \thinspace{}
20235 \begin_inset Quotes eld
20238 , you can redefine the name by inserting this to the preamble:
20241 \begin_layout Standard
20252 sectionautorefname}
20253 \begin_inset Newline newline
20260 \begin_layout Plain Layout
20274 \begin_layout Standard
20275 When you are using another document language than English, replace
20276 \begin_inset Newline newline
20291 , where *** is the name of the used language.
20294 \begin_layout Standard
20295 To get automatic names, but not for certain reference types, for example
20296 not for equations, use this preamble code:
20299 \begin_layout Standard
20307 \begin_inset Newline newline
20317 \begin_inset Newline newline
20328 equationautorefname}
20329 \begin_inset Newline newline
20336 \begin_layout Plain Layout
20352 \begin_layout Standard
20353 More about this topic can be found in
20358 \begin_inset CommandInset citation
20367 \begin_layout Standard
20368 \begin_inset Note Greyedout
20371 \begin_layout Plain Layout
20376 Automatic reference naming cannot be used when you use cross-references
20380 \begin_inset space ~
20385 style, as described in section
20386 \begin_inset space ~
20390 \begin_inset CommandInset ref
20392 reference "sub:Cross-Reference-Formats"
20404 \begin_layout Standard
20409 manual is an example where automatic reference naming is used.
20412 \begin_layout Subsection
20414 \begin_inset CommandInset label
20416 name "sub:Reference-Position"
20424 \begin_layout Plain Layout
20425 References ! Reference Position
20433 \begin_layout Standard
20442 \begin_layout Plain Layout
20443 LaTeX-packages ! hyperref
20456 dialog to link cross-references in the output, you will see that clicking
20457 on an image float reference jumps to the image label.
20458 The caption will be the first text part on the screen, so that you cannot
20459 see the image without scrolling.
20460 This is because the reference link anchor is placed at the position of
20462 With the use of the package
20470 \begin_layout Plain Layout
20471 LaTeX-packages ! hypcap
20476 , which is part of the LaTeX-package
20484 \begin_layout Plain Layout
20485 LaTeX-packages ! oberdiek
20490 , the link anchor is placed at the beginning of a float.
20491 To use this feature for figure floats, load
20495 in the document preamble with the line
20498 \begin_layout Standard
20503 usepackage[figure]{hypcap}
20506 \begin_layout Standard
20511 for all float types but this is not recommended for stability reasons.
20512 For more informations, have a look at
20517 \begin_inset CommandInset citation
20526 \begin_layout Standard
20527 \begin_inset Note Greyedout
20530 \begin_layout Plain Layout
20539 has no effect for references to subfigures.
20547 \begin_layout Section
20549 \begin_inset CommandInset label
20551 name "sec:Float-Placement"
20559 \begin_layout Plain Layout
20568 \begin_layout Standard
20569 Right-clicking on a float-box opens a dialog where you can alter the placement
20570 options that LaTeX uses for positioning the float.
20571 \begin_inset Newline newline
20577 \begin_inset space ~
20582 is only useful for two-column documents: If you select it, the float will
20583 span across both columns on the page instead of being confined to just
20585 \begin_inset Newline newline
20591 \begin_inset space ~
20596 is used to rotate floats, see section
20597 \begin_inset CommandInset ref
20599 reference "sec:Rotated-Floats"
20606 \begin_layout Standard
20607 You can use one ore more of the following options in the float dialog to
20608 set the placement for a particular float when you uncheck the option
20611 \begin_inset space ~
20615 \begin_inset space ~
20623 \begin_layout Description
20625 \begin_inset space ~
20629 \begin_inset space ~
20632 possible try to place the float on the position where it is inserted
20635 \begin_layout Description
20637 \begin_inset space ~
20641 \begin_inset space ~
20644 page try to place the float on the top of the current page
20647 \begin_layout Description
20649 \begin_inset space ~
20653 \begin_inset space ~
20656 page try to place the float on the bottom of the current page
20659 \begin_layout Description
20661 \begin_inset space ~
20665 \begin_inset space ~
20668 floats try to place the float on an own page
20671 \begin_layout Standard
20672 The order of the above option is
20677 That means, if you use the default placement, LaTeX will first try out
20681 \begin_inset space ~
20685 \begin_inset space ~
20693 \begin_inset space ~
20697 \begin_inset space ~
20702 , and then the others.
20703 If you don't use the default, LaTeX will try only the checked options but
20705 If none of the 4 placements are possible the procedure is internally repeated
20706 but it is tried to put the float on the following page.
20709 \begin_layout Standard
20710 By default, each option has its own rules:
20713 \begin_layout Labeling
20714 \labelwidthstring 00.00.0000
20718 \begin_inset space ~
20722 \begin_inset space ~
20727 only floats occupying less than 70
20728 \begin_inset space \thinspace{}
20731 % of the page can be placed at the top of a page (
20740 \begin_layout Labeling
20741 \labelwidthstring 00.00.0000
20745 \begin_inset space ~
20749 \begin_inset space ~
20754 : only floats occupying less than 30
20755 \begin_inset space \thinspace{}
20758 % of the page can be placed at the bottom of a page.
20768 \begin_layout Labeling
20769 \labelwidthstring 00.00.0000
20773 \begin_inset space ~
20777 \begin_inset space ~
20782 : only if more than 50
20783 \begin_inset space \thinspace{}
20786 % of the page are occupied by floats, several floats can be set together
20797 \begin_layout Standard
20798 If you don't like these rules, you can ignore them by using the additional
20802 \begin_inset space ~
20806 \begin_inset space ~
20812 \begin_inset Newline newline
20815 You can also redefine the rules with LaTeX-commands that are given in parenthese
20816 s behind the rules description above.
20817 To increase for example the often too small default of the bottom-rule
20819 \begin_inset space \thinspace{}
20822 % of the page, add this line to your document preamble:
20825 \begin_layout Standard
20832 bottomfraction}{0.5}
20835 \begin_layout Standard
20836 Sometimes you might need, under all circumstances, a float to be placed
20837 exactly at the position where it is inserted.
20838 For this case you can use the option
20841 \begin_inset space ~
20847 Use this option very rarely and only if the document is nearly ready to
20849 Because the float is then no longer able to
20850 \begin_inset Quotes eld
20854 \begin_inset Quotes erd
20857 when you change your document and this will often destroy the page layout.
20860 \begin_layout Standard
20861 There are no placement options for text wrap floats, because they are always
20862 surrounded by the text of a certain paragraph.
20863 \begin_inset VSpace bigskip
20869 \begin_layout Standard
20870 Sometimes you have the problem that a float is placed at the top of a page
20871 while its corresponding section starts at the middle of the page, so that
20872 the reader could think the float is part of the previous section.
20873 To avoid this the LaTeX-command
20880 It suppresses a given float placement for the page where it is inserted
20881 and can therefore be used to avoid that floats could be set before a section
20883 To get this, add these commands to your document preamble:
20886 \begin_layout Standard
20896 \begin_inset Newline newline
20910 \begin_layout Standard
20911 You can define the same for all section headings, like chapters and subsections.
20912 This definition is not recommended to be used for small text parts like
20913 subsubsections because LaTeX may then have problems to find a suitable
20917 \begin_layout Standard
20918 \begin_inset VSpace bigskip
20921 In some cases it is required to have all figures/tables at the end of the
20923 For this purpose the LaTeX-package
20931 \begin_layout Plain Layout
20932 LaTeX-packages ! endfloat
20938 It puts all figure and table floats at the end of the document into own
20940 At the original float position a text hint like
20941 \begin_inset Quotes eld
20947 \begin_inset space ~
20953 \begin_inset Quotes erd
20957 The endfloat-package is loaded in the preamble with the line
20960 \begin_layout Standard
20965 usepackage[options]{endfloat}
20968 \begin_layout Standard
20969 There are various package options to format the created figure/table sections.
20970 For more information we refer to the
20975 \begin_inset CommandInset citation
20982 \begin_inset Newline newline
20986 \begin_inset Note Greyedout
20989 \begin_layout Plain Layout
20994 doesn't provide an automatic translation for the text hint, you have to
20995 do this manually, see section
20996 \begin_inset space ~
21000 \begin_inset CommandInset citation
21012 \begin_inset Newline newline
21016 \begin_inset Note Greyedout
21019 \begin_layout Plain Layout
21024 There is currently a bug in
21028 when the caption contains a German
21029 \begin_inset Quotes eld
21033 \begin_inset Quotes erd
21037 Use in this case the command
21038 \begin_inset Quotes eld
21048 \begin_inset Quotes erd
21051 in TeX-Code instead of
21052 \begin_inset Quotes eld
21056 \begin_inset Quotes erd
21067 \begin_layout Standard
21068 \begin_inset VSpace bigskip
21071 For more details about float placements, have a look at LaTeX books,
21072 \begin_inset CommandInset citation
21074 key "latexcompanion,latexguide,latexbook"
21081 \begin_layout Section
21083 \begin_inset CommandInset label
21085 name "sec:Rotated-Floats"
21093 \begin_layout Plain Layout
21102 \begin_layout Standard
21103 Especially for wide tables you might have floats rotated.
21104 To rotate a whole float including the caption, right-click on the float-box
21108 \begin_inset space ~
21116 \begin_layout Standard
21117 Rotated floats are always placed on its own page (or column, in case you
21118 have a multi-column document).
21119 You can let them span several columns using the float settings option
21122 \begin_inset space ~
21128 Floats are rotated so that you can read them from the outside margin.
21129 To force a certain rotation direction for all pages, you can add either
21138 to the document class options.
21141 \begin_layout Standard
21142 Referencing rotated floats is the same like for normal floats, the caption
21143 format is also the same: Table
21144 \begin_inset space ~
21148 \begin_inset CommandInset ref
21150 reference "tab:Rotated-table"
21154 is an example of a rotated table float.
21157 \begin_layout Standard
21158 \begin_inset Note Greyedout
21161 \begin_layout Plain Layout
21166 Not all DVI-viewers are able to display rotated floats.
21174 \begin_layout Standard
21175 \begin_inset Float table
21180 \begin_layout Plain Layout
21181 \begin_inset Caption
21183 \begin_layout Plain Layout
21184 \begin_inset CommandInset label
21186 name "tab:Rotated-table"
21198 \begin_layout Plain Layout
21200 \begin_inset Tabular
21201 <lyxtabular version="3" rows="1" columns="5">
21203 <column alignment="center" valignment="top" width="0">
21204 <column alignment="center" valignment="top" width="0">
21205 <column alignment="center" valignment="top" width="0">
21206 <column alignment="center" valignment="top" width="0">
21207 <column alignment="center" valignment="top" width="0">
21209 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21212 \begin_layout Plain Layout
21218 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21221 \begin_layout Plain Layout
21227 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21230 \begin_layout Plain Layout
21236 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21239 \begin_layout Plain Layout
21245 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21248 \begin_layout Plain Layout
21267 \begin_layout Section
21268 Floats Side by Side
21272 \begin_layout Plain Layout
21273 Floats ! Side by side
21281 \begin_layout Standard
21282 To place floats side by side, like for Figure
21283 \begin_inset space ~
21287 \begin_inset CommandInset ref
21289 reference "fig:Float-left"
21294 \begin_inset CommandInset ref
21296 reference "fig:Float-right"
21305 In it two minipage boxes are inserted.
21309 \begin_layout Plain Layout
21310 Minipages are explained in section
21311 \begin_inset space ~
21315 \begin_inset CommandInset ref
21317 reference "sec:Minipages"
21326 The width is set to 45
21327 \begin_inset space \thinspace{}
21331 \begin_inset space \thinspace{}
21334 column% and the box alignment to
21339 The minipage boxes contain the image and the caption in the same way as
21340 they are in a float.
21341 The only difference is that the image unit
21344 \begin_inset space ~
21348 \begin_inset space ~
21353 is now calculated according to the width of the minipage boxes.
21356 \begin_layout Standard
21357 \begin_inset Float figure
21362 \begin_layout Plain Layout
21363 \begin_inset Box Frameless
21372 height_special "totalheight"
21375 \begin_layout Plain Layout
21377 \begin_inset Graphics
21378 filename clipart/mobius.eps
21381 scaleBeforeRotation
21388 \begin_layout Plain Layout
21389 \begin_inset Caption
21391 \begin_layout Plain Layout
21392 \begin_inset CommandInset label
21394 name "fig:Float-left"
21398 Float on the left side.
21409 \begin_inset space \hfill{}
21413 \begin_inset Box Frameless
21422 height_special "totalheight"
21425 \begin_layout Plain Layout
21427 \begin_inset Graphics
21428 filename clipart/platypus.eps
21431 scaleBeforeRotation
21438 \begin_layout Plain Layout
21439 \begin_inset Caption
21441 \begin_layout Plain Layout
21442 \begin_inset CommandInset label
21444 name "fig:Float-right"
21448 Float on the right side.
21461 \begin_layout Plain Layout
21470 \begin_layout Section
21475 \begin_layout Plain Layout
21476 Caption ! Formatting
21485 \begin_layout Plain Layout
21486 Floats ! Caption Formatting
21492 \begin_inset CommandInset label
21494 name "sec:Caption-Formatting"
21501 \begin_layout Standard
21506 environment is the default paragraph environment for
21511 On the LyX screen captions appear as label, e.
21512 \begin_inset space \thinspace{}
21516 \begin_inset space \space{}
21520 \begin_inset Quotes eld
21528 \begin_inset Quotes erd
21531 followed by the caption text.
21533 \begin_inset Quotes eld
21537 \begin_inset Quotes erd
21540 is the actual reference number.
21541 By default the label and the number are in the same font as the caption
21542 text and a colon follows the number to divide the label from the text.
21543 This caption format is not suitable for all document formats.
21547 \begin_layout Standard
21548 To change the default caption format, load the LaTeX-package
21556 \begin_layout Plain Layout
21557 LaTeX-packages ! caption
21562 in the document preamble with this line:
21565 \begin_layout Standard
21570 usepackage[format definition]{caption}
21573 \begin_layout Standard
21574 To have for example the label and the number in sans-serif bold font and
21575 the table captions always above the table like in this document, use the
21579 \begin_layout Standard
21584 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
21587 \begin_layout Standard
21588 You can also define different caption formats for the different float types.
21589 In this case load the
21593 package without format specific options and define the different formats
21594 with the help of the command
21597 \begin_layout Standard
21602 captionsetup[float type]{format definition}
21605 \begin_layout Standard
21606 in the document preamble.
21607 For example the caption formats of Figure
21608 \begin_inset space ~
21612 \begin_inset CommandInset ref
21614 reference "fig:This-is-an-fig"
21619 \begin_inset space ~
21623 \begin_inset CommandInset ref
21625 reference "tab:This-is-an-tab"
21629 can be created using these commands in the document preamble:
21632 \begin_layout Standard
21637 usepackage[tableposition=top]{caption}
21640 \begin_inset Newline newline
21647 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
21648 \begin_inset Newline newline
21655 \begin_layout Plain Layout
21663 captionsetup[figure]
21671 \begin_inset Newline newline
21676 captionsetup[table]{labelfont={bf,sf}}
21679 \begin_layout Standard
21680 \begin_inset Note Greyedout
21683 \begin_layout Plain Layout
21692 has no effect when a
21700 \begin_layout Plain Layout
21701 LaTeX-packages ! koma-script
21706 document class is used.
21707 In this case the document class option
21719 \begin_layout Standard
21720 For more information about the package
21724 we refer to its documentation
21725 \begin_inset CommandInset citation
21734 \begin_layout Standard
21735 To change the label name from e.
21736 \begin_inset space \thinspace{}
21740 \begin_inset space \space{}
21744 \begin_inset Quotes eld
21748 \begin_inset Quotes erd
21752 \begin_inset Quotes eld
21756 \begin_inset Quotes erd
21759 use this preamble command:
21762 \begin_layout Standard
21769 fnum@figure}{Image~
21774 \begin_layout Standard
21781 inserts the figure number and
21784 \begin_inset Quotes eld
21790 \begin_inset Quotes erd
21793 creates a protected space.
21796 \begin_layout Standard
21797 \begin_inset VSpace bigskip
21808 \begin_layout Plain Layout
21809 LaTeX-packages ! koma-script
21816 article (koma-script)
21824 letter (koma-script)
21828 report (koma-script)
21831 \begin_inset space \thinspace{}
21834 ), you can alternatively to the
21842 's built-in command
21849 For example, to have the caption label in bold, add this command to your
21853 \begin_layout Standard
21858 setkomafont{captionlabel}{
21863 \begin_layout Standard
21864 For more information about
21875 \begin_inset CommandInset citation
21884 \begin_layout Standard
21888 \begin_layout Plain Layout
21892 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
21899 \begin_inset Note Note
21902 \begin_layout Plain Layout
21903 The caption format is changed only for this example.
21911 \begin_layout Standard
21912 \begin_inset Float figure
21918 \begin_layout Plain Layout
21920 \begin_inset Graphics
21921 filename clipart/mobius.eps
21924 scaleBeforeRotation
21931 \begin_layout Plain Layout
21932 \begin_inset Caption
21934 \begin_layout Plain Layout
21935 \begin_inset CommandInset label
21937 name "fig:This-is-an-fig"
21941 This is an example figure caption that is longer than one line to show the
21942 different caption format.
21943 Here a self-defined caption format is used.
21956 \begin_layout Standard
21960 \begin_layout Plain Layout
21964 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
21973 \begin_layout Standard
21974 \begin_inset Float table
21980 \begin_layout Plain Layout
21981 \begin_inset Caption
21983 \begin_layout Plain Layout
21984 \begin_inset CommandInset label
21986 name "tab:This-is-an-tab"
21990 This is an example table caption that is longer than one line to show the
21991 different caption format.
21992 Here the standard caption format for tables in this document is used.
22000 \begin_layout Plain Layout
22002 \begin_inset Tabular
22003 <lyxtabular version="3" rows="1" columns="5">
22005 <column alignment="center" valignment="top" width="0">
22006 <column alignment="center" valignment="top" width="0">
22007 <column alignment="center" valignment="top" width="0">
22008 <column alignment="center" valignment="top" width="0">
22009 <column alignment="center" valignment="top" width="0">
22011 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22014 \begin_layout Plain Layout
22020 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22023 \begin_layout Plain Layout
22029 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22032 \begin_layout Plain Layout
22038 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22041 \begin_layout Plain Layout
22047 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22050 \begin_layout Plain Layout
22069 \begin_layout Section
22074 \begin_layout Plain Layout
22075 Caption ! Placement
22084 \begin_layout Plain Layout
22085 Floats ! Caption Placement
22091 \begin_inset CommandInset label
22093 name "sec:Caption-Placement"
22100 \begin_layout Standard
22101 The common caption placement rule is:
22104 \begin_layout Description
22105 Figure: Caption is set below the figure
22108 \begin_layout Description
22109 Table: Caption is set above the table
22112 \begin_layout Standard
22113 Having the caption above the table is unfortunately not supported in LaTeX's
22115 That means if you are using the document classes
22131 there will be no space between the caption and the table.
22132 To insert the needed space, add the following option to the load command
22133 of the LaTeX-package
22137 in your document preamble
22141 \begin_layout Plain Layout
22143 \begin_inset space ~
22147 \begin_inset CommandInset ref
22149 reference "sec:Caption-Formatting"
22153 for more information of the package
22165 \begin_layout Standard
22171 \begin_layout Standard
22180 \begin_layout Plain Layout
22181 LaTeX-packages ! koma-script
22188 article (koma-script)
22196 letter (koma-script)
22200 report (koma-script)
22203 \begin_inset space \thinspace{}
22206 ), you can alternatively to the
22210 package set the document class option
22217 \begin_layout Standard
22218 \begin_inset VSpace bigskip
22221 It is also possible to set the caption beside a figure or table.
22222 To get this the LaTeX-package
22230 \begin_layout Plain Layout
22231 LaTeX-packages ! sidecap
22236 has to be loaded in the document preamble with the line
22239 \begin_layout Standard
22244 usepackage[option]{sidecap}
22247 \begin_layout Standard
22248 If you set no option, the caption is placed on the side of the outer page
22249 margin -- to the right on odd pages, to the left on even pages.
22250 You can change the placement to inner margin with the option
22255 To force the placement always to the right or left, use the option
22266 \begin_layout Standard
22270 \begin_layout Plain Layout
22280 \begin_inset Note Note
22283 \begin_layout Plain Layout
22284 The following section will only be displayed when the LaTeX-package
22296 \begin_layout Standard
22297 To place in LyX the caption of a float on the side, it is necessary to add
22298 these commands to the document preamble:
22301 \begin_layout Standard
22307 \begin_layout Standard
22315 \begin_inset Newline newline
22322 \begin_layout Plain Layout
22338 \begin_inset Newline newline
22345 \begin_layout Plain Layout
22361 \begin_inset Newline newline
22368 \begin_layout Plain Layout
22379 renewenvironment{table}{
22386 \begin_layout Standard
22394 \begin_inset Newline newline
22401 \begin_layout Plain Layout
22417 \begin_inset Newline newline
22424 \begin_layout Plain Layout
22442 \begin_layout Standard
22450 \begin_inset Newline newline
22457 \begin_layout Plain Layout
22473 \begin_inset Newline newline
22480 \begin_layout Plain Layout
22496 \begin_inset Newline newline
22503 \begin_layout Plain Layout
22514 renewenvironment{figure}{
22521 \begin_layout Standard
22529 \begin_inset Newline newline
22536 \begin_layout Plain Layout
22552 \begin_inset Newline newline
22559 \begin_layout Plain Layout
22577 \begin_layout Standard
22583 \begin_layout Standard
22584 The commands allow you to redefine the floats so that the caption is set
22586 For figure floats use the command
22589 \begin_layout Standard
22597 \begin_layout Standard
22598 in TeX-Code before the float.
22599 Behind the float insert the command
22602 \begin_layout Standard
22610 \begin_layout Standard
22611 in TeX-Code to get back to the original float definition.
22614 \begin_layout Standard
22615 For table floats use the corresponding commands
22618 \begin_layout Standard
22632 \begin_layout Standard
22634 \begin_inset space ~
22638 \begin_inset CommandInset ref
22640 reference "fig:cap-beside-fig"
22645 \begin_inset space ~
22649 \begin_inset CommandInset ref
22651 reference "tab:cap-beside-tab"
22655 are examples where the caption is set beside.
22658 \begin_layout Standard
22659 You can see in the examples that the caption text appears at the top of
22660 the floats for table floats and at the bottom for figure floats.
22661 To change this, you can use the command
22664 \begin_layout Standard
22669 sidecaptionvpos{float type}{placement}
22672 \begin_layout Standard
22673 in the document preamble or in TeX-Code before the float.
22674 The float type is either
22682 , the placement can be
22683 \begin_inset Quotes eld
22691 \begin_inset Quotes erd
22695 \begin_inset Quotes eld
22703 \begin_inset Quotes erd
22707 \begin_inset Quotes eld
22715 \begin_inset Quotes erd
22719 To have for example the caption of figure floats vertically centered, use
22723 \begin_layout Standard
22728 sidecaptionvpos{figure}{c}
22731 \begin_layout Standard
22732 This was used for Figure
22733 \begin_inset space ~
22737 \begin_inset CommandInset ref
22739 reference "fig:cap-beside-fig-2"
22746 \begin_layout Standard
22747 \begin_inset VSpace medskip
22750 For more information about the package
22754 we refer to its documentation
22755 \begin_inset CommandInset citation
22764 \begin_layout Standard
22765 \begin_inset Note Greyedout
22768 \begin_layout Plain Layout
22781 \begin_layout Plain Layout
22782 LaTeX-packages ! hypcap
22787 , described in section
22788 \begin_inset space ~
22792 \begin_inset CommandInset ref
22794 reference "sub:Reference-Position"
22798 , has no effect on floats with the caption set beside.
22806 \begin_layout Standard
22810 \begin_layout Plain Layout
22822 \begin_layout Standard
22823 \begin_inset Float figure
22828 \begin_layout Plain Layout
22829 \begin_inset Graphics
22830 filename clipart/escher-lsd.eps
22832 scaleBeforeRotation
22839 \begin_layout Plain Layout
22840 \begin_inset Caption
22842 \begin_layout Plain Layout
22843 \begin_inset CommandInset label
22845 name "fig:cap-beside-fig"
22849 This is a caption beside a figure.
22862 \begin_layout Standard
22866 \begin_layout Plain Layout
22878 \begin_layout Standard
22879 \begin_inset Float table
22884 \begin_layout Plain Layout
22885 \begin_inset Caption
22887 \begin_layout Plain Layout
22888 \begin_inset CommandInset label
22890 name "tab:cap-beside-tab"
22894 This is a caption beside a table.
22902 \begin_layout Plain Layout
22903 \begin_inset Tabular
22904 <lyxtabular version="3" rows="4" columns="5">
22906 <column alignment="center" valignment="top" width="0">
22907 <column alignment="center" valignment="top" width="0">
22908 <column alignment="center" valignment="top" width="0">
22909 <column alignment="center" valignment="top" width="0">
22910 <column alignment="center" valignment="top" width="0">
22912 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22915 \begin_layout Plain Layout
22921 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22924 \begin_layout Plain Layout
22930 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22933 \begin_layout Plain Layout
22939 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22942 \begin_layout Plain Layout
22948 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22951 \begin_layout Plain Layout
22959 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22962 \begin_layout Plain Layout
22968 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22971 \begin_layout Plain Layout
22977 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22980 \begin_layout Plain Layout
22986 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22989 \begin_layout Plain Layout
22995 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22998 \begin_layout Plain Layout
23006 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23009 \begin_layout Plain Layout
23015 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23018 \begin_layout Plain Layout
23024 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23027 \begin_layout Plain Layout
23033 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23036 \begin_layout Plain Layout
23042 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23045 \begin_layout Plain Layout
23053 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23056 \begin_layout Plain Layout
23062 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23065 \begin_layout Plain Layout
23071 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23074 \begin_layout Plain Layout
23080 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23083 \begin_layout Plain Layout
23089 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23092 \begin_layout Plain Layout
23111 \begin_layout Standard
23115 \begin_layout Plain Layout
23127 \begin_layout Standard
23131 \begin_layout Plain Layout
23135 sidecaptionvpos{figure}{c}
23141 \begin_inset Float figure
23146 \begin_layout Plain Layout
23147 \begin_inset Graphics
23148 filename clipart/escher-lsd.eps
23150 scaleBeforeRotation
23157 \begin_layout Plain Layout
23158 \begin_inset Caption
23160 \begin_layout Plain Layout
23161 \begin_inset CommandInset label
23163 name "fig:cap-beside-fig-2"
23167 This is a vertically centered caption beside a figure.
23180 \begin_layout Standard
23184 \begin_layout Plain Layout
23196 \begin_layout Standard
23200 \begin_layout Plain Layout
23210 \begin_inset Note Note
23213 \begin_layout Plain Layout
23214 The following will be displayed when the LaTeX-package
23226 \begin_layout Standard
23227 You need to install the LaTeX-package
23231 to see the following part of this section in the output.
23234 \begin_layout Standard
23238 \begin_layout Plain Layout
23250 \begin_layout Section
23255 \begin_layout Plain Layout
23256 Floats ! Float Lists
23264 \begin_layout Standard
23265 Similar to the the table of contents where the sections of the document
23266 are listed, there are listings for all float types, like the figures of
23268 You can insert them via the
23270 Insert\SpecialChar \menuseparator
23272 \begin_inset space ~
23276 \begin_inset space ~
23284 \begin_layout Standard
23285 The list entries are the float captions or its short title, the float number,
23286 and the page number where they appear in the document.
23289 \begin_layout Standard
23290 You can find the list of figures and tables at the end of this document.
23293 \begin_layout Chapter
23297 \begin_layout Section
23302 \begin_layout Plain Layout
23311 \begin_layout Standard
23312 Notes are inserted with the toolbar button
23313 \begin_inset Graphics
23314 filename ../images/note-insert.png
23316 scaleBeforeRotation
23322 Insert\SpecialChar \menuseparator
23326 There are three types of notes:
23329 \begin_layout Description
23331 \begin_inset space ~
23334 Note This note type is for internal notes that won't appear in the output.
23335 Its note-box looks like this:
23336 \begin_inset Newline newline
23340 \begin_inset Newline newline
23344 \begin_inset Graphics
23345 filename clipart/LyXNoteImageQt4.png
23348 scaleBeforeRotation
23353 \begin_inset Note Note
23356 \begin_layout Plain Layout
23357 This is text in a note box that doesn't appear in the output.
23365 \begin_layout Description
23366 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
23367 ent, when you export the document to LaTeX via the menu
23369 File\SpecialChar \menuseparator
23370 Export\SpecialChar \menuseparator
23371 LaTeX (pdflatex) / (plain)
23374 Its note-box looks like this:
23375 \begin_inset Newline newline
23379 \begin_inset Newline newline
23383 \begin_inset Graphics
23384 filename clipart/CommentNoteImageQt4.png
23387 scaleBeforeRotation
23392 \begin_inset Note Comment
23395 \begin_layout Plain Layout
23396 This is text in a note box that only appears as comment in LaTeX-files.
23404 \begin_layout Description
23406 \begin_inset space ~
23409 Out This note will appear in the output as grey text.
23410 Its note-box looks like this:
23411 \begin_inset Newline newline
23415 \begin_inset Newline newline
23419 \begin_inset Graphics
23420 filename clipart/GreyedOutNoteImageQt4.png
23423 scaleBeforeRotation
23428 \begin_inset Newline newline
23435 \begin_layout Plain Layout
23439 renewenvironment{lyxgreyedout}
23442 \begin_layout Plain Layout
23446 textcolor[gray]{0.8}
23456 \begin_inset Note Greyedout
23459 \begin_layout Plain Layout
23464 \begin_layout Plain Layout
23465 This is an example footnote within a greyed out note.
23470 of a comment that appears in the output as grey text.
23479 \begin_layout Plain Layout
23483 renewenvironment{lyxgreyedout}
23486 \begin_layout Plain Layout
23500 \begin_inset Note Note
23503 \begin_layout Plain Layout
23504 The greyed out note is here redefined to show it with the original LyX definitio
23505 n because greyed out notes are redefined in the preamble of this document,
23506 as described below, to have blue text.
23512 \begin_inset Newline newline
23516 \begin_inset Newline newline
23519 As you can see in the example, the first line of greyed out notes is a bit
23520 indented and greyed out notes can have footnotes.
23523 \begin_layout Standard
23524 \begin_inset VSpace bigskip
23527 When you use the toolbar button
23528 \begin_inset Graphics
23529 filename ../images/note-insert.png
23531 scaleBeforeRotation
23538 \begin_inset space ~
23544 You can switch between the five note types by right-clicking on the note-box.
23549 If you want to turn existing text into a note, mark it and click on the
23563 To change a note to text, press the backspace key when the cursor is in
23564 the first position of a note, or press the deletey key when the cursor
23565 is in the very last position of the note, respectively.
23568 \begin_layout Standard
23569 \begin_inset VSpace bigskip
23572 You can change the text color of the greyed out notes in the preamble with
23573 the following command:
23576 \begin_layout Standard
23581 renewenvironment{lyxgreyedout}
23582 \begin_inset Newline newline
23589 \begin_layout Plain Layout
23607 \begin_layout Standard
23608 The available colors and the method to define own colors is explained in
23610 \begin_inset space ~
23614 \begin_inset CommandInset ref
23616 reference "sec:Colored-Tables"
23623 \begin_layout Standard
23624 Notes that appear in blue in this document are set using greyed out notes
23628 \begin_layout Section
23630 \begin_inset CommandInset label
23632 name "sec:Footnotes"
23640 \begin_layout Plain Layout
23650 \begin_layout Plain Layout
23659 \begin_layout Standard
23660 Footnotes can be inserted using the toolbar button
23661 \begin_inset Graphics
23662 filename ../images/footnote-insert.png
23664 scaleBeforeRotation
23670 Insert\SpecialChar \menuseparator
23682 then the following footnote-box:
23683 \begin_inset Graphics
23684 filename clipart/footnoteQt4.png
23686 scaleBeforeRotation
23694 where you can enter the footnote text.
23695 If you want to turn existing text into a footnote, mark it and click on
23717 to text, press the Backspace key when the cursor is in the first position
23726 , or press the Delete key when the cursor is in the very last position of
23738 \begin_layout Standard
23739 Here is an example footnote:
23747 \begin_layout Plain Layout
23748 \begin_inset CommandInset label
23750 name "foot:This-is-an"
23754 This is an example footnote.
23767 \begin_layout Plain Layout
23771 newcounter{MyRepeatFoot}
23774 \begin_layout Plain Layout
23778 setcounter{MyRepeatFoot}{
23788 \begin_layout Standard
23789 The footnote will appear in the output as a superscript number at the text
23790 position where the footnote box is placed.
23791 The footnote text is placed at the bottom of the current page.
23792 The footnote number is calculated by LaTeX, the numbers are consecutive.
23793 It depends on your document-class, if the footnote number is reset for
23797 \begin_layout Standard
23798 Footnotes can be referenced like floats: Insert a label into the footnote
23799 and cross-reference this label in the text as described in section
23800 \begin_inset space ~
23804 \begin_inset CommandInset ref
23806 reference "sec:Referencing-Floats"
23811 \begin_inset Newline newline
23814 This is a cross-reference of Footnote
23815 \begin_inset space ~
23819 \begin_inset CommandInset ref
23821 reference "foot:This-is-an"
23828 \begin_layout Standard
23829 \begin_inset VSpace defskip
23832 To use footnotes within tables, you have to use minipages, see section
23833 \begin_inset space ~
23837 \begin_inset CommandInset ref
23839 reference "sec:Minipages"
23844 Footnotes within longtables are described in section
23845 \begin_inset space ~
23849 \begin_inset CommandInset ref
23851 reference "sub:Footnotes-in-Longtables"
23858 \begin_layout Standard
23859 \begin_inset VSpace defskip
23862 To create only a mark for a footnote, use the command
23866 footnotemark[number]
23869 This is used when you have the same annotation several times in a text
23870 but doesn't want to print the footnote text every time.
23871 \begin_inset Newline newline
23874 As you don't know the number of the repeating footnote while you are writing
23875 the text, you have to store its number.
23876 For the following footnote mark example, these commands were inserted in
23877 TeX-Code behind Footnote
23878 \begin_inset space ~
23882 \begin_inset CommandInset ref
23884 reference "foot:This-is-an"
23888 to store the footnote number:
23891 \begin_layout Standard
23896 newcounter{MyRepeatFoot}
23897 \begin_inset Newline newline
23902 setcounter{MyRepeatFoot}{
23907 \begin_layout Standard
23908 The footnote mark was then created with this command:
23911 \begin_layout Standard
23921 \begin_layout Standard
23922 Here is an example footnote mark:
23930 \begin_layout Plain Layout
23944 \begin_layout Subsection
23946 \begin_inset CommandInset label
23948 name "sub:Footnote-Numbering"
23956 \begin_layout Plain Layout
23957 Footnotes ! Numbering
23965 \begin_layout Standard
23966 To reset the footnote number back to 1 after each section
23968 , add this command to your document preamble:
23971 \begin_layout Standard
23976 @addtoreset{footnote}{section}
23979 \begin_layout Standard
23980 \begin_inset VSpace bigskip
23983 The following preamble command changes the footnote numbering style to small
23987 \begin_layout Standard
23999 \begin_layout Standard
24003 \begin_layout Plain Layout
24016 This is a footnote with roman numbering:
24020 \begin_layout Plain Layout
24021 This is an example footnote with roman numbering.
24029 \begin_layout Standard
24030 To change the numbering style to capital roman numerals replace in the command
24045 \begin_inset Quotes eld
24049 \begin_inset Quotes erd
24052 footnotes with capital or small Latin letters use
24066 \begin_inset Quotes eld
24070 \begin_inset Quotes erd
24073 footnotes with symbols use
24082 \begin_layout Standard
24083 \begin_inset Note Greyedout
24086 \begin_layout Plain Layout
24091 You can only number 26 footnotes with Latin letters, because this numbering
24092 is limited to single letters.
24098 \begin_inset Newline newline
24102 \begin_inset Note Greyedout
24105 \begin_layout Plain Layout
24110 You can only number 9 footnotes with symbols.
24118 \begin_layout Standard
24119 To return to the default numbering style when you changed to another one,
24132 in the command above.
24136 \begin_layout Plain Layout
24152 \begin_layout Standard
24153 \begin_inset VSpace bigskip
24159 \begin_layout Standard
24160 If you want to have footnotes numbered in the scheme
24161 \begin_inset Quotes eld
24165 \begin_inset Quotes erd
24168 , add the following command to your document preamble:
24171 \begin_layout Standard
24176 numberwithin{footnote}{chapter}
24179 \begin_layout Standard
24180 To be able to use the command
24189 \begin_inset space ~
24194 in the document settings the option
24197 \begin_inset space ~
24201 \begin_inset space ~
24205 \begin_inset space ~
24213 \begin_layout Standard
24217 \begin_layout Plain Layout
24221 numberwithin{footnote}{chapter}
24226 This is another example footnote:
24232 \begin_layout Plain Layout
24233 This is a footnote numbered in the scheme
24234 \begin_inset Quotes eld
24238 \begin_inset Quotes erd
24252 \begin_layout Plain Layout
24268 \begin_layout Standard
24269 \begin_inset Note Greyedout
24272 \begin_layout Plain Layout
24283 always prints out the footnote number as arabic number; previous redefinitions
24284 to get non-arabic numbers are overwritten.
24292 \begin_layout Standard
24293 So to get for example the scheme
24294 \begin_inset Quotes eld
24300 \begin_inset Quotes erd
24303 , use this command instead of
24312 \begin_layout Standard
24326 \begin_layout Subsection
24331 \begin_layout Plain Layout
24332 Footnotes ! Placement
24340 \begin_layout Standard
24341 If you have several footnotes in one page, they appear without vertical
24342 space between them at the bottom of the page.
24343 To make them better readable you can e.
24344 \begin_inset space \thinspace{}
24348 \begin_inset space \space{}
24352 \begin_inset space \thinspace{}
24355 mm space with the following preamble command:
24358 \begin_layout Standard
24368 \begin_inset Newline newline
24382 \begin_layout Standard
24383 \begin_inset VSpace bigskip
24386 In a two-column document the footnotes appear at the bottom of every column,
24388 \begin_inset space ~
24392 \begin_inset CommandInset ref
24394 reference "fig:Standard-footnote-placement"
24399 If the footnotes should only appear at the bottom of the right column,
24401 \begin_inset space ~
24405 \begin_inset CommandInset ref
24407 reference "fig:Footnote-placement-in"
24411 , use the LaTeX-package
24419 \begin_layout Plain Layout
24420 LaTeX-packages ! ftnright
24425 with this command in the document preamble:
24428 \begin_layout Standard
24433 usepackage{ftnright}
24436 \begin_layout Standard
24437 \begin_inset Float figure
24443 \begin_layout Plain Layout
24447 \begin_layout Plain Layout
24457 \begin_inset Graphics
24458 filename clipart/without_fntright.pdf
24460 scaleBeforeRotation
24468 \begin_layout Plain Layout
24478 \begin_layout Plain Layout
24479 \begin_inset Caption
24481 \begin_layout Plain Layout
24482 \begin_inset CommandInset label
24484 name "fig:Standard-footnote-placement"
24488 Standard footnote placement in two-column documents.
24501 \begin_layout Standard
24502 \begin_inset Float figure
24508 \begin_layout Plain Layout
24512 \begin_layout Plain Layout
24522 \begin_inset Graphics
24523 filename clipart/with_fntright.pdf
24525 scaleBeforeRotation
24533 \begin_layout Plain Layout
24543 \begin_layout Plain Layout
24544 \begin_inset Caption
24546 \begin_layout Plain Layout
24547 \begin_inset CommandInset label
24549 name "fig:Footnote-placement-in"
24553 Footnote placement in two-column documents when the LaTeX-package
24570 \begin_layout Standard
24571 \begin_inset VSpace bigskip
24574 In some scientific literature it is usual to collect the footnotes and print
24575 them in a separate paragraph at the the end of a section, like in Figure
24576 \begin_inset space ~
24580 \begin_inset CommandInset ref
24582 reference "fig:Endnotes----footnotes"
24587 They are then so called
24588 \begin_inset Quotes eld
24592 \begin_inset Quotes erd
24599 \begin_layout Plain Layout
24605 To use endnotes instead of footnotes in your document, load the LaTeX-package
24614 \begin_layout Plain Layout
24615 LaTeX-packages ! endnotes
24620 with the document preamble lines
24623 \begin_layout Standard
24628 usepackage{endnotes}
24629 \begin_inset Newline newline
24641 \begin_layout Standard
24642 To insert the collected footnotes, insert the command
24645 \begin_layout Standard
24653 \begin_layout Standard
24654 in TeX-Code at the the end of a section or chapter.
24657 \begin_layout Standard
24658 \begin_inset Float figure
24663 \begin_layout Plain Layout
24668 \begin_layout Plain Layout
24678 \begin_inset Graphics
24679 filename clipart/endnotes.pdf
24680 scaleBeforeRotation
24688 \begin_layout Plain Layout
24698 \begin_layout Plain Layout
24699 \begin_inset Caption
24701 \begin_layout Plain Layout
24702 \begin_inset CommandInset label
24704 name "fig:Endnotes----footnotes"
24708 Endnotes -- footnotes are printed in a separate paragraph at the end of
24709 sections or chapters.
24722 \begin_layout Standard
24723 \begin_inset VSpace medskip
24726 The paragraph heading for the endnotes isn't automatically translated into
24727 the document language, this must be done manually.
24728 The following preamble command translate the default English name
24729 \begin_inset Quotes eld
24733 \begin_inset Quotes erd
24736 to the German translation
24737 \begin_inset Quotes eld
24741 \begin_inset Quotes erd
24747 \begin_layout Standard
24754 notesname}{Anmerkungen}
24757 \begin_layout Standard
24758 \begin_inset VSpace medskip
24761 The numbering of endnotes can be changed like the footnote numbering as
24762 described in section
24763 \begin_inset space ~
24767 \begin_inset CommandInset ref
24769 reference "sub:Footnote-Numbering"
24773 ; just replace the command
24786 To reset the endnote number use the command
24792 as described in section
24793 \begin_inset space ~
24797 \begin_inset CommandInset ref
24799 reference "sub:Footnote-Numbering"
24803 and replace the command parameter
24814 \begin_layout Standard
24815 To create only a mark for an endnote, use the command
24819 endnotemark[number]
24821 similar to the command
24827 , described in section
24828 \begin_inset space ~
24832 \begin_inset CommandInset ref
24834 reference "sec:Footnotes"
24841 \begin_layout Standard
24842 \begin_inset VSpace bigskip
24845 Footnotes can also be placed in the page margin and the footnote text alignment
24846 can be changed, see the LaTeX-package
24854 \begin_layout Plain Layout
24855 LaTeX-packages ! footmisc
24861 \begin_inset CommandInset citation
24867 for more information about this.
24870 \begin_layout Standard
24871 For various further footnote formatting issues have a look at LaTeX-books,
24873 \begin_inset CommandInset citation
24875 key "latexcompanion,latexguide,latexbook"
24882 \begin_layout Section
24887 \begin_layout Plain Layout
24888 Notes ! Margin Notes
24896 \begin_layout Standard
24897 Margin notes look and behave in LyX like footnotes.
24898 They are inserted via the menu
24900 Insert\SpecialChar \menuseparator
24902 \begin_inset space ~
24907 or the toolbar button
24908 \begin_inset Graphics
24909 filename ../images/marginalnote-insert.png
24911 scaleBeforeRotation
24926 \begin_inset Quotes eld
24930 \begin_inset Quotes erd
24933 appears where you can enter the text of the margin note.
24936 \begin_layout Standard
24937 At the side is an example margin note.
24942 \begin_inset Marginal
24945 \begin_layout Plain Layout
24946 This is a margin note.
24954 \begin_layout Standard
24955 Margin notes appear at the right side in single-sided documents.
24956 In double-sided documents they appear in the outer margin -- left on even
24957 pages, right on odd pages.
24958 The text of margin notes is aligned opposite to the outer margin -- right-align
24959 ed when the note appears in the left margin.
24960 The first line of the margin note is placed at the position of the text
24961 line where it is inserted in the document.
24964 \begin_layout Standard
24965 \begin_inset VSpace bigskip
24968 To place the margin note in the inner margin, add the command
24971 \begin_layout Standard
24979 \begin_layout Standard
24980 in TeX-Code before a margin note.
24981 The new placement is valid for all following margin notes.
24986 \begin_layout Plain Layout
24996 \begin_inset Marginal
24999 \begin_layout Plain Layout
25000 This is a margin note in the inner margin.
25008 \begin_inset Newline newline
25014 \begin_inset Note Greyedout
25017 \begin_layout Plain Layout
25022 There is often not enough space in the inner margin so that the notes are
25023 not correctly displayed in the output.
25031 \begin_layout Standard
25032 To return to the default placement insert the command
25035 \begin_layout Standard
25043 \begin_layout Standard
25048 \begin_layout Plain Layout
25058 \begin_inset Note Greyedout
25061 \begin_layout Plain Layout
25066 The command is ignored when it is within a paragraph where also the command
25081 \begin_layout Standard
25082 \begin_inset VSpace bigskip
25089 \begin_inset Marginal
25092 \begin_layout Plain Layout
25093 AVeryLongMarginParWord that isn't hyphenated.
25101 Similar to the case described in section
25102 \begin_inset space ~
25106 \begin_inset CommandInset ref
25108 reference "sub:Multiple-Lines-in"
25112 , long words cannot be hyphenated when they are the first word in a margin
25114 To avoid this, insert 0
25115 \begin_inset space \thinspace{}
25118 pt horizontal space before the word
25123 \begin_inset Marginal
25126 \begin_layout Plain Layout
25127 \begin_inset space \hspace*{}
25131 AVeryLongMarginParWord that is hyphenated.
25139 \begin_layout Standard
25140 \begin_inset VSpace bigskip
25146 \begin_layout Standard
25147 \begin_inset Note Greyedout
25150 \begin_layout Plain Layout
25155 Margin notes can normally not be used inside tables, floats, and footnotes.
25163 \begin_layout Standard
25164 \begin_inset VSpace bigskip
25170 \begin_layout Standard
25174 \begin_layout Plain Layout
25184 \begin_inset Note Note
25187 \begin_layout Plain Layout
25188 The following section will only be displayed when the LaTeX-package
25200 \begin_layout Standard
25201 This restriction can be evaded by using the LaTeX-package
25209 \begin_layout Plain Layout
25210 LaTeX-packages ! marginnote
25216 By adding these two lines to your document preamble, the command used by
25217 LyX for margin notes is redefined to use the command provided by the
25224 \begin_layout Standard
25229 usepackage{marginnote}
25230 \begin_inset Newline newline
25242 \begin_layout Standard
25243 This is also used in this document because
25247 has another useful feature: You can set a vertical offset for the note.
25248 This is often needed when too many margin notes are too close together
25249 or for a better page layout.
25250 The offset is set in LyX as TeX-Code directly behind the margin note in
25254 \begin_layout Standard
25260 \begin_layout Standard
25261 where the offset is a length with one of the units listed in Table
25262 \begin_inset space ~
25266 \begin_inset CommandInset ref
25268 reference "tab:Units"
25273 A negative value shifts the note up, a positive value shifts it down.
25277 For example the margin note beside this text line is shifted up 1.5
25278 \begin_inset space \thinspace{}
25281 cm with the TeX-Code-command
25282 \begin_inset Quotes eld
25292 \begin_inset Quotes erd
25296 \begin_inset Marginal
25299 \begin_layout Plain Layout
25300 This margin note is shifted up 1.5
25301 \begin_inset space \thinspace{}
25304 cm from its original position.
25316 \begin_layout Plain Layout
25326 \begin_layout Standard
25327 \begin_inset VSpace medskip
25334 you can also change the alignment of the text in the margin note.
25335 For example the commands
25338 \begin_layout Standard
25345 raggedleftmarginnote}{
25348 \begin_inset Newline newline
25355 raggedrightmarginnote}{
25360 \begin_layout Standard
25361 set the alignment to centered.
25366 raggedleftmarginnote
25368 denotes margin notes that appear at the left side.
25375 \begin_layout Plain Layout
25381 raggedleftmarginnote}{
25386 \begin_layout Plain Layout
25392 raggedrightmarginnote}{
25400 \begin_inset Marginal
25403 \begin_layout Plain Layout
25404 The text of this margin note is centered.
25415 \begin_layout Standard
25422 raggedleftmarginnote}{
25425 \begin_inset Newline newline
25432 raggedrightmarginnote}{
25441 \begin_layout Plain Layout
25447 raggedleftmarginnote}{
25452 \begin_layout Plain Layout
25458 raggedrightmarginnote}{
25468 \begin_layout Standard
25469 \begin_inset VSpace medskip
25472 For the other features of
25476 we refer to its documentation
25477 \begin_inset CommandInset citation
25486 \begin_layout Standard
25487 \begin_inset VSpace bigskip
25490 You can adjust the layout of margin notes by changing its definition.
25491 To create for example a header for all margin notes with the underlined,
25492 sans-serif, and bold header text
25493 \begin_inset Quotes eld
25505 \begin_inset Quotes erd
25508 , add this to your document preamble:
25511 \begin_layout Standard
25521 \begin_inset Newline newline
25531 \begin_inset Newline newline
25538 \begin_layout Plain Layout
25555 underbar{Attention!}}}%
25556 \begin_inset Newline newline
25563 \begin_layout Plain Layout
25581 \begin_layout Standard
25588 \begin_layout Plain Layout
25599 \begin_layout Plain Layout
25610 \begin_layout Plain Layout
25618 underbar{Attention!}}}%
25621 \begin_layout Plain Layout
25635 \begin_inset Marginal
25638 \begin_layout Plain Layout
25639 This is a margin note with a defined heading.
25651 \begin_layout Plain Layout
25665 \begin_layout Plain Layout
25682 \begin_inset Note Note
25685 \begin_layout Plain Layout
25686 The margin note format is changed only for this example.
25694 \begin_layout Standard
25698 \begin_layout Plain Layout
25708 \begin_inset Note Note
25711 \begin_layout Plain Layout
25712 The following will be displayed when the LaTeX-package
25724 \begin_layout Standard
25725 You need to install the LaTeX-package
25729 to see the following part of this section in the output.
25732 \begin_layout Standard
25736 \begin_layout Plain Layout
25748 \begin_layout Chapter
25752 \begin_layout Section
25757 \begin_layout Plain Layout
25758 Boxes ! Introduction
25766 \begin_layout Standard
25767 Boxes are used to format a block of text.
25768 Boxes can be used to write documents with multiple languages, see section
25769 \begin_inset space ~
25773 \begin_inset CommandInset ref
25775 reference "sec:Minipages"
25779 , to frame texts, see section
25780 \begin_inset space ~
25784 \begin_inset CommandInset ref
25786 reference "sec:Decoration"
25790 , to prevent words to be hyphenated, see section
25791 \begin_inset space ~
25795 \begin_inset CommandInset ref
25797 reference "sec:Prevent-Hyphenation"
25801 , to align text, see section
25802 \begin_inset space ~
25806 \begin_inset CommandInset ref
25808 reference "sub:Vertical-Alignment"
25812 , or to set the background color of texts, see section
25813 \begin_inset space ~
25817 \begin_inset CommandInset ref
25819 reference "sec:Colored-Boxes"
25826 \begin_layout Standard
25827 Boxes can be inserted with the menu
25829 Insert\SpecialChar \menuseparator
25832 or the toolbar button
25833 \begin_inset Graphics
25834 filename ../images/box-insert.png
25836 scaleBeforeRotation
25841 A grey box with the label
25846 \begin_inset Graphics
25847 filename clipart/BoxInsetDefaultQt4.png
25849 scaleBeforeRotation
25854 The box type can be specified by right-clicking on the box.
25855 The appearing box dialog offers the
25858 \begin_inset space ~
25876 is the default for new boxes and is explained in section
25877 \begin_inset space ~
25881 \begin_inset CommandInset ref
25883 reference "sec:Minipages"
25891 is described in section
25892 \begin_inset space ~
25896 \begin_inset CommandInset ref
25898 reference "sec:Parboxes"
25905 \begin_layout Standard
25906 Boxes aren't numbered and can therefore not be referenced like floats or
25910 \begin_layout Standard
25911 \begin_inset Note Greyedout
25914 \begin_layout Plain Layout
25919 Boxes must not be the item in an
25935 \begin_layout Standard
25936 \begin_inset Note Greyedout
25939 \begin_layout Plain Layout
25944 For an unknown reason you can only set the
25947 \begin_inset space ~
25956 when you use a framed box.
25960 \begin_inset space ~
25965 type and without frames are explained in section
25966 \begin_inset space ~
25970 \begin_inset CommandInset ref
25972 reference "sec:Prevent-Hyphenation"
25984 \begin_layout Section
25986 \begin_inset CommandInset label
25988 name "sec:Box-Dialog"
25996 \begin_layout Plain Layout
26005 \begin_layout Subsection
26010 \begin_layout Plain Layout
26019 \begin_layout Standard
26020 In the box dialog you can adjust the box geometry in the fields
26029 The available units for the geometry are explained in Table
26030 \begin_inset space ~
26034 \begin_inset CommandInset ref
26036 reference "tab:Units"
26045 offers the following additional sizes:
26048 \begin_layout Description
26049 Depth This is the plain text
26050 \begin_inset Quotes eld
26054 \begin_inset Quotes erd
26058 It ignores the total depth when there are multiple text lines in the box:
26059 \begin_inset Newline newline
26063 \begin_inset Newline newline
26067 \begin_inset Newline newline
26071 \begin_inset Box Boxed
26080 height_special "depth"
26083 \begin_layout Plain Layout
26085 Box height set to 1
26086 \begin_inset space \thinspace{}
26095 \begin_inset Newline newline
26099 \begin_inset Newline newline
26105 \begin_layout Description
26106 Height This is the heigth of the text that is inside the box.
26108 \begin_inset space \thinspace{}
26112 \begin_inset space \space{}
26115 2 for this size will set the box heigth to 2 times the text height:
26116 \begin_inset Box Boxed
26125 height_special "height"
26128 \begin_layout Plain Layout
26130 Box height set to 2
26131 \begin_inset space \thinspace{}
26142 \begin_layout Description
26144 \begin_inset space ~
26147 Height This is the Height
26148 \begin_inset space \thinspace{}
26152 \begin_inset space \thinspace{}
26156 \begin_inset Box Boxed
26165 height_special "totalheight"
26168 \begin_layout Plain Layout
26170 Box height set to 1
26171 \begin_inset space \thinspace{}
26175 \begin_inset space ~
26186 \begin_layout Description
26187 Width This sets the width of the box as heigth:
26188 \begin_inset Box Boxed
26197 height_special "width"
26200 \begin_layout Plain Layout
26202 Box height set to 1
26203 \begin_inset space \thinspace{}
26214 \begin_layout Subsection
26219 \begin_layout Plain Layout
26228 \begin_layout Standard
26229 When you have chosen an
26232 \begin_inset space ~
26237 , the vertical box alignment can be:
26240 \begin_layout Description
26241 Top This is an example text line.
26243 \begin_inset Box Boxed
26252 height_special "totalheight"
26255 \begin_layout Plain Layout
26257 This box is top-aligned.
26262 This is an example text line.
26265 \begin_layout Description
26266 Middle This is an example text line.
26268 \begin_inset Box Boxed
26277 height_special "totalheight"
26280 \begin_layout Plain Layout
26282 This box is middle-aligned.
26287 This is an example text line.
26290 \begin_layout Description
26291 Bottom This is an example text line.
26293 \begin_inset Box Boxed
26302 height_special "totalheight"
26305 \begin_layout Plain Layout
26307 This box is bottom-aligned.
26312 This is an example text line.
26315 \begin_layout Standard
26316 \begin_inset Note Greyedout
26319 \begin_layout Plain Layout
26324 The vertical box aligment can be lost in the output when you have two boxes
26325 in a line and one has e.
26326 \begin_inset space \thinspace{}
26330 \begin_inset space \space{}
26333 a shadow and the other one not.
26341 \begin_layout Standard
26342 The horizontal box alignment can be set via LyX's paragraph dialog when
26343 you set the box into its own paragraph.
26346 \begin_layout Standard
26347 \begin_inset VSpace bigskip
26350 When you have chosen an
26353 \begin_inset space ~
26358 , the box content can be vertical aligned to:
26361 \begin_layout Description
26362 top This is an example text line.
26364 \begin_inset Box Boxed
26373 height_special "totalheight"
26376 \begin_layout Plain Layout
26378 This box text is top-aligned.
26383 This is an example text line.
26386 \begin_layout Description
26387 middle This is an example text line.
26389 \begin_inset Box Boxed
26398 height_special "totalheight"
26401 \begin_layout Plain Layout
26403 This box text is middle-aligned.
26408 This is an example text line.
26411 \begin_layout Description
26412 bottom This is an example text line.
26414 \begin_inset Box Boxed
26423 height_special "totalheight"
26426 \begin_layout Plain Layout
26428 This box text is bottom-aligned.
26433 This is an example text line.
26436 \begin_layout Description
26437 stretch This is an example text line.
26439 \begin_inset Box Boxed
26448 height_special "totalheight"
26451 \begin_layout Plain Layout
26456 \begin_layout Plain Layout
26461 \begin_layout Plain Layout
26468 This is an example text line.
26471 \begin_layout Standard
26472 To stretch the box content, it must consist of more than one paragraph.
26473 In the example above every text line is in an own paragraph.
26476 \begin_layout Standard
26477 \begin_inset VSpace bigskip
26480 To align the box content horizontally you can use LyX's paragraph dialog
26481 when you have chosen an
26484 \begin_inset space ~
26492 \begin_layout Standard
26494 \begin_inset Box Boxed
26503 height_special "totalheight"
26506 \begin_layout Plain Layout
26511 \begin_layout Plain Layout
26516 \begin_layout Plain Layout
26526 \begin_layout Standard
26527 If you haven't set an
26530 \begin_inset space ~
26535 , you can align the box content horizontally in the box dialog.
26538 \begin_layout Standard
26540 \begin_inset Box Boxed
26549 height_special "totalheight"
26552 \begin_layout Plain Layout
26554 This box text is horizontally stretched.
26562 \begin_layout Subsection
26564 \begin_inset CommandInset label
26566 name "sec:Decoration"
26574 \begin_layout Plain Layout
26583 \begin_layout Standard
26584 The type of the box can be specified in the box-dialog in the drop-down
26590 The following types are possible:
26593 \begin_layout Description
26595 \begin_inset space ~
26599 \begin_inset space ~
26602 frame This draws a rectangle frame around the box.
26603 The frame line thickness has the size of
26611 \begin_inset Box Boxed
26620 height_special "totalheight"
26623 \begin_layout Plain Layout
26633 \begin_layout Description
26635 \begin_inset space ~
26639 \begin_inset space ~
26642 break When you use the decoration
26644 simple rectangular frame
26646 and no inner box, you can allow page breaks within a box.
26647 Note that then, in contrary to other framed boxes, the frame always uses
26648 the whole column width, the box is set as its own paragraph, and
26660 has no effect on this box type.
26661 The frame line thickness has the size of
26669 \begin_inset Box Framed
26678 height_special "totalheight"
26681 \begin_layout Plain Layout
26682 Allow page break box
26690 \begin_layout Description
26692 \begin_inset space ~
26696 \begin_inset space ~
26699 thin This draws an oval frame around the box.
26700 The frame line thickness has the size 0.4
26701 \begin_inset space \thinspace{}
26706 \begin_inset Box ovalbox
26715 height_special "totalheight"
26718 \begin_layout Plain Layout
26728 \begin_layout Description
26730 \begin_inset space ~
26734 \begin_inset space ~
26737 thick This draws an oval frame around the box.
26738 The frame line thickness has the size 0.8
26739 \begin_inset space \thinspace{}
26744 \begin_inset Box Ovalbox
26753 height_special "totalheight"
26756 \begin_layout Plain Layout
26766 \begin_layout Description
26768 \begin_inset space ~
26771 shadow This draws a rectangle frame with a shadow around the box.
26772 The frame line thickness has the size of
26778 , the shadow has a width of 4
26779 \begin_inset space \thinspace{}
26784 \begin_inset Box Shadowbox
26793 height_special "totalheight"
26796 \begin_layout Plain Layout
26806 \begin_layout Description
26808 \begin_inset space ~
26811 background This draws a box with red background color.
26812 In contrary to colored boxes
26816 \begin_layout Plain Layout
26818 \begin_inset space \thinspace{}
26822 \begin_inset CommandInset ref
26824 reference "sec:Colored-Boxes"
26833 , it always uses the whole column width and the box is set as its own paragraph.
26835 \begin_inset Box Shaded
26844 height_special "totalheight"
26847 \begin_layout Plain Layout
26848 Shaded background box
26856 \begin_layout Description
26858 \begin_inset space ~
26862 \begin_inset space ~
26865 frame This draws a double-line rectangle frame around the box.
26866 The line thickness of the inner frame is 0.75
26867 \begin_inset space \thinspace{}
26876 , the thickness of the outer frame is 1.5
26877 \begin_inset space \thinspace{}
26887 The distance between the lines is 1.5
26888 \begin_inset space \thinspace{}
26898 \begin_inset space \thinspace{}
26902 \begin_inset space \thinspace{}
26906 \begin_inset space \thinspace{}
26911 \begin_inset Box Doublebox
26920 height_special "totalheight"
26923 \begin_layout Plain Layout
26925 Double rectangular box
26933 \begin_layout Standard
26934 \begin_inset VSpace bigskip
26937 LyX's box label will reflect the different frame types.
26938 To be able to use all types, the LaTeX-package
26946 \begin_layout Plain Layout
26947 LaTeX-packages ! fancybox
26955 \begin_layout Section
26960 \begin_layout Plain Layout
26961 Boxes ! Customization
26969 \begin_layout Standard
26970 The default value for the size
26977 \begin_inset space \thinspace{}
26981 It can be changed with the following command in TeX-Code to e.
26982 \begin_inset space \thinspace{}
26986 \begin_inset space \space{}
26990 \begin_inset space \thinspace{}
26996 \begin_layout Standard
27006 \begin_layout Standard
27010 \begin_layout Plain Layout
27022 \begin_inset Box Boxed
27031 height_special "totalheight"
27034 \begin_layout Plain Layout
27036 Rectangular box with
27043 \begin_inset space \thinspace{}
27047 \begin_inset space \thinspace{}
27051 \begin_inset space \thinspace{}
27063 \begin_layout Plain Layout
27077 \begin_layout Standard
27078 \begin_inset VSpace bigskip
27081 The space between the frame and the box content is for all frame styles
27083 \begin_inset space \thinspace{}
27087 You can change it by setting the length
27094 For example the command
27097 \begin_layout Standard
27107 \begin_layout Standard
27108 sets the value to 10
27109 \begin_inset space \thinspace{}
27112 pt, like for the following box:
27115 \begin_layout Standard
27119 \begin_layout Plain Layout
27131 \begin_inset Box Boxed
27140 height_special "totalheight"
27143 \begin_layout Plain Layout
27145 Rectangular box with
27152 \begin_inset space \thinspace{}
27156 \begin_inset space \thinspace{}
27160 \begin_inset space \thinspace{}
27172 \begin_layout Plain Layout
27186 \begin_layout Standard
27187 \begin_inset VSpace bigskip
27190 The diameter of the round corners of the oval boxes can be set with the
27201 \begin_layout Standard
27209 \begin_layout Standard
27210 sets the diameter to 1
27211 \begin_inset space \thinspace{}
27218 \begin_layout Standard
27226 \begin_layout Standard
27227 sets the diameter to
27230 \begin_inset space \thinspace{}
27234 \begin_inset space \thinspace{}
27237 minimum(width and heigth of box)
27249 \begin_layout Standard
27253 \begin_layout Plain Layout
27263 \begin_inset Box Ovalbox
27272 height_special "totalheight"
27275 \begin_layout Plain Layout
27284 \begin_inset space \thinspace{}
27288 \begin_inset space \thinspace{}
27292 \begin_inset space \thinspace{}
27304 \begin_layout Plain Layout
27316 \begin_layout Standard
27317 \begin_inset VSpace bigskip
27320 The size of the shadow can be adjusted by changing the length
27328 \begin_inset space \thinspace{}
27331 pt for the following box by this command:
27334 \begin_layout Standard
27344 \begin_layout Standard
27348 \begin_layout Plain Layout
27360 \begin_inset Box Shadowbox
27369 height_special "totalheight"
27372 \begin_layout Plain Layout
27381 \begin_inset space \thinspace{}
27385 \begin_inset space \thinspace{}
27389 \begin_inset space \thinspace{}
27401 \begin_layout Plain Layout
27415 \begin_layout Standard
27416 \begin_inset VSpace bigskip
27422 \begin_layout Standard
27423 The default value for the size
27430 \begin_inset space \thinspace{}
27434 The default space between the note content and the frame is 9
27435 \begin_inset space \thinspace{}
27438 pt and can be changed with the value of
27445 For example the frame appearance of the following
27449 is set with the TeX-Code commands
27452 \begin_layout Standard
27460 \begin_inset Newline newline
27470 \begin_layout Standard
27474 \begin_layout Plain Layout
27483 \begin_layout Plain Layout
27495 \begin_inset Box Framed
27504 height_special "totalheight"
27507 \begin_layout Plain Layout
27521 \begin_layout Plain Layout
27530 \begin_layout Plain Layout
27544 \begin_layout Standard
27545 \begin_inset VSpace bigskip
27551 \begin_layout Standard
27556 boxes the default space between the box content and the box border is 3
27557 \begin_inset space \thinspace{}
27560 pt and can be changed with the value of
27567 The default background color red can either be changed locally with the
27572 definecolor{shadebox}
27574 or globally with the menu
27576 Tools\SpecialChar \menuseparator
27577 Preferences\SpecialChar \menuseparator
27578 Colors\SpecialChar \menuseparator
27580 \begin_inset space ~
27592 command is explained in section
27593 \begin_inset space ~
27597 \begin_inset CommandInset ref
27599 reference "sec:Colored-Tables"
27607 \begin_layout Plain Layout
27614 requires the LaTeX-package
27618 in the preamble, see section
27619 \begin_inset space ~
27623 \begin_inset CommandInset ref
27625 reference "sec:Colored-Boxes"
27634 For example the appearance of the following shaded background note is set
27635 with the TeX-Code commands
27638 \begin_layout Standard
27648 \begin_inset Newline newline
27655 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
27658 \begin_layout Standard
27662 \begin_layout Plain Layout
27671 \begin_layout Plain Layout
27675 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
27681 \begin_inset Box Shaded
27690 height_special "totalheight"
27693 \begin_layout Plain Layout
27696 This is yellow text in a
27706 box with dark green background.
27715 \begin_layout Plain Layout
27724 \begin_layout Plain Layout
27728 definecolor{shadecolor}{rgb}{1,0,0}
27736 \begin_layout Standard
27737 \begin_inset VSpace bigskip
27740 Changed lengths and widths are valid for all boxes following the commands
27744 \begin_layout Section
27746 \begin_inset CommandInset label
27748 name "sec:Minipages"
27756 \begin_layout Plain Layout
27765 \begin_layout Standard
27766 Minipages are treated by LaTeX as pages within pages and can therefore for
27767 example have their own footnotes.
27770 \begin_layout Standard
27771 Minipages are useful when you write documents with different languages.
27774 \begin_layout Standard
27775 Below are two example minipages side by side.
27776 Their width is set to 45
27777 \begin_inset space \thinspace{}
27780 col% and they are separated by a horizontal fill, that was inserted via
27783 Insert\SpecialChar \menuseparator
27785 \begin_inset space ~
27788 Formatting\SpecialChar \menuseparator
27790 \begin_inset space ~
27796 \begin_inset Newpage newpage
27802 \begin_layout Standard
27803 \begin_inset Box Frameless
27812 height_special "totalheight"
27815 \begin_layout Plain Layout
27818 Dies ist ein deutscher Text.
27819 Dies ist ein deutscher Text.
27820 Dies ist ein deutscher Text.
27821 Dies ist ein deutscher Text.
27822 Dies ist ein deutscher Text.
27823 Dies ist ein deutscher Text.
27824 Dies ist ein deutscher Text.
27825 Dies ist ein deutscher Text.
27826 Dies ist ein deutscher Text.
27827 Dies ist ein deutscher Text.
27828 Dies ist ein deutscher Text.
27829 Dies ist ein deutscher Text.
27830 Dies ist ein deutscher Text
27834 \begin_layout Plain Layout
27837 Dies ist eine deutsche Fußnote.
27843 Dies ist ein deutscher Text.
27844 Dies ist ein deutscher Text.
27850 \begin_inset space \hfill{}
27854 \begin_inset Box Frameless
27863 height_special "totalheight"
27866 \begin_layout Plain Layout
27867 This is an English Text.
27868 This is an English Text.
27869 This is an English Text.
27870 This is an English Text.
27871 This is an English Text.
27872 This is an English Text.
27873 This is an English Text.
27874 This is an English Text.
27875 This is an English Text.
27876 This is an English Text.
27877 This is an English Text.
27878 This is an English Text.
27879 This is an English Text.
27880 This is an English Text.
27881 This is an English Text.
27882 This is an English Text.
27886 \begin_layout Plain Layout
27887 This is an English footnote.
27892 This is an English Text.
27901 \begin_layout Standard
27902 \begin_inset VSpace bigskip
27905 Another application for minipages are footnotes within tables.
27906 Due to a LaTeX restriction footnotes within tables doesn't appear at the
27907 bottom of the current page.
27908 But when you put the table with the footnote to a minipage, the footnote
27909 will appear at its bottom, numbered with Latin letters.
27910 The footnote number is reset to 1 in every minipage but not outside the
27914 \begin_layout Standard
27915 The footnote of this table doesn't appear:
27916 \begin_inset Tabular
27917 <lyxtabular version="3" rows="3" columns="4">
27919 <column alignment="center" valignment="top" width="0pt">
27920 <column alignment="center" valignment="top" width="0pt">
27921 <column alignment="center" valignment="top" width="0pt">
27922 <column alignment="center" valignment="top" width="0pt">
27924 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27927 \begin_layout Plain Layout
27933 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27936 \begin_layout Plain Layout
27942 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27945 \begin_layout Plain Layout
27950 \begin_layout Plain Layout
27951 This is a footnote within a table.
27961 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27964 \begin_layout Plain Layout
27972 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27975 \begin_layout Plain Layout
27981 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27984 \begin_layout Plain Layout
27990 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27993 \begin_layout Plain Layout
27999 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28002 \begin_layout Plain Layout
28010 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28013 \begin_layout Plain Layout
28019 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28022 \begin_layout Plain Layout
28028 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28031 \begin_layout Plain Layout
28037 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28040 \begin_layout Plain Layout
28054 \begin_layout Standard
28056 \begin_inset Box Frameless
28065 height_special "totalheight"
28068 \begin_layout Plain Layout
28070 \begin_inset Tabular
28071 <lyxtabular version="3" rows="3" columns="4">
28073 <column alignment="center" valignment="top" width="0pt">
28074 <column alignment="center" valignment="top" width="0pt">
28075 <column alignment="center" valignment="top" width="0pt">
28076 <column alignment="center" valignment="top" width="0pt">
28078 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28081 \begin_layout Plain Layout
28087 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28090 \begin_layout Plain Layout
28096 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28099 \begin_layout Plain Layout
28104 \begin_layout Plain Layout
28105 This is a footnote within a table.
28115 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28118 \begin_layout Plain Layout
28126 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28129 \begin_layout Plain Layout
28135 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28138 \begin_layout Plain Layout
28144 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28147 \begin_layout Plain Layout
28153 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28156 \begin_layout Plain Layout
28164 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28167 \begin_layout Plain Layout
28173 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28176 \begin_layout Plain Layout
28182 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28185 \begin_layout Plain Layout
28191 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28194 \begin_layout Plain Layout
28213 \begin_layout Standard
28214 \begin_inset VSpace bigskip
28217 The document-wide paragraph settings are ignored within minipages.
28218 That means that there will be no space between paragraphs in minipages
28219 although you set it to e.
28220 \begin_inset space \thinspace{}
28224 \begin_inset space \space{}
28231 in the document settings.
28234 \begin_layout Standard
28235 Minipages can also be used to set a background color for text parts, see
28237 \begin_inset space ~
28241 \begin_inset CommandInset ref
28243 reference "sub:Color-for-Paragraphs"
28250 \begin_layout Standard
28251 \begin_inset Note Greyedout
28254 \begin_layout Plain Layout
28259 You cannot have floats or margin notes inside minipages but minipages can
28260 be used inside tables, floats, and other boxes.
28268 \begin_layout Section
28270 \begin_inset CommandInset label
28272 name "sec:Parboxes"
28280 \begin_layout Plain Layout
28289 \begin_layout Standard
28290 Parboxes are very similar to minipages with the difference that they cannot
28292 The main difference to minipages is that minipages are in contrary to parboxes
28293 no real boxes but LaTeX-environments.
28296 \begin_layout Standard
28298 \begin_inset Box Frameless
28307 height_special "totalheight"
28310 \begin_layout Plain Layout
28311 This a text within a parbox.
28312 This a text within a parbox.
28315 \begin_layout Plain Layout
28316 This footnote won't appear:
28320 \begin_layout Plain Layout
28321 This footnote is inside a parbox and will therefore not appear.
28334 \begin_layout Section
28335 Boxes for Words and Characters
28339 \begin_layout Plain Layout
28340 Boxes ! for Characters
28348 \begin_layout Subsection
28349 Prevent Hyphenation
28350 \begin_inset CommandInset label
28352 name "sec:Prevent-Hyphenation"
28360 \begin_layout Plain Layout
28361 Boxes ! to Prevent Hyphenation
28369 \begin_layout Standard
28370 You can use a special kind of boxes to prevent words or text to be hyphenated.
28371 \begin_inset Newline newline
28374 Here is an example text:
28377 \begin_layout Standard
28378 This line is an example to show how you can prevent the hyphenation of
28379 \begin_inset Quotes eld
28383 \begin_inset Quotes erd
28389 \begin_layout Standard
28390 To prevent the hyphenation of the word
28391 \begin_inset Quotes eld
28395 \begin_inset Quotes erd
28401 \begin_layout Standard
28409 \begin_layout Standard
28410 in TeX-Code before the word.
28411 Behind the word insert a closing brace
28412 \begin_inset Quotes eld
28420 \begin_inset Quotes erd
28426 \begin_layout Standard
28427 This is the result:
28430 \begin_layout Standard
28431 This line is an example to show how you can prevent the hyphenation of
28435 \begin_layout Plain Layout
28445 \begin_inset Quotes eld
28449 \begin_inset Quotes erd
28456 \begin_layout Plain Layout
28466 \begin_layout Standard
28467 You can alternatively set the command
28468 \begin_inset Quotes eld
28478 \begin_inset Quotes grd
28481 as TeX-Code directly before the word:
28484 \begin_layout Standard
28485 This line is an example to show how you can prevent the hyphenation of
28486 \begin_inset Quotes eld
28493 \begin_layout Plain Layout
28503 \begin_inset Quotes erd
28509 \begin_layout Standard
28510 Of course the word now protrudes over the side margin.
28511 To avoid this, add via the menu
28513 Insert\SpecialChar \menuseparator
28515 \begin_inset space ~
28518 Formatting\SpecialChar \menuseparator
28520 \begin_inset space ~
28528 arg "newline-insert newline"
28531 ) a line break before the word:
28534 \begin_layout Standard
28535 This line is an example to show how you can prevent the hyphenation of
28536 \begin_inset Newline newline
28543 \begin_layout Plain Layout
28553 \begin_inset Quotes eld
28557 \begin_inset Quotes erd
28564 \begin_layout Plain Layout
28574 \begin_layout Subsection
28576 \begin_inset CommandInset label
28578 name "sub:Vertical-Alignment"
28586 \begin_layout Plain Layout
28587 Boxes ! for Vertical Alignment
28596 \begin_layout Plain Layout
28605 \begin_layout Standard
28606 With the help of the command
28612 you can align words, characters or other boxes vertically to the surrounding
28620 is used with the following scheme:
28623 \begin_layout Standard
28628 raisebox{lift}[height][depth]{box content}
28631 \begin_layout Standard
28632 The lift can be a positive value to raise the box or a negative value to
28636 \begin_layout Standard
28637 To align for example the word
28638 \begin_inset Quotes eld
28642 \begin_inset Quotes erd
28645 so that the bottom of the
28646 \begin_inset Quotes eld
28650 \begin_inset Quotes erd
28654 \begin_inset Quotes eld
28658 \begin_inset Quotes erd
28661 is at the baseline, insert the command
28664 \begin_layout Standard
28674 \begin_layout Standard
28675 in TeX-Code before the word.
28676 Behind the word insert a closing brace
28677 \begin_inset Quotes eld
28685 \begin_inset Quotes erd
28689 \begin_inset Newline newline
28692 This is the result:
28695 \begin_layout Standard
28696 This is a text line with the word
28700 \begin_layout Plain Layout
28712 \begin_inset Quotes eld
28716 \begin_inset Quotes erd
28723 \begin_layout Plain Layout
28733 \begin_layout Standard
28734 \begin_inset VSpace bigskip
28737 When you raise or lower characters in a line, the line distance will be
28741 \begin_layout Standard
28742 This is a text line with the word
28746 \begin_layout Plain Layout
28758 \begin_inset Quotes eld
28762 \begin_inset Quotes erd
28769 \begin_layout Plain Layout
28777 \begin_inset Newline newline
28780 This is a text line with the word
28784 \begin_layout Plain Layout
28794 \begin_inset Quotes eld
28798 \begin_inset Quotes erd
28805 \begin_layout Plain Layout
28815 \begin_layout Standard
28816 If you want to prevent this for a certain reason, set the box height to
28821 \begin_layout Standard
28831 \begin_layout Standard
28832 This is a text line with the word
28836 \begin_layout Plain Layout
28848 \begin_inset Quotes eld
28852 \begin_inset Quotes erd
28859 \begin_layout Plain Layout
28867 \begin_inset Newline newline
28870 This is a text line with the word
28874 \begin_layout Plain Layout
28878 raisebox{0.5cm}[0pt]{
28884 \begin_inset Quotes eld
28888 \begin_inset Quotes erd
28895 \begin_layout Plain Layout
28905 \begin_layout Section
28907 \begin_inset CommandInset label
28909 name "sec:Colored-Boxes"
28917 \begin_layout Plain Layout
28926 \begin_layout Subsection
28931 \begin_layout Plain Layout
28940 \begin_layout Standard
28941 To color the background of text the text must be put into a so called
28942 \begin_inset Quotes eld
28946 \begin_inset Quotes erd
28950 This requires that the LaTeX-package
28958 \begin_layout Plain Layout
28959 LaTeX-packages ! color
28964 is loaded in the document preamble with the command
28967 \begin_layout Standard
28972 @ifundefined{textcolor}
28973 \begin_inset Newline newline
28980 \begin_layout Plain Layout
28991 usepackage{color}}{}
28994 \begin_layout Standard
28999 will be loaded automatically by LyX when you color text
29003 \begin_layout Plain Layout
29004 To avoid that it is loaded twice the command
29018 \begin_layout Standard
29019 \begin_inset VSpace medskip
29022 Colorboxes are created with the command
29029 This will be used with the following scheme:
29032 \begin_layout Standard
29037 colorbox{color}{box content}
29040 \begin_layout Standard
29041 The box content can also be a box and colorboxes can also be within other
29045 \begin_layout Standard
29046 The following colors are predefined:
29047 \begin_inset Newline newline
29086 \begin_inset Newline newline
29089 You can also define your own color as described in section
29090 \begin_inset space ~
29094 \begin_inset CommandInset ref
29096 reference "sec:Colored-Tables"
29103 \begin_layout Standard
29105 \begin_inset space \thinspace{}
29109 \begin_inset space \space{}
29112 a red background for a word, insert the command
29115 \begin_layout Standard
29123 \begin_layout Standard
29124 before the word in TeX-Code.
29125 Behind the word insert a closing brace
29126 \begin_inset Quotes eld
29134 \begin_inset Quotes erd
29138 \begin_inset Newline newline
29141 This is the result:
29144 \begin_layout Standard
29145 This is a line where the word
29149 \begin_layout Plain Layout
29159 \begin_inset Quotes eld
29163 \begin_inset Quotes erd
29170 \begin_layout Plain Layout
29177 has a red background.
29180 \begin_layout Standard
29181 \begin_inset VSpace bigskip
29184 If you would have the box frame in a different color, you can use the command
29191 with the following scheme:
29194 \begin_layout Standard
29199 fcolorbox{frame color}{box color}{box content}
29202 \begin_layout Standard
29216 The frame thickness and the space between the frame and the box content
29217 can be adjusted with the lengths
29229 , respectively, as described in section
29230 \begin_inset space ~
29234 \begin_inset CommandInset ref
29236 reference "sec:Decoration"
29243 \begin_layout Standard
29244 For the following example the command
29247 \begin_layout Standard
29252 fcolorbox{cyan}{magenta}{
29255 \begin_layout Standard
29259 \begin_layout Standard
29260 Here is an example where the frame line thickness was set to 1
29261 \begin_inset space \thinspace{}
29265 \begin_inset Newline newline
29272 \begin_layout Plain Layout
29287 \begin_layout Plain Layout
29291 fcolorbox{cyan}{magenta}{
29296 This is text within a colored, framed box.
29300 \begin_layout Plain Layout
29310 \begin_layout Standard
29311 \begin_inset VSpace bigskip
29314 Of course you can also have colored text inside a colorbox:
29315 \begin_inset Newline newline
29322 \begin_layout Plain Layout
29326 fcolorbox{cyan}{magenta}{
29333 This is colored text within a colored, framed box.
29339 \begin_layout Plain Layout
29350 \begin_layout Plain Layout
29364 \begin_layout Standard
29367 \begin_inset VSpace medskip
29373 \begin_layout Standard
29374 \begin_inset Note Greyedout
29377 \begin_layout Plain Layout
29382 Text in colorboxes cannot have line breaks.
29383 To color multiple text lines or paragraphs, use a box inside a colorbox
29384 as described in the following.
29392 \begin_layout Subsection
29393 Color for Paragraphs
29394 \begin_inset CommandInset label
29396 name "sub:Color-for-Paragraphs"
29404 \begin_layout Plain Layout
29405 Color ! for Paragraphs
29413 \begin_layout Standard
29414 To set the background color for more than one text line, put the text into
29416 Before the minipage insert the
29425 \begin_layout Standard
29433 \begin_layout Standard
29435 Behind the minipage insert a closing brace
29436 \begin_inset Quotes eld
29444 \begin_inset Quotes erd
29450 \begin_layout Standard
29454 \begin_layout Plain Layout
29458 colorbox{lightgrey}{
29464 \begin_inset Box Frameless
29473 height_special "totalheight"
29476 \begin_layout Plain Layout
29477 This is text with background color.
29478 This is text with background color.
29481 \begin_layout Plain Layout
29482 \begin_inset VSpace defskip
29485 The text can have footnotes
29489 \begin_layout Plain Layout
29490 Another example footnote
29495 and can include tables and figures.
29498 \begin_layout Plain Layout
29500 \begin_inset Tabular
29501 <lyxtabular version="3" rows="3" columns="3">
29503 <column alignment="center" valignment="top" width="0">
29504 <column alignment="center" valignment="top" width="0">
29505 <column alignment="center" valignment="top" width="0">
29507 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29510 \begin_layout Plain Layout
29516 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29519 \begin_layout Plain Layout
29525 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29528 \begin_layout Plain Layout
29536 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29539 \begin_layout Plain Layout
29545 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29548 \begin_layout Plain Layout
29550 \begin_inset Quotes erd
29558 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29561 \begin_layout Plain Layout
29569 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29572 \begin_layout Plain Layout
29578 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29581 \begin_layout Plain Layout
29587 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29590 \begin_layout Plain Layout
29610 \begin_layout Plain Layout
29620 \begin_layout Section
29621 Rotated and Scaled Boxes
29624 \begin_layout Standard
29625 To use the the commands described in this section, the LaTeX-package
29633 \begin_layout Plain Layout
29634 LaTeX-packages ! graphicx
29639 needs to be loaded in the document preamble with the command
29642 \begin_layout Standard
29647 @ifundefined{rotatebox}
29648 \begin_inset Newline newline
29655 \begin_layout Plain Layout
29666 usepackage{graphicx}}{}
29669 \begin_layout Standard
29670 \begin_inset Note Greyedout
29673 \begin_layout Plain Layout
29678 Some DVI-viewers can't display rotated or scaled material.
29686 \begin_layout Standard
29687 \begin_inset Note Greyedout
29690 \begin_layout Plain Layout
29695 Floats mustn't be inside a rotated or scaled box.
29703 \begin_layout Subsection
29708 \begin_layout Plain Layout
29718 \begin_layout Plain Layout
29728 \begin_layout Plain Layout
29738 \begin_layout Plain Layout
29739 Table Customization ! Rotating
29747 \begin_layout Standard
29748 To rotate material, you can put it into a rotated box.
29749 Such a box is created using the command
29755 in TeX-Code with the following scheme:
29758 \begin_layout Standard
29763 rotatebox[rotation origin]{rotation angle}{box content}
29766 \begin_layout Standard
29767 The rotation origin is specified in the form
29772 The following positions are possible:
29792 (top), and also expedient combinations of the four base positions.
29797 means, that the rotation origin is at the top left corner of the box.
29798 When no rotation origin is specified, the position
29803 The rotation angle is a number that can be negative that specifies the
29805 The rotation direction is counterclockwise.
29808 \begin_layout Standard
29809 In the following example the command
29813 rotatebox[origin=c]{60}{
29815 was inserted as TeX-Code before the text
29816 \begin_inset Quotes eld
29820 \begin_inset Quotes erd
29823 ; after the text the box was closed by a closing brace
29830 \begin_layout Standard
29835 \begin_layout Plain Layout
29839 rotatebox[origin=c]{60}{
29848 \begin_layout Plain Layout
29858 \begin_layout Standard
29859 The box content can also be another box or an inline formula:
29862 \begin_layout Standard
29867 \begin_layout Plain Layout
29871 rotatebox[origin=r]{-60}{
29877 \begin_inset Box Doublebox
29886 height_special "totalheight"
29889 \begin_layout Plain Layout
29899 \begin_layout Plain Layout
29910 \begin_layout Plain Layout
29914 rotatebox[origin=lb]{60}{
29920 \begin_inset Formula $\int A\,\mathrm{d}x=B$
29927 \begin_layout Plain Layout
29937 \begin_layout Standard
29938 or an image or table:
29941 \begin_layout Standard
29946 \begin_layout Plain Layout
29950 rotatebox[origin=lb]{90}{
29956 \begin_inset Graphics
29957 filename clipart/platypus.eps
29967 \begin_layout Plain Layout
29974 with a rotated image
29978 \begin_layout Plain Layout
29982 rotatebox[origin=l]{-90}{
29988 \begin_inset Tabular
29989 <lyxtabular version="3" rows="2" columns="2">
29991 <column alignment="center" valignment="top" width="0">
29992 <column alignment="center" valignment="top" width="0">
29994 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29997 \begin_layout Plain Layout
30003 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30006 \begin_layout Plain Layout
30014 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30017 \begin_layout Plain Layout
30023 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30026 \begin_layout Plain Layout
30041 \begin_layout Plain Layout
30051 \begin_layout Subsection
30056 \begin_layout Plain Layout
30066 \begin_layout Plain Layout
30076 \begin_layout Plain Layout
30086 \begin_layout Plain Layout
30087 Table Customization ! Scaling
30095 \begin_layout Standard
30096 To scale material the commands
30108 can be used as TeX-Code.
30111 \begin_layout Standard
30118 is used with the following scheme:
30121 \begin_layout Standard
30126 scalebox{horizontal}[vertical]{box content}
30129 \begin_layout Standard
30130 Horizontal and vertical are the corresponding scaling factors.
30131 If no vertical scaling factor is given, the horizontal factor will also
30132 be used as vertical one.
30135 \begin_layout Standard
30142 creates for example a double size
30146 \begin_layout Plain Layout
30159 \begin_layout Plain Layout
30166 , compared to the document text size.
30169 \begin_layout Standard
30174 scalebox{2}[1]{Hello}
30176 in contrary distorts the
30180 \begin_layout Plain Layout
30193 \begin_layout Plain Layout
30203 \begin_layout Standard
30204 If a the scaling factor is negative, the box content will be mirrored.
30205 Therefore the command
30209 scalebox{-1}[1]{Hello}
30211 can be used to create mirror writing:
30215 \begin_layout Plain Layout
30228 \begin_layout Plain Layout
30238 \begin_layout Standard
30243 scalebox{1}[-1]{Hello}
30249 \begin_layout Plain Layout
30262 \begin_layout Plain Layout
30272 \begin_layout Standard
30277 scalebox{-1}[1]{box content}
30279 there exists the command
30280 \begin_inset Newline newline
30287 reflectbox{box content}
30292 \begin_layout Standard
30293 \begin_inset VSpace bigskip
30302 is used to scale the box to a defined width and height.
30303 The command scheme is:
30306 \begin_layout Standard
30311 resizebox{width}{height}{box content}
30314 \begin_layout Standard
30315 Is one of the two command arguments given as exclamation mark
30319 , the size is set so that the aspect ratio of the box content is kept.
30322 \begin_layout Standard
30327 resizebox{2cm}{1cm}{Hello}
30333 \begin_layout Plain Layout
30337 resizebox{2cm}{1cm}{
30346 \begin_layout Plain Layout
30354 \begin_inset Newline newline
30361 resizebox{2cm}{!}{Hello}
30367 \begin_layout Plain Layout
30380 \begin_layout Plain Layout
30390 \begin_layout Standard
30391 \begin_inset VSpace bigskip
30395 \begin_inset Note Greyedout
30398 \begin_layout Plain Layout
30415 are set to zero, no LaTeX-errors occur when exporting the document but
30416 the exported files can not or only partly be displayed.
30424 \begin_layout Standard
30425 \begin_inset VSpace bigskip
30431 \begin_layout Standard
30432 The boxes can be combined in any order.
30434 \begin_inset space \thinspace{}
30438 \begin_inset space \space{}
30442 \begin_inset Newline newline
30449 rotatebox[origin=c]{-45}{
30453 reflectbox{Hello}}}
30454 \begin_inset Newline newline
30462 \begin_layout Standard
30467 \begin_layout Plain Layout
30471 rotatebox[origin=c]{-45}{
30484 \begin_layout Plain Layout
30494 \begin_layout Standard
30496 Images, tables, and inline formulas are allowed as box content:
30499 \begin_layout Standard
30504 \begin_layout Plain Layout
30508 rotatebox[origin=c]{-30}{
30518 \begin_inset Graphics
30519 filename clipart/platypus.eps
30529 \begin_layout Plain Layout
30540 \begin_layout Plain Layout
30544 rotatebox[origin=c]{-45}{
30554 \begin_inset Tabular
30555 <lyxtabular version="3" rows="2" columns="2">
30557 <column alignment="center" valignment="top" width="0">
30558 <column alignment="center" valignment="top" width="0">
30560 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30563 \begin_layout Plain Layout
30569 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30572 \begin_layout Plain Layout
30580 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30583 \begin_layout Plain Layout
30589 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30592 \begin_layout Plain Layout
30607 \begin_layout Plain Layout
30618 \begin_layout Plain Layout
30622 rotatebox[origin=c]{-45}{
30632 \begin_inset Formula $\int A\,\mathrm{d}x=B$
30639 \begin_layout Plain Layout
30649 \begin_layout Standard
30650 When the global formula style
30654 is used in the document
30658 \begin_layout Plain Layout
30660 \begin_inset Quotes eld
30664 \begin_inset Quotes erd
30667 is added to the document class options.
30672 , also display formulas can be scaled.
30675 \begin_layout Chapter
30680 \begin_layout Plain Layout
30689 \begin_layout Standard
30692 Insert\SpecialChar \menuseparator
30695 you can insert external material to your document.
30699 \begin_layout Description
30701 \begin_inset space ~
30704 Document Another LyX document; its content is directly inserted to your
30708 \begin_layout Description
30710 \begin_inset space ~
30713 Text A text document; every of its text lines is inserted to your document
30717 \begin_layout Description
30719 \begin_inset space ~
30723 \begin_inset space ~
30727 \begin_inset space ~
30730 Lines A text document; its text lines are inserted as they are.
30731 Empty text lines creates a new paragraph in your document.
30734 \begin_layout Description
30736 \begin_inset space ~
30739 Material Files in various formats.
30742 \begin_layout Description
30744 \begin_inset space ~
30747 Document LyX or LaTeX-documents.
30750 \begin_layout Section
30755 \begin_layout Plain Layout
30756 External Stuff ! External Material
30764 \begin_layout Standard
30765 The external material feature allows you to insert files to your document
30766 without converting them previously to a format that can be read by the
30767 document output format because LyX takes care of needed conversions.
30768 This is similar to images that can be inserted in various image formats
30772 \begin_layout Standard
30773 External material can be inserted via the
30777 dialog that is accessible with the menu
30779 Insert\SpecialChar \menuseparator
30780 File\SpecialChar \menuseparator
30782 \begin_inset space ~
30788 Currently the following file types (
30795 \begin_layout Description
30796 ChessDiagram This template supports chess position diagrams made with the
30800 \begin_inset CommandInset href
30803 target "http://en.wikipedia.org/wiki/XBoard"
30812 \begin_layout Description
30813 Date This inserts the date in the form
30818 This is a date inserted as external material:
30819 \begin_inset External
30826 \begin_inset space ~
30830 \begin_inset Note Note
30833 \begin_layout Plain Layout
30834 Remove the protected space when bug 4398 is fixed!
30840 \begin_inset Newline newline
30843 The date is not shown within LyX, only in the output.
30844 There are two other methods of inserting a date: Via menu
30846 Insert\SpecialChar \menuseparator
30849 and with the LaTeX command
30856 The different methods are compared in Table
30857 \begin_inset space ~
30861 \begin_inset CommandInset ref
30863 reference "tab:Comparison-of-the"
30870 \begin_layout Description
30871 LilyPond This template is used for music notation typeset with the program
30872 \begin_inset Newline linebreak
30878 \begin_inset CommandInset href
30881 target "http://en.wikipedia.org/wiki/LilyPond"
30890 \begin_layout Description
30891 PDFPages With this template you can insert PDF documents to your document.
30892 To insert certain or all pages of a PDF, use the
30902 LaTeX and LyX options
30904 tab according to the template description in the dialog.
30909 option is given, only the first page of the PDF will be inserted.
30912 \begin_layout Description
30913 RasterImage This can be used for bitmap images.
30914 Nearly all popular image formats are supported.
30915 The image can be treated in the
30919 dialog like the images that are usually included via the
30923 dialog as described in section
30924 \begin_inset space ~
30928 \begin_inset CommandInset ref
30930 reference "sec:Graphics-Dialog"
30935 The difference is that only raster images are allowed, that means that
30936 PDF and EPS-images are not supported.
30939 \begin_layout Description
30940 XFig This template supports images created with the program
30943 \begin_inset CommandInset href
30946 target "http://en.wikipedia.org/wiki/Xfig"
30955 \begin_layout Standard
30956 \begin_inset Float table
30962 \begin_layout Plain Layout
30963 \begin_inset Caption
30965 \begin_layout Plain Layout
30966 \begin_inset CommandInset label
30968 name "tab:Comparison-of-the"
30972 Comparison of the date input methods.
30980 \begin_layout Plain Layout
30982 \begin_inset Tabular
30983 <lyxtabular version="3" rows="4" columns="4">
30985 <column alignment="center" valignment="top" width="0">
30986 <column alignment="center" valignment="top" width="0">
30987 <column alignment="center" valignment="top" width="0">
30988 <column alignment="center" valignment="top" width="0">
30990 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30993 \begin_layout Plain Layout
30999 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31002 \begin_layout Plain Layout
31005 External Material\SpecialChar \menuseparator
31011 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31014 \begin_layout Plain Layout
31017 Insert\SpecialChar \menuseparator
31023 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31026 \begin_layout Plain Layout
31038 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31041 \begin_layout Plain Layout
31047 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31050 \begin_layout Plain Layout
31056 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31059 \begin_layout Plain Layout
31065 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31068 \begin_layout Plain Layout
31069 as TeX-Code inset box
31076 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31079 \begin_layout Plain Layout
31085 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31088 \begin_layout Plain Layout
31094 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31097 \begin_layout Plain Layout
31103 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31106 \begin_layout Plain Layout
31114 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31117 \begin_layout Plain Layout
31123 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31126 \begin_layout Plain Layout
31132 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31135 \begin_layout Plain Layout
31141 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31144 \begin_layout Plain Layout
31163 \begin_layout Standard
31164 When you use the option
31176 dialog, only the path to the inserted file is shown in the output.
31177 \begin_inset Newline newline
31180 External material is displayed in LyX either as box like this:
31181 \begin_inset Graphics
31182 filename clipart/ExternalMaterialQt4.png
31184 scaleBeforeRotation
31188 or as image, depending on the option
31194 LaTeX and LyX options
31199 \begin_layout Standard
31206 manual explains how you can define your own templates.
31209 \begin_layout Section
31211 \begin_inset CommandInset label
31213 name "sec:Child-Documents"
31221 \begin_layout Plain Layout
31222 External Stuff ! Child Documents
31231 \begin_layout Plain Layout
31240 \begin_layout Standard
31241 Child documents are used when you have a long document consisting of several
31242 larger parts or sections.
31243 For maintenance it is often useful and sometimes even required to split
31244 the document in several files that can be revised separately.
31245 The different documents are then the so called child documents and a master
31246 document connects them to print the full document or parts of it.
31247 A child documents inherits contents of its master, for example the bibliography
31248 and the labels for cross-references.
31251 \begin_layout Standard
31252 To be able to work on child documents without the need to open its master,
31253 specify in the child document the master in the menu
31255 Document\SpecialChar \menuseparator
31256 Settings\SpecialChar \menuseparator
31258 \begin_inset space ~
31264 This master file will then be used in the background by LyX when you edit
31265 the child document.
31268 \begin_layout Standard
31269 Included documents are displayed in LyX as a box like this:
31270 \begin_inset Graphics
31271 filename clipart/ChildDocumentQt4.png
31273 scaleBeforeRotation
31277 To include child documents to a master document use the menu
31279 Insert\SpecialChar \menuseparator
31280 File\SpecialChar \menuseparator
31282 \begin_inset space ~
31288 A dialog pops up where you can choose between four include methods:
31291 \begin_layout Description
31292 Include You can include LyX and LaTeX-documents.
31301 dialog, the included documents will be opened in LyX in a new file tab
31302 so that you can modify it.
31303 \begin_inset Newline newline
31309 \begin_layout Standard
31310 Here is a child document inserted using
31315 \begin_inset CommandInset include
31316 LatexCommand include
31317 filename "DummyDocument1.lyx"
31324 \begin_layout Standard
31325 The section numbering includes the sections of the included files in the
31326 order they are inserted in the master document.
31327 The included example document has for example a subsection that is numbered
31328 as subsection of this section.
31329 Labels of included documents can be referenced: Subsection
31330 \begin_inset space ~
31334 \begin_inset CommandInset ref
31336 reference "sub:External-Subsection-1"
31343 \begin_layout Standard
31344 The preamble of the child document is ignored, only the preamble of the
31345 master document is used.
31346 Included documents are inserted starting on a new page and end with a page
31350 \begin_layout Standard
31351 With the LaTeX-command
31357 you can specify which included child documents are processed when the output
31359 This is useful when you are perhaps only working on a certain chapter of
31360 your large document as this saves compiling time.
31367 is inserted to the master document preamble.
31368 It takes a comma-separated list of the filenames as argument, e.
31369 \begin_inset space \thinspace{}
31375 \begin_layout Standard
31380 includeonly{chapter1,chapter5}
31383 \begin_layout Standard
31384 will only process the included files named
31385 \begin_inset Quotes eld
31389 \begin_inset Quotes erd
31393 \begin_inset Quotes eld
31397 \begin_inset Quotes erd
31401 \begin_inset Quotes eld
31405 \begin_inset Quotes erd
31411 \begin_layout Standard
31412 \begin_inset Note Greyedout
31415 \begin_layout Plain Layout
31420 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
31421 w the document in case that the child document uses another document class
31422 than the master document as this will lead to unexpected outputs.
31430 \begin_layout Description
31431 Input This method is very similar to the Include method.
31432 The differences are:
31436 \begin_layout Itemize
31437 Input files don't start with a new page and don't end with a page break.
31440 \begin_layout Itemize
31441 Input files can be previewed in LyX when
31444 \begin_inset space ~
31449 is enabled in LyX's preferences under
31452 \begin_inset space ~
31456 \begin_inset space ~
31459 feel\SpecialChar \menuseparator
31465 \begin_layout Itemize
31476 \begin_layout Standard
31477 Here is a child document inserted using
31482 \begin_inset CommandInset include
31484 filename "DummyDocument2.lyx"
31491 \begin_layout Description
31492 Verbatim With this method every text file can be included.
31493 The file is shown in the output with its source code, no command used in
31494 the text is invoked.
31495 You can use the option
31497 Mark spaces in output
31499 that displays the character
31500 \begin_inset Quotes eld
31507 \begin_layout Plain Layout
31517 \begin_inset Quotes erd
31520 for every space character in the source code.
31521 The difference to the method via the menu
31523 Insert\SpecialChar \menuseparator
31524 File\SpecialChar \menuseparator
31526 \begin_inset space ~
31531 is that the document content is not shown in LyX.
31534 \begin_layout Standard
31535 Here is a child document inserted as Verbatim:
31536 \begin_inset CommandInset include
31537 LatexCommand verbatiminput
31538 filename "DummyTextDocument.txt"
31543 \begin_inset VSpace bigskip
31546 Here is a child document inserted as Verbatim using the
31548 Mark spaces in output
31551 \begin_inset CommandInset include
31552 LatexCommand verbatiminput*
31553 filename "DummyTextDocument.txt"
31560 \begin_layout Standard
31561 \begin_inset VSpace bigskip
31567 \begin_layout Standard
31568 \begin_inset Note Greyedout
31571 \begin_layout Plain Layout
31576 As you can see in the examples above, the text of the documents included
31581 is not broken at the end of the document lines.
31589 \begin_layout Description
31590 Listings This type is described in chapter
31591 \begin_inset space ~
31595 \begin_inset CommandInset ref
31597 reference "cha:Program-Code-Listings"
31604 \begin_layout Standard
31605 \begin_inset Note Greyedout
31608 \begin_layout Plain Layout
31613 Including the same document twice in a document using different methods
31614 could cause LaTeX-problems.
31622 \begin_layout Chapter
31623 Program Code Listings
31624 \begin_inset CommandInset label
31626 name "cha:Program-Code-Listings"
31634 \begin_layout Plain Layout
31644 \begin_layout Plain Layout
31654 \begin_layout Plain Layout
31663 \begin_layout Standard
31664 To include and typeset program code you can use the
31668 inset that can be inserted via the menu
31670 Insert\SpecialChar \menuseparator
31682 \begin_layout Plain Layout
31683 LaTeX-packages ! listings
31688 provides a powerful and flexible way to insert program source code to your
31692 \begin_layout Standard
31693 Right-clicking on a listings inset opens the context menu containing where
31694 you can set the listings format.
31697 \begin_layout Standard
31698 By default, a listing starts a new paragraph in the output.
31699 The placement option
31702 \begin_inset space ~
31707 prints the listing inline like this:
31708 \begin_inset listings
31709 lstparams "language={C++}"
31713 \begin_layout Plain Layout
31721 \begin_inset Newline newline
31728 creates a listings float where you can specify the placement options
31729 \begin_inset Quotes eld
31737 \begin_inset Quotes erd
31741 \begin_inset Quotes eld
31749 \begin_inset Quotes erd
31753 \begin_inset Quotes eld
31761 \begin_inset Quotes erd
31765 \begin_inset Quotes eld
31773 \begin_inset Quotes erd
31776 corresponding to the float placement options described in section
31777 \begin_inset space ~
31781 \begin_inset CommandInset ref
31783 reference "sec:Float-Placement"
31788 The placement options can be mixed and are inserted without any separation,
31790 \begin_inset space \thinspace{}
31794 \begin_inset space \space{}
31798 \begin_inset Quotes eld
31806 \begin_inset Quotes erd
31811 \begin_inset Quotes eld
31815 \begin_inset Quotes erd
31818 has sometimes no effect, but you don't need to use the
31822 option in this case as also non-float listings can have captions and be
31826 \begin_layout Standard
31827 You can add captions to listings with the menu
31829 Insert\SpecialChar \menuseparator
31833 Listings can be referenced like floats: Listing
31834 \begin_inset space ~
31838 \begin_inset CommandInset ref
31840 reference "lst:Example-Listing"
31847 \begin_layout Standard
31848 \begin_inset listings
31849 lstparams "language=Python"
31853 \begin_layout Plain Layout
31855 \begin_inset Caption
31857 \begin_layout Plain Layout
31858 \begin_inset CommandInset label
31860 name "lst:Example-Listing"
31864 Example Listing float
31869 # Example listing float
31872 \begin_layout Plain Layout
31877 \begin_layout Plain Layout
31879 'this is a python function'
31882 \begin_layout Plain Layout
31892 \begin_layout Standard
31893 When you have set a programming language in the listings dialog, the keywords
31894 of this language will be recognized and specially typeset in the output.
31895 In the example listings the Python keyword
31896 \begin_inset Quotes eld
31900 \begin_inset Quotes erd
31903 is recognized and printed bold in the output.
31906 \begin_layout Standard
31907 \begin_inset Note Greyedout
31910 \begin_layout Plain Layout
31915 If you don't get bold keywords when using typewriter fonts, your
31919 font probably doesn't provide a bold shape.
31920 In this case select a different one in the menu
31922 Document\SpecialChar \menuseparator
31923 Settings\SpecialChar \menuseparator
31935 provide bold shapes.)
31943 \begin_layout Standard
31947 \begin_inset space ~
31952 of the listings dialog you can specify the line numbering style.
31953 You can insert a number to specify which lines are numbered to the field
31960 \begin_inset space \thinspace{}
31964 \begin_inset space \space{}
31968 \begin_inset Quotes eld
31972 \begin_inset Quotes erd
31975 , only every 3rd line will be numbered.
31978 \begin_layout Standard
31979 You can furthermore specify a range of lines, only these will then appear
31983 Extended character table
31985 should be used when you use national characters like the German umlauts
31987 \begin_inset Newline newline
31990 Here is an example listing with left line numbering, step
31991 \begin_inset Quotes eld
31995 \begin_inset Quotes erd
31999 \begin_inset Quotes eld
32003 \begin_inset Quotes erd
32007 \begin_inset Quotes eld
32010 Extended character table
32011 \begin_inset Quotes erd
32015 \begin_inset Quotes eld
32019 \begin_inset space ~
32023 \begin_inset space ~
32027 \begin_inset Quotes erd
32031 \begin_inset space \thinspace{}
32035 \begin_inset space \thinspace{}
32041 \begin_layout Standard
32042 \begin_inset listings
32043 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
32047 \begin_layout Plain Layout
32052 \begin_layout Plain Layout
32054 'this is a python function'
32057 \begin_layout Plain Layout
32062 \begin_layout Plain Layout
32067 \begin_layout Plain Layout
32069 'This is a German word: Tschüß'
32072 \begin_layout Plain Layout
32077 \begin_layout Plain Layout
32082 \begin_layout Plain Layout
32084 'this is a python function'
32087 \begin_layout Plain Layout
32097 \begin_layout Standard
32098 When you have tabulators in your listing, you can specify the number of
32099 characters that are spanned by a tabulator in the field
32102 \begin_inset space ~
32110 \begin_layout Standard
32111 \begin_inset Note Greyedout
32114 \begin_layout Plain Layout
32119 Due to a bug in the
32123 package the line numbering is shifted by a line by every previous listing.
32124 That's the reason why the lines 2 and 5 are numbered in the above listing
32125 and not the lines 3 and 6.
32133 \begin_layout Standard
32134 \begin_inset VSpace bigskip
32140 \begin_layout Standard
32141 It is also possible to print lines from a file as listing.
32142 To do this, use the menu
32144 Insert\SpecialChar \menuseparator
32145 File\SpecialChar \menuseparator
32148 and choose the type
32156 \begin_layout Plain Layout
32157 The other child document types are described in section
32158 \begin_inset space ~
32162 \begin_inset CommandInset ref
32164 reference "sec:Child-Documents"
32173 In the child document dialog you can specify the listing parameters in
32175 To show a list of all available parameters, type in a question mark
32176 \begin_inset Quotes eld
32180 \begin_inset Quotes erd
32186 \begin_layout Standard
32187 To reference child document listings, write a label text into the corresponding
32188 field of the child document dialog.
32189 The label can then be referenced using the menu
32191 Insert\SpecialChar \menuseparator
32197 \begin_layout Standard
32199 \begin_inset space ~
32203 \begin_inset CommandInset ref
32205 reference "lst:file-listing"
32209 is an example for a listing of a file; there the lines 10
32210 \begin_inset space \thinspace{}
32214 \begin_inset space \thinspace{}
32217 15 of this LyX file are listed.
32220 \begin_layout Standard
32221 \begin_inset CommandInset include
32222 LatexCommand lstinputlisting
32223 filename "EmbeddedObjects.lyx"
32224 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
32231 \begin_layout Standard
32232 \begin_inset VSpace bigskip
32238 \begin_layout Standard
32239 Global listings settings can be set in the
32241 Document\SpecialChar \menuseparator
32242 Settings\SpecialChar \menuseparator
32246 To get there a list of available options, type in a question mark
32247 \begin_inset Quotes eld
32251 \begin_inset Quotes erd
32257 \begin_inset space ~
32265 \begin_layout Standard
32266 For more information about the
32270 package, we refer to its documentation
32271 \begin_inset CommandInset citation
32280 \begin_layout Standard
32281 \begin_inset Newpage newpage
32287 \begin_layout Chapter
32289 Units available in LyX
32293 \begin_layout Plain Layout
32300 \begin_inset CommandInset label
32302 name "cha:Units-available-in"
32309 \begin_layout Standard
32310 To understand the units described in this documentation, Table
32311 \begin_inset space ~
32315 \begin_inset CommandInset ref
32317 reference "tab:Units"
32321 explains all units available in LyX.
32324 \begin_layout Standard
32325 \begin_inset Float table
32331 \begin_layout Plain Layout
32332 \begin_inset Caption
32334 \begin_layout Plain Layout
32335 \begin_inset CommandInset label
32349 \begin_layout Plain Layout
32350 \begin_inset VSpace medskip
32356 \begin_layout Plain Layout
32358 \begin_inset Tabular
32359 <lyxtabular version="3" rows="20" columns="2">
32361 <column alignment="center" valignment="top" width="0">
32362 <column alignment="center" valignment="top" width="0">
32364 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32367 \begin_layout Plain Layout
32373 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
32376 \begin_layout Plain Layout
32384 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32387 \begin_layout Plain Layout
32393 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32396 \begin_layout Plain Layout
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
32424 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32427 \begin_layout Plain Layout
32433 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32436 \begin_layout Plain Layout
32444 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32447 \begin_layout Plain Layout
32453 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32456 \begin_layout Plain Layout
32458 \begin_inset space \thinspace{}
32462 \begin_inset space \thinspace{}
32472 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32475 \begin_layout Plain Layout
32481 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32484 \begin_layout Plain Layout
32486 \begin_inset space \thinspace{}
32490 \begin_inset space \thinspace{}
32500 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32503 \begin_layout Plain Layout
32509 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32512 \begin_layout Plain Layout
32513 scaled point (65536
32514 \begin_inset space \thinspace{}
32518 \begin_inset space \thinspace{}
32528 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32531 \begin_layout Plain Layout
32537 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32540 \begin_layout Plain Layout
32542 \begin_inset space \thinspace{}
32546 \begin_inset space \thinspace{}
32556 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32559 \begin_layout Plain Layout
32565 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32568 \begin_layout Plain Layout
32570 \begin_inset space \thinspace{}
32574 \begin_inset Formula $\approx$
32578 \begin_inset space \thinspace{}
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
32602 \begin_inset space \thinspace{}
32606 \begin_inset space \thinspace{}
32616 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32619 \begin_layout Plain Layout
32625 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32628 \begin_layout Plain Layout
32629 % of original image width
32636 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32639 \begin_layout Plain Layout
32645 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32648 \begin_layout Plain Layout
32656 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32659 \begin_layout Plain Layout
32665 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32668 \begin_layout Plain Layout
32676 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32679 \begin_layout Plain Layout
32685 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32688 \begin_layout Plain Layout
32696 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32699 \begin_layout Plain Layout
32705 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32708 \begin_layout Plain Layout
32716 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32719 \begin_layout Plain Layout
32725 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32728 \begin_layout Plain Layout
32736 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32739 \begin_layout Plain Layout
32745 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32748 \begin_layout Plain Layout
32756 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32759 \begin_layout Plain Layout
32765 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32768 \begin_layout Plain Layout
32780 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32783 \begin_layout Plain Layout
32789 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32792 \begin_layout Plain Layout
32804 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32807 \begin_layout Plain Layout
32813 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
32816 \begin_layout Plain Layout
32818 \begin_inset space \thinspace{}
32822 \begin_inset space \thinspace{}
32843 \begin_layout Chapter
32844 Output File Formats with Graphics
32845 \begin_inset CommandInset label
32847 name "cha:Output-File-Formats"
32854 \begin_layout Section
32859 \begin_layout Plain Layout
32869 \begin_layout Plain Layout
32874 \begin_layout Plain Layout
32885 \begin_layout Plain Layout
32900 \begin_layout Standard
32901 This file type has the extension
32902 \begin_inset Quotes eld
32910 \begin_inset Quotes erd
32915 \begin_inset Quotes eld
32919 \begin_inset Quotes erd
32922 (DVI), because it is completely portable; you can move them from one machine
32923 to another without needing to do any sort of conversion.
32924 At the time when this file-format was developed, this was no matter of
32926 DVIs are used for quick previews and as pre-stage for other output formats,
32930 \begin_layout Standard
32931 \begin_inset Note Greyedout
32934 \begin_layout Plain Layout
32939 DVI-files doesn't contain images, they will only be a linked.
32944 So don't forget this, if you move your
32948 file to another computer.
32949 This property can also slow down your computer when you view the DVI.
32950 Because the DVI-viewer has to convert the image in the background to make
32951 it visible when you scroll in the DVI.
32952 So we recommend to use PDF for files with many images.
32955 \begin_layout Standard
32956 You can export your document to DVI by using the menu
32958 File\SpecialChar \menuseparator
32959 Export\SpecialChar \menuseparator
32963 You can view your document as DVI via the
32967 menu or by using the toolbar button
32968 \begin_inset Graphics
32969 filename ../images/buffer-view_dvi.png
32971 scaleBeforeRotation
32978 \begin_layout Section
32980 \begin_inset CommandInset label
32982 name "sec:PostScript"
32990 \begin_layout Plain Layout
32991 File Formats ! PostScript
33000 \begin_layout Plain Layout
33005 \begin_layout Plain Layout
33016 \begin_layout Plain Layout
33031 \begin_layout Standard
33032 This file type has the extension
33033 \begin_inset Quotes eld
33041 \begin_inset Quotes erd
33045 PostScript was developed by the company
33049 as printer language.
33050 The file contains therefore commands that the printer uses to print the
33052 PostScript can be seen as
33053 \begin_inset Quotes eld
33056 programming language
33057 \begin_inset Quotes erd
33060 ; you can calculate with it and draw diagrams and images
33064 \begin_layout Plain Layout
33065 If you are interested to learn more about this, have a look at the LaTeX-package
33071 \begin_inset CommandInset citation
33083 Due to this ability, the files are often bigger than PDFs.
33086 \begin_layout Standard
33087 PostScript can only contain images in the format
33088 \begin_inset Quotes eld
33091 Encapsulated PostScript
33092 \begin_inset Quotes erd
33095 (EPS, file extension
33096 \begin_inset Quotes eld
33104 \begin_inset Quotes erd
33108 As LyX allows you to use any known image format in your document, it has
33109 to convert images in the background to EPS.
33110 If you have e.g 50 images in your document, LyX has to do 50 conversions
33111 whenever you view or export your document.
33112 This will slow down your work flow with LyX drastically.
33113 So if you plan to use PostScript, you can insert your images directly as
33114 EPS to avoid this problem.
33117 \begin_layout Standard
33118 You can export your document to PostScript using the menu
33120 File\SpecialChar \menuseparator
33121 Export\SpecialChar \menuseparator
33125 You can view your document as PostScript via the
33129 menu or by using the toolbar button
33130 \begin_inset Graphics
33131 filename ../images/buffer-view_ps.png
33133 scaleBeforeRotation
33140 \begin_layout Section
33145 \begin_layout Plain Layout
33155 \begin_layout Plain Layout
33164 \begin_layout Standard
33165 This file type has the extension
33166 \begin_inset Quotes eld
33174 \begin_inset Quotes erd
33179 \begin_inset Quotes eld
33182 Portable Document Format
33183 \begin_inset Quotes erd
33186 (PDF) is developed by
33190 as derivative from PostScript.
33191 It is more compressed and it uses much less commands than PostScript.
33193 \begin_inset Quotes eld
33197 \begin_inset Quotes erd
33200 implies, it can be processed at any computer system and the printed output
33201 looks exactly the same.
33204 \begin_layout Standard
33205 PDF can contain images in its own PDF format, in the format
33206 \begin_inset Quotes eld
33209 Joint Photographic Experts Group
33210 \begin_inset Quotes erd
33213 (JPG, file extension
33214 \begin_inset Quotes eld
33222 \begin_inset Quotes erd
33226 \begin_inset Quotes eld
33234 \begin_inset Quotes erd
33237 ), and in the format
33238 \begin_inset Quotes eld
33241 Portable Network Graphics
33242 \begin_inset Quotes erd
33245 (PNG, file extension
33246 \begin_inset Quotes eld
33254 \begin_inset Quotes erd
33258 Nevertheless you can use any other image format, because LyX converts them
33259 in the background to one of these formats.
33260 But as described in the section about PostScript, the image conversion
33261 will slow down your work flow.
33262 So it is recommended to use images in one of the three mentioned formats.
33265 \begin_layout Standard
33266 You can export your document to PDF via the menu
33268 File\SpecialChar \menuseparator
33271 in three different ways:
33274 \begin_layout Description
33276 \begin_inset space ~
33279 (ps2pdf) This uses the program
33283 that creates a PDF from a PostScript-version of your file.
33284 The PostScript-version is produced by the program
33288 which uses a DVI-version as intermediate step.
33289 So this export variant consist of three conversions.
33292 \begin_layout Description
33294 \begin_inset space ~
33297 (dvipdfm) This uses the program
33301 that converts your file in the background to DVI and in a second step to
33305 \begin_layout Description
33307 \begin_inset space ~
33310 (pdflatex) This uses the program
33314 that converts your file directly to PDF.
33317 \begin_layout Standard
33318 It is recommended to use
33321 \begin_inset space ~
33330 supports all features of actual PDF-versions, is quick and works stable
33336 is not under development and therefore a bit outdated.
33339 \begin_layout Standard
33340 You can view your document as PDF via the
33344 menu or by using the toolbar button
33345 \begin_inset Graphics
33346 filename ../images/buffer-view_pdf2.png
33348 scaleBeforeRotation
33359 \begin_inset space ~
33367 \begin_layout Chapter
33368 Explanation of Equation
33369 \begin_inset space ~
33373 \begin_inset CommandInset ref
33380 \begin_inset CommandInset label
33382 name "cha:Explanation-of-Equation"
33389 \begin_layout Standard
33395 \begin_inset Formula $W_{\mathrm{tot\, n}}$
33398 can be calculated to
33401 \begin_layout Standard
33402 \begin_inset Formula \begin{equation}
33403 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}
33410 \begin_layout Standard
33412 \begin_inset Formula $W_{g\, n}$
33415 is the given width of all cells.
33422 is the LaTeX-length between the cell text and the cell border, its default
33424 \begin_inset space \thinspace{}
33434 is the thickness of the cell border line, the default is 0.4
33435 \begin_inset space \thinspace{}
33441 \begin_layout Standard
33443 \begin_inset space ~
33447 \begin_inset CommandInset ref
33449 reference "eq:Wtot_n"
33453 , the total width of a multicolumn
33454 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
33460 \begin_layout Standard
33461 \begin_inset Formula \begin{equation}
33462 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
33469 \begin_layout Standard
33470 By setting equation
33471 \begin_inset space ~
33475 \begin_inset CommandInset ref
33477 reference "eq:Wtot_n"
33482 \begin_inset CommandInset ref
33484 reference "eq:Wtot_mult"
33488 equal we can calculate the needed given width
33489 \begin_inset Formula $W_{g\, n}$
33496 columns are spanned, so that each column has a total width of
33497 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
33503 \begin_layout Standard
33504 \begin_inset Formula \begin{equation}
33505 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
33512 \begin_layout Bibliography
33513 \begin_inset CommandInset bibitem
33514 LatexCommand bibitem
33515 key "latexcompanion"
33519 Frank Mittelbach and Michel Goossens:
33521 The LaTeX Companion Second Edition.
33524 Addison-Wesley, 2004
33527 \begin_layout Bibliography
33528 \begin_inset CommandInset bibitem
33529 LatexCommand bibitem
33534 Helmut Kopka and Patrick W.
33537 A Guide to LaTeX Fourth Edition.
33540 Addison-Wesley, 2003
33543 \begin_layout Bibliography
33544 \begin_inset CommandInset bibitem
33545 LatexCommand bibitem
33552 LaTeX: A Document Preparation System.
33555 Addison-Wesley, second edition, 1994
33558 \begin_layout Bibliography
33559 \begin_inset CommandInset bibitem
33560 LatexCommand bibitem
33565 Documentation of the LaTeX-package
33568 \begin_inset CommandInset href
33571 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
33581 \begin_layout Plain Layout
33582 LaTeX-packages ! booktabs
33590 \begin_layout Bibliography
33591 \begin_inset CommandInset bibitem
33592 LatexCommand bibitem
33597 Documentation of the LaTeX-package
33600 \begin_inset CommandInset href
33603 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf"
33613 \begin_layout Plain Layout
33614 LaTeX-packages ! caption
33622 \begin_layout Bibliography
33623 \begin_inset CommandInset bibitem
33624 LatexCommand bibitem
33629 Documentation of the LaTeX-package
33632 \begin_inset CommandInset href
33635 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
33645 \begin_layout Plain Layout
33646 LaTeX-packages ! endfloat
33654 \begin_layout Bibliography
33655 \begin_inset CommandInset bibitem
33656 LatexCommand bibitem
33661 Documentation of the LaTeX-package
33664 \begin_inset CommandInset href
33667 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/wrapfig/wrapfig.sty"
33677 \begin_layout Plain Layout
33678 LaTeX-packages ! wrapfig
33682 \begin_layout Plain Layout
33699 \begin_layout Bibliography
33700 \begin_inset CommandInset bibitem
33701 LatexCommand bibitem
33706 Documentation of the LaTeX-package
33709 \begin_inset CommandInset href
33712 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
33722 \begin_layout Plain Layout
33723 LaTeX-packages ! footmisc
33731 \begin_layout Bibliography
33732 \begin_inset CommandInset bibitem
33733 LatexCommand bibitem
33738 Documentation of the LaTeX-package
33741 \begin_inset CommandInset href
33744 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
33754 \begin_layout Plain Layout
33755 LaTeX-packages ! hyperref
33763 \begin_layout Bibliography
33764 \begin_inset CommandInset bibitem
33765 LatexCommand bibitem
33770 Documentation of the LaTeX-package
33773 \begin_inset CommandInset href
33776 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
33786 \begin_layout Plain Layout
33787 LaTeX-packages ! hyperref
33795 \begin_layout Bibliography
33796 \begin_inset CommandInset bibitem
33797 LatexCommand bibitem
33802 Documentation of the LaTeX-package
33805 \begin_inset CommandInset href
33808 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf"
33818 \begin_layout Plain Layout
33819 LaTeX-packages ! koma-script
33827 \begin_layout Bibliography
33828 \begin_inset CommandInset bibitem
33829 LatexCommand bibitem
33834 Documentation of the LaTeX-package
33837 \begin_inset CommandInset href
33840 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
33850 \begin_layout Plain Layout
33851 LaTeX-packages ! listings
33859 \begin_layout Bibliography
33860 \begin_inset CommandInset bibitem
33861 LatexCommand bibitem
33866 Documentation of the LaTeX-package
33869 \begin_inset CommandInset href
33872 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
33882 \begin_layout Plain Layout
33883 LaTeX-packages ! marginnote
33891 \begin_layout Bibliography
33892 \begin_inset CommandInset bibitem
33893 LatexCommand bibitem
33898 Web page of the LaTeX-package
33901 \begin_inset CommandInset href
33904 target "http://tug.org/PSTricks/"
33914 \begin_layout Plain Layout
33915 LaTeX-packages ! PSTricks
33923 \begin_layout Bibliography
33924 \begin_inset CommandInset bibitem
33925 LatexCommand bibitem
33930 Documentation of the LaTeX-package
33933 \begin_inset CommandInset href
33936 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
33946 \begin_layout Plain Layout
33947 LaTeX-packages ! sidecap
33955 \begin_layout Bibliography
33956 \begin_inset CommandInset bibitem
33957 LatexCommand bibitem
33963 \begin_inset CommandInset href
33966 target "http://wiki.lyx.org/LyX/NewInLyX16"
33970 about new features in
33977 \begin_layout Standard
33978 \begin_inset CommandInset index_print
33979 LatexCommand printindex
33986 \begin_layout Standard
33987 \begin_inset FloatList figure
33994 \begin_layout Standard
33995 \begin_inset FloatList table
34002 \begin_layout Standard
34003 \begin_inset FloatList algorithm