1 #LyX 1.6.0svn 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{}
593 When the option is used the images will not be unzipped on export, since
594 LaTeX can handle them as they are.
595 \begin_inset Newline newline
598 Zipped EPS-graphics are useful to save disk space when you choose PostScript
599 as output format, see appendix
604 \begin_inset CommandInset ref
606 reference "sec:PostScript"
611 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
613 \begin_inset Newline newline
621 \begin_inset Newline newline
626 zgrep %%Bounding x.eps.gz > x.eps.bb
629 \begin_inset Newline newline
632 The second command creates the bounding box file
633 \begin_inset Quotes eld
637 \begin_inset Quotes erd
640 that is needed by LaTeX for zipped graphics.
641 \begin_inset Newline newline
656 allows you define or join an image settings group.
660 \begin_layout Plain Layout
661 Figures ! Settings grouping
666 Images within such a group share their settings, so adjusting one image
667 of the group automatically also adjusts all other images of the group in
669 So you can for example change the size for a bunch of images without the
670 need to manually change each of them.
671 Joining an existing group can also be done using the context menu of the
672 image by checking the name of the desired group.
675 \begin_layout Standard
676 \begin_inset VSpace bigskip
682 \begin_layout Standard
683 This is an example image in EPS format
687 \begin_layout Plain Layout
688 Image formats are explained in section
693 \begin_inset CommandInset ref
695 reference "sec:Image-Formats"
704 within a separate, horizontally centered paragraph:
707 \begin_layout Standard
709 \begin_inset Graphics
710 filename clipart/mobius.eps
720 \begin_layout Standard
721 This is the same image like the one above but in draft mode:
724 \begin_layout Standard
726 \begin_inset Graphics
727 filename clipart/mobius.eps
738 \begin_layout Standard
739 \begin_inset Newpage newpage
745 \begin_layout Section
747 \begin_inset CommandInset label
749 name "sec:Figure-Floats"
757 \begin_layout Plain Layout
767 \begin_layout Plain Layout
776 \begin_layout Standard
777 For general explanations about floats, have a look at section
782 \begin_inset CommandInset ref
784 reference "sec:FloatIntroduction"
791 \begin_layout Standard
793 \begin_inset Graphics
794 filename ../images/float-insert_figure.png
802 Insert\SpecialChar \menuseparator
803 Float\SpecialChar \menuseparator
806 inserts a float with a caption that has the label
807 \begin_inset Quotes eld
815 \begin_inset Quotes erd
818 (# is the actual number).
819 You can insert the image above the caption, like in Figure
824 \begin_inset CommandInset ref
826 reference "fig:kill-plat"
830 or below the caption, like in Figure
835 \begin_inset CommandInset ref
837 reference "fig:escher"
842 More about the caption placement is described in section
847 \begin_inset CommandInset ref
849 reference "sec:Caption-Placement"
856 \begin_layout Standard
857 \begin_inset Float figure
862 \begin_layout Plain Layout
864 \begin_inset Graphics
865 filename clipart/platypus.eps
875 \begin_layout Plain Layout
878 \begin_layout Plain Layout
879 \begin_inset CommandInset label
885 A severely distorted platypus in a float.
898 \begin_layout Standard
899 \begin_inset Float figure
904 \begin_layout Plain Layout
907 \begin_layout Plain Layout
908 \begin_inset CommandInset label
923 \begin_layout Plain Layout
925 \begin_inset Graphics
926 filename clipart/escher-lsd.eps
941 \begin_layout Standard
945 \begin_layout Plain Layout
946 References ! to Figures
956 \begin_inset CommandInset ref
958 reference "fig:kill-plat"
963 \begin_inset CommandInset ref
965 reference "fig:escher"
969 are examples of referenced figures.
970 Figures can be referenced in the text by referencing their label.
971 To do this insert a label in the caption using the menu
973 Insert\SpecialChar \menuseparator
976 or the toolbar button
977 \begin_inset Graphics
978 filename ../images/label-insert.png
985 You can now refer to the label using the menu
987 Insert\SpecialChar \menuseparator
994 or the toolbar button
995 \begin_inset Graphics
996 filename ../images/dialog-show-new-inset_ref.png
1003 It is important to use references to floats, rather than using vague references
1005 \begin_inset Quotes eld
1009 \begin_inset Quotes erd
1012 , because as LaTeX will reposition the floats in the final document, it
1014 \begin_inset Quotes eld
1018 \begin_inset Quotes erd
1022 \begin_inset Newline newline
1025 Referencing is explained in detail in section
1026 \begin_inset space ~
1030 \begin_inset CommandInset ref
1032 reference "sec:Referencing-Floats"
1039 \begin_layout Standard
1040 Normally only one image is inserted to a figure float, but sometimes you
1041 might want to use two images with separate subcaptions.
1042 This can be done by inserting image floats into existing image floats.
1043 Note that only the main caption of the float is added to the List of Figures.
1045 \begin_inset space ~
1049 \begin_inset CommandInset ref
1051 reference "fig:Two-distorted-images"
1055 is an example of a figure float with two images set side by side.
1056 You can also set the images one below the other.
1058 \begin_inset space ~
1062 \begin_inset CommandInset ref
1064 reference "fig:Undefinable-structure"
1069 \begin_inset CommandInset ref
1071 reference "fig:A-Platypus"
1078 \begin_layout Standard
1079 \begin_inset Float figure
1084 \begin_layout Plain Layout
1085 \begin_inset space \hfill{}
1089 \begin_inset Float figure
1094 \begin_layout Plain Layout
1095 \begin_inset Caption
1097 \begin_layout Plain Layout
1098 \begin_inset CommandInset label
1100 name "fig:Undefinable-structure"
1104 Undefinable structure.
1112 \begin_layout Plain Layout
1113 \begin_inset Graphics
1114 filename clipart/escher-lsd.eps
1127 \begin_inset space \hfill{}
1131 \begin_inset Float figure
1136 \begin_layout Plain Layout
1137 \begin_inset Caption
1139 \begin_layout Plain Layout
1140 \begin_inset CommandInset label
1142 name "fig:A-Platypus"
1154 \begin_layout Plain Layout
1155 \begin_inset Graphics
1156 filename clipart/platypus.eps
1169 \begin_inset space \hfill{}
1175 \begin_layout Plain Layout
1176 \begin_inset Caption
1178 \begin_layout Plain Layout
1179 \begin_inset CommandInset label
1181 name "fig:Two-distorted-images"
1185 Two distorted images.
1186 Both images are in the image settings group named
1187 \begin_inset Quotes eld
1191 \begin_inset Quotes erd
1207 \begin_layout Standard
1208 \begin_inset Newpage newpage
1214 \begin_layout Section
1216 \begin_inset CommandInset label
1218 name "sec:Image-Formats"
1226 \begin_layout Plain Layout
1236 \begin_layout Plain Layout
1237 Figures ! Image Formats
1245 \begin_layout Standard
1246 You can insert images in any known file format.
1247 But as explained in appendix
1248 \begin_inset space ~
1252 \begin_inset CommandInset ref
1254 reference "cha:Output-File-Formats"
1258 , every output document format allows only a few image formats.
1259 LyX uses therefore the program
1263 in the background to convert the images to the right format.
1264 To increase your work flow by avoiding these conversions in the background,
1265 you can use only the image formats that can directly be embedded in the
1267 The output file formats are explained in appendix
1268 \begin_inset space ~
1272 \begin_inset CommandInset ref
1274 reference "cha:Output-File-Formats"
1281 \begin_layout Standard
1282 Similar to fonts there are two types of image formats:
1285 \begin_layout Description
1287 \begin_inset space ~
1290 images consist of pixel values, often in a compressed form.
1291 They are therefore not fully scalable and look pixeled in large zooms.
1292 Well-known bitmap image formats are
1293 \begin_inset Quotes eld
1296 Graphics Interchange Format
1297 \begin_inset Quotes erd
1300 (GIF, file extension
1301 \begin_inset Quotes eld
1309 \begin_inset Quotes erd
1316 \begin_layout Plain Layout
1321 \begin_layout Plain Layout
1332 \begin_layout Plain Layout
1345 \begin_inset Quotes eld
1348 Portable Network Graphics
1349 \begin_inset Quotes erd
1352 (PNG, file extension
1353 \begin_inset Quotes eld
1361 \begin_inset Quotes erd
1368 \begin_layout Plain Layout
1373 \begin_layout Plain Layout
1384 \begin_layout Plain Layout
1397 \begin_inset Quotes eld
1400 Joint Photographic Experts Group
1401 \begin_inset Quotes erd
1404 (JPG, file extension
1405 \begin_inset Quotes eld
1413 \begin_inset Quotes erd
1417 \begin_inset Quotes eld
1425 \begin_inset Quotes erd
1432 \begin_layout Plain Layout
1437 \begin_layout Plain Layout
1448 \begin_layout Plain Layout
1463 \begin_layout Description
1465 \begin_inset space ~
1468 images consist of vectors and can therefore be scaled to any size without
1470 The scaling ability is necessary if you want to create presentations, because
1471 presentations are always scaled by the video projector.
1472 Scaling is also useful for online documents to let the user zoom into diagrams.
1473 \begin_inset Newline newline
1476 Well-known scalable image formats are
1477 \begin_inset Quotes eld
1480 Scalable Vector Graphics
1481 \begin_inset Quotes erd
1484 (SVG, file extension
1485 \begin_inset Quotes eld
1493 \begin_inset Quotes erd
1500 \begin_layout Plain Layout
1505 \begin_layout Plain Layout
1516 \begin_layout Plain Layout
1529 \begin_inset Quotes eld
1532 Encapsulated PostScript
1533 \begin_inset Quotes erd
1536 (EPS, file extension
1537 \begin_inset Quotes eld
1545 \begin_inset Quotes erd
1552 \begin_layout Plain Layout
1557 \begin_layout Plain Layout
1568 \begin_layout Plain Layout
1581 \begin_inset Quotes eld
1584 Portable Document Format
1585 \begin_inset Quotes erd
1588 (PDF, file extension
1589 \begin_inset Quotes eld
1597 \begin_inset Quotes erd
1604 \begin_layout Plain Layout
1611 \begin_inset Quotes eld
1615 \begin_inset Quotes erd
1618 (WMF, file extension
1619 \begin_inset Quotes eld
1627 \begin_inset Quotes erd
1634 \begin_layout Plain Layout
1639 \begin_layout Plain Layout
1650 \begin_layout Plain Layout
1664 \begin_inset Quotes eld
1668 \begin_inset Quotes erd
1671 , because you can convert any bitmap image to a PDF or EPS-image and the
1672 result will still be a bitmap image.
1673 In this cases only a header with the image properties is added to the original
1678 \begin_layout Plain Layout
1679 In the case of PDF, the original image is additionally compressed.
1685 The PDF-files generated by
1689 are for example bitmap images.
1692 \begin_layout Standard
1693 Normally it is not possible to convert a bitmap image into a scalable one,
1695 Only the image formats PDF and EPS can directly be embedded to PDF and
1696 PostScript output files, respectively.
1697 SVG and WMF-images are recalculated to bitmaps when the output file is
1698 generated because there is currently no adequate WMF/SVG
1699 \begin_inset Formula $\to$
1702 PDF/EPS converter available.
1705 \begin_layout Chapter
1710 \begin_layout Plain Layout
1719 \begin_layout Section
1724 \begin_layout Plain Layout
1725 Table ! Introduction
1733 \begin_layout Standard
1734 You can insert a table using either the toolbar button
1735 \begin_inset Graphics
1736 filename ../images/tabular-insert.png
1744 Insert\SpecialChar \menuseparator
1748 The toolbar button offers you a graphical selection: Move the mouse to
1749 set the column/row number of the table that should be created and then
1750 press a mouse button.
1751 When you use the menu to create a table, a dialog will appear, asking you
1752 for the number of rows and columns.
1753 \begin_inset Newline newline
1756 The default table has lines around any cell and the first row appears separated
1757 from the rest of the table.
1758 This separation occurs due to a double line: The cells of the first row
1759 have a line below them and the cells of the second row have a line above
1761 Here is an example table:
1764 \begin_layout Standard
1766 \begin_inset Tabular
1767 <lyxtabular version="3" rows="4" columns="4">
1769 <column alignment="center" valignment="top" width="0">
1770 <column alignment="center" valignment="top" width="0">
1771 <column alignment="center" valignment="top" width="0">
1772 <column alignment="center" valignment="top" width="0">
1774 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1777 \begin_layout Plain Layout
1783 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1786 \begin_layout Plain Layout
1801 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1804 \begin_layout Plain Layout
1810 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1813 \begin_layout Plain Layout
1821 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1824 \begin_layout Plain Layout
1839 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1842 \begin_layout Plain Layout
1848 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1851 \begin_layout Plain Layout
1857 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1860 \begin_layout Plain Layout
1868 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1871 \begin_layout Plain Layout
1886 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1889 \begin_layout Plain Layout
1895 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1898 \begin_layout Plain Layout
1904 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1907 \begin_layout Plain Layout
1915 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1918 \begin_layout Plain Layout
1933 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1936 \begin_layout Plain Layout
1942 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1945 \begin_layout Plain Layout
1951 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1954 \begin_layout Plain Layout
1968 \begin_layout Section
1973 \begin_layout Plain Layout
1982 \begin_layout Standard
1983 You can alter a table by clicking on it with the right mouse button, which
1984 brings up the table dialog.
1985 Here you can adjust the settings of that cell and row/column respectively
1986 where the cursor is currently placed.
1987 Most of the dialog options also work on selections.
1988 This means if you select more cells, columns or rows, the action is done
1989 for the whole selection.
1990 Note that there is a difference between selecting the
1994 of the cell, and the cell itself.
1995 You can alter tables with the following tabs of the table dialog:
1998 \begin_layout Description
2002 \begin_inset space ~
2007 Here you can set the horizontal alignment and the width of the current
2009 When you have set a width you can also adjust the vertical alignment of
2011 A given width will allow the cell to have line breaks and multiple paragraphs
2012 of text, see section
2013 \begin_inset space ~
2017 \begin_inset CommandInset ref
2019 reference "sub:Multiple-Lines-in"
2024 If you set no width, the column is as wide as their widest cell content
2026 \begin_inset Newline newline
2029 Furthermore, you can mark one or multiple cells of one row as a multicolumn
2031 \begin_inset space ~
2035 \begin_inset CommandInset ref
2037 reference "sub:Multicolumns"
2042 \begin_inset Newline newline
2045 The rotate check boxes rotates the current cell, a selection, or the whole
2046 table counter-clockwise by 90°.
2047 The rotation is not shown within LyX, only in the output.
2048 \begin_inset Newline newline
2052 \begin_inset Note Greyedout
2055 \begin_layout Plain Layout
2060 Not all DVI-viewers are able to display rotations.
2066 \begin_inset Newline newline
2069 It is also possible to enter a LaTeX-argument which is needed for special
2070 table formattings, see section
2071 \begin_inset space ~
2075 \begin_inset CommandInset ref
2077 reference "sub:Multicolumn-Calculations"
2082 \begin_inset CommandInset ref
2084 reference "sec:Colored-Tables"
2091 \begin_layout Description
2096 In this tab you can add and delete border lines for the current row/column.
2097 \begin_inset Newline newline
2100 Using the style option
2104 will convert the table to a formal table as described in section
2105 \begin_inset space ~
2109 \begin_inset CommandInset ref
2111 reference "sec:Formal-Tables"
2116 \begin_inset Newline newline
2119 You can also add here space to table rows as decribed in section
2120 \begin_inset space ~
2124 \begin_inset CommandInset ref
2126 reference "sub:Row-Spacing"
2133 \begin_layout Description
2138 This tab is to make a table a so called
2139 \begin_inset Quotes eld
2147 \begin_inset Quotes erd
2150 that can run over several pages.
2152 \begin_inset space ~
2156 \begin_inset CommandInset ref
2158 reference "sec:Longtables"
2163 \begin_inset CommandInset ref
2165 reference "sec:Special-Longtable-Issues"
2169 describe the longtable features in detail.
2172 \begin_layout Standard
2173 When the table toolbar is opened, you can move the cursor with the arrow
2174 keys from cell to cell and the property of the current cell will immediately
2175 be displayed in the dialog.
2178 \begin_layout Section
2183 \begin_layout Plain Layout
2192 \begin_layout Standard
2193 The table toolbar is an alternative to the table dialog to be able to alter
2195 It should normally appear at the bottom of LyX's main window when the cursor
2197 You can alternatively switch it on to appear always, by right-clicking
2198 in LyX's main menu bar.
2201 \begin_layout Standard
2202 The toolbar has the following icons:
2205 \begin_layout Labeling
2206 \labelwidthstring 00.00.0000
2207 \begin_inset Graphics
2208 filename ../images/tabular-feature_append-row.png
2213 adds a row below the current cell or selection
2216 \begin_layout Labeling
2217 \labelwidthstring 00.00.0000
2218 \begin_inset Graphics
2219 filename ../images/tabular-feature_append-column.png
2224 adds a column right beside the current cell or selection
2227 \begin_layout Labeling
2228 \labelwidthstring 00.00.0000
2229 \begin_inset Graphics
2230 filename ../images/tabular-feature_delete-row.png
2235 deletes the current row or selection
2238 \begin_layout Labeling
2239 \labelwidthstring 00.00.0000
2240 \begin_inset Graphics
2241 filename ../images/tabular-feature_delete-column.png
2246 deletes the current column or selection
2249 \begin_layout Labeling
2250 \labelwidthstring 00.00.0000
2251 \begin_inset Graphics
2252 filename ../images/tabular-feature_toggle-line-top.png
2257 adds a line at the top of the current cell / row or of a selection
2260 \begin_layout Labeling
2261 \labelwidthstring 00.00.0000
2262 \begin_inset Graphics
2263 filename ../images/tabular-feature_toggle-line-bottom.png
2268 adds a line at the bottom of the current cell / row or of a selection
2271 \begin_layout Labeling
2272 \labelwidthstring 00.00.0000
2273 \begin_inset Graphics
2274 filename ../images/tabular-feature_toggle-line-left.png
2279 adds a line at the left side of the current cell / row or of a selection
2282 \begin_layout Labeling
2283 \labelwidthstring 00.00.0000
2284 \begin_inset Graphics
2285 filename ../images/tabular-feature_toggle-line-right.png
2290 adds a line at the right side of the current cell / row or of a selection
2293 \begin_layout Labeling
2294 \labelwidthstring 00.00.0000
2295 \begin_inset Graphics
2296 filename ../images/tabular-feature_set-all-lines.png
2301 adds lines around the current or selected cells - if the current cell no
2302 multicolumn this also affects the current row and column
2305 \begin_layout Labeling
2306 \labelwidthstring 00.00.0000
2307 \begin_inset Graphics
2308 filename ../images/tabular-feature_unset-all-lines.png
2313 deletes all lines of the current or selected cells - if the current cell
2314 no multicolumn this also affects the current row and column
2317 \begin_layout Labeling
2318 \labelwidthstring 00.00.0000
2319 \begin_inset Graphics
2320 filename ../images/tabular-feature_align-left.png
2325 left-aligns the content of the current cell / column
2328 \begin_layout Labeling
2329 \labelwidthstring 00.00.0000
2330 \begin_inset Graphics
2331 filename ../images/tabular-feature_align-center.png
2336 centers the content of the current cell / column horizontally
2339 \begin_layout Labeling
2340 \labelwidthstring 00.00.0000
2341 \begin_inset Graphics
2342 filename ../images/tabular-feature_align-right.png
2347 right-aligns the content of the current cell / column
2350 \begin_layout Labeling
2351 \labelwidthstring 00.00.0000
2352 \begin_inset Graphics
2353 filename ../images/tabular-feature_valign-top.png
2358 aligns the content of the current cell vertically to the top
2361 \begin_layout Labeling
2362 \labelwidthstring 00.00.0000
2363 \begin_inset Graphics
2364 filename ../images/tabular-feature_valign-middle.png
2369 centers the content of the current cell vertically
2372 \begin_layout Labeling
2373 \labelwidthstring 00.00.0000
2374 \begin_inset Graphics
2375 filename ../images/tabular-feature_valign-bottom.png
2380 aligns the content of the current cell vertically to the bottom
2383 \begin_layout Labeling
2384 \labelwidthstring 00.00.0000
2385 \begin_inset Graphics
2386 filename ../images/tabular-feature_set-rotate-cell.png
2391 rotates the current cell or selection counter-clockwise by 90°
2394 \begin_layout Labeling
2395 \labelwidthstring 00.00.0000
2396 \begin_inset Graphics
2397 filename ../images/tabular-feature_set-rotate-tabular.png
2402 rotates the whole table counter-clockwise by 90°
2405 \begin_layout Labeling
2406 \labelwidthstring 00.00.0000
2407 \begin_inset Graphics
2408 filename ../images/tabular-feature_multicolumn.png
2413 sets the current cell or selection as a multicolumn
2416 \begin_layout Standard
2417 \begin_inset Note Greyedout
2420 \begin_layout Plain Layout
2425 For the output the vertical alignment of the first cell in a row is used
2426 for all following cells in the row.
2434 \begin_layout Section
2439 \begin_layout Plain Layout
2448 \begin_layout Standard
2449 Additionally to the table dialog and toolbar, the menu
2451 Edit\SpecialChar \menuseparator
2454 allows you to add and delete border lines for the current row/column and
2455 to set the current selection as multicolumn.
2456 The menu is only available when the cursor is inside a table.
2459 \begin_layout Section
2461 \begin_inset CommandInset label
2463 name "sec:Table-Floats"
2471 \begin_layout Plain Layout
2481 \begin_layout Plain Layout
2490 \begin_layout Standard
2491 For general explanations about floats, have a look at section
2492 \begin_inset space ~
2496 \begin_inset CommandInset ref
2498 reference "sec:FloatIntroduction"
2505 \begin_layout Standard
2506 \begin_inset Float table
2512 \begin_layout Plain Layout
2513 \begin_inset Caption
2515 \begin_layout Plain Layout
2516 \begin_inset CommandInset label
2518 name "tab:a table float"
2530 \begin_layout Plain Layout
2532 \begin_inset Tabular
2533 <lyxtabular version="3" rows="3" columns="3">
2535 <column alignment="center" valignment="top" width="0pt">
2536 <column alignment="center" valignment="top" width="0pt">
2537 <column alignment="center" valignment="top" width="0pt">
2539 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2542 \begin_layout Plain Layout
2557 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2560 \begin_layout Plain Layout
2575 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2578 \begin_layout Plain Layout
2595 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2598 \begin_layout Plain Layout
2613 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2616 \begin_layout Plain Layout
2631 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2634 \begin_layout Plain Layout
2651 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2654 \begin_layout Plain Layout
2664 \begin_inset Formula $\int x^{2}dx$
2672 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2675 \begin_layout Plain Layout
2685 \begin_inset Formula $\left[\begin{array}{cc}
2687 c & d\end{array}\right]$
2695 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2698 \begin_layout Plain Layout
2708 \begin_inset Formula $1+1=2$
2729 \begin_layout Standard
2730 Table floats can be inserted using the menu
2732 Insert\SpecialChar \menuseparator
2733 Float\SpecialChar \menuseparator
2736 or the toolbar button
2737 \begin_inset Graphics
2738 filename ../images/float-insert_table.png
2747 \begin_layout Standard
2748 The float appears as a collapsible box with a caption that has the label
2750 \begin_inset Quotes eld
2754 \begin_inset space ~
2758 \begin_inset Quotes erd
2761 (# is the actual table number).
2762 You can insert tables to the float above or below the caption.
2765 \begin_layout Standard
2767 \begin_inset space ~
2771 \begin_inset CommandInset ref
2773 reference "tab:a table float"
2777 is an example table within a table float.
2780 \begin_layout Standard
2781 Having the caption above the table is the common rule that is unfortunately
2782 not supported in LaTeX's standard classes.
2783 That means if you are using the document classes
2799 there will be no space between the caption and the table.
2800 To insert the needed space, add the following option to the load command
2801 of the LaTeX-package
2809 \begin_layout Plain Layout
2810 LaTeX-packages ! caption
2815 in your document preamble
2819 \begin_layout Plain Layout
2820 For more information have a look at section
2821 \begin_inset space ~
2825 \begin_inset CommandInset ref
2827 reference "sec:Caption-Placement"
2839 \begin_layout Standard
2845 \begin_layout Standard
2850 , which is described in section
2851 \begin_inset space ~
2855 \begin_inset CommandInset ref
2857 reference "sec:Caption-Formatting"
2861 , is used to adjust the caption format.
2864 \begin_layout Standard
2868 \begin_layout Plain Layout
2869 References ! to Tables
2874 Tables can be cross-referenced in the text by referencing their label.
2875 To do this insert a label in the caption using the menu
2877 Insert\SpecialChar \menuseparator
2880 or the toolbar button
2881 \begin_inset Graphics
2882 filename ../images/label-insert.png
2889 You can now refer to the label using the menu
2891 Insert\SpecialChar \menuseparator
2893 \begin_inset space ~
2898 or the toolbar button
2899 \begin_inset Graphics
2900 filename ../images/dialog-show-new-inset_ref.png
2907 \begin_inset Newline newline
2910 Referencing is explained in detail in section
2911 \begin_inset space ~
2915 \begin_inset CommandInset ref
2917 reference "sec:Referencing-Floats"
2924 \begin_layout Section
2926 \begin_inset CommandInset label
2928 name "sec:Longtables"
2936 \begin_layout Plain Layout
2946 \begin_layout Plain Layout
2955 \begin_layout Standard
2956 If the table is too long to fit on one page, you can use the option
2959 \begin_inset space ~
2963 \begin_inset space ~
2972 of the table dialog to split the table automatically over more pages.
2973 Doing this enables the following options:
2976 \begin_layout Description
2981 : The current row and all rows above, that don't have any special options
2982 defined, are defined to be the header rows of all pages of the longtable;
2983 except for the first page, if
2986 \begin_inset space ~
2992 This therefore called the main header.
2995 \begin_layout Description
2999 \begin_inset space ~
3004 : The current row and all rows above, that don't have any special options
3005 defined, are defined to be the header rows of the first page of the longtable.
3008 \begin_layout Description
3013 : The current row and all rows below, that don't have any special options
3014 defined, are defined to be the footer rows of all pages of the longtable;
3015 except for the last page, if
3018 \begin_inset space ~
3026 \begin_layout Description
3030 \begin_inset space ~
3035 : The current row and all rows below, that don't have any special options
3036 defined, are defined to be the footer rows of the last page of the longtable.
3039 \begin_layout Description
3040 Caption: The first row is reset as single column.
3041 You can now insert there the table caption via the menu
3043 Insert\SpecialChar \menuseparator
3047 More about longtable captions is explained in sec.
3048 \begin_inset space \thinspace{}
3052 \begin_inset CommandInset ref
3054 reference "sub:Longtable-Captions"
3061 \begin_layout Standard
3062 You can also specify a row where the table is splitted.
3063 If you set more than one option in the same table row, you should be aware
3064 of the fact that only the first one is used in the given table row.
3065 The others will then be defined as
3070 In this context, first means first in this order:
3077 \begin_inset space ~
3080 header, Footer, Last
3081 \begin_inset space ~
3087 See the following longtable to see how it works:
3090 \begin_layout Standard
3092 \begin_inset Tabular
3093 <lyxtabular version="3" rows="69" columns="3">
3094 <features islongtable="true">
3095 <column alignment="left" valignment="top" width="0cm">
3096 <column alignment="left" valignment="top" width="0pt">
3097 <column alignment="center" valignment="top" width="0pt">
3098 <row endfirsthead="true">
3099 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3102 \begin_layout Plain Layout
3105 Example Phone List (ignore the names)
3110 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3113 \begin_layout Plain Layout
3119 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3122 \begin_layout Plain Layout
3129 <row endfirsthead="true">
3130 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3133 \begin_layout Plain Layout
3141 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3144 \begin_layout Plain Layout
3150 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3153 \begin_layout Plain Layout
3162 <row endhead="true">
3163 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3166 \begin_layout Plain Layout
3174 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3177 \begin_layout Plain Layout
3183 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3186 \begin_layout Plain Layout
3193 <row endhead="true">
3194 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3197 \begin_layout Plain Layout
3205 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3208 \begin_layout Plain Layout
3214 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3217 \begin_layout Plain Layout
3226 <row endfoot="true">
3227 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
3230 \begin_layout Plain Layout
3231 continued on next page
3236 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3239 \begin_layout Plain Layout
3245 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3248 \begin_layout Plain Layout
3256 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3259 \begin_layout Plain Layout
3267 <cell alignment="center" valignment="top" usebox="none">
3270 \begin_layout Plain Layout
3276 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3279 \begin_layout Plain Layout
3287 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3290 \begin_layout Plain Layout
3298 <cell alignment="center" valignment="top" usebox="none">
3301 \begin_layout Plain Layout
3307 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3310 \begin_layout Plain Layout
3318 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3321 \begin_layout Plain Layout
3329 <cell alignment="center" valignment="top" usebox="none">
3332 \begin_layout Plain Layout
3338 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3341 \begin_layout Plain Layout
3349 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3352 \begin_layout Plain Layout
3360 <cell alignment="center" valignment="top" usebox="none">
3363 \begin_layout Plain Layout
3369 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3372 \begin_layout Plain Layout
3380 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3383 \begin_layout Plain Layout
3391 <cell alignment="center" valignment="top" usebox="none">
3394 \begin_layout Plain Layout
3400 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3403 \begin_layout Plain Layout
3411 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3414 \begin_layout Plain Layout
3422 <cell alignment="center" valignment="top" usebox="none">
3425 \begin_layout Plain Layout
3431 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3434 \begin_layout Plain Layout
3442 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3445 \begin_layout Plain Layout
3453 <cell alignment="center" valignment="top" usebox="none">
3456 \begin_layout Plain Layout
3462 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3465 \begin_layout Plain Layout
3473 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3476 \begin_layout Plain Layout
3484 <cell alignment="center" valignment="top" usebox="none">
3487 \begin_layout Plain Layout
3493 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3496 \begin_layout Plain Layout
3504 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3507 \begin_layout Plain Layout
3515 <cell alignment="center" valignment="top" usebox="none">
3518 \begin_layout Plain Layout
3524 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3527 \begin_layout Plain Layout
3535 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3538 \begin_layout Plain Layout
3546 <cell alignment="center" valignment="top" usebox="none">
3549 \begin_layout Plain Layout
3555 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3558 \begin_layout Plain Layout
3566 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3569 \begin_layout Plain Layout
3577 <cell alignment="center" valignment="top" usebox="none">
3580 \begin_layout Plain Layout
3586 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3589 \begin_layout Plain Layout
3597 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3600 \begin_layout Plain Layout
3608 <cell alignment="center" valignment="top" usebox="none">
3611 \begin_layout Plain Layout
3617 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3620 \begin_layout Plain Layout
3628 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3631 \begin_layout Plain Layout
3639 <cell alignment="center" valignment="top" usebox="none">
3642 \begin_layout Plain Layout
3648 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3651 \begin_layout Plain Layout
3659 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3662 \begin_layout Plain Layout
3670 <cell alignment="center" valignment="top" usebox="none">
3673 \begin_layout Plain Layout
3679 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3682 \begin_layout Plain Layout
3690 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3693 \begin_layout Plain Layout
3701 <cell alignment="center" valignment="top" usebox="none">
3704 \begin_layout Plain Layout
3710 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3713 \begin_layout Plain Layout
3721 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3724 \begin_layout Plain Layout
3732 <cell alignment="center" valignment="top" usebox="none">
3735 \begin_layout Plain Layout
3741 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3744 \begin_layout Plain Layout
3752 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3755 \begin_layout Plain Layout
3763 <cell alignment="center" valignment="top" usebox="none">
3766 \begin_layout Plain Layout
3772 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3775 \begin_layout Plain Layout
3783 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3786 \begin_layout Plain Layout
3794 <cell alignment="center" valignment="top" usebox="none">
3797 \begin_layout Plain Layout
3803 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3806 \begin_layout Plain Layout
3814 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3817 \begin_layout Plain Layout
3825 <cell alignment="center" valignment="top" usebox="none">
3828 \begin_layout Plain Layout
3834 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3837 \begin_layout Plain Layout
3845 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3848 \begin_layout Plain Layout
3856 <cell alignment="center" valignment="top" usebox="none">
3859 \begin_layout Plain Layout
3865 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3868 \begin_layout Plain Layout
3876 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3879 \begin_layout Plain Layout
3887 <cell alignment="center" valignment="top" usebox="none">
3890 \begin_layout Plain Layout
3896 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3899 \begin_layout Plain Layout
3907 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3910 \begin_layout Plain Layout
3918 <cell alignment="center" valignment="top" usebox="none">
3921 \begin_layout Plain Layout
3927 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3930 \begin_layout Plain Layout
3938 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3941 \begin_layout Plain Layout
3949 <cell alignment="center" valignment="top" usebox="none">
3952 \begin_layout Plain Layout
3958 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3961 \begin_layout Plain Layout
3969 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3972 \begin_layout Plain Layout
3980 <cell alignment="center" valignment="top" usebox="none">
3983 \begin_layout Plain Layout
3989 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3992 \begin_layout Plain Layout
4000 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4003 \begin_layout Plain Layout
4011 <cell alignment="center" valignment="top" usebox="none">
4014 \begin_layout Plain Layout
4020 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4023 \begin_layout Plain Layout
4031 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4034 \begin_layout Plain Layout
4042 <cell alignment="center" valignment="top" usebox="none">
4045 \begin_layout Plain Layout
4051 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4054 \begin_layout Plain Layout
4062 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4065 \begin_layout Plain Layout
4073 <cell alignment="center" valignment="top" usebox="none">
4076 \begin_layout Plain Layout
4082 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4085 \begin_layout Plain Layout
4093 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4096 \begin_layout Plain Layout
4104 <cell alignment="center" valignment="top" usebox="none">
4107 \begin_layout Plain Layout
4113 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4116 \begin_layout Plain Layout
4124 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4127 \begin_layout Plain Layout
4135 <cell alignment="center" valignment="top" usebox="none">
4138 \begin_layout Plain Layout
4144 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4147 \begin_layout Plain Layout
4155 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4158 \begin_layout Plain Layout
4166 <cell alignment="center" valignment="top" usebox="none">
4169 \begin_layout Plain Layout
4175 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4178 \begin_layout Plain Layout
4186 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4189 \begin_layout Plain Layout
4197 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4200 \begin_layout Plain Layout
4206 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4209 \begin_layout Plain Layout
4217 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4220 \begin_layout Plain Layout
4226 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4229 \begin_layout Plain Layout
4235 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4238 \begin_layout Plain Layout
4246 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4249 \begin_layout Plain Layout
4257 <cell alignment="center" valignment="top" usebox="none">
4260 \begin_layout Plain Layout
4266 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4269 \begin_layout Plain Layout
4277 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4280 \begin_layout Plain Layout
4288 <cell alignment="center" valignment="top" usebox="none">
4291 \begin_layout Plain Layout
4297 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4300 \begin_layout Plain Layout
4308 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4311 \begin_layout Plain Layout
4319 <cell alignment="center" valignment="top" usebox="none">
4322 \begin_layout Plain Layout
4328 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4331 \begin_layout Plain Layout
4339 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4342 \begin_layout Plain Layout
4350 <cell alignment="center" valignment="top" usebox="none">
4353 \begin_layout Plain Layout
4359 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4362 \begin_layout Plain Layout
4370 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4373 \begin_layout Plain Layout
4381 <cell alignment="center" valignment="top" usebox="none">
4384 \begin_layout Plain Layout
4390 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4393 \begin_layout Plain Layout
4401 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4404 \begin_layout Plain Layout
4412 <cell alignment="center" valignment="top" usebox="none">
4415 \begin_layout Plain Layout
4421 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4424 \begin_layout Plain Layout
4432 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4435 \begin_layout Plain Layout
4443 <cell alignment="center" valignment="top" usebox="none">
4446 \begin_layout Plain Layout
4452 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4455 \begin_layout Plain Layout
4463 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4466 \begin_layout Plain Layout
4474 <cell alignment="center" valignment="top" usebox="none">
4477 \begin_layout Plain Layout
4483 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4486 \begin_layout Plain Layout
4494 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4497 \begin_layout Plain Layout
4505 <cell alignment="center" valignment="top" usebox="none">
4508 \begin_layout Plain Layout
4514 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4517 \begin_layout Plain Layout
4525 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4528 \begin_layout Plain Layout
4536 <cell alignment="center" valignment="top" usebox="none">
4539 \begin_layout Plain Layout
4545 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4548 \begin_layout Plain Layout
4556 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4559 \begin_layout Plain Layout
4567 <cell alignment="center" valignment="top" usebox="none">
4570 \begin_layout Plain Layout
4576 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4579 \begin_layout Plain Layout
4587 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4590 \begin_layout Plain Layout
4598 <cell alignment="center" valignment="top" usebox="none">
4601 \begin_layout Plain Layout
4607 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4610 \begin_layout Plain Layout
4618 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4621 \begin_layout Plain Layout
4629 <cell alignment="center" valignment="top" usebox="none">
4632 \begin_layout Plain Layout
4638 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4641 \begin_layout Plain Layout
4649 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4652 \begin_layout Plain Layout
4660 <cell alignment="center" valignment="top" usebox="none">
4663 \begin_layout Plain Layout
4669 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4672 \begin_layout Plain Layout
4680 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4683 \begin_layout Plain Layout
4691 <cell alignment="center" valignment="top" usebox="none">
4694 \begin_layout Plain Layout
4700 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4703 \begin_layout Plain Layout
4711 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4714 \begin_layout Plain Layout
4722 <cell alignment="center" valignment="top" usebox="none">
4725 \begin_layout Plain Layout
4731 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4734 \begin_layout Plain Layout
4742 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4745 \begin_layout Plain Layout
4753 <cell alignment="center" valignment="top" usebox="none">
4756 \begin_layout Plain Layout
4762 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4765 \begin_layout Plain Layout
4773 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4776 \begin_layout Plain Layout
4784 <cell alignment="center" valignment="top" usebox="none">
4787 \begin_layout Plain Layout
4793 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4796 \begin_layout Plain Layout
4804 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4807 \begin_layout Plain Layout
4815 <cell alignment="center" valignment="top" usebox="none">
4818 \begin_layout Plain Layout
4824 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4827 \begin_layout Plain Layout
4835 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4838 \begin_layout Plain Layout
4846 <cell alignment="center" valignment="top" usebox="none">
4849 \begin_layout Plain Layout
4855 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4858 \begin_layout Plain Layout
4866 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4869 \begin_layout Plain Layout
4877 <cell alignment="center" valignment="top" usebox="none">
4880 \begin_layout Plain Layout
4886 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4889 \begin_layout Plain Layout
4897 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4900 \begin_layout Plain Layout
4908 <cell alignment="center" valignment="top" usebox="none">
4911 \begin_layout Plain Layout
4917 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4920 \begin_layout Plain Layout
4928 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4931 \begin_layout Plain Layout
4939 <cell alignment="center" valignment="top" usebox="none">
4942 \begin_layout Plain Layout
4948 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4951 \begin_layout Plain Layout
4959 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4962 \begin_layout Plain Layout
4970 <cell alignment="center" valignment="top" usebox="none">
4973 \begin_layout Plain Layout
4979 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4982 \begin_layout Plain Layout
4990 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4993 \begin_layout Plain Layout
5001 <cell alignment="center" valignment="top" usebox="none">
5004 \begin_layout Plain Layout
5010 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5013 \begin_layout Plain Layout
5021 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5024 \begin_layout Plain Layout
5032 <cell alignment="center" valignment="top" usebox="none">
5035 \begin_layout Plain Layout
5041 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5044 \begin_layout Plain Layout
5052 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5055 \begin_layout Plain Layout
5063 <cell alignment="center" valignment="top" usebox="none">
5066 \begin_layout Plain Layout
5072 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5075 \begin_layout Plain Layout
5083 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5086 \begin_layout Plain Layout
5094 <cell alignment="center" valignment="top" usebox="none">
5097 \begin_layout Plain Layout
5103 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5106 \begin_layout Plain Layout
5114 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5117 \begin_layout Plain Layout
5125 <cell alignment="center" valignment="top" usebox="none">
5128 \begin_layout Plain Layout
5134 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5137 \begin_layout Plain Layout
5145 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5148 \begin_layout Plain Layout
5156 <cell alignment="center" valignment="top" usebox="none">
5159 \begin_layout Plain Layout
5165 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5168 \begin_layout Plain Layout
5176 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5179 \begin_layout Plain Layout
5187 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5190 \begin_layout Plain Layout
5196 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5199 \begin_layout Plain Layout
5206 <row endlastfoot="true">
5207 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5210 \begin_layout Plain Layout
5216 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5219 \begin_layout Plain Layout
5225 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5228 \begin_layout Plain Layout
5243 \begin_layout Plain Layout
5247 addtocounter{table}{-1}
5253 \begin_inset Note Note
5256 \begin_layout Plain Layout
5257 See greyed-out note in section
5258 \begin_inset space ~
5262 \begin_inset CommandInset ref
5264 reference "sub:Longtable-Captions"
5268 for an explanation of this command.
5276 \begin_layout Subsection
5277 Footnotes in Longtables
5278 \begin_inset CommandInset label
5280 name "sub:Footnotes-in-Longtables"
5288 \begin_layout Plain Layout
5289 Longtables ! Footnotes
5297 \begin_layout Standard
5298 Footnotes can be inserted to every longtable cell.
5299 They appear at the bottom of the page where the table cell with the footnote
5302 \begin_inset space ~
5306 \begin_inset CommandInset ref
5308 reference "tab:DiffCaptions"
5312 has for example a footnote.
5315 \begin_layout Subsection
5320 \begin_layout Plain Layout
5321 Longtables ! Alignment
5329 \begin_layout Standard
5330 Longtables are by default centered.
5331 In contrary to the alignment of the table columns and row, the table alignment
5332 can currently not be changed in the table dialog.
5333 To change the alignment of longtables you have to change the value of the
5346 by inserting this line as TeX-Code before the corresponding longtable:
5349 \begin_layout Standard
5359 \begin_layout Standard
5360 Where the value can have any of the units listed in Table
5361 \begin_inset space ~
5365 \begin_inset CommandInset ref
5367 reference "tab:Units"
5378 controls the horizontal distance from the left page border to the longtable,
5385 the distance from the right side.
5386 The default value for both lengths is
5392 , which is in this case the same as an horizontal fill in LyX.
5395 \begin_layout Standard
5396 The following longtable was left-aligned by setting
5403 \begin_inset space \thinspace{}
5410 \begin_layout Plain Layout
5424 \begin_layout Standard
5425 \begin_inset Tabular
5426 <lyxtabular version="3" rows="5" columns="5">
5427 <features islongtable="true">
5428 <column alignment="center" valignment="top" width="0">
5429 <column alignment="center" valignment="top" width="0">
5430 <column alignment="center" valignment="top" width="0">
5431 <column alignment="center" valignment="top" width="0">
5432 <column alignment="center" valignment="top" width="0">
5434 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5437 \begin_layout Plain Layout
5443 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5446 \begin_layout Plain Layout
5452 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5455 \begin_layout Plain Layout
5461 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5464 \begin_layout Plain Layout
5470 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5473 \begin_layout Plain Layout
5481 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5484 \begin_layout Plain Layout
5490 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5493 \begin_layout Plain Layout
5499 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5502 \begin_layout Plain Layout
5508 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5511 \begin_layout Plain Layout
5517 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5520 \begin_layout Plain Layout
5528 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5531 \begin_layout Plain Layout
5537 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5540 \begin_layout Plain Layout
5546 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5549 \begin_layout Plain Layout
5555 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5558 \begin_layout Plain Layout
5564 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5567 \begin_layout Plain Layout
5575 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5578 \begin_layout Plain Layout
5584 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5587 \begin_layout Plain Layout
5593 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5596 \begin_layout Plain Layout
5602 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5605 \begin_layout Plain Layout
5611 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5614 \begin_layout Plain Layout
5622 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5625 \begin_layout Plain Layout
5631 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5634 \begin_layout Plain Layout
5640 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5643 \begin_layout Plain Layout
5649 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5652 \begin_layout Plain Layout
5658 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5661 \begin_layout Plain Layout
5676 \begin_layout Plain Layout
5692 \begin_layout Subsection
5697 \begin_layout Plain Layout
5698 Longtables ! Captions
5704 \begin_inset CommandInset label
5706 name "sub:Longtable-Captions"
5713 \begin_layout Standard
5714 A longtable cannot be put into a table float because floats can only be
5715 on one page but the caption environment of floats can also be used for
5717 Therefore the caption is inserted as first row of the table, as explained
5719 \begin_inset space \thinspace{}
5723 \begin_inset CommandInset ref
5725 reference "sec:Longtables"
5730 The first table row is then only a dummy row for the caption, the actual
5731 table starts with the second row.
5734 \begin_layout Standard
5735 Here is a short longtable to see how it works:
5738 \begin_layout Standard
5739 \begin_inset Tabular
5740 <lyxtabular version="3" rows="6" columns="5">
5741 <features islongtable="true">
5742 <column alignment="center" valignment="top" width="0">
5743 <column alignment="center" valignment="top" width="0">
5744 <column alignment="center" valignment="top" width="0">
5745 <column alignment="center" valignment="top" width="0">
5746 <column alignment="center" valignment="top" width="0">
5747 <row caption="true">
5748 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
5751 \begin_layout Plain Layout
5752 \begin_inset Caption
5754 \begin_layout Plain Layout
5755 Longtable with caption
5759 \begin_layout Plain Layout
5775 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5778 \begin_layout Plain Layout
5784 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5787 \begin_layout Plain Layout
5793 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5796 \begin_layout Plain Layout
5802 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5805 \begin_layout Plain Layout
5813 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5816 \begin_layout Plain Layout
5822 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5825 \begin_layout Plain Layout
5831 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5834 \begin_layout Plain Layout
5840 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5843 \begin_layout Plain Layout
5849 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5852 \begin_layout Plain Layout
5860 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5863 \begin_layout Plain Layout
5869 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5872 \begin_layout Plain Layout
5878 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5881 \begin_layout Plain Layout
5887 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5890 \begin_layout Plain Layout
5896 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5899 \begin_layout Plain Layout
5907 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5910 \begin_layout Plain Layout
5916 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5919 \begin_layout Plain Layout
5925 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5928 \begin_layout Plain Layout
5934 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5937 \begin_layout Plain Layout
5943 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5946 \begin_layout Plain Layout
5954 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5957 \begin_layout Plain Layout
5963 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5966 \begin_layout Plain Layout
5972 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5975 \begin_layout Plain Layout
5981 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5984 \begin_layout Plain Layout
5990 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5993 \begin_layout Plain Layout
6001 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6004 \begin_layout Plain Layout
6010 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6013 \begin_layout Plain Layout
6019 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6022 \begin_layout Plain Layout
6028 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6031 \begin_layout Plain Layout
6037 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6040 \begin_layout Plain Layout
6054 \begin_layout Standard
6055 \begin_inset VSpace medskip
6059 \begin_inset Note Greyedout
6062 \begin_layout Plain Layout
6067 The table number is increased for every longtable, also if you didn't set
6069 For this reason you could have the case that e.g.
6071 \begin_inset space ~
6074 2.4 follows on Table
6075 \begin_inset space ~
6078 2.1 in the list of tables if there are two longtables without captions.
6079 To avoid this you can add the following command in TeX-Code behind every
6080 longtable without a caption:
6083 \begin_layout Plain Layout
6088 addtocounter{table}{-1}
6096 \begin_layout Standard
6097 \begin_inset Note Greyedout
6100 \begin_layout Plain Layout
6113 \begin_layout Plain Layout
6114 LaTeX-packages ! hyperref
6127 dialog to link cross-references, the link to a longtable caption will always
6128 point to the beginning of the document.
6136 \begin_layout Standard
6137 \begin_inset Newpage newpage
6143 \begin_layout Subsubsection
6144 References to Longtables
6148 \begin_layout Plain Layout
6149 Longtables ! References
6157 \begin_layout Standard
6158 \begin_inset Tabular
6159 <lyxtabular version="3" rows="6" columns="5">
6160 <features islongtable="true">
6161 <column alignment="center" valignment="top" width="0">
6162 <column alignment="center" valignment="top" width="0">
6163 <column alignment="center" valignment="top" width="0">
6164 <column alignment="center" valignment="top" width="0">
6165 <column alignment="center" valignment="top" width="0">
6166 <row caption="true">
6167 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6170 \begin_layout Plain Layout
6171 \begin_inset Caption
6173 \begin_layout Plain Layout
6174 Referenced longtable
6175 \begin_inset CommandInset label
6177 name "tab:RefExample"
6191 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6194 \begin_layout Plain Layout
6200 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6203 \begin_layout Plain Layout
6209 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6212 \begin_layout Plain Layout
6218 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6221 \begin_layout Plain Layout
6229 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6232 \begin_layout Plain Layout
6238 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6241 \begin_layout Plain Layout
6247 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6250 \begin_layout Plain Layout
6256 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6259 \begin_layout Plain Layout
6265 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6268 \begin_layout Plain Layout
6276 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6279 \begin_layout Plain Layout
6285 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6288 \begin_layout Plain Layout
6294 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6297 \begin_layout Plain Layout
6303 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6306 \begin_layout Plain Layout
6312 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6315 \begin_layout Plain Layout
6323 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6326 \begin_layout Plain Layout
6332 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6335 \begin_layout Plain Layout
6341 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6344 \begin_layout Plain Layout
6350 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6353 \begin_layout Plain Layout
6359 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6362 \begin_layout Plain Layout
6370 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6373 \begin_layout Plain Layout
6379 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6382 \begin_layout Plain Layout
6388 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6391 \begin_layout Plain Layout
6397 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6400 \begin_layout Plain Layout
6406 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6409 \begin_layout Plain Layout
6417 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6420 \begin_layout Plain Layout
6426 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6429 \begin_layout Plain Layout
6435 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6438 \begin_layout Plain Layout
6444 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6447 \begin_layout Plain Layout
6453 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6456 \begin_layout Plain Layout
6470 \begin_layout Standard
6471 To reference a longtable, insert a label into the caption.
6474 \begin_layout Standard
6475 This is a reference to Table
6476 \begin_inset space ~
6480 \begin_inset CommandInset ref
6482 reference "tab:RefExample"
6489 \begin_layout Standard
6490 The caption layout can be set together with all other captions of your document
6491 using the LaTeX-package
6499 \begin_layout Plain Layout
6500 LaTeX-packages ! caption
6506 \begin_inset space ~
6510 \begin_inset CommandInset ref
6512 reference "sec:Caption-Formatting"
6519 \begin_layout Subsubsection
6524 \begin_layout Plain Layout
6525 Longtables ! Caption Width
6533 \begin_layout Standard
6534 The maximal width of of caption lines is defined by the length
6541 Its default value is 4
6542 \begin_inset space \thinspace{}
6546 To change it add the following command to your document preamble or as
6547 TeX-Code into your document before the longtable that should be affected
6550 \begin_layout Standard
6560 \begin_layout Standard
6561 where the width could have one of the units listed in appendix
6562 \begin_inset space ~
6566 \begin_inset CommandInset ref
6568 reference "cha:Units-available-in"
6575 \begin_layout Standard
6576 The following tables show the difference:
6579 \begin_layout Standard
6580 \begin_inset Tabular
6581 <lyxtabular version="3" rows="6" columns="5">
6582 <features islongtable="true">
6583 <column alignment="center" valignment="top" width="0">
6584 <column alignment="center" valignment="top" width="0">
6585 <column alignment="center" valignment="top" width="0">
6586 <column alignment="center" valignment="top" width="0">
6587 <column alignment="center" valignment="top" width="0">
6588 <row caption="true">
6589 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6592 \begin_layout Plain Layout
6593 \begin_inset Caption
6595 \begin_layout Plain Layout
6596 long full title with default width long full title with default width long
6597 full title with default width
6601 \begin_layout Plain Layout
6602 caption with default width
6617 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6620 \begin_layout Plain Layout
6626 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6629 \begin_layout Plain Layout
6635 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6638 \begin_layout Plain Layout
6644 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6647 \begin_layout Plain Layout
6655 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6658 \begin_layout Plain Layout
6664 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6667 \begin_layout Plain Layout
6673 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6676 \begin_layout Plain Layout
6682 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6685 \begin_layout Plain Layout
6691 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6694 \begin_layout Plain Layout
6702 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6705 \begin_layout Plain Layout
6711 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6714 \begin_layout Plain Layout
6720 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6723 \begin_layout Plain Layout
6729 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6732 \begin_layout Plain Layout
6738 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6741 \begin_layout Plain Layout
6749 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6752 \begin_layout Plain Layout
6758 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6761 \begin_layout Plain Layout
6767 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6770 \begin_layout Plain Layout
6776 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6779 \begin_layout Plain Layout
6785 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6788 \begin_layout Plain Layout
6796 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6799 \begin_layout Plain Layout
6805 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6808 \begin_layout Plain Layout
6814 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6817 \begin_layout Plain Layout
6823 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6826 \begin_layout Plain Layout
6832 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6835 \begin_layout Plain Layout
6843 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6846 \begin_layout Plain Layout
6852 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6855 \begin_layout Plain Layout
6861 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6864 \begin_layout Plain Layout
6870 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6873 \begin_layout Plain Layout
6879 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6882 \begin_layout Plain Layout
6896 \begin_layout Standard
6900 \begin_layout Plain Layout
6912 \begin_inset Tabular
6913 <lyxtabular version="3" rows="6" columns="5">
6914 <features islongtable="true">
6915 <column alignment="center" valignment="top" width="0">
6916 <column alignment="center" valignment="top" width="0">
6917 <column alignment="center" valignment="top" width="0">
6918 <column alignment="center" valignment="top" width="0">
6919 <column alignment="center" valignment="top" width="0">
6920 <row caption="true">
6921 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6924 \begin_layout Plain Layout
6925 \begin_inset Caption
6927 \begin_layout Plain Layout
6928 long full title with width set to 5
6929 \begin_inset space \thinspace{}
6932 cm long full title with width set to 5
6933 \begin_inset space \thinspace{}
6936 cm long full title with width set to 5
6937 \begin_inset space \thinspace{}
6944 \begin_layout Plain Layout
6946 \begin_inset space \thinspace{}
6950 \begin_inset space \thinspace{}
6954 \begin_inset space \thinspace{}
6972 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6975 \begin_layout Plain Layout
6981 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6984 \begin_layout Plain Layout
6990 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6993 \begin_layout Plain Layout
6999 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7002 \begin_layout Plain Layout
7010 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7013 \begin_layout Plain Layout
7019 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7022 \begin_layout Plain Layout
7028 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7031 \begin_layout Plain Layout
7037 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7040 \begin_layout Plain Layout
7046 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7049 \begin_layout Plain Layout
7057 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7060 \begin_layout Plain Layout
7066 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7069 \begin_layout Plain Layout
7075 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7078 \begin_layout Plain Layout
7084 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7087 \begin_layout Plain Layout
7093 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7096 \begin_layout Plain Layout
7104 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7107 \begin_layout Plain Layout
7113 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7116 \begin_layout Plain Layout
7122 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7125 \begin_layout Plain Layout
7131 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7134 \begin_layout Plain Layout
7140 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7143 \begin_layout Plain Layout
7151 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7154 \begin_layout Plain Layout
7160 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7163 \begin_layout Plain Layout
7169 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7172 \begin_layout Plain Layout
7178 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7181 \begin_layout Plain Layout
7187 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7190 \begin_layout Plain Layout
7198 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7201 \begin_layout Plain Layout
7207 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7210 \begin_layout Plain Layout
7216 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7219 \begin_layout Plain Layout
7225 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7228 \begin_layout Plain Layout
7234 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7237 \begin_layout Plain Layout
7251 \begin_layout Standard
7255 \begin_layout Plain Layout
7269 \begin_layout Standard
7270 \begin_inset Note Greyedout
7273 \begin_layout Plain Layout
7278 When the LaTeX-package
7286 \begin_layout Plain Layout
7287 LaTeX-packages ! caption
7292 is used, as in this document, the full page width is used for the caption
7293 when you use the default value of 4
7294 \begin_inset space \thinspace{}
7304 To get in this case exactly a 4
7305 \begin_inset space \thinspace{}
7308 in wide caption, you can either use a value slightly different from 4.0
7309 \begin_inset space \thinspace{}
7314 \begin_inset space \thinspace{}
7317 in, or the LaTeX-command
7321 captionsetup{width=value}
7323 that is provided by the
7335 \begin_layout Subsubsection
7336 Different Captions for Table Pages
7340 \begin_layout Plain Layout
7341 Longtables ! Different Captions for Pages
7349 \begin_layout Standard
7350 When the other captions should differ from the one of the first table page,
7351 insert a caption with a non-empty short title in a dummy caption row marked
7353 The caption used for the other table pages is inserted as caption without
7354 a short title in a dummy caption row that is marked as main header.
7355 When this caption shouldn't include the table number, use the command
7358 \begin_layout Standard
7363 caption*{caption text}
7366 \begin_layout Standard
7367 instead of LyX's caption box.
7368 The label to reference the table is inserted into the caption of the first
7371 \begin_inset space ~
7375 \begin_inset CommandInset ref
7377 reference "tab:DiffCaptions"
7381 is an example for a longtable with different heading where the second caption
7382 doesn't include the table number.
7385 \begin_layout Standard
7387 \begin_inset Tabular
7388 <lyxtabular version="3" rows="60" columns="3">
7389 <features islongtable="true">
7390 <column alignment="left" valignment="top" width="0cm">
7391 <column alignment="left" valignment="top" width="0pt">
7392 <column alignment="center" valignment="top" width="0pt">
7393 <row endfirsthead="true" caption="true">
7394 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7397 \begin_layout Plain Layout
7398 \begin_inset Caption
7400 \begin_layout Plain Layout
7402 \begin_inset CommandInset label
7404 name "tab:DiffCaptions"
7412 \begin_layout Plain Layout
7428 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7431 \begin_layout Plain Layout
7437 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7440 \begin_layout Plain Layout
7447 <row endfirsthead="true">
7448 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7451 \begin_layout Plain Layout
7454 Example Phone List (ignore the names)
7459 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7462 \begin_layout Plain Layout
7468 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7471 \begin_layout Plain Layout
7478 <row endfirsthead="true">
7479 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7482 \begin_layout Plain Layout
7490 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7493 \begin_layout Plain Layout
7499 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7502 \begin_layout Plain Layout
7511 <row endhead="true" caption="true">
7512 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7515 \begin_layout Plain Layout
7519 \begin_layout Plain Layout
7523 caption*{Continued Example Phone List}
7537 <cell multicolumn="2" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7540 \begin_layout Plain Layout
7546 <cell multicolumn="2" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7549 \begin_layout Plain Layout
7556 <row endhead="true">
7557 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7560 \begin_layout Plain Layout
7568 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7571 \begin_layout Plain Layout
7577 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7580 \begin_layout Plain Layout
7587 <row endhead="true">
7588 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
7591 \begin_layout Plain Layout
7599 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7602 \begin_layout Plain Layout
7608 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7611 \begin_layout Plain Layout
7620 <row endfoot="true">
7621 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
7624 \begin_layout Plain Layout
7625 continued on next page
7630 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7633 \begin_layout Plain Layout
7639 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7642 \begin_layout Plain Layout
7650 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7653 \begin_layout Plain Layout
7661 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7664 \begin_layout Plain Layout
7670 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
7673 \begin_layout Plain Layout
7681 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7684 \begin_layout Plain Layout
7692 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7695 \begin_layout Plain Layout
7701 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7704 \begin_layout Plain Layout
7712 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7715 \begin_layout Plain Layout
7723 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7726 \begin_layout Plain Layout
7732 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7735 \begin_layout Plain Layout
7743 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7746 \begin_layout Plain Layout
7754 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7757 \begin_layout Plain Layout
7763 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7766 \begin_layout Plain Layout
7774 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7777 \begin_layout Plain Layout
7785 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7788 \begin_layout Plain Layout
7794 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7797 \begin_layout Plain Layout
7805 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7808 \begin_layout Plain Layout
7816 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7819 \begin_layout Plain Layout
7825 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7828 \begin_layout Plain Layout
7836 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7839 \begin_layout Plain Layout
7847 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7850 \begin_layout Plain Layout
7856 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7859 \begin_layout Plain Layout
7867 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7870 \begin_layout Plain Layout
7878 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7881 \begin_layout Plain Layout
7887 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7890 \begin_layout Plain Layout
7898 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7901 \begin_layout Plain Layout
7909 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7912 \begin_layout Plain Layout
7918 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7921 \begin_layout Plain Layout
7929 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7932 \begin_layout Plain Layout
7940 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7943 \begin_layout Plain Layout
7949 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7952 \begin_layout Plain Layout
7960 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7963 \begin_layout Plain Layout
7971 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7974 \begin_layout Plain Layout
7980 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7983 \begin_layout Plain Layout
7991 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7994 \begin_layout Plain Layout
8002 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8005 \begin_layout Plain Layout
8011 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8014 \begin_layout Plain Layout
8022 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8025 \begin_layout Plain Layout
8033 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8036 \begin_layout Plain Layout
8042 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8045 \begin_layout Plain Layout
8053 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8056 \begin_layout Plain Layout
8064 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8067 \begin_layout Plain Layout
8073 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8076 \begin_layout Plain Layout
8084 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8087 \begin_layout Plain Layout
8096 \begin_layout Plain Layout
8107 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8110 \begin_layout Plain Layout
8116 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8119 \begin_layout Plain Layout
8127 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8130 \begin_layout Plain Layout
8138 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8141 \begin_layout Plain Layout
8147 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8150 \begin_layout Plain Layout
8158 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8161 \begin_layout Plain Layout
8169 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8172 \begin_layout Plain Layout
8178 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8181 \begin_layout Plain Layout
8189 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8192 \begin_layout Plain Layout
8200 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8203 \begin_layout Plain Layout
8209 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8212 \begin_layout Plain Layout
8220 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8223 \begin_layout Plain Layout
8231 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8234 \begin_layout Plain Layout
8240 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8243 \begin_layout Plain Layout
8251 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8254 \begin_layout Plain Layout
8262 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8265 \begin_layout Plain Layout
8271 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8274 \begin_layout Plain Layout
8282 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8285 \begin_layout Plain Layout
8293 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8296 \begin_layout Plain Layout
8302 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8305 \begin_layout Plain Layout
8313 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8316 \begin_layout Plain Layout
8324 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8327 \begin_layout Plain Layout
8333 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8336 \begin_layout Plain Layout
8344 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8347 \begin_layout Plain Layout
8355 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8358 \begin_layout Plain Layout
8364 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8367 \begin_layout Plain Layout
8375 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8378 \begin_layout Plain Layout
8386 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8389 \begin_layout Plain Layout
8395 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8398 \begin_layout Plain Layout
8406 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8409 \begin_layout Plain Layout
8417 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8420 \begin_layout Plain Layout
8426 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8429 \begin_layout Plain Layout
8437 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8440 \begin_layout Plain Layout
8448 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8451 \begin_layout Plain Layout
8457 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8460 \begin_layout Plain Layout
8468 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8471 \begin_layout Plain Layout
8479 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8482 \begin_layout Plain Layout
8488 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8491 \begin_layout Plain Layout
8499 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8502 \begin_layout Plain Layout
8510 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8513 \begin_layout Plain Layout
8519 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8522 \begin_layout Plain Layout
8530 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8533 \begin_layout Plain Layout
8541 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8544 \begin_layout Plain Layout
8550 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8553 \begin_layout Plain Layout
8561 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8564 \begin_layout Plain Layout
8572 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8575 \begin_layout Plain Layout
8581 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8584 \begin_layout Plain Layout
8592 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8595 \begin_layout Plain Layout
8603 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8606 \begin_layout Plain Layout
8612 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8615 \begin_layout Plain Layout
8623 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8626 \begin_layout Plain Layout
8632 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8635 \begin_layout Plain Layout
8641 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8644 \begin_layout Plain Layout
8652 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8655 \begin_layout Plain Layout
8663 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8666 \begin_layout Plain Layout
8672 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8675 \begin_layout Plain Layout
8683 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8686 \begin_layout Plain Layout
8694 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8697 \begin_layout Plain Layout
8703 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8706 \begin_layout Plain Layout
8714 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8717 \begin_layout Plain Layout
8725 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8728 \begin_layout Plain Layout
8734 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8737 \begin_layout Plain Layout
8745 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8748 \begin_layout Plain Layout
8756 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8759 \begin_layout Plain Layout
8765 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8768 \begin_layout Plain Layout
8776 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8779 \begin_layout Plain Layout
8787 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8790 \begin_layout Plain Layout
8796 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8799 \begin_layout Plain Layout
8807 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8810 \begin_layout Plain Layout
8818 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8821 \begin_layout Plain Layout
8827 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8830 \begin_layout Plain Layout
8838 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8841 \begin_layout Plain Layout
8849 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8852 \begin_layout Plain Layout
8858 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8861 \begin_layout Plain Layout
8869 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8872 \begin_layout Plain Layout
8880 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8883 \begin_layout Plain Layout
8889 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8892 \begin_layout Plain Layout
8900 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8903 \begin_layout Plain Layout
8911 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8914 \begin_layout Plain Layout
8920 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8923 \begin_layout Plain Layout
8931 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8934 \begin_layout Plain Layout
8942 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8945 \begin_layout Plain Layout
8951 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8954 \begin_layout Plain Layout
8962 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8965 \begin_layout Plain Layout
8973 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8976 \begin_layout Plain Layout
8982 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8985 \begin_layout Plain Layout
8993 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8996 \begin_layout Plain Layout
9004 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9007 \begin_layout Plain Layout
9013 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9016 \begin_layout Plain Layout
9024 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9027 \begin_layout Plain Layout
9035 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9038 \begin_layout Plain Layout
9044 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9047 \begin_layout Plain Layout
9055 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9058 \begin_layout Plain Layout
9066 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9069 \begin_layout Plain Layout
9075 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9078 \begin_layout Plain Layout
9086 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9089 \begin_layout Plain Layout
9097 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9100 \begin_layout Plain Layout
9106 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9109 \begin_layout Plain Layout
9117 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9120 \begin_layout Plain Layout
9128 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9131 \begin_layout Plain Layout
9137 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9140 \begin_layout Plain Layout
9148 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9151 \begin_layout Plain Layout
9159 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9162 \begin_layout Plain Layout
9168 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9171 \begin_layout Plain Layout
9179 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9182 \begin_layout Plain Layout
9190 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9193 \begin_layout Plain Layout
9199 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9202 \begin_layout Plain Layout
9210 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9213 \begin_layout Plain Layout
9221 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9224 \begin_layout Plain Layout
9230 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9233 \begin_layout Plain Layout
9241 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9244 \begin_layout Plain Layout
9252 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9255 \begin_layout Plain Layout
9261 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9264 \begin_layout Plain Layout
9271 <row endlastfoot="true">
9272 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9275 \begin_layout Plain Layout
9281 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
9284 \begin_layout Plain Layout
9290 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9293 \begin_layout Plain Layout
9307 \begin_layout Section
9308 Special Longtable Issues
9309 \begin_inset CommandInset label
9311 name "sec:Special-Longtable-Issues"
9318 \begin_layout Subsection
9319 Longtable Calculation
9323 \begin_layout Plain Layout
9324 Longtables ! Calculation
9332 \begin_layout Standard
9333 LaTeX calculates the height of table pages and their page breaks using so
9335 Chunks are pieces of the tables that are at once in LaTeX's memory.
9336 The default value is historically set to only 20 table rows.
9337 If you are using longtables with many pages this may slow down the creation
9339 You can safely increase the chunk size to values of 100-1000 by adding
9340 this command line to your document preamble:
9343 \begin_layout Standard
9348 setcounter{LTchunksize}{100}
9351 \begin_layout Subsection
9352 Floats and Longtables
9356 \begin_layout Plain Layout
9365 \begin_layout Standard
9366 There might be problems when a float appears on the same page where a longtable
9368 To avoid such situation, add the command
9374 as TeX-Code before your longtable.
9377 \begin_layout Subsection
9382 \begin_layout Plain Layout
9383 Longtables ! Forced Page Breaks
9391 \begin_layout Standard
9392 By default tables are only broken between rows.
9393 If you have a cell with multiples lines and want to have a page break within
9394 the cell, insert the new line command
9395 \begin_inset Quotes eld
9407 \begin_inset Quotes erd
9410 as TeX-Code at this point of the cell where it should be broken.
9419 command you have to insert in TeX-Code so many
9420 \begin_inset Quotes eld
9428 \begin_inset Quotes erd
9431 characters like the number of the following table columns.
9436 is the character to separate table cells.
9437 Write in TeX-Code after each
9441 the content of the corresponding following cell and delete the content
9443 \begin_inset Newline newline
9454 command, insert so many
9458 characters like the number of table columns before the current column.
9460 \begin_inset space ~
9464 \begin_inset CommandInset ref
9466 reference "tab:ForcedPagebreak"
9470 the cell that should be broken is in the second column followed by another
9472 Therefore the following command was inserted in the cell as TeX-Code behind
9474 \begin_inset Quotes eld
9482 \begin_inset Quotes erd
9488 \begin_layout Standard
9496 \begin_inset Newline newline
9502 \begin_layout Standard
9504 \begin_inset Quotes eld
9508 \begin_inset Quotes erd
9511 in the third columns of the row was deleted.
9512 If your footer row of the longtable has for a certain reason no upper line
9513 but you would have a horizontal line where the cell is broken, use this
9517 \begin_layout Standard
9525 \begin_inset Newline newline
9533 \begin_layout Standard
9534 When the cell to be broken is in the last column, the command
9537 \begin_layout Standard
9547 \begin_layout Standard
9548 must be inserted as TeX-Code at the beginning of the cell.
9549 This assures that the part of the cell that will be displayed on the new
9550 page appears with the full width.
9553 \begin_layout Standard
9555 \begin_inset Tabular
9556 <lyxtabular version="3" rows="39" columns="3">
9557 <features islongtable="true">
9558 <column alignment="left" valignment="top" width="0cm">
9559 <column alignment="left" valignment="top" width="3cm">
9560 <column alignment="center" valignment="top" width="0pt">
9561 <row endfirsthead="true" caption="true">
9562 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
9565 \begin_layout Plain Layout
9566 \begin_inset Caption
9568 \begin_layout Plain Layout
9569 Table with forced page break in table cell
9570 \begin_inset CommandInset label
9572 name "tab:ForcedPagebreak"
9580 \begin_layout Plain Layout
9581 Table with forced page break in table cell
9596 <cell multicolumn="2" alignment="center" valignment="top" rightline="true" usebox="none">
9599 \begin_layout Plain Layout
9605 <cell multicolumn="2" alignment="center" valignment="top" rightline="true" usebox="none">
9608 \begin_layout Plain Layout
9615 <row endfirsthead="true">
9616 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9619 \begin_layout Plain Layout
9622 Example Phone List (ignore the names)
9627 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9630 \begin_layout Plain Layout
9636 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9639 \begin_layout Plain Layout
9646 <row endfirsthead="true">
9647 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9650 \begin_layout Plain Layout
9658 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9661 \begin_layout Plain Layout
9667 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9670 \begin_layout Plain Layout
9679 <row endhead="true" caption="true">
9680 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
9683 \begin_layout Plain Layout
9687 \begin_layout Plain Layout
9691 caption*{Continued table with forced page break in table cell}
9705 <cell multicolumn="2" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
9708 \begin_layout Plain Layout
9714 <cell multicolumn="2" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
9717 \begin_layout Plain Layout
9724 <row endhead="true">
9725 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9728 \begin_layout Plain Layout
9736 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9739 \begin_layout Plain Layout
9745 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9748 \begin_layout Plain Layout
9755 <row endhead="true">
9756 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9759 \begin_layout Plain Layout
9767 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9770 \begin_layout Plain Layout
9776 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9779 \begin_layout Plain Layout
9788 <row endfoot="true">
9789 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
9792 \begin_layout Plain Layout
9793 continued on next page
9798 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9801 \begin_layout Plain Layout
9807 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9810 \begin_layout Plain Layout
9818 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9821 \begin_layout Plain Layout
9829 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9832 \begin_layout Plain Layout
9838 <cell alignment="right" valignment="top" rightline="true" usebox="none">
9841 \begin_layout Plain Layout
9849 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9852 \begin_layout Plain Layout
9860 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9863 \begin_layout Plain Layout
9869 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9872 \begin_layout Plain Layout
9880 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9883 \begin_layout Plain Layout
9891 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9894 \begin_layout Plain Layout
9900 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9903 \begin_layout Plain Layout
9911 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9914 \begin_layout Plain Layout
9922 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9925 \begin_layout Plain Layout
9931 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9934 \begin_layout Plain Layout
9942 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9945 \begin_layout Plain Layout
9953 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9956 \begin_layout Plain Layout
9962 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9965 \begin_layout Plain Layout
9973 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9976 \begin_layout Plain Layout
9984 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9987 \begin_layout Plain Layout
9993 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9996 \begin_layout Plain Layout
10004 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10007 \begin_layout Plain Layout
10015 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10018 \begin_layout Plain Layout
10024 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10027 \begin_layout Plain Layout
10035 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10038 \begin_layout Plain Layout
10046 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10049 \begin_layout Plain Layout
10055 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10058 \begin_layout Plain Layout
10066 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10069 \begin_layout Plain Layout
10077 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10080 \begin_layout Plain Layout
10086 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10089 \begin_layout Plain Layout
10097 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10100 \begin_layout Plain Layout
10108 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10111 \begin_layout Plain Layout
10117 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10120 \begin_layout Plain Layout
10128 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10131 \begin_layout Plain Layout
10139 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10142 \begin_layout Plain Layout
10148 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10151 \begin_layout Plain Layout
10159 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10162 \begin_layout Plain Layout
10170 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10173 \begin_layout Plain Layout
10179 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10182 \begin_layout Plain Layout
10190 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10193 \begin_layout Plain Layout
10201 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10204 \begin_layout Plain Layout
10210 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10213 \begin_layout Plain Layout
10221 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10224 \begin_layout Plain Layout
10232 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10235 \begin_layout Plain Layout
10241 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10244 \begin_layout Plain Layout
10252 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10255 \begin_layout Plain Layout
10263 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10266 \begin_layout Plain Layout
10272 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10275 \begin_layout Plain Layout
10283 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10286 \begin_layout Plain Layout
10294 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10297 \begin_layout Plain Layout
10303 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10306 \begin_layout Plain Layout
10314 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10317 \begin_layout Plain Layout
10325 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10328 \begin_layout Plain Layout
10334 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10337 \begin_layout Plain Layout
10345 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10348 \begin_layout Plain Layout
10356 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10359 \begin_layout Plain Layout
10365 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10368 \begin_layout Plain Layout
10376 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10379 \begin_layout Plain Layout
10387 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10390 \begin_layout Plain Layout
10396 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10399 \begin_layout Plain Layout
10407 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10410 \begin_layout Plain Layout
10418 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10421 \begin_layout Plain Layout
10427 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10430 \begin_layout Plain Layout
10438 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10441 \begin_layout Plain Layout
10449 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10452 \begin_layout Plain Layout
10458 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10461 \begin_layout Plain Layout
10469 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10472 \begin_layout Plain Layout
10480 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10483 \begin_layout Plain Layout
10489 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10492 \begin_layout Plain Layout
10500 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10503 \begin_layout Plain Layout
10511 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10514 \begin_layout Plain Layout
10516 Fürst von Montecompatri, 11.
10517 Fürst von Sulmona und Vivaro, 10.
10518 Fürst von Rossano, 5.
10519 Herzog von Canemorte, 11.
10520 Herzog von Palombara, 5.
10521 Herzog von Castelchiodato,
10525 \begin_layout Plain Layout
10534 \begin_layout Plain Layout
10542 Herzog von Poggionativo, 11.
10543 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10544 Graf von Valinfreda, 11.
10545 Baron von Cropalati, 11.
10546 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10551 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10554 \begin_layout Plain Layout
10562 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10565 \begin_layout Plain Layout
10573 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10576 \begin_layout Plain Layout
10582 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10585 \begin_layout Plain Layout
10593 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10596 \begin_layout Plain Layout
10604 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10607 \begin_layout Plain Layout
10613 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10616 \begin_layout Plain Layout
10624 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10627 \begin_layout Plain Layout
10635 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10638 \begin_layout Plain Layout
10644 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10647 \begin_layout Plain Layout
10655 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10658 \begin_layout Plain Layout
10666 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10669 \begin_layout Plain Layout
10675 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10678 \begin_layout Plain Layout
10686 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10689 \begin_layout Plain Layout
10697 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10700 \begin_layout Plain Layout
10706 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10709 \begin_layout Plain Layout
10717 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10720 \begin_layout Plain Layout
10728 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10731 \begin_layout Plain Layout
10737 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10740 \begin_layout Plain Layout
10748 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10751 \begin_layout Plain Layout
10759 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10762 \begin_layout Plain Layout
10768 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10771 \begin_layout Plain Layout
10779 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10782 \begin_layout Plain Layout
10790 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
10793 \begin_layout Plain Layout
10799 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
10802 \begin_layout Plain Layout
10809 <row endlastfoot="true">
10810 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
10813 \begin_layout Plain Layout
10819 <cell multicolumn="2" alignment="center" valignment="top" rightline="true" usebox="none">
10822 \begin_layout Plain Layout
10828 <cell multicolumn="2" alignment="center" valignment="top" rightline="true" usebox="none">
10831 \begin_layout Plain Layout
10845 \begin_layout Standard
10846 \begin_inset Newpage newpage
10852 \begin_layout Section
10853 Multiple Lines Columns and Rows
10856 \begin_layout Subsection
10857 Multiple Lines in Table Cells
10858 \begin_inset CommandInset label
10860 name "sub:Multiple-Lines-in"
10868 \begin_layout Plain Layout
10869 Multiple Lines in Table Cells
10878 \begin_layout Plain Layout
10887 \begin_layout Standard
10889 \begin_inset Float table
10895 \begin_layout Plain Layout
10896 \begin_inset Caption
10898 \begin_layout Plain Layout
10899 \begin_inset CommandInset label
10901 name "tab:Table-with-multiple"
10905 Table with multiple lines in cells
10913 \begin_layout Plain Layout
10915 \begin_inset Tabular
10916 <lyxtabular version="3" rows="3" columns="3">
10918 <column alignment="center" valignment="middle" width="2.5cm">
10919 <column alignment="center" valignment="middle" width="0">
10920 <column alignment="center" valignment="middle" width="0">
10922 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10925 \begin_layout Plain Layout
10927 \begin_inset Newline linebreak
10935 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10938 \begin_layout Plain Layout
10944 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10947 \begin_layout Plain Layout
10955 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10958 \begin_layout Plain Layout
10964 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10967 \begin_layout Plain Layout
10973 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10976 \begin_layout Plain Layout
10984 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10987 \begin_layout Plain Layout
10993 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10996 \begin_layout Plain Layout
11002 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11005 \begin_layout Plain Layout
11024 \begin_layout Standard
11025 Adjusting a fixed width for a column, enables to enter text as a paragraph
11026 with multiple lines and hyphenations.
11029 \begin_layout Standard
11031 \begin_inset space ~
11035 \begin_inset CommandInset ref
11037 reference "tab:Table-with-multiple"
11041 , create a 3×3 table, mark the first cell and right-click on it.
11042 In the appearing table dialog we set a cell width of 2.5
11043 \begin_inset space \thinspace{}
11046 cm and choose centered for the vertical and horizontal alignment.
11047 The vertical alignment is used for all cells of the row.
11048 As our text is smaller than than 2.5
11049 \begin_inset space \thinspace{}
11052 cm, only one line will appear.
11053 To get two lines, a justified line break (shortcut
11056 arg "newline-insert linebreak"
11060 If the text is wider than the set cell width, it will automatically be
11061 broken to several lines.
11064 \begin_layout Standard
11065 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11066 by LaTeX if it is the first entry.
11067 Therefore you need to insert something, to make the word not being the
11069 So add a horizontal space of 0
11070 \begin_inset space \thinspace{}
11073 pt before the word.
11074 As the space is zero, it doesn't change the output.
11076 \begin_inset space ~
11080 \begin_inset CommandInset ref
11082 reference "tab:Table-with-and"
11089 \begin_layout Standard
11090 \begin_inset Float table
11096 \begin_layout Plain Layout
11097 \begin_inset Caption
11099 \begin_layout Plain Layout
11100 \begin_inset CommandInset label
11102 name "tab:Table-with-and"
11106 Table with and without hyphenation
11114 \begin_layout Plain Layout
11115 \begin_inset space \hfill{}
11119 \begin_inset Tabular
11120 <lyxtabular version="3" rows="3" columns="3">
11122 <column alignment="center" valignment="middle" width="2.5cm">
11123 <column alignment="center" valignment="middle" width="0">
11124 <column alignment="center" valignment="middle" width="0">
11126 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11129 \begin_layout Plain Layout
11130 verylongtablecellword
11135 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11138 \begin_layout Plain Layout
11144 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11147 \begin_layout Plain Layout
11155 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11158 \begin_layout Plain Layout
11164 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11167 \begin_layout Plain Layout
11173 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11176 \begin_layout Plain Layout
11184 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11187 \begin_layout Plain Layout
11193 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11196 \begin_layout Plain Layout
11202 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11205 \begin_layout Plain Layout
11217 \begin_inset space \hfill{}
11221 \begin_inset Tabular
11222 <lyxtabular version="3" rows="3" columns="3">
11224 <column alignment="center" valignment="middle" width="2.5cm">
11225 <column alignment="center" valignment="middle" width="0">
11226 <column alignment="center" valignment="middle" width="0">
11228 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11231 \begin_layout Plain Layout
11232 \begin_inset space \hspace{}
11236 verylongtablecellword
11241 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11244 \begin_layout Plain Layout
11250 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11253 \begin_layout Plain Layout
11261 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11264 \begin_layout Plain Layout
11270 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11273 \begin_layout Plain Layout
11279 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11282 \begin_layout Plain Layout
11290 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11293 \begin_layout Plain Layout
11299 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11302 \begin_layout Plain Layout
11308 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11311 \begin_layout Plain Layout
11323 \begin_inset space \hfill{}
11334 \begin_layout Subsection
11336 \begin_inset CommandInset label
11338 name "sub:Multicolumns"
11346 \begin_layout Plain Layout
11356 \begin_layout Plain Layout
11357 Table ! Multicolumns
11365 \begin_layout Subsubsection
11369 \begin_layout Standard
11370 To span a cell over multiple columns, mark as much cells within a line that
11371 should be one spanned cell and use either the table-toolbar button
11372 \begin_inset Graphics
11373 filename ../images/tabular-feature_multicolumn.png
11375 scaleBeforeRotation
11381 Edit\SpecialChar \menuseparator
11382 Table\SpecialChar \menuseparator
11385 , or right click on the marked cells and choose multicolumn in the appearing
11386 table dialog under the tab
11393 \begin_layout Standard
11394 Multicolumns have there own cell settings.
11395 That means changing cell borders, cell alignment, and the width only affects
11397 Here is an example table with a multicolumn cell in the first row and one
11398 in the last row without the upper border:
11401 \begin_layout Standard
11403 \begin_inset Tabular
11404 <lyxtabular version="3" rows="3" columns="4">
11405 <features firstHeadTopDL="true" firstHeadBottomDL="true">
11406 <column alignment="center" valignment="top" width="0pt">
11407 <column alignment="center" valignment="middle" width="0">
11408 <column alignment="center" valignment="top" width="0in">
11409 <column alignment="center" valignment="top" width="0pt">
11411 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11414 \begin_layout Plain Layout
11420 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11423 \begin_layout Plain Layout
11429 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11432 \begin_layout Plain Layout
11438 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11441 \begin_layout Plain Layout
11449 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11452 \begin_layout Plain Layout
11467 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11470 \begin_layout Plain Layout
11476 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11479 \begin_layout Plain Layout
11485 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11488 \begin_layout Plain Layout
11496 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11499 \begin_layout Plain Layout
11505 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11508 \begin_layout Plain Layout
11514 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11517 \begin_layout Plain Layout
11523 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11526 \begin_layout Plain Layout
11540 \begin_layout Subsubsection
11541 Multicolumn Calculations
11542 \begin_inset CommandInset label
11544 name "sub:Multicolumn-Calculations"
11552 \begin_layout Plain Layout
11553 Multicolumns ! Calculations
11561 \begin_layout Standard
11562 LyX supports multicolumns directly, but we have to take notice of the cell
11563 width of the columns spanned by the multicolumn cell.
11566 \begin_layout Standard
11567 \begin_inset Float table
11573 \begin_layout Plain Layout
11574 \begin_inset Caption
11576 \begin_layout Plain Layout
11577 \begin_inset CommandInset label
11579 name "tab:Table-with-centered"
11583 Table with centered multicolumn text above two columns that have exactly
11584 half the width of the multicolumn cell
11585 \begin_inset OptArg
11588 \begin_layout Plain Layout
11589 Perfect multicolumn table
11602 \begin_layout Plain Layout
11604 \begin_inset Tabular
11605 <lyxtabular version="3" rows="3" columns="3">
11607 <column alignment="center" valignment="middle" width="0" special=">{\centering}m{1.25cm-6.2pt}">
11608 <column alignment="center" valignment="middle" width="0">
11609 <column alignment="center" valignment="top" width="0">
11611 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11614 \begin_layout Plain Layout
11615 multiple lines multicolumn
11620 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11623 \begin_layout Plain Layout
11629 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11632 \begin_layout Plain Layout
11640 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11643 \begin_layout Plain Layout
11649 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11652 \begin_layout Plain Layout
11658 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11661 \begin_layout Plain Layout
11669 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11672 \begin_layout Plain Layout
11678 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11681 \begin_layout Plain Layout
11687 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11690 \begin_layout Plain Layout
11709 \begin_layout Standard
11710 To create for example Table
11711 \begin_inset space ~
11715 \begin_inset CommandInset ref
11717 reference "tab:Table-with-centered"
11721 , mark the first two cells in the first row of a 3×3 table and right-click
11723 Now choose for this cell
11732 \begin_inset space \thinspace{}
11735 cm in the table dialog.
11736 The spanned columns should have exactly half the width of the multicolumn
11737 cell, so that you would adjust a width of 1.25
11738 \begin_inset space \thinspace{}
11741 cm for the first column.
11742 The second column has then automatically a width of 1.25
11743 \begin_inset space \thinspace{}
11746 cm (multicolumn width - width of first column).
11747 This was done for Table
11748 \begin_inset space ~
11752 \begin_inset CommandInset ref
11754 reference "tab:Table-without-half"
11761 \begin_layout Standard
11762 \begin_inset Float table
11767 \begin_layout Plain Layout
11768 \begin_inset Caption
11770 \begin_layout Plain Layout
11771 \begin_inset CommandInset label
11773 name "tab:Table-without-half"
11777 Table where the spanned table columns have not exactly half the width of
11778 the multicolumn cell
11779 \begin_inset OptArg
11782 \begin_layout Plain Layout
11783 Imperfect multicolumn table
11796 \begin_layout Plain Layout
11798 \begin_inset Tabular
11799 <lyxtabular version="3" rows="3" columns="3">
11801 <column alignment="center" valignment="top" width="1.25cm">
11802 <column alignment="center" valignment="top" width="0">
11803 <column alignment="center" valignment="top" width="0">
11805 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
11808 \begin_layout Plain Layout
11809 multiple lines multicolumn
11814 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11817 \begin_layout Plain Layout
11823 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11826 \begin_layout Plain Layout
11834 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11837 \begin_layout Plain Layout
11843 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11846 \begin_layout Plain Layout
11852 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11855 \begin_layout Plain Layout
11863 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11866 \begin_layout Plain Layout
11872 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11875 \begin_layout Plain Layout
11881 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11884 \begin_layout Plain Layout
11903 \begin_layout Standard
11904 You can see that the first column has not the half width of the multicolumn
11905 cell, it is a bit bigger.
11906 The reason is that the given width of a cell
11907 \begin_inset Formula $W_{g}$
11910 is not its total width
11911 \begin_inset Formula $W_{\mathrm{tot}}$
11914 because a cell is always a bit larger than its given width.
11916 \begin_inset space ~
11920 \begin_inset CommandInset ref
11922 reference "cha:Explanation-of-Equation"
11926 explains it in detail.
11929 \begin_layout Standard
11930 The needed given width
11931 \begin_inset Formula $W_{g\, n}$
11938 columns are spanned can be calculated, so that each column has a total
11940 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
11944 \begin_inset Formula \begin{equation}
11945 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}\end{equation}
11952 \begin_layout Standard
11953 In our case we have
11954 \begin_inset Formula $n=2$
11958 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
11961 cm and the default values for the lengths, so that equation
11962 \begin_inset CommandInset ref
11969 \begin_inset Formula \begin{equation}
11970 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}\end{equation}
11977 \begin_layout Standard
11978 To enable calculations in LaTeX, the LaTeX-package
11982 must be loaded with the document preamble line
11986 \begin_layout Plain Layout
11987 LaTeX-packages ! calc
11995 \begin_layout Standard
12003 \begin_layout Standard
12004 LyX does not allow to calculate lengths in the width-field of the table
12006 Therefore you have to format the column by inserting a LaTeX-argument in
12008 Here is an overview about the arguments:
12011 \begin_layout Itemize
12016 creates cell with a fixed width, its text is vertically top-aligned
12019 \begin_layout Itemize
12024 creates cell with a fixed width, its text is vertically centered
12027 \begin_layout Itemize
12032 creates cell with a fixed width, its text is vertically bottom-aligned
12035 \begin_layout Standard
12036 By entering a LaTeX-argument, all cell settings set in the table dialog
12040 \begin_layout Standard
12041 \begin_inset Note Greyedout
12044 \begin_layout Plain Layout
12049 Due to a bug, LyX shows the overwritten settings anyway.
12057 \begin_layout Standard
12058 As the text should be horizontally centered, the command
12065 You can now enter the following LaTeX-argument for the first spanned column:
12068 \begin_layout Standard
12073 centering}m{1.25cm-6.2pt}
12076 \begin_layout Standard
12081 means, that the commands inside the braces are applied before the cell
12085 \begin_layout Standard
12086 Although we have chosen centered alignment for the text of the multicolumn
12087 cell, it is still left aligned.
12088 This is because LyX only applies the alignment to single columns.
12089 So we have to use for the multicolumn the LaTeX-argument
12092 \begin_layout Standard
12100 \begin_layout Subsection
12105 \begin_layout Plain Layout
12115 \begin_layout Plain Layout
12124 \begin_layout Standard
12125 In contrary to multicolumns multirows are not yet supported by LyX so a
12126 bit of TeX-Code needs to be used.
12127 To use multirows load the LaTeX-package
12135 \begin_layout Plain Layout
12136 LaTeX-packages ! multirow
12141 in your document preamble with the command
12144 \begin_layout Standard
12149 usepackage{multirow}
12152 \begin_layout Standard
12153 Multirows are created with the command
12156 \begin_layout Standard
12161 multirow{number of rows}{cell width}{cell entry}
12164 \begin_layout Standard
12165 To create the following table:
12168 \begin_layout Standard
12173 \begin_layout Plain Layout
12187 \begin_inset Tabular
12188 <lyxtabular version="3" rows="3" columns="3">
12190 <column alignment="center" valignment="top" width="0">
12191 <column alignment="center" valignment="top" width="0">
12192 <column alignment="center" valignment="top" width="0">
12194 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12197 \begin_layout Plain Layout
12203 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12206 \begin_layout Plain Layout
12212 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12215 \begin_layout Plain Layout
12223 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12226 \begin_layout Plain Layout
12230 \begin_layout Plain Layout
12234 multirow{2}{2.5cm}{
12243 \begin_layout Plain Layout
12255 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12258 \begin_layout Plain Layout
12264 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12267 \begin_layout Plain Layout
12275 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
12278 \begin_layout Plain Layout
12284 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12287 \begin_layout Plain Layout
12293 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12296 \begin_layout Plain Layout
12311 \begin_layout Plain Layout
12327 \begin_layout Standard
12328 create a 3×3 table.
12329 To get rid of the line above the last cell in the first column, the cell
12330 is marked as multicolumn and the upper border is unset.
12331 The multirow is now created in the second row of the first column by inserting
12335 \begin_layout Standard
12340 multirow{2}{2.5cm}{
12343 \begin_layout Standard
12345 According to the command parameters the multirow spans now two rows and
12347 \begin_inset space \thinspace{}
12351 The content of the multirow cell follows outside the TeX-Code box and the
12352 command is finished with a right brace
12356 in another TeX-Code-box behind the text.
12359 \begin_layout Standard
12366 left-aligns its content by default.
12367 To override the default, renew the command
12376 \begin_layout Standard
12388 \begin_layout Standard
12389 in TeX-Code in the document preamble.
12390 Then all entries of multirow cells in the document are centered.
12391 If centering is only needed for several tables, you can renew the command
12392 in an TeX-Code box just before the table instead of the preamble.
12393 If the text should be right-aligned, replace
12406 To return to left-alignment
12415 \begin_layout Section
12417 \begin_inset CommandInset label
12419 name "sec:Formal-Tables"
12427 \begin_layout Plain Layout
12436 \begin_layout Standard
12437 Tables are often typeset in books similar to Table
12438 \begin_inset space ~
12442 \begin_inset CommandInset ref
12444 reference "tab:Example-booktabs-table"
12449 This kind of tables is called
12450 \begin_inset Quotes eld
12458 \begin_inset Quotes erd
12462 To make a table a formal table use the option
12470 tab of the table dialog.
12473 \begin_layout Standard
12474 \begin_inset Float table
12480 \begin_layout Plain Layout
12481 \begin_inset Caption
12483 \begin_layout Plain Layout
12484 \begin_inset CommandInset label
12486 name "tab:Example-booktabs-table"
12490 Example booktabs-table
12498 \begin_layout Plain Layout
12500 \begin_inset Tabular
12501 <lyxtabular version="3" rows="8" columns="4">
12502 <features booktabs="true">
12503 <column alignment="center" valignment="top" width="0">
12504 <column alignment="center" valignment="top" width="0">
12505 <column alignment="center" valignment="top" width="0">
12506 <column alignment="center" valignment="top" width="0">
12508 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12511 \begin_layout Plain Layout
12517 <cell alignment="center" valignment="top" topline="true" usebox="none">
12520 \begin_layout Plain Layout
12522 \begin_inset space \thinspace{}
12530 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
12533 \begin_layout Plain Layout
12535 \begin_inset space \thinspace{}
12543 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12546 \begin_layout Plain Layout
12554 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12557 \begin_layout Plain Layout
12561 \begin_layout Plain Layout
12574 \begin_layout Plain Layout
12583 Detector thickness [µm]
12588 <cell alignment="center" valignment="top" usebox="none">
12591 \begin_layout Plain Layout
12597 <cell alignment="center" valignment="top" usebox="none">
12600 \begin_layout Plain Layout
12606 <cell alignment="center" valignment="top" usebox="none">
12609 \begin_layout Plain Layout
12617 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12620 \begin_layout Plain Layout
12626 <cell alignment="center" valignment="top" topline="true" usebox="none">
12629 \begin_layout Plain Layout
12635 <cell alignment="center" valignment="top" topline="true" usebox="none">
12638 \begin_layout Plain Layout
12644 <cell alignment="center" valignment="top" topline="true" usebox="none">
12647 \begin_layout Plain Layout
12654 <row topspace="default">
12655 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12658 \begin_layout Plain Layout
12659 Spatial resolution [µm]
12664 <cell alignment="center" valignment="top" usebox="none">
12667 \begin_layout Plain Layout
12673 <cell alignment="center" valignment="top" usebox="none">
12676 \begin_layout Plain Layout
12682 <cell alignment="center" valignment="top" usebox="none">
12685 \begin_layout Plain Layout
12692 <row topspace="default">
12693 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12696 \begin_layout Plain Layout
12698 \begin_inset Formula $f_{\mathrm{max}}$
12706 <cell alignment="center" valignment="top" usebox="none">
12709 \begin_layout Plain Layout
12715 <cell alignment="center" valignment="top" usebox="none">
12718 \begin_layout Plain Layout
12724 <cell alignment="center" valignment="top" usebox="none">
12727 \begin_layout Plain Layout
12734 <row topspace="default">
12735 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12738 \begin_layout Plain Layout
12742 \begin_layout Plain Layout
12746 cmidrule(l{10pt}){1-1}
12751 LSF-spatial resolution
12756 <cell alignment="center" valignment="top" usebox="none">
12759 \begin_layout Plain Layout
12765 <cell alignment="center" valignment="top" usebox="none">
12768 \begin_layout Plain Layout
12774 <cell alignment="center" valignment="top" usebox="none">
12777 \begin_layout Plain Layout
12785 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12788 \begin_layout Plain Layout
12794 <cell alignment="center" valignment="top" usebox="none">
12797 \begin_layout Plain Layout
12803 <cell alignment="center" valignment="top" usebox="none">
12806 \begin_layout Plain Layout
12812 <cell alignment="center" valignment="top" usebox="none">
12815 \begin_layout Plain Layout
12823 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
12826 \begin_layout Plain Layout
12832 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12835 \begin_layout Plain Layout
12841 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12844 \begin_layout Plain Layout
12850 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12853 \begin_layout Plain Layout
12872 \begin_layout Standard
12873 Spaces to table rows can be added using the
12877 tab of the table dialog as described in section
12878 \begin_inset space ~
12882 \begin_inset CommandInset ref
12884 reference "sub:Row-Spacing"
12891 \begin_layout Standard
12892 In contrary to normal tables, formal tables have no vertical table lines.
12893 The horizontal table lines can be set like for normal tables but they appear
12894 with different width in the output:
12895 \begin_inset Newline newline
12898 The first and the last table line have a default width of 0.08
12899 \begin_inset space \thinspace{}
12902 em while the other lines have a default width of 0.05
12903 \begin_inset space \thinspace{}
12909 \begin_layout Standard
12910 The default widths can be changed with the following preamble lines
12913 \begin_layout Standard
12923 \begin_inset Newline newline
12935 \begin_layout Standard
12936 This example is for the first line, the so called
12941 If you want to change the width for the last line, replace
12950 To change the width for the other lines replace
12959 You can use all units listed in appendix
12960 \begin_inset space ~
12964 \begin_inset CommandInset ref
12966 reference "cha:Units-available-in"
12973 \begin_layout Standard
12974 Lines that don't span over all table columns can be created by setting a
12975 table line for multicolumn cells.
12976 LyX will then internally use the command
12982 to create this line.
12986 \begin_layout Standard
12991 cmidrule[width](trim){startcol-endcol}
12994 \begin_layout Standard
13001 are are currently not supported by LyX so you have to use TeX-Code to be
13009 s can manually be created by inserting the command as TeX-Code as first
13010 cell entry of the first cell of a row.
13011 The line is then drawn in the output above the current row.
13014 \begin_layout Standard
13015 The default for the width is 0.03
13016 \begin_inset space \thinspace{}
13020 Startcol is the number of the column where the line starts and endcol the
13021 column number where the line ends.
13022 The endcol always needs to be specified, also when the line should span
13024 The optional parameter trim could be either
13032 where the trimwidth is also optional.
13033 Using for example the parameter
13037 means that the line is trimmed from its left end by 2
13038 \begin_inset space \thinspace{}
13042 If you don't specify the trimwidth the lines are trimmed by the default
13044 \begin_inset space \thinspace{}
13050 \begin_layout Standard
13051 \begin_inset VSpace bigskip
13055 \begin_inset space ~
13059 \begin_inset CommandInset ref
13061 reference "tab:Example-booktabs-table"
13065 was created using the commands
13068 \begin_layout Standard
13078 \begin_layout Standard
13079 at the beginning of the in the second row and
13082 \begin_layout Standard
13087 cmidrule(l{10pt}){1-1}
13090 \begin_layout Standard
13094 \begin_layout Standard
13095 \begin_inset VSpace bigskip
13101 \begin_layout Standard
13102 You might want to have overlapping
13109 \begin_inset space ~
13113 \begin_inset CommandInset ref
13115 reference "tab:Special-booktabs-table"
13120 This can be achieved with the TeX-Code command
13123 \begin_layout Standard
13131 \begin_layout Standard
13132 The command that was used for the second row of Table
13133 \begin_inset space ~
13137 \begin_inset CommandInset ref
13139 reference "tab:Special-booktabs-table"
13146 \begin_layout Standard
13160 \begin_layout Standard
13161 The command for the sixth row is
13164 \begin_layout Standard
13176 \begin_layout Standard
13177 \begin_inset VSpace bigskip
13183 \begin_layout Standard
13184 If you are anyway not satisfied with the border line spacing, you can use
13185 the following command to produce lines that span over all table columns
13190 \begin_layout Standard
13195 specialrule{width}{space above}{space below}
13198 \begin_layout Standard
13199 For more informations about these specialties, we refer to the manual of
13205 \begin_inset CommandInset citation
13215 \begin_layout Plain Layout
13216 LaTeX-packages ! booktabs
13224 \begin_layout Standard
13225 \begin_inset Float table
13231 \begin_layout Plain Layout
13232 \begin_inset Caption
13234 \begin_layout Plain Layout
13235 \begin_inset CommandInset label
13237 name "tab:Special-booktabs-table"
13241 Special booktabs-table
13249 \begin_layout Plain Layout
13251 \begin_inset Tabular
13252 <lyxtabular version="3" rows="8" columns="4">
13253 <features booktabs="true">
13254 <column alignment="center" valignment="top" width="0">
13255 <column alignment="center" valignment="top" width="0">
13256 <column alignment="center" valignment="top" width="0">
13257 <column alignment="center" valignment="top" width="0">
13259 <cell alignment="center" valignment="top" topline="true" usebox="none">
13262 \begin_layout Plain Layout
13268 <cell alignment="center" valignment="top" topline="true" usebox="none">
13271 \begin_layout Plain Layout
13273 \begin_inset space \thinspace{}
13281 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
13284 \begin_layout Plain Layout
13286 \begin_inset space \thinspace{}
13294 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13297 \begin_layout Plain Layout
13305 <cell alignment="center" valignment="top" usebox="none">
13308 \begin_layout Plain Layout
13312 \begin_layout Plain Layout
13325 \begin_layout Plain Layout
13338 \begin_layout Plain Layout
13351 \begin_layout Plain Layout
13360 Detector thickness [µm]
13365 <cell alignment="center" valignment="top" usebox="none">
13368 \begin_layout Plain Layout
13374 <cell alignment="center" valignment="top" usebox="none">
13377 \begin_layout Plain Layout
13383 <cell alignment="center" valignment="top" usebox="none">
13386 \begin_layout Plain Layout
13394 <cell alignment="center" valignment="top" topline="true" usebox="none">
13397 \begin_layout Plain Layout
13403 <cell alignment="center" valignment="top" topline="true" usebox="none">
13406 \begin_layout Plain Layout
13412 <cell alignment="center" valignment="top" topline="true" usebox="none">
13415 \begin_layout Plain Layout
13421 <cell alignment="center" valignment="top" topline="true" usebox="none">
13424 \begin_layout Plain Layout
13431 <row topspace="default">
13432 <cell alignment="center" valignment="top" usebox="none">
13435 \begin_layout Plain Layout
13436 Spatial resolution [µm]
13441 <cell alignment="center" valignment="top" usebox="none">
13444 \begin_layout Plain Layout
13450 <cell alignment="center" valignment="top" usebox="none">
13453 \begin_layout Plain Layout
13459 <cell alignment="center" valignment="top" usebox="none">
13462 \begin_layout Plain Layout
13469 <row topspace="default">
13470 <cell alignment="center" valignment="top" usebox="none">
13473 \begin_layout Plain Layout
13475 \begin_inset Formula $f_{\mathrm{max}}$
13483 <cell alignment="center" valignment="top" usebox="none">
13486 \begin_layout Plain Layout
13492 <cell alignment="center" valignment="top" usebox="none">
13495 \begin_layout Plain Layout
13501 <cell alignment="center" valignment="top" usebox="none">
13504 \begin_layout Plain Layout
13512 <cell alignment="center" valignment="top" topline="true" usebox="none">
13515 \begin_layout Plain Layout
13519 \begin_layout Plain Layout
13532 \begin_layout Plain Layout
13541 LSF-spatial resolution
13546 <cell alignment="center" valignment="top" topline="true" usebox="none">
13549 \begin_layout Plain Layout
13555 <cell alignment="center" valignment="top" topline="true" usebox="none">
13558 \begin_layout Plain Layout
13564 <cell alignment="center" valignment="top" topline="true" usebox="none">
13567 \begin_layout Plain Layout
13575 <cell alignment="center" valignment="top" usebox="none">
13578 \begin_layout Plain Layout
13584 <cell alignment="center" valignment="top" usebox="none">
13587 \begin_layout Plain Layout
13593 <cell alignment="center" valignment="top" usebox="none">
13596 \begin_layout Plain Layout
13602 <cell alignment="center" valignment="top" usebox="none">
13605 \begin_layout Plain Layout
13613 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13616 \begin_layout Plain Layout
13622 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13625 \begin_layout Plain Layout
13631 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13634 \begin_layout Plain Layout
13640 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13643 \begin_layout Plain Layout
13662 \begin_layout Section
13663 Vertical Table Alignment
13667 \begin_layout Plain Layout
13676 \begin_layout Standard
13677 To align tables vertically in a text line the table must be inside a box.
13678 The box can then be vertically aligned as described in section
13679 \begin_inset space ~
13683 \begin_inset CommandInset ref
13685 reference "sec:Box-Dialog"
13692 \begin_layout Standard
13693 In the following example the tables are inside a minipage
13697 \begin_layout Plain Layout
13698 Minipages are described in section
13699 \begin_inset space ~
13703 \begin_inset CommandInset ref
13705 reference "sec:Minipages"
13714 box that has a width of 15
13715 \begin_inset space \thinspace{}
13721 \begin_layout Itemize
13723 \begin_inset Box Frameless
13732 height_special "totalheight"
13735 \begin_layout Plain Layout
13736 \begin_inset Tabular
13737 <lyxtabular version="3" rows="3" columns="3">
13739 <column alignment="center" valignment="top" width="0">
13740 <column alignment="center" valignment="top" width="0">
13741 <column alignment="center" valignment="top" width="0">
13743 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13746 \begin_layout Plain Layout
13752 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13755 \begin_layout Plain Layout
13761 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13764 \begin_layout Plain Layout
13772 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13775 \begin_layout Plain Layout
13781 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13784 \begin_layout Plain Layout
13790 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13793 \begin_layout Plain Layout
13801 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13804 \begin_layout Plain Layout
13810 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13813 \begin_layout Plain Layout
13819 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13822 \begin_layout Plain Layout
13842 \begin_layout Plain Layout
13854 \begin_inset Box Frameless
13863 height_special "totalheight"
13866 \begin_layout Plain Layout
13867 \begin_inset Tabular
13868 <lyxtabular version="3" rows="3" columns="3">
13870 <column alignment="center" valignment="top" width="0">
13871 <column alignment="center" valignment="top" width="0">
13872 <column alignment="center" valignment="top" width="0">
13874 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13877 \begin_layout Plain Layout
13883 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13886 \begin_layout Plain Layout
13892 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13895 \begin_layout Plain Layout
13903 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13906 \begin_layout Plain Layout
13912 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13915 \begin_layout Plain Layout
13921 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13924 \begin_layout Plain Layout
13932 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13935 \begin_layout Plain Layout
13941 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13944 \begin_layout Plain Layout
13950 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13953 \begin_layout Plain Layout
13973 \begin_layout Plain Layout
13983 \begin_layout Itemize
13985 \begin_inset Box Frameless
13994 height_special "totalheight"
13997 \begin_layout Plain Layout
13998 \begin_inset Tabular
13999 <lyxtabular version="3" rows="3" columns="3">
14001 <column alignment="center" valignment="top" width="0">
14002 <column alignment="center" valignment="top" width="0">
14003 <column alignment="center" valignment="top" width="0">
14005 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14008 \begin_layout Plain Layout
14014 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14017 \begin_layout Plain Layout
14023 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14026 \begin_layout Plain Layout
14034 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14037 \begin_layout Plain Layout
14043 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14046 \begin_layout Plain Layout
14052 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14055 \begin_layout Plain Layout
14063 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14066 \begin_layout Plain Layout
14072 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14075 \begin_layout Plain Layout
14081 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14084 \begin_layout Plain Layout
14103 \begin_layout Itemize
14105 \begin_inset Box Frameless
14114 height_special "totalheight"
14117 \begin_layout Plain Layout
14118 \begin_inset Tabular
14119 <lyxtabular version="3" rows="3" columns="3">
14121 <column alignment="center" valignment="top" width="0">
14122 <column alignment="center" valignment="top" width="0">
14123 <column alignment="center" valignment="top" width="0">
14125 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14128 \begin_layout Plain Layout
14134 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14137 \begin_layout Plain Layout
14143 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14146 \begin_layout Plain Layout
14154 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14157 \begin_layout Plain Layout
14163 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14166 \begin_layout Plain Layout
14172 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14175 \begin_layout Plain Layout
14183 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14186 \begin_layout Plain Layout
14192 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14195 \begin_layout Plain Layout
14201 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14204 \begin_layout Plain Layout
14224 \begin_layout Plain Layout
14236 \begin_inset Box Frameless
14245 height_special "totalheight"
14248 \begin_layout Plain Layout
14249 \begin_inset Tabular
14250 <lyxtabular version="3" rows="3" columns="3">
14252 <column alignment="center" valignment="top" width="0">
14253 <column alignment="center" valignment="top" width="0">
14254 <column alignment="center" valignment="top" width="0">
14256 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14259 \begin_layout Plain Layout
14265 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14268 \begin_layout Plain Layout
14274 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14277 \begin_layout Plain Layout
14285 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14288 \begin_layout Plain Layout
14294 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14297 \begin_layout Plain Layout
14303 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14306 \begin_layout Plain Layout
14314 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14317 \begin_layout Plain Layout
14323 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14326 \begin_layout Plain Layout
14332 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14335 \begin_layout Plain Layout
14355 \begin_layout Plain Layout
14365 \begin_layout Standard
14366 As you can see, the content of the first and last table row is not correctly
14367 aligned with the text line where the table is in.
14368 To get this alignment, the minipage box must be set into a raisebox
14372 \begin_layout Plain Layout
14373 Raiseboxes are described in section
14374 \begin_inset space ~
14378 \begin_inset CommandInset ref
14380 reference "sub:Vertical-Alignment"
14390 In the example above the second table in the first item is aligned using
14391 the TeX-Code-command
14394 \begin_layout Standard
14404 \begin_layout Standard
14406 Behind the box the closing brace
14410 is inserted as TeX-Code.
14411 For the second table in the last item the command
14414 \begin_layout Standard
14424 \begin_layout Standard
14428 \begin_layout Standard
14429 \begin_inset Note Greyedout
14432 \begin_layout Plain Layout
14437 The alignment of the table row content to the surrounding text line is
14439 The needed factor of the
14445 command for this alignment depends on the document font, the font size,
14446 and the table line thickness.
14454 \begin_layout Section
14456 \begin_inset CommandInset label
14458 name "sec:Colored-Tables"
14466 \begin_layout Plain Layout
14475 \begin_layout Subsection
14480 \begin_layout Plain Layout
14481 Table Color ! for Cells
14490 \begin_layout Plain Layout
14491 Color ! for Table Cells
14499 \begin_layout Standard
14500 \begin_inset Float table
14506 \begin_layout Plain Layout
14507 \begin_inset Caption
14509 \begin_layout Plain Layout
14510 \begin_inset CommandInset label
14512 name "tab:Table-colored-without"
14516 Table colored without using the package
14521 \begin_inset OptArg
14524 \begin_layout Plain Layout
14525 Table without colortbl
14538 \begin_layout Plain Layout
14540 \begin_inset Tabular
14541 <lyxtabular version="3" rows="3" columns="3">
14543 <column alignment="center" valignment="top" width="0">
14544 <column alignment="center" valignment="top" width="0">
14545 <column alignment="center" valignment="top" width="0">
14547 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14550 \begin_layout Plain Layout
14558 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14561 \begin_layout Plain Layout
14569 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14572 \begin_layout Plain Layout
14582 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14585 \begin_layout Plain Layout
14593 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14596 \begin_layout Plain Layout
14604 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14607 \begin_layout Plain Layout
14617 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14620 \begin_layout Plain Layout
14628 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14631 \begin_layout Plain Layout
14639 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14642 \begin_layout Plain Layout
14663 \begin_layout Standard
14664 If you only need colored text, mark the cells and choose a color in the
14667 Edit\SpecialChar \menuseparator
14669 \begin_inset space ~
14675 This was used to create Table
14676 \begin_inset space ~
14680 \begin_inset CommandInset ref
14682 reference "tab:Table-colored-without"
14687 In any other case you have to use the LaTeX-package
14695 \begin_layout Plain Layout
14696 LaTeX-packages ! colortbl
14704 \begin_layout Standard
14708 \begin_layout Plain Layout
14718 \begin_inset Note Note
14721 \begin_layout Plain Layout
14722 The following section part will only be displayed when the LaTeX-package
14735 \begin_layout Standard
14736 To create colored tables,
14740 must be loaded in the preamble with the line
14743 \begin_layout Standard
14748 usepackage{colortbl}
14751 \begin_layout Standard
14752 The color of a column is adjusted with the command
14755 \begin_layout Standard
14760 columncolor{name of color}
14763 \begin_layout Standard
14769 More about the command
14773 is described in section
14774 \begin_inset space ~
14778 \begin_inset CommandInset ref
14780 reference "sub:Multicolumn-Calculations"
14787 \begin_layout Standard
14788 The following color names are predefined:
14791 \begin_layout Standard
14825 \begin_layout Standard
14826 \begin_inset VSpace medskip
14832 \begin_layout Standard
14833 You can also define your own color with the command
14836 \begin_layout Standard
14841 definecolor{color name}{color model}{color values}
14844 \begin_layout Standard
14845 The color model can be
14848 \begin_layout Labeling
14849 \labelwidthstring 00.00.0000
14850 cmyk: cyan, magenta, yellow, black
14853 \begin_layout Labeling
14854 \labelwidthstring 00.00.0000
14855 rgb: red, green blue
14858 \begin_layout Labeling
14859 \labelwidthstring 00.00.0000
14863 \begin_layout Standard
14864 and the color values are comma separated numbers between 0 and 1 describing
14865 the factor for the corresponding color of the color model.
14868 \begin_layout Standard
14870 \begin_inset space \thinspace{}
14874 \begin_inset space ~
14881 " in the preamble with
14884 \begin_layout Standard
14889 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
14892 \begin_layout Standard
14900 \begin_layout Standard
14905 definecolor{lightgray}{gray}{0.8}
14908 \begin_layout Standard
14909 \begin_inset VSpace medskip
14915 \begin_layout Standard
14916 Lines are colored with the command
14919 \begin_layout Standard
14924 rowcolor{name of color}
14927 \begin_layout Standard
14928 and cells are colored with the command
14931 \begin_layout Standard
14936 cellcolor{name of color}
14939 \begin_layout Standard
14940 Both commands are inserted at the beginning of a cell as TeX-Code.
14943 \begin_layout Standard
14944 To color characters in the table, mark the cells and use the LyX menu
14946 Edit\SpecialChar \menuseparator
14948 \begin_inset space ~
14954 If a cell contains TeX-Code mark only the characters, otherwise the colored
14955 TeX-Code will cause LaTeX-errors.
14958 \begin_layout Standard
14959 \begin_inset Note Greyedout
14962 \begin_layout Plain Layout
14967 Not all DVI-viewers are able to display self-defined colors.
14975 \begin_layout Standard
14976 \begin_inset VSpace bigskip
14982 \begin_layout Standard
14984 \begin_inset space ~
14988 \begin_inset CommandInset ref
14990 reference "tab:Table-colored-using"
14994 do the following: The color of the first column should be
15002 \begin_layout Standard
15007 columncolor{darkgreen}
15012 \begin_layout Standard
15013 as LaTeX-argument for this column.
15014 The first row should be blue, therefore the TeX-Code command
15017 \begin_layout Standard
15025 \begin_layout Standard
15026 is inserted to the first cell of this row.
15027 Note that this overwrites the column color for the first cell.
15028 The last cell of the last row is colored magenta by inserting the TeX-Code
15032 \begin_layout Standard
15040 \begin_layout Standard
15041 The characters could now be colored using the menu
15043 Edit\SpecialChar \menuseparator
15045 \begin_inset space ~
15053 \begin_layout Standard
15054 \begin_inset Float table
15060 \begin_layout Plain Layout
15061 \begin_inset Caption
15063 \begin_layout Plain Layout
15064 \begin_inset CommandInset label
15066 name "tab:Table-colored-using"
15070 Table colored using the package
15075 \begin_inset OptArg
15078 \begin_layout Plain Layout
15079 Table with colortbl
15092 \begin_layout Plain Layout
15094 \begin_inset Tabular
15095 <lyxtabular version="3" rows="3" columns="3">
15097 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
15098 <column alignment="center" valignment="top" width="0">
15099 <column alignment="center" valignment="top" width="0">
15101 <cell alignment="center" valignment="top" usebox="none">
15104 \begin_layout Plain Layout
15108 \begin_layout Plain Layout
15124 <cell alignment="center" valignment="top" usebox="none">
15127 \begin_layout Plain Layout
15135 <cell alignment="center" valignment="top" usebox="none">
15138 \begin_layout Plain Layout
15148 <cell alignment="center" valignment="top" usebox="none">
15151 \begin_layout Plain Layout
15159 <cell alignment="center" valignment="top" usebox="none">
15162 \begin_layout Plain Layout
15170 <cell alignment="center" valignment="top" usebox="none">
15173 \begin_layout Plain Layout
15183 <cell alignment="center" valignment="top" usebox="none">
15186 \begin_layout Plain Layout
15194 <cell alignment="center" valignment="top" usebox="none">
15197 \begin_layout Plain Layout
15205 <cell alignment="center" valignment="top" usebox="none">
15208 \begin_layout Plain Layout
15212 \begin_layout Plain Layout
15241 \begin_layout Standard
15245 \begin_layout Plain Layout
15255 \begin_inset Note Note
15258 \begin_layout Plain Layout
15259 The following will be displayed when the LaTeX-package
15271 \begin_layout Standard
15272 You need to install the package
15276 to see the content of this section in the output.
15279 \begin_layout Standard
15283 \begin_layout Plain Layout
15295 \begin_layout Subsection
15300 \begin_layout Plain Layout
15301 Table Color ! for Lines
15310 \begin_layout Plain Layout
15311 Color ! for Table Lines
15319 \begin_layout Standard
15320 As described in section
15321 \begin_inset space ~
15325 \begin_inset CommandInset ref
15327 reference "sub:Line-Thickness"
15331 , the line thickness for all lines in a table can be adjusted with the length
15340 \begin_inset space \thinspace{}
15343 pt for all tables of this section.
15347 \begin_layout Plain Layout
15353 arrayrulewidth}{1.5pt}
15361 \begin_layout Standard
15362 To color vertical lines for example with green, create the following column
15363 format in the document preamble, according to the description in section
15364 \begin_inset space ~
15368 \begin_inset CommandInset ref
15370 reference "sub:Customized-Format"
15377 \begin_layout Standard
15382 newcolumntype{W}{!{
15389 \begin_layout Standard
15391 \begin_inset space ~
15395 \begin_inset CommandInset ref
15397 reference "tab:Table-with-vertical-colored"
15405 was used for the last column and
15409 for the other columns.
15412 \begin_layout Standard
15413 If you want to have several colors, define more column formats.
15416 \begin_layout Standard
15417 \begin_inset Float table
15423 \begin_layout Plain Layout
15424 \begin_inset Caption
15426 \begin_layout Plain Layout
15427 \begin_inset CommandInset label
15429 name "tab:Table-with-vertical-colored"
15433 Table with colored vertical lines
15441 \begin_layout Plain Layout
15443 \begin_inset Tabular
15444 <lyxtabular version="3" rows="3" columns="3">
15446 <column alignment="center" valignment="top" width="0" special="Wc">
15447 <column alignment="center" valignment="top" width="0" special="Wc">
15448 <column alignment="center" valignment="top" width="0" special="WcW">
15450 <cell alignment="center" valignment="top" topline="true" usebox="none">
15453 \begin_layout Plain Layout
15459 <cell alignment="center" valignment="top" topline="true" usebox="none">
15462 \begin_layout Plain Layout
15468 <cell alignment="center" valignment="top" topline="true" usebox="none">
15471 \begin_layout Plain Layout
15479 <cell alignment="center" valignment="top" topline="true" usebox="none">
15482 \begin_layout Plain Layout
15488 <cell alignment="center" valignment="top" topline="true" usebox="none">
15491 \begin_layout Plain Layout
15497 <cell alignment="center" valignment="top" topline="true" usebox="none">
15500 \begin_layout Plain Layout
15508 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15511 \begin_layout Plain Layout
15517 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15520 \begin_layout Plain Layout
15526 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15529 \begin_layout Plain Layout
15548 \begin_layout Standard
15549 \begin_inset VSpace bigskip
15552 To color horizontal lines for example with red, like in Table
15553 \begin_inset space ~
15557 \begin_inset CommandInset ref
15559 reference "tab:Table-with-horizontal-colored"
15563 , insert these commands in TeX-Code before the table or table float:
15566 \begin_layout Standard
15576 \begin_inset Newline newline
15584 \begin_inset Newline newline
15591 \begin_layout Plain Layout
15602 arrayrulecolor{red}
15606 arrayrulecolor{black}}
15609 \begin_layout Standard
15613 \begin_layout Plain Layout
15624 \begin_layout Plain Layout
15633 \begin_layout Plain Layout
15637 arrayrulecolor{red}
15641 arrayrulecolor{black}}
15647 \begin_inset Float table
15653 \begin_layout Plain Layout
15654 \begin_inset Caption
15656 \begin_layout Plain Layout
15657 \begin_inset CommandInset label
15659 name "tab:Table-with-horizontal-colored"
15663 Table with colored horizontal lines
15671 \begin_layout Plain Layout
15673 \begin_inset Tabular
15674 <lyxtabular version="3" rows="3" columns="3">
15676 <column alignment="center" valignment="top" width="0">
15677 <column alignment="center" valignment="top" width="0">
15678 <column alignment="center" valignment="top" width="0">
15680 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15683 \begin_layout Plain Layout
15689 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15692 \begin_layout Plain Layout
15698 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15701 \begin_layout Plain Layout
15709 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15712 \begin_layout Plain Layout
15718 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15721 \begin_layout Plain Layout
15727 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15730 \begin_layout Plain Layout
15738 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15741 \begin_layout Plain Layout
15747 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15750 \begin_layout Plain Layout
15756 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
15759 \begin_layout Plain Layout
15778 \begin_layout Standard
15779 To return to the default line color black, insert this command in TeX-Code
15780 behind the table or table float:
15783 \begin_layout Standard
15795 \begin_layout Standard
15797 \begin_inset space ~
15801 \begin_inset CommandInset ref
15803 reference "tab:Table-with-colored"
15807 is an example with colored vertical and horizontal lines.
15810 \begin_layout Standard
15811 \begin_inset Float table
15817 \begin_layout Plain Layout
15818 \begin_inset Caption
15820 \begin_layout Plain Layout
15821 \begin_inset CommandInset label
15823 name "tab:Table-with-colored"
15827 Table with colored lines
15835 \begin_layout Plain Layout
15837 \begin_inset Tabular
15838 <lyxtabular version="3" rows="3" columns="3">
15840 <column alignment="center" valignment="top" width="0" special="Wc">
15841 <column alignment="center" valignment="top" width="0" special="Wc">
15842 <column alignment="center" valignment="top" width="0" special="WcW">
15844 <cell alignment="center" valignment="top" topline="true" usebox="none">
15847 \begin_layout Plain Layout
15853 <cell alignment="center" valignment="top" topline="true" usebox="none">
15856 \begin_layout Plain Layout
15862 <cell alignment="center" valignment="top" topline="true" usebox="none">
15865 \begin_layout Plain Layout
15873 <cell alignment="center" valignment="top" topline="true" usebox="none">
15876 \begin_layout Plain Layout
15882 <cell alignment="center" valignment="top" topline="true" usebox="none">
15885 \begin_layout Plain Layout
15891 <cell alignment="center" valignment="top" topline="true" usebox="none">
15894 \begin_layout Plain Layout
15901 <row topspace="default">
15902 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15905 \begin_layout Plain Layout
15911 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15914 \begin_layout Plain Layout
15920 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15923 \begin_layout Plain Layout
15942 \begin_layout Standard
15946 \begin_layout Plain Layout
15962 \begin_layout Standard
15966 \begin_layout Plain Layout
15972 arrayrulewidth}{0.4pt}
15980 \begin_layout Section
15981 Table Customization
15985 \begin_layout Plain Layout
15986 Table Customization
15995 \begin_layout Plain Layout
15996 Table ! Customization
16004 \begin_layout Subsection
16006 \begin_inset CommandInset label
16008 name "sub:Row-Spacing"
16016 \begin_layout Plain Layout
16017 Table Customization ! Row Spacing
16025 \begin_layout Standard
16026 You can add vertical space to table rows in the
16030 tab of the table dialog.
16031 You find there three possibilities:
16034 \begin_layout Description
16036 \begin_inset space ~
16040 \begin_inset space ~
16043 row will add space above the characters of the table row.
16044 If the table is a formal table
16048 \begin_layout Plain Layout
16049 Formal tables are explained in section
16050 \begin_inset space ~
16054 \begin_inset CommandInset ref
16056 reference "sec:Formal-Tables"
16065 LyX will insert as default 0.5
16066 \begin_inset space \thinspace{}
16070 For normal tables the inserted space will unfortunately destroy the vertical
16071 table lines as in the following table:
16072 \begin_inset VSpace medskip
16076 \begin_inset Newline newline
16080 \begin_inset space \hspace*{}
16085 \begin_inset space \hfill{}
16089 \begin_inset Tabular
16090 <lyxtabular version="3" rows="3" columns="1">
16092 <column alignment="center" valignment="top" width="0">
16094 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16097 \begin_layout Plain Layout
16104 <row topspace="3mm">
16105 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16108 \begin_layout Plain Layout
16110 \begin_inset space \thinspace{}
16113 mm space top of row
16120 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16123 \begin_layout Plain Layout
16135 \begin_inset space \hfill{}
16139 \begin_inset space \hspace*{}
16144 \begin_inset VSpace medskip
16148 \begin_inset Newline newline
16151 So inserting space to the top of row for normal tables is only useful when
16152 you don't have vertical lines.
16155 \begin_layout Description
16157 \begin_inset space ~
16161 \begin_inset space ~
16164 row will add space below the characters of the table row.
16165 If the table is a formal table LyX will insert as default 0.5
16166 \begin_inset space \thinspace{}
16169 em space, for normal tables the default size is 2
16170 \begin_inset space \thinspace{}
16176 \begin_layout Description
16178 \begin_inset space ~
16181 rows adds space between the current and the following row.
16182 If the table is a formal table LyX will insert as default 0.5
16183 \begin_inset space \thinspace{}
16187 For normal tables the inserted space will unfortunately destroy the vertical
16188 table lines as in the following table:
16189 \begin_inset VSpace medskip
16193 \begin_inset Newline newline
16197 \begin_inset space \hspace*{}
16202 \begin_inset space \hfill{}
16206 \begin_inset Tabular
16207 <lyxtabular version="3" rows="3" columns="1">
16209 <column alignment="center" valignment="top" width="0">
16211 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16214 \begin_layout Plain Layout
16221 <row interlinespace="3mm">
16222 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16225 \begin_layout Plain Layout
16226 \begin_inset Formula $\downarrow$
16230 \begin_inset space \thinspace{}
16233 mm space between row
16234 \begin_inset Formula $\downarrow$
16244 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16247 \begin_layout Plain Layout
16248 \begin_inset Formula $\uparrow$
16252 \begin_inset space \thinspace{}
16255 mm space between row
16256 \begin_inset Formula $\uparrow$
16270 \begin_inset space \hfill{}
16274 \begin_inset space \hspace*{}
16279 \begin_inset VSpace medskip
16283 \begin_inset Newline newline
16286 So inserting space between rows for normal tables is only useful when you
16287 don't have vertical lines.
16290 \begin_layout Standard
16291 \begin_inset VSpace bigskip
16294 When you want to add extra height to all cells of all tables, you can do
16295 this with the following preamble lines:
16298 \begin_layout Standard
16303 @ifundefined{extrarowheight}
16304 \begin_inset Newline newline
16311 \begin_layout Plain Layout
16322 usepackage{array}}{}
16323 \begin_inset Newline newline
16330 extrarowheight}{height}
16333 \begin_layout Standard
16334 But this has the disadvantage that the cell texts are no longer exactly
16335 vertically centered.
16340 will be loaded automatically by LyX when you use self defined table formats.
16341 To avoid that it is loaded twice the command
16347 is used in the above command.)
16350 \begin_layout Subsection
16351 Special Cell Alignment
16355 \begin_layout Plain Layout
16356 Table Customization ! Special Cell Alignment
16364 \begin_layout Standard
16365 Sometimes it looks better when the cell entries of a column are aligned
16366 with a special character, e.
16367 \begin_inset space \thinspace{}
16371 \begin_inset space ~
16374 with the decimal separator as in Table
16375 \begin_inset space ~
16379 \begin_inset CommandInset ref
16381 reference "tab:Table-cells-of"
16388 \begin_layout Standard
16389 \begin_inset Float table
16395 \begin_layout Plain Layout
16396 \begin_inset Caption
16398 \begin_layout Plain Layout
16399 \begin_inset CommandInset label
16401 name "tab:Table-cells-of"
16405 Table cells of a column aligned with the decimal separator.
16413 \begin_layout Plain Layout
16415 \begin_inset Tabular
16416 <lyxtabular version="3" rows="4" columns="2">
16418 <column alignment="right" valignment="top" width="0">
16419 <column alignment="left" valignment="top" width="0" special="@{}l">
16421 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16424 \begin_layout Plain Layout
16430 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16433 \begin_layout Plain Layout
16441 <cell alignment="center" valignment="top" usebox="none">
16444 \begin_layout Plain Layout
16450 <cell alignment="center" valignment="top" usebox="none">
16453 \begin_layout Plain Layout
16461 <cell alignment="center" valignment="top" usebox="none">
16464 \begin_layout Plain Layout
16470 <cell alignment="center" valignment="top" usebox="none">
16473 \begin_layout Plain Layout
16481 <cell alignment="center" valignment="top" usebox="none">
16484 \begin_layout Plain Layout
16490 <cell alignment="center" valignment="top" usebox="none">
16493 \begin_layout Plain Layout
16512 \begin_layout Standard
16513 This table was created with a 4×2 table.
16514 The heading is a centered multicolumn.
16515 The first column is right-aligned and contains the digits before the decimal
16516 point and the decimal point.
16517 The second column is left aligned and contains the digits after the decimal
16519 To omit the space that is normally between two table columns, use the following
16520 LaTeX-argument for the second column:
16523 \begin_layout Standard
16529 \begin_layout Standard
16531 \begin_inset space ~
16535 \begin_inset CommandInset ref
16537 reference "tab:Several-table-cell"
16541 shows some example alignments.
16542 For the alignment with the relation sign, you must add the second smallest
16543 math-space at the beginning of the last column to get the correct space
16544 surrounding the relation sign.
16547 \begin_layout Standard
16548 \begin_inset Float table
16553 \begin_layout Plain Layout
16554 \begin_inset Caption
16556 \begin_layout Plain Layout
16557 \begin_inset CommandInset label
16559 name "tab:Several-table-cell"
16563 Several table cell alignments.
16571 \begin_layout Plain Layout
16573 \begin_inset Tabular
16574 <lyxtabular version="3" rows="4" columns="6">
16576 <column alignment="right" valignment="top" width="0">
16577 <column alignment="left" valignment="top" width="0" special="@{}l">
16578 <column alignment="right" valignment="top" width="0">
16579 <column alignment="left" valignment="top" width="0" special="@{}l">
16580 <column alignment="right" valignment="top" width="0">
16581 <column alignment="left" valignment="top" width="0" special="@{}l">
16583 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16586 \begin_layout Plain Layout
16592 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16595 \begin_layout Plain Layout
16601 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16604 \begin_layout Plain Layout
16610 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16613 \begin_layout Plain Layout
16619 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16622 \begin_layout Plain Layout
16628 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16631 \begin_layout Plain Layout
16639 <cell alignment="center" valignment="top" usebox="none">
16642 \begin_layout Plain Layout
16648 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16651 \begin_layout Plain Layout
16653 \begin_inset space \thinspace{}
16661 <cell alignment="center" valignment="top" usebox="none">
16664 \begin_layout Plain Layout
16665 \begin_inset Formula $10\cdot$
16673 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16676 \begin_layout Plain Layout
16677 \begin_inset Formula $10^{\mbox{-}17}$
16685 <cell alignment="center" valignment="top" usebox="none">
16688 \begin_layout Plain Layout
16689 \begin_inset Formula $\Gamma(t)\propto$
16697 <cell alignment="center" valignment="top" usebox="none">
16700 \begin_layout Plain Layout
16701 \begin_inset Formula $\:\Upsilon(t)$
16711 <cell alignment="center" valignment="top" usebox="none">
16714 \begin_layout Plain Layout
16720 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16723 \begin_layout Plain Layout
16725 \begin_inset space \thinspace{}
16733 <cell alignment="center" valignment="top" usebox="none">
16736 \begin_layout Plain Layout
16737 \begin_inset Formula $5.78\cdot$
16745 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16748 \begin_layout Plain Layout
16749 \begin_inset Formula $10^{7}$
16757 <cell alignment="center" valignment="top" usebox="none">
16760 \begin_layout Plain Layout
16761 \begin_inset Formula $A\ne$
16769 <cell alignment="center" valignment="top" usebox="none">
16772 \begin_layout Plain Layout
16773 \begin_inset Formula $\: B_{\mathrm{red}}$
16783 <cell alignment="center" valignment="top" usebox="none">
16786 \begin_layout Plain Layout
16792 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16795 \begin_layout Plain Layout
16797 \begin_inset space \thinspace{}
16805 <cell alignment="center" valignment="top" usebox="none">
16808 \begin_layout Plain Layout
16810 \begin_inset Formula $33.5\cdot$
16818 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16821 \begin_layout Plain Layout
16822 \begin_inset Formula $10^{4}$
16830 <cell alignment="center" valignment="top" usebox="none">
16833 \begin_layout Plain Layout
16834 \begin_inset Formula $\sin(\alpha)\ge$
16842 <cell alignment="center" valignment="top" usebox="none">
16845 \begin_layout Plain Layout
16846 \begin_inset Formula $\:\sin(\beta)$
16867 \begin_layout Standard
16868 \begin_inset VSpace bigskip
16871 There is also the LaTeX-package
16879 \begin_layout Plain Layout
16880 LaTeX-packages ! dcolumn
16885 that provides table cell alignments.
16886 But this unfortunately treats the cell entries as math and doesn't allow
16887 formulas in table cells: The first column of Table
16888 \begin_inset space ~
16892 \begin_inset CommandInset ref
16894 reference "tab:Several-table-cell"
16902 like the first column in Table
16903 \begin_inset space ~
16907 \begin_inset CommandInset ref
16909 reference "tab:Alignments-when"
16913 and only with some tricks like the expected.
16914 The alignment of the second and third column of Table
16915 \begin_inset space ~
16919 \begin_inset CommandInset ref
16921 reference "tab:Several-table-cell"
16925 is not possible with
16932 \begin_layout Standard
16933 \begin_inset Float table
16939 \begin_layout Plain Layout
16940 \begin_inset Caption
16942 \begin_layout Plain Layout
16943 \begin_inset CommandInset label
16945 name "tab:Alignments-when"
16949 Alignments when LaTeX-package dcolumn is used.
16950 For all column alignments tricks have to be used to get the output.
16958 \begin_layout Plain Layout
16960 \begin_inset Tabular
16961 <lyxtabular version="3" rows="4" columns="3">
16963 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{-1}">
16964 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{4.9}">
16965 <column alignment="center" valignment="top" width="0" special="D{~}{\,}{9.7}">
16967 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16970 \begin_layout Plain Layout
16976 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16979 \begin_layout Plain Layout
16985 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16988 \begin_layout Plain Layout
16996 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16999 \begin_layout Plain Layout
17001 \begin_inset space \thinspace{}
17009 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17012 \begin_layout Plain Layout
17014 \begin_inset space \thinspace{}
17018 \begin_inset Formula $\mbox{bottles}$
17026 <cell alignment="center" valignment="top" usebox="none">
17029 \begin_layout Plain Layout
17034 \begin_layout Plain Layout
17044 \begin_inset Formula $\mbox{bottles}$
17054 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17057 \begin_layout Plain Layout
17059 \begin_inset space \thinspace{}
17067 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17070 \begin_layout Plain Layout
17072 \begin_inset space \thinspace{}
17076 \begin_inset Formula $\mbox{Pixels}$
17084 <cell alignment="center" valignment="top" usebox="none">
17087 \begin_layout Plain Layout
17092 \begin_layout Plain Layout
17102 \begin_inset Formula $\mbox{Pixels}$
17112 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17115 \begin_layout Plain Layout
17117 \begin_inset space \thinspace{}
17125 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17128 \begin_layout Plain Layout
17130 \begin_inset space \thinspace{}
17134 \begin_inset Formula $\mbox{cm}$
17142 <cell alignment="center" valignment="top" usebox="none">
17145 \begin_layout Plain Layout
17150 \begin_layout Plain Layout
17160 \begin_inset Formula $\mbox{cm}$
17181 \begin_layout Subsection
17182 Customized Cell/Column Format
17183 \begin_inset CommandInset label
17185 name "sub:Customized-Format"
17193 \begin_layout Plain Layout
17194 Table Customization ! Cell/Column Format
17202 \begin_layout Standard
17203 Calculating the needed width for spanned columns like in section
17204 \begin_inset space ~
17208 \begin_inset CommandInset ref
17210 reference "sub:Multicolumn-Calculations"
17214 is very annoying if you have several tables with multicolumn cells.
17215 To make life easier, you can define a cell/column format in the preamble,
17216 so that it can be used in all tables of the document.
17217 The format is defined with the command
17220 \begin_layout Standard
17225 newcolumntype{name of format}[number of arguments]{commands}
17228 \begin_layout Standard
17229 The format name may only consist of one letter.
17254 are predefined and cannot be used.
17255 But all letters are allowed as capitals.
17258 \begin_layout Standard
17259 \begin_inset VSpace medskip
17265 \begin_layout Standard
17266 For vertically and horizontally centered multicolumn cells with a fixed
17267 width you can define the cell format
17270 \begin_layout Standard
17275 newcolumntype{M}[1]{>{
17282 \begin_layout Standard
17289 avoids the problem of hyphenating the first word, as described in section
17290 \begin_inset space ~
17294 \begin_inset CommandInset ref
17296 reference "sub:Multiple-Lines-in"
17301 Now you can simply enter
17304 \begin_layout Standard
17310 \begin_layout Standard
17311 as LaTeX-argument in the table dialog to create a multicolumn.
17314 \begin_layout Standard
17315 \begin_inset VSpace bigskip
17321 \begin_layout Standard
17322 For cells spanned by a multicolumn cell, you can define the format
17325 \begin_layout Standard
17330 newcolumntype{S}[2]{>{
17335 \begin_inset Newline newline
17342 \begin_layout Plain Layout
17357 \begin_layout Plain Layout
17368 arrayrulewidth)*(1-#2))/#2}}
17371 \begin_layout Standard
17372 This format uses equation
17373 \begin_inset CommandInset ref
17379 to calculate the needed width so that each spanned cell has the same width.
17382 \begin_layout Standard
17386 \begin_layout Standard
17389 S{width of multicolumn cell}{number of spanned columns}
17392 \begin_layout Standard
17393 as LaTeX-argument of the column.
17396 \begin_layout Standard
17397 \begin_inset VSpace bigskip
17403 \begin_layout Standard
17404 For colored columns, you can define
17407 \begin_layout Standard
17412 newcolumntype{K}[1]{>{
17419 \begin_layout Standard
17421 \begin_inset Quotes eld
17425 \begin_inset Quotes erd
17428 at the end creates a column with a flexible width whose text is horizontally
17433 \begin_layout Standard
17439 \begin_layout Standard
17443 \begin_layout Standard
17444 \begin_inset VSpace bigskip
17450 \begin_layout Standard
17452 \begin_inset space ~
17456 \begin_inset CommandInset ref
17458 reference "tab:Table-using-user-defined"
17462 use the LaTeX-arguments
17465 \begin_layout Standard
17471 \begin_layout Standard
17472 for the first column and the multicolumn,
17475 \begin_layout Standard
17481 \begin_layout Standard
17482 for the the last column, and
17485 \begin_layout Standard
17491 \begin_layout Standard
17492 for the cells in the second column.
17495 \begin_layout Standard
17496 \begin_inset Float table
17502 \begin_layout Plain Layout
17503 \begin_inset Caption
17505 \begin_layout Plain Layout
17506 \begin_inset CommandInset label
17508 name "tab:Table-using-user-defined"
17512 Table using user-defined table formats
17520 \begin_layout Plain Layout
17522 \begin_inset Tabular
17523 <lyxtabular version="3" rows="3" columns="4">
17525 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
17526 <column alignment="center" valignment="middle" width="0" special="S{2.5cm}{2}">
17527 <column alignment="center" valignment="middle" width="0">
17528 <column alignment="center" valignment="middle" width="0" special="K{red}">
17530 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17533 \begin_layout Plain Layout
17534 verylongtablecellword
17539 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
17542 \begin_layout Plain Layout
17543 multiple lines multicolumn
17548 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17551 \begin_layout Plain Layout
17557 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17560 \begin_layout Plain Layout
17568 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17571 \begin_layout Plain Layout
17577 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17580 \begin_layout Plain Layout
17586 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17589 \begin_layout Plain Layout
17595 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17598 \begin_layout Plain Layout
17606 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17609 \begin_layout Plain Layout
17615 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17618 \begin_layout Plain Layout
17624 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17627 \begin_layout Plain Layout
17633 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17636 \begin_layout Plain Layout
17655 \begin_layout Subsection
17657 \begin_inset CommandInset label
17659 name "sub:Line-Thickness"
17667 \begin_layout Plain Layout
17668 Table Customization ! Line Thickness
17676 \begin_layout Standard
17677 The line thickness for all lines in a table can be adjusted with the length
17685 To set for example a line thickness of 1.5
17686 \begin_inset space \thinspace{}
17690 \begin_inset space ~
17694 \begin_inset CommandInset ref
17696 reference "tab:Table-with-1.5"
17700 , insert the command
17703 \begin_layout Standard
17710 arrayrulewidth}{1.5pt}
17713 \begin_layout Standard
17714 in TeX-Code before the table or table float.
17715 The changed thickness is valid for all following tables.
17716 To use the default value again, set
17723 \begin_inset space \thinspace{}
17726 pt in TeX-Code behind the table or table float.
17729 \begin_layout Standard
17733 \begin_layout Plain Layout
17739 arrayrulewidth}{1.5pt}
17745 \begin_inset Float table
17750 \begin_layout Plain Layout
17751 \begin_inset Caption
17753 \begin_layout Plain Layout
17754 \begin_inset CommandInset label
17756 name "tab:Table-with-1.5"
17761 \begin_inset space \thinspace{}
17772 \begin_layout Plain Layout
17774 \begin_inset Tabular
17775 <lyxtabular version="3" rows="3" columns="3">
17777 <column alignment="center" valignment="top" width="0">
17778 <column alignment="center" valignment="top" width="0">
17779 <column alignment="center" valignment="top" width="0">
17781 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17784 \begin_layout Plain Layout
17790 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17793 \begin_layout Plain Layout
17799 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17802 \begin_layout Plain Layout
17810 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17813 \begin_layout Plain Layout
17819 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17822 \begin_layout Plain Layout
17828 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17831 \begin_layout Plain Layout
17839 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17842 \begin_layout Plain Layout
17848 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17851 \begin_layout Plain Layout
17857 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17860 \begin_layout Plain Layout
17880 \begin_layout Plain Layout
17886 arrayrulewidth}{0.4pt}
17894 \begin_layout Standard
17895 \begin_inset VSpace bigskip
17898 To set the line thickness to 1.5
17899 \begin_inset space \thinspace{}
17902 pt only for horizontal lines, like in Table
17903 \begin_inset space ~
17907 \begin_inset CommandInset ref
17909 reference "tab:Table-with-horizontal"
17913 , insert these commands in TeX-Code before the table or table float:
17916 \begin_layout Standard
17926 \begin_inset Newline newline
17934 \begin_inset Newline newline
17943 arrayrulewidth 1.5pt}
17944 \begin_inset Newline newline
17955 arrayrulewidth 0.4pt}}
17958 \begin_layout Standard
17959 To return to the default line thickness, insert this command in TeX-Code
17960 behind the table or table float:
17963 \begin_layout Standard
17975 \begin_layout Standard
17979 \begin_layout Plain Layout
17990 \begin_layout Plain Layout
17999 \begin_layout Plain Layout
18007 arrayrulewidth 1.5pt}
18010 \begin_layout Plain Layout
18020 arrayrulewidth 0.4pt}}
18026 \begin_inset Float table
18031 \begin_layout Plain Layout
18032 \begin_inset Caption
18034 \begin_layout Plain Layout
18035 \begin_inset CommandInset label
18037 name "tab:Table-with-horizontal"
18042 \begin_inset space \thinspace{}
18045 pt thick horizontal lines
18053 \begin_layout Plain Layout
18055 \begin_inset Tabular
18056 <lyxtabular version="3" rows="3" columns="3">
18058 <column alignment="center" valignment="top" width="0">
18059 <column alignment="center" valignment="top" width="0">
18060 <column alignment="center" valignment="top" width="0">
18062 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18065 \begin_layout Plain Layout
18071 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18074 \begin_layout Plain Layout
18080 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18083 \begin_layout Plain Layout
18091 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18094 \begin_layout Plain Layout
18100 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18103 \begin_layout Plain Layout
18109 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18112 \begin_layout Plain Layout
18120 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18123 \begin_layout Plain Layout
18129 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18132 \begin_layout Plain Layout
18138 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18141 \begin_layout Plain Layout
18161 \begin_layout Plain Layout
18177 \begin_layout Standard
18178 \begin_inset VSpace bigskip
18181 To set the line thickness to 1.5
18182 \begin_inset space \thinspace{}
18185 pt only for vertical lines, create the following column format in the document
18186 preamble, according to the description in section
18187 \begin_inset space ~
18191 \begin_inset CommandInset ref
18193 reference "sub:Customized-Format"
18200 \begin_layout Standard
18205 newcolumntype{V}{!{
18207 vrule width 1.5pt}}
18210 \begin_layout Standard
18212 \begin_inset space ~
18216 \begin_inset CommandInset ref
18218 reference "tab:Table-with-vertical"
18225 \begin_layout Standard
18231 \begin_layout Standard
18232 was used for the last column and
18235 \begin_layout Standard
18241 \begin_layout Standard
18242 for the other columns.
18245 \begin_layout Standard
18246 \begin_inset Float table
18251 \begin_layout Plain Layout
18252 \begin_inset Caption
18254 \begin_layout Plain Layout
18255 \begin_inset CommandInset label
18257 name "tab:Table-with-vertical"
18262 \begin_inset space \thinspace{}
18265 pt thick vertical lines
18273 \begin_layout Plain Layout
18275 \begin_inset Tabular
18276 <lyxtabular version="3" rows="3" columns="3">
18278 <column alignment="center" valignment="top" width="0" special="Vc">
18279 <column alignment="center" valignment="top" width="0" special="Vc">
18280 <column alignment="center" valignment="top" width="0" special="VcV">
18282 <cell alignment="center" valignment="top" topline="true" usebox="none">
18285 \begin_layout Plain Layout
18291 <cell alignment="center" valignment="top" topline="true" usebox="none">
18294 \begin_layout Plain Layout
18300 <cell alignment="center" valignment="top" topline="true" usebox="none">
18303 \begin_layout Plain Layout
18311 <cell alignment="center" valignment="top" topline="true" usebox="none">
18314 \begin_layout Plain Layout
18320 <cell alignment="center" valignment="top" topline="true" usebox="none">
18323 \begin_layout Plain Layout
18329 <cell alignment="center" valignment="top" topline="true" usebox="none">
18332 \begin_layout Plain Layout
18340 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18343 \begin_layout Plain Layout
18349 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18352 \begin_layout Plain Layout
18358 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18361 \begin_layout Plain Layout
18380 \begin_layout Subsection
18385 \begin_layout Plain Layout
18386 Table Customization ! Dashed Lines
18394 \begin_layout Standard
18398 \begin_layout Plain Layout
18408 \begin_inset Note Note
18411 \begin_layout Plain Layout
18412 The following section will only be displayed when the LaTeX-package
18424 \begin_layout Standard
18425 \begin_inset Float table
18431 \begin_layout Plain Layout
18432 \begin_inset Caption
18434 \begin_layout Plain Layout
18435 \begin_inset CommandInset label
18437 name "tab:Table-with-dashed"
18441 Table with dashed lines
18449 \begin_layout Plain Layout
18451 \begin_inset Tabular
18452 <lyxtabular version="3" rows="5" columns="5">
18454 <column alignment="center" valignment="top" width="0">
18455 <column alignment="center" valignment="top" width="0">
18456 <column alignment="center" valignment="top" width="0" special=":c">
18457 <column alignment="center" valignment="top" width="0">
18458 <column alignment="center" valignment="top" width="0">
18460 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18463 \begin_layout Plain Layout
18469 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18472 \begin_layout Plain Layout
18478 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18481 \begin_layout Plain Layout
18487 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18490 \begin_layout Plain Layout
18496 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18499 \begin_layout Plain Layout
18507 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18510 \begin_layout Plain Layout
18516 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18519 \begin_layout Plain Layout
18525 <cell alignment="center" valignment="top" topline="true" usebox="none">
18528 \begin_layout Plain Layout
18534 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18537 \begin_layout Plain Layout
18543 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18546 \begin_layout Plain Layout
18554 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18557 \begin_layout Plain Layout
18561 \begin_layout Plain Layout
18575 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18578 \begin_layout Plain Layout
18584 <cell alignment="center" valignment="top" usebox="none">
18587 \begin_layout Plain Layout
18593 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18596 \begin_layout Plain Layout
18602 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
18605 \begin_layout Plain Layout
18613 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18616 \begin_layout Plain Layout
18620 \begin_layout Plain Layout
18634 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18637 \begin_layout Plain Layout
18643 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
18646 \begin_layout Plain Layout
18652 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none" special="c:">
18655 \begin_layout Plain Layout
18661 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18664 \begin_layout Plain Layout
18672 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18675 \begin_layout Plain Layout
18681 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18684 \begin_layout Plain Layout
18690 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18693 \begin_layout Plain Layout
18699 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18702 \begin_layout Plain Layout
18708 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18711 \begin_layout Plain Layout
18730 \begin_layout Standard
18731 LyX doesn't natively support dashed lines, so you have to use TeX-Code.
18732 As prerequisite the LaTeX-package
18740 \begin_layout Plain Layout
18741 LaTeX-packages ! arydshln
18746 must be loaded in the document preamble with the command
18749 \begin_layout Standard
18754 usepackage{arydshln}
18757 \begin_layout Standard
18758 To make a vertical line dashed, enter the colon
18759 \begin_inset Quotes eld
18763 \begin_inset Quotes erd
18766 together with the character for the horizontal alignment as LaTeX-argument
18767 in the table cell dialog.
18770 \begin_layout Standard
18771 For a horizontal dashed line add the command
18774 \begin_layout Standard
18782 \begin_layout Standard
18783 in TeX-Code as first element of the first cell in the table row.
18786 \begin_layout Standard
18787 For dashed multicolumn lines use the command
18790 \begin_layout Standard
18795 cdashline{line number
18800 \begin_layout Standard
18801 in TeX-Code as first element of the first cell in the table row.
18802 If you have for example a multicolumn spanning over columns 2 to 4 and
18803 you want to have a dashed line above, add the command
18806 \begin_layout Standard
18814 \begin_layout Standard
18815 as first element of the first cell in the row of the multicolumn.
18818 \begin_layout Standard
18819 \begin_inset VSpace bigskip
18825 \begin_layout Standard
18827 \begin_inset space ~
18831 \begin_inset CommandInset ref
18833 reference "tab:Table-with-dashed"
18838 \begin_inset Quotes eld
18846 \begin_inset Quotes erd
18849 as LaTeX-argument of the third column.
18850 The TeX-Code command
18856 was inserted to the first cell of the third row and the the TeX-Code command
18857 \begin_inset Newline newline
18866 was inserted to the first cell of the fourth row.
18869 \begin_layout Standard
18870 \begin_inset Note Greyedout
18873 \begin_layout Plain Layout
18878 The used LaTeX-package
18882 is apparently not compatible with the LaTeX-package
18890 \begin_layout Plain Layout
18891 LaTeX-packages ! colortbl
18896 that is used for colored tables in section
18897 \begin_inset space ~
18901 \begin_inset CommandInset ref
18903 reference "sec:Colored-Tables"
18908 That means colored tables cannot have dashed lines.
18916 \begin_layout Standard
18920 \begin_layout Plain Layout
18930 \begin_inset Note Note
18933 \begin_layout Plain Layout
18934 The following will be displayed when the LaTeX-package
18946 \begin_layout Standard
18947 You need to install the package
18951 to see the content of this section in the output.
18954 \begin_layout Standard
18958 \begin_layout Plain Layout
18970 \begin_layout Chapter
18975 \begin_layout Plain Layout
18984 \begin_layout Section
18986 \begin_inset CommandInset label
18988 name "sec:FloatIntroduction"
18996 \begin_layout Plain Layout
18997 Floats ! Introduction
19005 \begin_layout Standard
19006 A float is a block of text associated with some sort of label, which doesn't
19007 have a fixed location.
19009 \begin_inset Quotes eld
19013 \begin_inset Quotes erd
19016 forward or backward a page or two, to wherever it fits best.
19024 \begin_inset space ~
19029 are also floats, because they can float to the next page when there are
19030 too many notes at the page.
19033 \begin_layout Standard
19034 Floats allow a high quality layout.
19035 Images and tables can evenly be spread to the pages to avoid white space
19036 and pages without text.
19037 As the floating often destroys the context between the text and the image/table
19038 , every float can be referenced in the text.
19039 Floats are therefore numbered.
19040 Referencing is described in section
19041 \begin_inset space ~
19045 \begin_inset CommandInset ref
19047 reference "sec:Referencing-Floats"
19054 \begin_layout Standard
19055 To insert a float, use the menu
19057 Insert\SpecialChar \menuseparator
19065 inset, a box with a label.
19066 The label will automatically be translated to the document language in
19068 Behind the label you can insert the caption text.
19069 The image or table is inserted above or below the caption in a separate
19070 paragraph within the float.
19071 More about the caption placement is described in section
19072 \begin_inset space ~
19076 \begin_inset CommandInset ref
19078 reference "sec:Caption-Placement"
19083 To keep your LyX-document readable, you can open and close the float box
19084 by left-clicking on the box label.
19085 A closed float box looks like this:
19086 \begin_inset Graphics
19087 filename clipart/floatQt4.png
19089 scaleBeforeRotation
19093 -- a gray button with a red label.
19096 \begin_layout Standard
19097 It is recommended to insert floats as a separate paragraph to avoid possible
19098 LaTeX-errors that can occur when the surrounding text is specially formatted.
19101 \begin_layout Standard
19102 Existing figures or tables can be put into a float by marking them and then
19103 pressing the corresponding toolbar button for a new float.
19106 \begin_layout Section
19110 \begin_layout Standard
19111 Besides figure and table floats that are described in section
19112 \begin_inset space ~
19116 \begin_inset CommandInset ref
19118 reference "sec:Figure-Floats"
19123 \begin_inset CommandInset ref
19125 reference "sec:Table-Floats"
19129 , respectively, LyX offers the float types
19140 \begin_layout Subsection
19145 \begin_layout Plain Layout
19146 Floats ! Algorithms
19154 \begin_layout Standard
19155 \begin_inset Float algorithm
19161 \begin_layout Plain Layout
19162 \begin_inset Caption
19164 \begin_layout Plain Layout
19165 \begin_inset CommandInset label
19167 name "alg:Example-Algorithm-float"
19171 Example Algorithm float
19179 \begin_layout LyX-Code
19181 \begin_inset Newline newline
19184 Sum:= Sum + A(I); /*comment*/
19185 \begin_inset Newline newline
19189 \begin_inset VSpace -4mm
19200 \begin_layout Standard
19201 This float type is inserted with the menu
19203 Insert\SpecialChar \menuseparator
19204 Floats\SpecialChar \menuseparator
19208 It is used for program codes and descriptions of algorithms.
19209 A possible environment for algorithms is the
19213 , described in LyX's
19219 \begin_inset space ~
19223 \begin_inset CommandInset ref
19225 reference "alg:Example-Algorithm-float"
19229 is an example of an algorithm float where -4
19230 \begin_inset space \thinspace{}
19233 mm vertical space was added at the end of the float to have the bottom rule
19234 exactly below the last text line.
19237 \begin_layout Standard
19238 The float label is not automatically translated into the document language.
19239 If your document is not in English, you have to do this manually by adding
19240 the following line to the document preamble
19245 \begin_layout Standard
19250 floatname{algorithm}{your
19251 \begin_inset space ~
19257 \begin_layout Standard
19261 \begin_inset space ~
19267 \begin_inset Quotes eld
19275 \begin_inset Quotes erd
19281 \begin_layout Standard
19282 To insert the list of algorithms you can not use the menu
19284 Insert\SpecialChar \menuseparator
19286 \begin_inset space \thinspace{}
19290 \begin_inset space \thinspace{}
19293 TOC\SpecialChar \menuseparator
19296 when your document is a non-English one.
19297 In this case use this command in TeX-Code instead:
19300 \begin_layout Standard
19305 listof{algorithm}{your
19306 \begin_inset space ~
19312 \begin_layout Standard
19316 \begin_inset space ~
19322 \begin_inset Quotes eld
19330 \begin_inset Quotes erd
19336 \begin_layout Standard
19337 Algorithm floats are not by default numbered in the scheme
19338 \begin_inset Quotes eld
19342 \begin_inset Quotes erd
19345 like it is the case for table and figure floats in many document-classes.
19346 To number algorithm floats in the same scheme, add this command to your
19350 \begin_layout Standard
19355 numberwithin{algorithm}{chapter}
19358 \begin_layout Standard
19359 To be able to use the command
19368 \begin_inset space ~
19373 in the document settings the option
19376 \begin_inset space ~
19380 \begin_inset space ~
19384 \begin_inset space ~
19392 \begin_layout Subsection
19397 \begin_layout Plain Layout
19398 Floats ! Wrap Floats
19406 \begin_layout Standard
19407 \begin_inset Wrap figure
19414 \begin_layout Plain Layout
19415 \begin_inset Graphics
19416 filename clipart/mobius.eps
19418 scaleBeforeRotation
19419 rotateOrigin center
19426 \begin_layout Plain Layout
19427 \begin_inset Caption
19429 \begin_layout Plain Layout
19430 \begin_inset CommandInset label
19432 name "fig:This-is-a"
19436 This is a figure wrap float.
19446 This float type is used if you want to wrap text around a figure or table
19447 so that it only occupies some fraction of the column width.
19448 It can be inserted using the menu
19450 Insert\SpecialChar \menuseparator
19451 Floats\SpecialChar \menuseparator
19453 \begin_inset space ~
19457 \begin_inset space ~
19465 \begin_inset space ~
19469 \begin_inset space ~
19474 if the LaTeX-package
19482 \begin_layout Plain Layout
19483 LaTeX-packages ! wrapfig
19487 \begin_layout Plain Layout
19505 \begin_layout Plain Layout
19506 Installing a LaTeX-package is explained it in the
19509 \begin_inset space ~
19519 The settings of the float can be modified by right-clicking on the float
19521 The mandatory settings are the float
19534 that specifies how much the float is set into the paragraph
19535 \begin_inset space \thinspace{}
19539 \begin_inset space \thinspace{}
19542 page margin, and the
19545 \begin_inset space ~
19550 that specifies how many text lines the float will approximately need.
19551 The line span is often hard to be approximated, so better only use it when
19552 you encounter float placement problems.
19553 You can furthermore decide if LaTeX is allowed to let the float float within
19554 the paragraph or to surrounding paragraphs.
19556 \begin_inset space ~
19560 \begin_inset CommandInset ref
19562 reference "fig:This-is-a"
19566 is an example text wrap float with a width of 40
19567 \begin_inset space \thinspace{}
19571 \begin_inset space \thinspace{}
19574 cm overhang, set to the left.
19578 \begin_layout Plain Layout
19579 Available units are explained in appendix
19580 \begin_inset space ~
19584 \begin_inset CommandInset ref
19586 reference "cha:Units-available-in"
19598 \begin_layout Standard
19599 \begin_inset Note Greyedout
19602 \begin_layout Plain Layout
19608 \begin_inset space ~
19611 wrap float floats are fragile! E.
19612 \begin_inset space \thinspace{}
19616 \begin_inset space ~
19619 having a figure too close to the bottom of the page can mess things up in
19620 the way that the float doesn't appear in the output or that it is placed
19621 over some other text.
19629 \begin_layout Standard
19633 \begin_layout Itemize
19634 Wrap floats should not be placed in paragraphs that run over a page break.
19635 That means that wrap floats should better be inserted to the exact place
19636 when the document is nearly finished and you are able to estimate where
19637 page breaks will appear.
19640 \begin_layout Itemize
19641 Wrap floats should either be placed in an own paragraph before the paragraph
19642 where they should wrap into or within a paragraph.
19645 \begin_layout Itemize
19646 Wrap floats in consecutive paragraphs may cause troubles, so assure that
19647 there is a text paragraph between them as separator.
19650 \begin_layout Itemize
19651 Wrap floats are not allowed in section headings or tables.
19654 \begin_layout Section
19659 \begin_layout Plain Layout
19668 \begin_layout Standard
19669 Floats are usually numbered either independent from the sections the floats
19670 are in, or in the scheme
19671 \begin_inset Quotes eld
19675 \begin_inset Quotes erd
19679 \begin_inset Quotes eld
19683 \begin_inset Quotes erd
19687 This depends on the used document class.
19690 \begin_layout Standard
19691 To change the section independent numbering, you can use this command in
19692 the document preamble:
19695 \begin_layout Standard
19707 \begin_layout Standard
19714 is the command that prints the table number, for figure floats, the command
19728 prints in the command above the table number as small roman number.
19731 \begin_layout Standard
19732 To change the numbering scheme for example to
19733 \begin_inset Quotes eld
19737 \begin_inset Quotes erd
19740 , use this command in the preamble:
19743 \begin_layout Standard
19748 numberwithin{table}{subsection}
19751 \begin_layout Standard
19752 To be able to use the command
19761 \begin_inset space ~
19766 in the document settings the option
19769 \begin_inset space ~
19773 \begin_inset space ~
19777 \begin_inset space ~
19785 \begin_layout Standard
19786 Please also have a look at section
19787 \begin_inset space ~
19791 \begin_inset CommandInset ref
19793 reference "sub:Footnote-Numbering"
19797 for the details and important notes about the numbering commands.
19800 \begin_layout Section
19802 \begin_inset CommandInset label
19804 name "sec:Referencing-Floats"
19812 \begin_layout Plain Layout
19813 Floats ! References
19822 \begin_layout Plain Layout
19823 References ! to Floats
19831 \begin_layout Standard
19832 To reference a float, insert a label into its caption using the menu
19834 Insert\SpecialChar \menuseparator
19837 or the toolbar button
19838 \begin_inset Graphics
19839 filename ../images/label-insert.png
19841 scaleBeforeRotation
19846 A grey label box like this one:
19847 \begin_inset Graphics
19848 filename clipart/labelQt4.png
19850 scaleBeforeRotation
19854 will be inserted and the label window pops up asking for the label text.
19855 LyX offers as text the first words of the caption with a prefix.
19856 The prefix depends on the float type, e.
19857 \begin_inset space \thinspace{}
19861 \begin_inset space ~
19864 for figure floats the prefix will be "
19871 \begin_layout Standard
19872 The label is used as anchor and name for the reference.
19873 You can refer to the label using the menu
19875 Insert\SpecialChar \menuseparator
19878 or the toolbar button
19879 \begin_inset Graphics
19880 filename ../images/dialog-show-new-inset_ref.png
19882 scaleBeforeRotation
19887 A grey cross-reference box like this one:
19888 \begin_inset Graphics
19889 filename clipart/referenceQt4.png
19891 scaleBeforeRotation
19895 will be inserted and the cross-reference window appear showing all labels
19897 If you have multiple LyX-documents opened, choose the one you are working
19898 on from the drop-list at the top of the dialog.
19899 You can now sort the labels alphabetically and then choose one.
19900 At the position of the cross-reference box the float number will appear
19904 \begin_layout Standard
19905 It is recommended to use a protected space between the cross-reference name
19906 and its number to avoid line breaks between them.
19907 If a cross-reference refers to a non-existing label, you will see two question
19908 marks in the output instead of the reference.
19911 \begin_layout Standard
19912 You can change labels at any time by clicking on the label box.
19913 References to the changed label will automatically change its link to the
19914 new label text, so that you don't need to take care about this.
19917 \begin_layout Standard
19921 \begin_inset space ~
19925 \begin_inset space ~
19930 in the cross-reference window sets the cursor before the referred label.
19931 The button text changes then to Go
19932 \begin_inset space ~
19935 Back and you can use it to set the cursor back to the cross-reference.
19936 Right-clicking on a cross-reference box also sets the cursor before the
19937 referenced label but without a possibility to go back.
19940 \begin_layout Subsection
19941 Cross-Reference Formats
19942 \begin_inset CommandInset label
19944 name "sub:Cross-Reference-Formats"
19952 \begin_layout Plain Layout
19953 References ! Formats
19961 \begin_layout Standard
19962 There are six varieties of cross-references:
19965 \begin_layout Description
19966 <reference>: prints the float number, this is the default:
19967 \begin_inset CommandInset ref
19969 reference "fig:Two-distorted-images"
19976 \begin_layout Description
19977 (<reference>): prints the float number within two parentheses, this is the
19978 style normally used to reference formulas, especially when the reference
19980 \begin_inset Quotes eld
19984 \begin_inset Quotes erd
19988 \begin_inset CommandInset ref
19997 \begin_layout Description
19998 <page>: prints the page number: Page
19999 \begin_inset space ~
20003 \begin_inset CommandInset ref
20004 LatexCommand pageref
20005 reference "fig:Two-distorted-images"
20012 \begin_layout Description
20014 \begin_inset space ~
20018 \begin_inset space ~
20021 <page>: prints the text "on page" and the page number:
20022 \begin_inset CommandInset ref
20023 LatexCommand vpageref
20024 reference "fig:Two-distorted-images"
20031 \begin_layout Description
20033 \begin_inset space ~
20037 \begin_inset space ~
20041 \begin_inset space ~
20044 <page>: prints the float number, the text "on page", and the page number:
20046 \begin_inset CommandInset ref
20048 reference "fig:Two-distorted-images"
20055 \begin_layout Description
20057 \begin_inset space ~
20060 reference: prints a self defined cross-reference format.
20062 \begin_inset Note Greyedout
20065 \begin_layout Plain Layout
20070 This feature is only available when you have the LaTeX-package
20082 \begin_layout Standard
20083 Note that the style <page> won't print the page number if the label is on
20084 the previous, the same, or the next page.
20086 \begin_inset space \thinspace{}
20090 \begin_inset space ~
20094 \begin_inset Quotes eld
20102 \begin_inset Quotes erd
20108 \begin_layout Standard
20109 The number and current page of the referred document part in the output,
20110 is automatically calculated by LaTeX.
20111 The varieties are adjusted in the field
20115 of the cross-reference window, that appear when you click on the cross-referenc
20119 \begin_layout Subsection
20120 Automatic Reference Naming
20124 \begin_layout Plain Layout
20125 References ! Automatic Reference Naming
20133 \begin_layout Standard
20142 \begin_layout Plain Layout
20143 LaTeX-packages ! hyperref
20148 , that is enabled in the
20156 dialog, provides a very useful feature that cross-references automatically
20157 include the name of the referenced floats (or text parts like
20162 So you will save to write e.
20163 \begin_inset space \thinspace{}
20167 \begin_inset space ~
20171 \begin_inset Quotes eld
20175 \begin_inset Quotes erd
20178 before every reference to a figure.
20179 To use this feature, enable
20183 and insert this line to the LaTeX preamble:
20186 \begin_layout Standard
20202 \begin_layout Standard
20203 When you prefer other reference names than the default ones, for example
20204 you want instead of
20205 \begin_inset Quotes eld
20209 \begin_inset Quotes erd
20213 \begin_inset Quotes eld
20217 \begin_inset space \thinspace{}
20221 \begin_inset Quotes eld
20224 , you can redefine the name by inserting this to the preamble:
20227 \begin_layout Standard
20238 sectionautorefname}
20239 \begin_inset Newline newline
20246 \begin_layout Plain Layout
20260 \begin_layout Standard
20261 When you are using another document language than English, replace
20262 \begin_inset Newline newline
20277 , where *** is the name of the used language.
20280 \begin_layout Standard
20281 To get automatic names, but not for certain reference types, for example
20282 not for equations, use this preamble code:
20285 \begin_layout Standard
20293 \begin_inset Newline newline
20303 \begin_inset Newline newline
20314 equationautorefname}
20315 \begin_inset Newline newline
20322 \begin_layout Plain Layout
20338 \begin_layout Standard
20339 More about this topic can be found in
20344 \begin_inset CommandInset citation
20353 \begin_layout Standard
20354 \begin_inset Note Greyedout
20357 \begin_layout Plain Layout
20362 Automatic reference naming cannot be used when you use cross-references
20366 \begin_inset space ~
20371 style, as described in section
20372 \begin_inset space ~
20376 \begin_inset CommandInset ref
20378 reference "sub:Cross-Reference-Formats"
20390 \begin_layout Standard
20395 manual is an example where automatic reference naming is used.
20398 \begin_layout Subsection
20400 \begin_inset CommandInset label
20402 name "sub:Reference-Position"
20410 \begin_layout Plain Layout
20411 References ! Reference Position
20419 \begin_layout Standard
20428 \begin_layout Plain Layout
20429 LaTeX-packages ! hyperref
20442 dialog to link cross-references in the output, you will see that clicking
20443 on an image float reference jumps to the image label.
20444 The caption will be the first text part on the screen, so that you cannot
20445 see the image without scrolling.
20446 This is because the reference link anchor is placed at the position of
20448 With the use of the package
20456 \begin_layout Plain Layout
20457 LaTeX-packages ! hypcap
20462 , which is part of the LaTeX-package
20470 \begin_layout Plain Layout
20471 LaTeX-packages ! oberdiek
20476 , the link anchor is placed at the beginning of a float.
20477 To use this feature for figure floats, load
20481 in the document preamble with the line
20484 \begin_layout Standard
20489 usepackage[figure]{hypcap}
20492 \begin_layout Standard
20497 for all float types but this is not recommended for stability reasons.
20498 For more informations, have a look at
20503 \begin_inset CommandInset citation
20512 \begin_layout Standard
20513 \begin_inset Note Greyedout
20516 \begin_layout Plain Layout
20525 has no effect for references to subfigures.
20533 \begin_layout Section
20535 \begin_inset CommandInset label
20537 name "sec:Float-Placement"
20545 \begin_layout Plain Layout
20554 \begin_layout Standard
20555 Right-clicking on a float-box opens a dialog where you can alter the placement
20556 options that LaTeX uses for positioning the float.
20557 \begin_inset Newline newline
20563 \begin_inset space ~
20568 is only useful for two-column documents: If you select it, the float will
20569 span across both columns on the page instead of being confined to just
20571 \begin_inset Newline newline
20577 \begin_inset space ~
20582 is used to rotate floats, see section
20583 \begin_inset CommandInset ref
20585 reference "sec:Rotated-Floats"
20592 \begin_layout Standard
20593 You can use one ore more of the following options in the float dialog to
20594 set the placement for a particular float when you uncheck the option
20597 \begin_inset space ~
20601 \begin_inset space ~
20609 \begin_layout Description
20611 \begin_inset space ~
20615 \begin_inset space ~
20618 possible try to place the float on the position where it is inserted
20621 \begin_layout Description
20623 \begin_inset space ~
20627 \begin_inset space ~
20630 page try to place the float on the top of the current page
20633 \begin_layout Description
20635 \begin_inset space ~
20639 \begin_inset space ~
20642 page try to place the float on the bottom of the current page
20645 \begin_layout Description
20647 \begin_inset space ~
20651 \begin_inset space ~
20654 floats try to place the float on an own page
20657 \begin_layout Standard
20658 The order of the above option is
20663 That means, if you use the default placement, LaTeX will first try out
20667 \begin_inset space ~
20671 \begin_inset space ~
20679 \begin_inset space ~
20683 \begin_inset space ~
20688 , and then the others.
20689 If you don't use the default, LaTeX will try only the checked options but
20691 If none of the 4 placements are possible the procedure is internally repeated
20692 but it is tried to put the float on the following page.
20695 \begin_layout Standard
20696 By default, each option has its own rules:
20699 \begin_layout Labeling
20700 \labelwidthstring 00.00.0000
20704 \begin_inset space ~
20708 \begin_inset space ~
20713 only floats occupying less than 70
20714 \begin_inset space \thinspace{}
20717 % of the page can be placed at the top of a page (
20726 \begin_layout Labeling
20727 \labelwidthstring 00.00.0000
20731 \begin_inset space ~
20735 \begin_inset space ~
20740 : only floats occupying less than 30
20741 \begin_inset space \thinspace{}
20744 % of the page can be placed at the bottom of a page.
20754 \begin_layout Labeling
20755 \labelwidthstring 00.00.0000
20759 \begin_inset space ~
20763 \begin_inset space ~
20768 : only if more than 50
20769 \begin_inset space \thinspace{}
20772 % of the page are occupied by floats, several floats can be set together
20783 \begin_layout Standard
20784 If you don't like these rules, you can ignore them by using the additional
20788 \begin_inset space ~
20792 \begin_inset space ~
20798 \begin_inset Newline newline
20801 You can also redefine the rules with LaTeX-commands that are given in parenthese
20802 s behind the rules description above.
20803 To increase for example the often too small default of the bottom-rule
20805 \begin_inset space \thinspace{}
20808 % of the page, add this line to your document preamble:
20811 \begin_layout Standard
20818 bottomfraction}{0.5}
20821 \begin_layout Standard
20822 Sometimes you might need, under all circumstances, a float to be placed
20823 exactly at the position where it is inserted.
20824 For this case you can use the option
20827 \begin_inset space ~
20833 Use this option very rarely and only if the document is nearly ready to
20835 Because the float is then no longer able to
20836 \begin_inset Quotes eld
20840 \begin_inset Quotes erd
20843 when you change your document and this will often destroy the page layout.
20846 \begin_layout Standard
20847 There are no placement options for text wrap floats, because they are always
20848 surrounded by the text of a certain paragraph.
20849 \begin_inset VSpace bigskip
20855 \begin_layout Standard
20856 Sometimes you have the problem that a float is placed at the top of a page
20857 while its corresponding section starts at the middle of the page, so that
20858 the reader could think the float is part of the previous section.
20859 To avoid this the LaTeX-command
20866 It suppresses a given float placement for the page where it is inserted
20867 and can therefore be used to avoid that floats could be set before a section
20869 To get this, add these commands to your document preamble:
20872 \begin_layout Standard
20882 \begin_inset Newline newline
20896 \begin_layout Standard
20897 You can define the same for all section headings, like chapters and subsections.
20898 This definition is not recommended to be used for small text parts like
20899 subsubsections because LaTeX may then have problems to find a suitable
20903 \begin_layout Standard
20904 \begin_inset VSpace bigskip
20907 In some cases it is required to have all figures/tables at the end of the
20909 For this purpose the LaTeX-package
20917 \begin_layout Plain Layout
20918 LaTeX-packages ! endfloat
20924 It puts all figure and table floats at the end of the document into own
20926 At the original float position a text hint like
20927 \begin_inset Quotes eld
20933 \begin_inset space ~
20939 \begin_inset Quotes erd
20943 The endfloat-package is loaded in the preamble with the line
20946 \begin_layout Standard
20951 usepackage[options]{endfloat}
20954 \begin_layout Standard
20955 There are various package options to format the created figure/table sections.
20956 For more information we refer to the
20961 \begin_inset CommandInset citation
20968 \begin_inset Newline newline
20972 \begin_inset Note Greyedout
20975 \begin_layout Plain Layout
20980 doesn't provide an automatic translation for the text hint, you have to
20981 do this manually, see section
20982 \begin_inset space ~
20986 \begin_inset CommandInset citation
20998 \begin_inset Newline newline
21002 \begin_inset Note Greyedout
21005 \begin_layout Plain Layout
21010 There is currently a bug in
21014 when the caption contains a German
21015 \begin_inset Quotes eld
21019 \begin_inset Quotes erd
21023 Use in this case the command
21024 \begin_inset Quotes eld
21034 \begin_inset Quotes erd
21037 in TeX-Code instead of
21038 \begin_inset Quotes eld
21042 \begin_inset Quotes erd
21053 \begin_layout Standard
21054 \begin_inset VSpace bigskip
21057 For more details about float placements, have a look at LaTeX books,
21058 \begin_inset CommandInset citation
21060 key "latexcompanion,latexguide,latexbook"
21067 \begin_layout Section
21069 \begin_inset CommandInset label
21071 name "sec:Rotated-Floats"
21079 \begin_layout Plain Layout
21088 \begin_layout Standard
21089 Especially for wide tables you might have floats rotated.
21090 To rotate a whole float including the caption, right-click on the float-box
21094 \begin_inset space ~
21102 \begin_layout Standard
21103 Rotated floats are always placed on its own page (or column, in case you
21104 have a multi-column document).
21105 You can let them span several columns using the float settings option
21108 \begin_inset space ~
21114 Floats are rotated so that you can read them from the outside margin.
21115 To force a certain rotation direction for all pages, you can add either
21124 to the document class options.
21127 \begin_layout Standard
21128 Referencing rotated floats is the same like for normal floats, the caption
21129 format is also the same: Table
21130 \begin_inset space ~
21134 \begin_inset CommandInset ref
21136 reference "tab:Rotated-table"
21140 is an example of a rotated table float.
21143 \begin_layout Standard
21144 \begin_inset Note Greyedout
21147 \begin_layout Plain Layout
21152 Not all DVI-viewers are able to display rotated floats.
21160 \begin_layout Standard
21161 \begin_inset Float table
21166 \begin_layout Plain Layout
21167 \begin_inset Caption
21169 \begin_layout Plain Layout
21170 \begin_inset CommandInset label
21172 name "tab:Rotated-table"
21184 \begin_layout Plain Layout
21186 \begin_inset Tabular
21187 <lyxtabular version="3" rows="1" columns="5">
21189 <column alignment="center" valignment="top" width="0">
21190 <column alignment="center" valignment="top" width="0">
21191 <column alignment="center" valignment="top" width="0">
21192 <column alignment="center" valignment="top" width="0">
21193 <column alignment="center" valignment="top" width="0">
21195 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21198 \begin_layout Plain Layout
21204 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21207 \begin_layout Plain Layout
21213 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21216 \begin_layout Plain Layout
21222 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21225 \begin_layout Plain Layout
21231 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21234 \begin_layout Plain Layout
21253 \begin_layout Section
21254 Floats Side by Side
21258 \begin_layout Plain Layout
21259 Floats ! Side by side
21267 \begin_layout Standard
21268 To place floats side by side, like for Figure
21269 \begin_inset space ~
21273 \begin_inset CommandInset ref
21275 reference "fig:Float-left"
21280 \begin_inset CommandInset ref
21282 reference "fig:Float-right"
21291 In it two minipage boxes are inserted.
21295 \begin_layout Plain Layout
21296 Minipages are explained in section
21297 \begin_inset space ~
21301 \begin_inset CommandInset ref
21303 reference "sec:Minipages"
21312 The width is set to 45
21313 \begin_inset space \thinspace{}
21317 \begin_inset space \thinspace{}
21320 column% and the box alignment to
21325 The minipage boxes contain the image and the caption in the same way as
21326 they are in a float.
21327 The only difference is that the image unit
21330 \begin_inset space ~
21334 \begin_inset space ~
21339 is now calculated according to the width of the minipage boxes.
21342 \begin_layout Standard
21343 \begin_inset Float figure
21348 \begin_layout Plain Layout
21349 \begin_inset Box Frameless
21358 height_special "totalheight"
21361 \begin_layout Plain Layout
21363 \begin_inset Graphics
21364 filename clipart/mobius.eps
21367 scaleBeforeRotation
21374 \begin_layout Plain Layout
21375 \begin_inset Caption
21377 \begin_layout Plain Layout
21378 \begin_inset CommandInset label
21380 name "fig:Float-left"
21384 Float on the left side.
21395 \begin_inset space \hfill{}
21399 \begin_inset Box Frameless
21408 height_special "totalheight"
21411 \begin_layout Plain Layout
21413 \begin_inset Graphics
21414 filename clipart/platypus.eps
21417 scaleBeforeRotation
21424 \begin_layout Plain Layout
21425 \begin_inset Caption
21427 \begin_layout Plain Layout
21428 \begin_inset CommandInset label
21430 name "fig:Float-right"
21434 Float on the right side.
21447 \begin_layout Plain Layout
21456 \begin_layout Section
21461 \begin_layout Plain Layout
21462 Caption ! Formatting
21471 \begin_layout Plain Layout
21472 Floats ! Caption Formatting
21478 \begin_inset CommandInset label
21480 name "sec:Caption-Formatting"
21487 \begin_layout Standard
21492 environment is the default paragraph environment for
21497 On the LyX screen captions appear as label, e.
21498 \begin_inset space \thinspace{}
21502 \begin_inset space ~
21506 \begin_inset Quotes eld
21514 \begin_inset Quotes erd
21517 followed by the caption text.
21519 \begin_inset Quotes eld
21523 \begin_inset Quotes erd
21526 is the actual reference number.
21527 By default the label and the number are in the same font as the caption
21528 text and a colon follows the number to divide the label from the text.
21529 This caption format is not suitable for all document formats.
21533 \begin_layout Standard
21534 To change the default caption format, load the LaTeX-package
21542 \begin_layout Plain Layout
21543 LaTeX-packages ! caption
21548 in the document preamble with this line:
21551 \begin_layout Standard
21556 usepackage[format definition]{caption}
21559 \begin_layout Standard
21560 To have for example the label and the number in sans-serif bold font and
21561 the table captions always above the table like in this document, use the
21565 \begin_layout Standard
21570 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
21573 \begin_layout Standard
21574 You can also define different caption formats for the different float types.
21575 In this case load the
21579 package without format specific options and define the different formats
21580 with the help of the command
21583 \begin_layout Standard
21588 captionsetup[float type]{format definition}
21591 \begin_layout Standard
21592 in the document preamble.
21593 For example the caption formats of Figure
21594 \begin_inset space ~
21598 \begin_inset CommandInset ref
21600 reference "fig:This-is-an-fig"
21605 \begin_inset space ~
21609 \begin_inset CommandInset ref
21611 reference "tab:This-is-an-tab"
21615 can be created using these commands in the document preamble:
21618 \begin_layout Standard
21623 usepackage[tableposition=top]{caption}
21626 \begin_inset Newline newline
21633 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
21634 \begin_inset Newline newline
21641 \begin_layout Plain Layout
21649 captionsetup[figure]
21657 \begin_inset Newline newline
21662 captionsetup[table]{labelfont={bf,sf}}
21665 \begin_layout Standard
21666 \begin_inset Note Greyedout
21669 \begin_layout Plain Layout
21678 has no effect when a
21686 \begin_layout Plain Layout
21687 LaTeX-packages ! koma-script
21692 document class is used.
21693 In this case the document class option
21705 \begin_layout Standard
21706 For more information about the package
21710 we refer to its documentation
21711 \begin_inset CommandInset citation
21720 \begin_layout Standard
21721 To change the label name from e.g.
21723 \begin_inset Quotes eld
21727 \begin_inset Quotes erd
21731 \begin_inset Quotes eld
21735 \begin_inset Quotes erd
21738 use this preamble command:
21741 \begin_layout Standard
21748 fnum@figure}{Image~
21753 \begin_layout Standard
21760 inserts the figure number and
21763 \begin_inset Quotes eld
21769 \begin_inset Quotes erd
21772 creates a protected space.
21775 \begin_layout Standard
21776 \begin_inset VSpace bigskip
21787 \begin_layout Plain Layout
21788 LaTeX-packages ! koma-script
21795 article (koma-script)
21803 letter (koma-script)
21807 report (koma-script)
21810 \begin_inset space \thinspace{}
21813 ), you can alternatively to the
21821 's built-in command
21828 For example, to have the caption label in bold, add this command to your
21832 \begin_layout Standard
21837 setkomafont{captionlabel}{
21842 \begin_layout Standard
21843 For more information about
21854 \begin_inset CommandInset citation
21863 \begin_layout Standard
21867 \begin_layout Plain Layout
21871 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
21878 \begin_inset Note Note
21881 \begin_layout Plain Layout
21882 The caption format is changed only for this example.
21890 \begin_layout Standard
21891 \begin_inset Float figure
21897 \begin_layout Plain Layout
21899 \begin_inset Graphics
21900 filename clipart/mobius.eps
21903 scaleBeforeRotation
21910 \begin_layout Plain Layout
21911 \begin_inset Caption
21913 \begin_layout Plain Layout
21914 \begin_inset CommandInset label
21916 name "fig:This-is-an-fig"
21920 This is an example figure caption that is longer than one line to show the
21921 different caption format.
21922 Here a self-defined caption format is used.
21935 \begin_layout Standard
21939 \begin_layout Plain Layout
21943 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
21952 \begin_layout Standard
21953 \begin_inset Float table
21959 \begin_layout Plain Layout
21960 \begin_inset Caption
21962 \begin_layout Plain Layout
21963 \begin_inset CommandInset label
21965 name "tab:This-is-an-tab"
21969 This is an example table caption that is longer than one line to show the
21970 different caption format.
21971 Here the standard caption format for tables in this document is used.
21979 \begin_layout Plain Layout
21981 \begin_inset Tabular
21982 <lyxtabular version="3" rows="1" columns="5">
21984 <column alignment="center" valignment="top" width="0">
21985 <column alignment="center" valignment="top" width="0">
21986 <column alignment="center" valignment="top" width="0">
21987 <column alignment="center" valignment="top" width="0">
21988 <column alignment="center" valignment="top" width="0">
21990 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21993 \begin_layout Plain Layout
21999 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22002 \begin_layout Plain Layout
22008 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22011 \begin_layout Plain Layout
22017 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22020 \begin_layout Plain Layout
22026 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22029 \begin_layout Plain Layout
22048 \begin_layout Section
22053 \begin_layout Plain Layout
22054 Caption ! Placement
22063 \begin_layout Plain Layout
22064 Floats ! Caption Placement
22070 \begin_inset CommandInset label
22072 name "sec:Caption-Placement"
22079 \begin_layout Standard
22080 The common caption placement rule is:
22083 \begin_layout Description
22084 Figure: Caption is set below the figure
22087 \begin_layout Description
22088 Table: Caption is set above the table
22091 \begin_layout Standard
22092 Having the caption above the table is unfortunately not supported in LaTeX's
22094 That means if you are using the document classes
22110 there will be no space between the caption and the table.
22111 To insert the needed space, add the following option to the load command
22112 of the LaTeX-package
22116 in your document preamble
22120 \begin_layout Plain Layout
22122 \begin_inset space ~
22126 \begin_inset CommandInset ref
22128 reference "sec:Caption-Formatting"
22132 for more information of the package
22144 \begin_layout Standard
22150 \begin_layout Standard
22159 \begin_layout Plain Layout
22160 LaTeX-packages ! koma-script
22167 article (koma-script)
22175 letter (koma-script)
22179 report (koma-script)
22182 \begin_inset space \thinspace{}
22185 ), you can alternatively to the
22189 package set the document class option
22196 \begin_layout Standard
22197 \begin_inset VSpace bigskip
22200 It is also possible to set the caption beside a figure or table.
22201 To get this the LaTeX-package
22209 \begin_layout Plain Layout
22210 LaTeX-packages ! sidecap
22215 has to be loaded in the document preamble with the line
22218 \begin_layout Standard
22223 usepackage[option]{sidecap}
22226 \begin_layout Standard
22227 If you set no option, the caption is placed on the side of the outer page
22228 margin -- to the right on odd pages, to the left on even pages.
22229 You can change the placement to inner margin with the option
22234 To force the placement always to the right or left, use the option
22245 \begin_layout Standard
22249 \begin_layout Plain Layout
22259 \begin_inset Note Note
22262 \begin_layout Plain Layout
22263 The following section will only be displayed when the LaTeX-package
22275 \begin_layout Standard
22276 To place in LyX the caption of a float on the side, it is necessary to add
22277 these commands to the document preamble:
22280 \begin_layout Standard
22286 \begin_layout Standard
22294 \begin_inset Newline newline
22301 \begin_layout Plain Layout
22317 \begin_inset Newline newline
22324 \begin_layout Plain Layout
22340 \begin_inset Newline newline
22347 \begin_layout Plain Layout
22358 renewenvironment{table}{
22365 \begin_layout Standard
22373 \begin_inset Newline newline
22380 \begin_layout Plain Layout
22396 \begin_inset Newline newline
22403 \begin_layout Plain Layout
22421 \begin_layout Standard
22429 \begin_inset Newline newline
22436 \begin_layout Plain Layout
22452 \begin_inset Newline newline
22459 \begin_layout Plain Layout
22475 \begin_inset Newline newline
22482 \begin_layout Plain Layout
22493 renewenvironment{figure}{
22500 \begin_layout Standard
22508 \begin_inset Newline newline
22515 \begin_layout Plain Layout
22531 \begin_inset Newline newline
22538 \begin_layout Plain Layout
22556 \begin_layout Standard
22562 \begin_layout Standard
22563 The commands allow you to redefine the floats so that the caption is set
22565 For figure floats use the command
22568 \begin_layout Standard
22576 \begin_layout Standard
22577 in TeX-Code before the float.
22578 Behind the float insert the command
22581 \begin_layout Standard
22589 \begin_layout Standard
22590 in TeX-Code to get back to the original float definition.
22593 \begin_layout Standard
22594 For table floats use the corresponding commands
22597 \begin_layout Standard
22611 \begin_layout Standard
22613 \begin_inset space ~
22617 \begin_inset CommandInset ref
22619 reference "fig:cap-beside-fig"
22624 \begin_inset space ~
22628 \begin_inset CommandInset ref
22630 reference "tab:cap-beside-tab"
22634 are examples where the caption is set beside.
22637 \begin_layout Standard
22638 You can see in the examples that the caption text appears at the top of
22639 the floats for table floats and at the bottom for figure floats.
22640 To change this, you can use the command
22643 \begin_layout Standard
22648 sidecaptionvpos{float type}{placement}
22651 \begin_layout Standard
22652 in the document preamble or in TeX-Code before the float.
22653 The float type is either
22661 , the placement can be
22662 \begin_inset Quotes eld
22670 \begin_inset Quotes erd
22674 \begin_inset Quotes eld
22682 \begin_inset Quotes erd
22686 \begin_inset Quotes eld
22694 \begin_inset Quotes erd
22698 To have for example the caption of figure floats vertically centered, use
22702 \begin_layout Standard
22707 sidecaptionvpos{figure}{c}
22710 \begin_layout Standard
22711 This was used for Figure
22712 \begin_inset space ~
22716 \begin_inset CommandInset ref
22718 reference "fig:cap-beside-fig-2"
22725 \begin_layout Standard
22726 \begin_inset VSpace medskip
22729 For more information about the package
22733 we refer to its documentation
22734 \begin_inset CommandInset citation
22743 \begin_layout Standard
22744 \begin_inset Note Greyedout
22747 \begin_layout Plain Layout
22760 \begin_layout Plain Layout
22761 LaTeX-packages ! hypcap
22766 , described in section
22767 \begin_inset space ~
22771 \begin_inset CommandInset ref
22773 reference "sub:Reference-Position"
22777 , has no effect on floats with the caption set beside.
22785 \begin_layout Standard
22789 \begin_layout Plain Layout
22801 \begin_layout Standard
22802 \begin_inset Float figure
22807 \begin_layout Plain Layout
22808 \begin_inset Graphics
22809 filename clipart/escher-lsd.eps
22811 scaleBeforeRotation
22818 \begin_layout Plain Layout
22819 \begin_inset Caption
22821 \begin_layout Plain Layout
22822 \begin_inset CommandInset label
22824 name "fig:cap-beside-fig"
22828 This is a caption beside a figure.
22841 \begin_layout Standard
22845 \begin_layout Plain Layout
22857 \begin_layout Standard
22858 \begin_inset Float table
22863 \begin_layout Plain Layout
22864 \begin_inset Caption
22866 \begin_layout Plain Layout
22867 \begin_inset CommandInset label
22869 name "tab:cap-beside-tab"
22873 This is a caption beside a table.
22881 \begin_layout Plain Layout
22882 \begin_inset Tabular
22883 <lyxtabular version="3" rows="4" columns="5">
22885 <column alignment="center" valignment="top" width="0">
22886 <column alignment="center" valignment="top" width="0">
22887 <column alignment="center" valignment="top" width="0">
22888 <column alignment="center" valignment="top" width="0">
22889 <column alignment="center" valignment="top" width="0">
22891 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22894 \begin_layout Plain Layout
22900 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22903 \begin_layout Plain Layout
22909 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22912 \begin_layout Plain Layout
22918 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22921 \begin_layout Plain Layout
22927 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22930 \begin_layout Plain Layout
22938 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22941 \begin_layout Plain Layout
22947 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22950 \begin_layout Plain Layout
22956 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22959 \begin_layout Plain Layout
22965 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22968 \begin_layout Plain Layout
22974 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22977 \begin_layout Plain Layout
22985 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22988 \begin_layout Plain Layout
22994 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22997 \begin_layout Plain Layout
23003 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23006 \begin_layout Plain Layout
23012 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23015 \begin_layout Plain Layout
23021 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23024 \begin_layout Plain Layout
23032 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23035 \begin_layout Plain Layout
23041 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23044 \begin_layout Plain Layout
23050 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23053 \begin_layout Plain Layout
23059 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23062 \begin_layout Plain Layout
23068 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23071 \begin_layout Plain Layout
23090 \begin_layout Standard
23094 \begin_layout Plain Layout
23106 \begin_layout Standard
23110 \begin_layout Plain Layout
23114 sidecaptionvpos{figure}{c}
23120 \begin_inset Float figure
23125 \begin_layout Plain Layout
23126 \begin_inset Graphics
23127 filename clipart/escher-lsd.eps
23129 scaleBeforeRotation
23136 \begin_layout Plain Layout
23137 \begin_inset Caption
23139 \begin_layout Plain Layout
23140 \begin_inset CommandInset label
23142 name "fig:cap-beside-fig-2"
23146 This is a vertically centered caption beside a figure.
23159 \begin_layout Standard
23163 \begin_layout Plain Layout
23175 \begin_layout Standard
23179 \begin_layout Plain Layout
23189 \begin_inset Note Note
23192 \begin_layout Plain Layout
23193 The following will be displayed when the LaTeX-package
23205 \begin_layout Standard
23206 You need to install the LaTeX-package
23210 to see the following part of this section in the output.
23213 \begin_layout Standard
23217 \begin_layout Plain Layout
23229 \begin_layout Section
23234 \begin_layout Plain Layout
23235 Floats ! Float Lists
23243 \begin_layout Standard
23244 Similar to the the table of contents where the sections of the document
23245 are listed, there are listings for all float types, like the figures of
23247 You can insert them via the
23249 Insert\SpecialChar \menuseparator
23251 \begin_inset space ~
23255 \begin_inset space ~
23263 \begin_layout Standard
23264 The list entries are the float captions or its short title, the float number,
23265 and the page number where they appear in the document.
23268 \begin_layout Standard
23269 You can find the list of figures and tables at the end of this document.
23272 \begin_layout Chapter
23276 \begin_layout Section
23281 \begin_layout Plain Layout
23290 \begin_layout Standard
23291 Notes are inserted with the toolbar button
23292 \begin_inset Graphics
23293 filename ../images/note-insert.png
23295 scaleBeforeRotation
23301 Insert\SpecialChar \menuseparator
23305 There are three types of notes:
23308 \begin_layout Description
23310 \begin_inset space ~
23313 Note This note type is for internal notes that won't appear in the output.
23314 Its note-box looks like this:
23315 \begin_inset Newline newline
23319 \begin_inset Newline newline
23323 \begin_inset Graphics
23324 filename clipart/LyXNoteImageQt4.png
23327 scaleBeforeRotation
23332 \begin_inset Note Note
23335 \begin_layout Plain Layout
23336 This is text in a note box that doesn't appear in the output.
23344 \begin_layout Description
23345 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
23346 ent, when you export the document to LaTeX via the menu
23348 File\SpecialChar \menuseparator
23349 Export\SpecialChar \menuseparator
23350 LaTeX (pdflatex) / (plain)
23353 Its note-box looks like this:
23354 \begin_inset Newline newline
23358 \begin_inset Newline newline
23362 \begin_inset Graphics
23363 filename clipart/CommentNoteImageQt4.png
23366 scaleBeforeRotation
23371 \begin_inset Note Comment
23374 \begin_layout Plain Layout
23375 This is text in a note box that only appears as comment in LaTeX-files.
23383 \begin_layout Description
23385 \begin_inset space ~
23388 Out This note will appear in the output as grey text.
23389 Its note-box looks like this:
23390 \begin_inset Newline newline
23394 \begin_inset Newline newline
23398 \begin_inset Graphics
23399 filename clipart/GreyedOutNoteImageQt4.png
23402 scaleBeforeRotation
23407 \begin_inset Newline newline
23414 \begin_layout Plain Layout
23418 renewenvironment{lyxgreyedout}
23421 \begin_layout Plain Layout
23425 textcolor[gray]{0.8}
23435 \begin_inset Note Greyedout
23438 \begin_layout Plain Layout
23443 \begin_layout Plain Layout
23444 This is an example footnote within a greyed out note.
23449 of a comment that appears in the output as grey text.
23458 \begin_layout Plain Layout
23462 renewenvironment{lyxgreyedout}
23465 \begin_layout Plain Layout
23479 \begin_inset Note Note
23482 \begin_layout Plain Layout
23483 The greyed out note is here redefined to show it with the original LyX definitio
23484 n because greyed out notes are redefined in the preamble of this document,
23485 as described below, to have blue text.
23491 \begin_inset Newline newline
23495 \begin_inset Newline newline
23498 As you can see in the example, the first line of greyed out notes is a bit
23499 indented and greyed out notes can have footnotes.
23502 \begin_layout Standard
23503 \begin_inset VSpace bigskip
23506 When you use the toolbar button
23507 \begin_inset Graphics
23508 filename ../images/note-insert.png
23510 scaleBeforeRotation
23517 \begin_inset space ~
23523 You can switch between the five note types by right-clicking on the note-box.
23528 If you want to turn existing text into a note, mark it and click on the
23542 To change a note to text, press the backspace key when the cursor is in
23543 the first position of a note, or press the deletey key when the cursor
23544 is in the very last position of the note, respectively.
23547 \begin_layout Standard
23548 \begin_inset VSpace bigskip
23551 You can change the text color of the greyed out notes in the preamble with
23552 the following command:
23555 \begin_layout Standard
23560 renewenvironment{lyxgreyedout}
23561 \begin_inset Newline newline
23568 \begin_layout Plain Layout
23586 \begin_layout Standard
23587 The available colors and the method to define own colors is explained in
23589 \begin_inset space ~
23593 \begin_inset CommandInset ref
23595 reference "sec:Colored-Tables"
23602 \begin_layout Standard
23603 Notes that appear in blue in this document are set using greyed out notes
23607 \begin_layout Section
23609 \begin_inset CommandInset label
23611 name "sec:Footnotes"
23619 \begin_layout Plain Layout
23629 \begin_layout Plain Layout
23638 \begin_layout Standard
23639 Footnotes can be inserted using the toolbar button
23640 \begin_inset Graphics
23641 filename ../images/footnote-insert.png
23643 scaleBeforeRotation
23649 Insert\SpecialChar \menuseparator
23661 then the following footnote-box:
23662 \begin_inset Graphics
23663 filename clipart/footnoteQt4.png
23665 scaleBeforeRotation
23673 where you can enter the footnote text.
23674 If you want to turn existing text into a footnote, mark it and click on
23696 to text, press the Backspace key when the cursor is in the first position
23705 , or press the Delete key when the cursor is in the very last position of
23717 \begin_layout Standard
23718 Here is an example footnote:
23726 \begin_layout Plain Layout
23727 \begin_inset CommandInset label
23729 name "foot:This-is-an"
23733 This is an example footnote.
23746 \begin_layout Plain Layout
23750 newcounter{MyRepeatFoot}
23753 \begin_layout Plain Layout
23757 setcounter{MyRepeatFoot}{
23767 \begin_layout Standard
23768 The footnote will appear in the output as a superscript number at the text
23769 position where the footnote box is placed.
23770 The footnote text is placed at the bottom of the current page.
23771 The footnote number is calculated by LaTeX, the numbers are consecutive.
23772 It depends on your document-class, if the footnote number is reset for
23776 \begin_layout Standard
23777 Footnotes can be referenced like floats: Insert a label into the footnote
23778 and cross-reference this label in the text as described in section
23779 \begin_inset space ~
23783 \begin_inset CommandInset ref
23785 reference "sec:Referencing-Floats"
23790 \begin_inset Newline newline
23793 This is a cross-reference of Footnote
23794 \begin_inset space ~
23798 \begin_inset CommandInset ref
23800 reference "foot:This-is-an"
23807 \begin_layout Standard
23808 \begin_inset VSpace defskip
23811 To use footnotes within tables, you have to use minipages, see section
23812 \begin_inset space ~
23816 \begin_inset CommandInset ref
23818 reference "sec:Minipages"
23823 Footnotes within longtables are described in section
23824 \begin_inset space ~
23828 \begin_inset CommandInset ref
23830 reference "sub:Footnotes-in-Longtables"
23837 \begin_layout Standard
23838 \begin_inset VSpace defskip
23841 To create only a mark for a footnote, use the command
23845 footnotemark[number]
23848 This is used when you have the same annotation several times in a text
23849 but doesn't want to print the footnote text every time.
23850 \begin_inset Newline newline
23853 As you don't know the number of the repeating footnote while you are writing
23854 the text, you have to store its number.
23855 For the following footnote mark example, these commands were inserted in
23856 TeX-Code behind Footnote
23857 \begin_inset space ~
23861 \begin_inset CommandInset ref
23863 reference "foot:This-is-an"
23867 to store the footnote number:
23870 \begin_layout Standard
23875 newcounter{MyRepeatFoot}
23876 \begin_inset Newline newline
23881 setcounter{MyRepeatFoot}{
23886 \begin_layout Standard
23887 The footnote mark was then created with this command:
23890 \begin_layout Standard
23900 \begin_layout Standard
23901 Here is an example footnote mark:
23909 \begin_layout Plain Layout
23923 \begin_layout Subsection
23925 \begin_inset CommandInset label
23927 name "sub:Footnote-Numbering"
23935 \begin_layout Plain Layout
23936 Footnotes ! Numbering
23944 \begin_layout Standard
23945 To reset the footnote number back to 1 after each section
23947 , add this command to your document preamble:
23950 \begin_layout Standard
23955 @addtoreset{footnote}{section}
23958 \begin_layout Standard
23959 \begin_inset VSpace bigskip
23962 The following preamble command changes the footnote numbering style to small
23966 \begin_layout Standard
23978 \begin_layout Standard
23982 \begin_layout Plain Layout
23995 This is a footnote with roman numbering:
23999 \begin_layout Plain Layout
24000 This is an example footnote with roman numbering.
24008 \begin_layout Standard
24009 To change the numbering style to capital roman numerals replace in the command
24024 \begin_inset Quotes eld
24028 \begin_inset Quotes erd
24031 footnotes with capital or small Latin letters use
24045 \begin_inset Quotes eld
24049 \begin_inset Quotes erd
24052 footnotes with symbols use
24061 \begin_layout Standard
24062 \begin_inset Note Greyedout
24065 \begin_layout Plain Layout
24070 You can only number 26 footnotes with Latin letters, because this numbering
24071 is limited to single letters.
24077 \begin_inset Newline newline
24081 \begin_inset Note Greyedout
24084 \begin_layout Plain Layout
24089 You can only number 9 footnotes with symbols.
24097 \begin_layout Standard
24098 To return to the default numbering style when you changed to another one,
24111 in the command above.
24115 \begin_layout Plain Layout
24131 \begin_layout Standard
24132 \begin_inset VSpace bigskip
24138 \begin_layout Standard
24139 If you want to have footnotes numbered in the scheme
24140 \begin_inset Quotes eld
24144 \begin_inset Quotes erd
24147 , add the following command to your document preamble:
24150 \begin_layout Standard
24155 numberwithin{footnote}{chapter}
24158 \begin_layout Standard
24159 To be able to use the command
24168 \begin_inset space ~
24173 in the document settings the option
24176 \begin_inset space ~
24180 \begin_inset space ~
24184 \begin_inset space ~
24192 \begin_layout Standard
24196 \begin_layout Plain Layout
24200 numberwithin{footnote}{chapter}
24205 This is another example footnote:
24211 \begin_layout Plain Layout
24212 This is a footnote numbered in the scheme
24213 \begin_inset Quotes eld
24217 \begin_inset Quotes erd
24231 \begin_layout Plain Layout
24247 \begin_layout Standard
24248 \begin_inset Note Greyedout
24251 \begin_layout Plain Layout
24262 always prints out the footnote number as arabic number; previous redefinitions
24263 to get non-arabic numbers are overwritten.
24271 \begin_layout Standard
24272 So to get for example the scheme
24273 \begin_inset Quotes eld
24279 \begin_inset Quotes erd
24282 , use this command instead of
24291 \begin_layout Standard
24305 \begin_layout Subsection
24310 \begin_layout Plain Layout
24311 Footnotes ! Placement
24319 \begin_layout Standard
24320 If you have several footnotes in one page, they appear without vertical
24321 space between them at the bottom of the page.
24322 To make them better readable you can e.
24323 \begin_inset space \thinspace{}
24327 \begin_inset space ~
24331 \begin_inset space \thinspace{}
24334 mm space with the following preamble command:
24337 \begin_layout Standard
24347 \begin_inset Newline newline
24361 \begin_layout Standard
24362 \begin_inset VSpace bigskip
24365 In a two-column document the footnotes appear at the bottom of every column,
24367 \begin_inset space ~
24371 \begin_inset CommandInset ref
24373 reference "fig:Standard-footnote-placement"
24378 If the footnotes should only appear at the bottom of the right column,
24380 \begin_inset space ~
24384 \begin_inset CommandInset ref
24386 reference "fig:Footnote-placement-in"
24390 , use the LaTeX-package
24398 \begin_layout Plain Layout
24399 LaTeX-packages ! ftnright
24404 with this command in the document preamble:
24407 \begin_layout Standard
24412 usepackage{ftnright}
24415 \begin_layout Standard
24416 \begin_inset Float figure
24422 \begin_layout Plain Layout
24426 \begin_layout Plain Layout
24436 \begin_inset Graphics
24437 filename clipart/without_fntright.pdf
24439 scaleBeforeRotation
24447 \begin_layout Plain Layout
24457 \begin_layout Plain Layout
24458 \begin_inset Caption
24460 \begin_layout Plain Layout
24461 \begin_inset CommandInset label
24463 name "fig:Standard-footnote-placement"
24467 Standard footnote placement in two-column documents.
24480 \begin_layout Standard
24481 \begin_inset Float figure
24487 \begin_layout Plain Layout
24491 \begin_layout Plain Layout
24501 \begin_inset Graphics
24502 filename clipart/with_fntright.pdf
24504 scaleBeforeRotation
24512 \begin_layout Plain Layout
24522 \begin_layout Plain Layout
24523 \begin_inset Caption
24525 \begin_layout Plain Layout
24526 \begin_inset CommandInset label
24528 name "fig:Footnote-placement-in"
24532 Footnote placement in two-column documents when the LaTeX-package
24549 \begin_layout Standard
24550 \begin_inset VSpace bigskip
24553 In some scientific literature it is usual to collect the footnotes and print
24554 them in a separate paragraph at the the end of a section, like in Figure
24555 \begin_inset space ~
24559 \begin_inset CommandInset ref
24561 reference "fig:Endnotes----footnotes"
24566 They are then so called
24567 \begin_inset Quotes eld
24571 \begin_inset Quotes erd
24578 \begin_layout Plain Layout
24584 To use endnotes instead of footnotes in your document, load the LaTeX-package
24593 \begin_layout Plain Layout
24594 LaTeX-packages ! endnotes
24599 with the document preamble lines
24602 \begin_layout Standard
24607 usepackage{endnotes}
24608 \begin_inset Newline newline
24620 \begin_layout Standard
24621 To insert the collected footnotes, insert the command
24624 \begin_layout Standard
24632 \begin_layout Standard
24633 in TeX-Code at the the end of a section or chapter.
24636 \begin_layout Standard
24637 \begin_inset Float figure
24642 \begin_layout Plain Layout
24647 \begin_layout Plain Layout
24657 \begin_inset Graphics
24658 filename clipart/endnotes.pdf
24659 scaleBeforeRotation
24667 \begin_layout Plain Layout
24677 \begin_layout Plain Layout
24678 \begin_inset Caption
24680 \begin_layout Plain Layout
24681 \begin_inset CommandInset label
24683 name "fig:Endnotes----footnotes"
24687 Endnotes -- footnotes are printed in a separate paragraph at the end of
24688 sections or chapters.
24701 \begin_layout Standard
24702 \begin_inset VSpace medskip
24705 The paragraph heading for the endnotes isn't automatically translated into
24706 the document language, this must be done manually.
24707 The following preamble command translate the default English name
24708 \begin_inset Quotes eld
24712 \begin_inset Quotes erd
24715 to the German translation
24716 \begin_inset Quotes eld
24720 \begin_inset Quotes erd
24726 \begin_layout Standard
24733 notesname}{Anmerkungen}
24736 \begin_layout Standard
24737 \begin_inset VSpace medskip
24740 The numbering of endnotes can be changed like the footnote numbering as
24741 described in section
24742 \begin_inset space ~
24746 \begin_inset CommandInset ref
24748 reference "sub:Footnote-Numbering"
24752 ; just replace the command
24765 To reset the endnote number use the command
24771 as described in section
24772 \begin_inset space ~
24776 \begin_inset CommandInset ref
24778 reference "sub:Footnote-Numbering"
24782 and replace the command parameter
24793 \begin_layout Standard
24794 To create only a mark for an endnote, use the command
24798 endnotemark[number]
24800 similar to the command
24806 , described in section
24807 \begin_inset space ~
24811 \begin_inset CommandInset ref
24813 reference "sec:Footnotes"
24820 \begin_layout Standard
24821 \begin_inset VSpace bigskip
24824 Footnotes can also be placed in the page margin and the footnote text alignment
24825 can be changed, see the LaTeX-package
24833 \begin_layout Plain Layout
24834 LaTeX-packages ! footmisc
24840 \begin_inset CommandInset citation
24846 for more information about this.
24849 \begin_layout Standard
24850 For various further footnote formatting issues have a look at LaTeX-books,
24852 \begin_inset CommandInset citation
24854 key "latexcompanion,latexguide,latexbook"
24861 \begin_layout Section
24866 \begin_layout Plain Layout
24867 Notes ! Margin Notes
24875 \begin_layout Standard
24876 Margin notes look and behave in LyX like footnotes.
24877 They are inserted via the menu
24879 Insert\SpecialChar \menuseparator
24881 \begin_inset space ~
24886 or the toolbar button
24887 \begin_inset Graphics
24888 filename ../images/marginalnote-insert.png
24890 scaleBeforeRotation
24905 \begin_inset Quotes eld
24909 \begin_inset Quotes erd
24912 appears where you can enter the text of the margin note.
24915 \begin_layout Standard
24916 At the side is an example margin note.
24921 \begin_inset Marginal
24924 \begin_layout Plain Layout
24925 This is a margin note.
24933 \begin_layout Standard
24934 Margin notes appear at the right side in single-sided documents.
24935 In double-sided documents they appear in the outer margin -- left on even
24936 pages, right on odd pages.
24937 The text of margin notes is aligned opposite to the outer margin -- right-align
24938 ed when the note appears in the left margin.
24939 The first line of the margin note is placed at the position of the text
24940 line where it is inserted in the document.
24943 \begin_layout Standard
24944 \begin_inset VSpace bigskip
24947 To place the margin note in the inner margin, add the command
24950 \begin_layout Standard
24958 \begin_layout Standard
24959 in TeX-Code before a margin note.
24960 The new placement is valid for all following margin notes.
24965 \begin_layout Plain Layout
24975 \begin_inset Marginal
24978 \begin_layout Plain Layout
24979 This is a margin note in the inner margin.
24987 \begin_inset Newline newline
24993 \begin_inset Note Greyedout
24996 \begin_layout Plain Layout
25001 There is often not enough space in the inner margin so that the notes are
25002 not correctly displayed in the output.
25010 \begin_layout Standard
25011 To return to the default placement insert the command
25014 \begin_layout Standard
25022 \begin_layout Standard
25027 \begin_layout Plain Layout
25037 \begin_inset Note Greyedout
25040 \begin_layout Plain Layout
25045 The command is ignored when it is within a paragraph where also the command
25060 \begin_layout Standard
25061 \begin_inset VSpace bigskip
25068 \begin_inset Marginal
25071 \begin_layout Plain Layout
25072 AVeryLongMarginParWord that isn't hyphenated.
25080 Similar to the case described in section
25081 \begin_inset space ~
25085 \begin_inset CommandInset ref
25087 reference "sub:Multiple-Lines-in"
25091 , long words cannot be hyphenated when they are the first word in a margin
25093 To avoid this, insert 0
25094 \begin_inset space \thinspace{}
25097 pt horizontal space before the word
25102 \begin_inset Marginal
25105 \begin_layout Plain Layout
25106 \begin_inset space \hspace*{}
25110 AVeryLongMarginParWord that is hyphenated.
25118 \begin_layout Standard
25119 \begin_inset VSpace bigskip
25125 \begin_layout Standard
25126 \begin_inset Note Greyedout
25129 \begin_layout Plain Layout
25134 Margin notes can normally not be used inside tables, floats, and footnotes.
25142 \begin_layout Standard
25143 \begin_inset VSpace bigskip
25149 \begin_layout Standard
25153 \begin_layout Plain Layout
25163 \begin_inset Note Note
25166 \begin_layout Plain Layout
25167 The following section will only be displayed when the LaTeX-package
25179 \begin_layout Standard
25180 This restriction can be evaded by using the LaTeX-package
25188 \begin_layout Plain Layout
25189 LaTeX-packages ! marginnote
25195 By adding these two lines to your document preamble, the command used by
25196 LyX for margin notes is redefined to use the command provided by the
25203 \begin_layout Standard
25208 usepackage{marginnote}
25209 \begin_inset Newline newline
25221 \begin_layout Standard
25222 This is also used in this document because
25226 has another useful feature: You can set a vertical offset for the note.
25227 This is often needed when too many margin notes are too close together
25228 or for a better page layout.
25229 The offset is set in LyX as TeX-Code directly behind the margin note in
25233 \begin_layout Standard
25239 \begin_layout Standard
25240 where the offset is a length with one of the units listed in Table
25241 \begin_inset space ~
25245 \begin_inset CommandInset ref
25247 reference "tab:Units"
25252 A negative value shifts the note up, a positive value shifts it down.
25256 For example the margin note beside this text line is shifted up 1.5
25257 \begin_inset space \thinspace{}
25260 cm with the TeX-Code-command
25261 \begin_inset Quotes eld
25271 \begin_inset Quotes erd
25275 \begin_inset Marginal
25278 \begin_layout Plain Layout
25279 This margin note is shifted up 1.5
25280 \begin_inset space \thinspace{}
25283 cm from its original position.
25295 \begin_layout Plain Layout
25305 \begin_layout Standard
25306 \begin_inset VSpace medskip
25313 you can also change the alignment of the text in the margin note.
25314 For example the commands
25317 \begin_layout Standard
25324 raggedleftmarginnote}{
25327 \begin_inset Newline newline
25334 raggedrightmarginnote}{
25339 \begin_layout Standard
25340 set the alignment to centered.
25345 raggedleftmarginnote
25347 denotes margin notes that appear at the left side.
25354 \begin_layout Plain Layout
25360 raggedleftmarginnote}{
25365 \begin_layout Plain Layout
25371 raggedrightmarginnote}{
25379 \begin_inset Marginal
25382 \begin_layout Plain Layout
25383 The text of this margin note is centered.
25394 \begin_layout Standard
25401 raggedleftmarginnote}{
25404 \begin_inset Newline newline
25411 raggedrightmarginnote}{
25420 \begin_layout Plain Layout
25426 raggedleftmarginnote}{
25431 \begin_layout Plain Layout
25437 raggedrightmarginnote}{
25447 \begin_layout Standard
25448 \begin_inset VSpace medskip
25451 For the other features of
25455 we refer to its documentation
25456 \begin_inset CommandInset citation
25465 \begin_layout Standard
25466 \begin_inset VSpace bigskip
25469 You can adjust the layout of margin notes by changing its definition.
25470 To create for example a header for all margin notes with the underlined,
25471 sans-serif, and bold header text
25472 \begin_inset Quotes eld
25484 \begin_inset Quotes erd
25487 , add this to your document preamble:
25490 \begin_layout Standard
25500 \begin_inset Newline newline
25510 \begin_inset Newline newline
25517 \begin_layout Plain Layout
25534 underbar{Attention!}}}%
25535 \begin_inset Newline newline
25542 \begin_layout Plain Layout
25560 \begin_layout Standard
25567 \begin_layout Plain Layout
25578 \begin_layout Plain Layout
25589 \begin_layout Plain Layout
25597 underbar{Attention!}}}%
25600 \begin_layout Plain Layout
25614 \begin_inset Marginal
25617 \begin_layout Plain Layout
25618 This is a margin note with a defined heading.
25630 \begin_layout Plain Layout
25644 \begin_layout Plain Layout
25661 \begin_inset Note Note
25664 \begin_layout Plain Layout
25665 The margin note format is changed only for this example.
25673 \begin_layout Standard
25677 \begin_layout Plain Layout
25687 \begin_inset Note Note
25690 \begin_layout Plain Layout
25691 The following will be displayed when the LaTeX-package
25703 \begin_layout Standard
25704 You need to install the LaTeX-package
25708 to see the following part of this section in the output.
25711 \begin_layout Standard
25715 \begin_layout Plain Layout
25727 \begin_layout Chapter
25731 \begin_layout Section
25736 \begin_layout Plain Layout
25737 Boxes ! Introduction
25745 \begin_layout Standard
25746 Boxes are used to format a block of text.
25747 Boxes can be used to write documents with multiple languages, see section
25748 \begin_inset space ~
25752 \begin_inset CommandInset ref
25754 reference "sec:Minipages"
25758 , to frame texts, see section
25759 \begin_inset space ~
25763 \begin_inset CommandInset ref
25765 reference "sec:Decoration"
25769 , to prevent words to be hyphenated, see section
25770 \begin_inset space ~
25774 \begin_inset CommandInset ref
25776 reference "sec:Prevent-Hyphenation"
25780 , to align text, see section
25781 \begin_inset space ~
25785 \begin_inset CommandInset ref
25787 reference "sub:Vertical-Alignment"
25791 , or to set the background color of texts, see section
25792 \begin_inset space ~
25796 \begin_inset CommandInset ref
25798 reference "sec:Colored-Boxes"
25805 \begin_layout Standard
25806 Boxes can be inserted with the menu
25808 Insert\SpecialChar \menuseparator
25811 or the toolbar button
25812 \begin_inset Graphics
25813 filename ../images/box-insert.png
25815 scaleBeforeRotation
25820 A grey box with the label
25825 \begin_inset Graphics
25826 filename clipart/BoxInsetDefaultQt4.png
25828 scaleBeforeRotation
25833 The box type can be specified by right-clicking on the box.
25834 The appearing box dialog offers the
25837 \begin_inset space ~
25855 is the default for new boxes and is explained in section
25856 \begin_inset space ~
25860 \begin_inset CommandInset ref
25862 reference "sec:Minipages"
25870 is described in section
25871 \begin_inset space ~
25875 \begin_inset CommandInset ref
25877 reference "sec:Parboxes"
25884 \begin_layout Standard
25885 Boxes aren't numbered and can therefore not be referenced like floats or
25889 \begin_layout Standard
25890 \begin_inset Note Greyedout
25893 \begin_layout Plain Layout
25898 Boxes must not be the item in an
25914 \begin_layout Standard
25915 \begin_inset Note Greyedout
25918 \begin_layout Plain Layout
25923 For an unknown reason you can only set the
25926 \begin_inset space ~
25935 when you use a framed box.
25939 \begin_inset space ~
25944 type and without frames are explained in section
25945 \begin_inset space ~
25949 \begin_inset CommandInset ref
25951 reference "sec:Prevent-Hyphenation"
25963 \begin_layout Section
25965 \begin_inset CommandInset label
25967 name "sec:Box-Dialog"
25975 \begin_layout Plain Layout
25984 \begin_layout Subsection
25989 \begin_layout Plain Layout
25998 \begin_layout Standard
25999 In the box dialog you can adjust the box geometry in the fields
26008 The available units for the geometry are explained in Table
26009 \begin_inset space ~
26013 \begin_inset CommandInset ref
26015 reference "tab:Units"
26024 offers the following additional sizes:
26027 \begin_layout Description
26028 Depth This is the plain text
26029 \begin_inset Quotes eld
26033 \begin_inset Quotes erd
26037 It ignores the total depth when there are multiple text lines in the box:
26038 \begin_inset Newline newline
26042 \begin_inset Newline newline
26046 \begin_inset Newline newline
26050 \begin_inset Box Boxed
26059 height_special "depth"
26062 \begin_layout Plain Layout
26064 Box height set to 1
26065 \begin_inset space \thinspace{}
26074 \begin_inset Newline newline
26078 \begin_inset Newline newline
26084 \begin_layout Description
26085 Height This is the heigth of the text that is inside the box.
26087 \begin_inset space \thinspace{}
26091 \begin_inset space ~
26094 2 for this size will set the box heigth to 2 times the text height:
26095 \begin_inset Box Boxed
26104 height_special "height"
26107 \begin_layout Plain Layout
26109 Box height set to 2
26110 \begin_inset space \thinspace{}
26121 \begin_layout Description
26123 \begin_inset space ~
26126 Height This is the Height
26127 \begin_inset space \thinspace{}
26131 \begin_inset space \thinspace{}
26135 \begin_inset Box Boxed
26144 height_special "totalheight"
26147 \begin_layout Plain Layout
26149 Box height set to 1
26150 \begin_inset space \thinspace{}
26154 \begin_inset space ~
26165 \begin_layout Description
26166 Width This sets the width of the box as heigth:
26167 \begin_inset Box Boxed
26176 height_special "width"
26179 \begin_layout Plain Layout
26181 Box height set to 1
26182 \begin_inset space \thinspace{}
26193 \begin_layout Subsection
26198 \begin_layout Plain Layout
26207 \begin_layout Standard
26208 When you have chosen an
26211 \begin_inset space ~
26216 , the vertical box alignment can be:
26219 \begin_layout Description
26220 Top This is an example text line.
26222 \begin_inset Box Boxed
26231 height_special "totalheight"
26234 \begin_layout Plain Layout
26236 This box is top-aligned.
26241 This is an example text line.
26244 \begin_layout Description
26245 Middle This is an example text line.
26247 \begin_inset Box Boxed
26256 height_special "totalheight"
26259 \begin_layout Plain Layout
26261 This box is middle-aligned.
26266 This is an example text line.
26269 \begin_layout Description
26270 Bottom This is an example text line.
26272 \begin_inset Box Boxed
26281 height_special "totalheight"
26284 \begin_layout Plain Layout
26286 This box is bottom-aligned.
26291 This is an example text line.
26294 \begin_layout Standard
26295 \begin_inset Note Greyedout
26298 \begin_layout Plain Layout
26303 The vertical box aligment can be lost in the output when you have two boxes
26304 in a line and one has e.
26305 \begin_inset space \thinspace{}
26309 \begin_inset space ~
26312 a shadow and the other one not.
26320 \begin_layout Standard
26321 The horizontal box alignment can be set via LyX's paragraph dialog when
26322 you set the box into its own paragraph.
26325 \begin_layout Standard
26326 \begin_inset VSpace bigskip
26329 When you have chosen an
26332 \begin_inset space ~
26337 , the box content can be vertical aligned to:
26340 \begin_layout Description
26341 top This is an example text line.
26343 \begin_inset Box Boxed
26352 height_special "totalheight"
26355 \begin_layout Plain Layout
26357 This box text is top-aligned.
26362 This is an example text line.
26365 \begin_layout Description
26366 middle This is an example text line.
26368 \begin_inset Box Boxed
26377 height_special "totalheight"
26380 \begin_layout Plain Layout
26382 This box text is middle-aligned.
26387 This is an example text line.
26390 \begin_layout Description
26391 bottom This is an example text line.
26393 \begin_inset Box Boxed
26402 height_special "totalheight"
26405 \begin_layout Plain Layout
26407 This box text is bottom-aligned.
26412 This is an example text line.
26415 \begin_layout Description
26416 stretch This is an example text line.
26418 \begin_inset Box Boxed
26427 height_special "totalheight"
26430 \begin_layout Plain Layout
26435 \begin_layout Plain Layout
26440 \begin_layout Plain Layout
26447 This is an example text line.
26450 \begin_layout Standard
26451 To stretch the box content, it must consist of more than one paragraph.
26452 In the example above every text line is in an own paragraph.
26455 \begin_layout Standard
26456 \begin_inset VSpace bigskip
26459 To align the box content horizontally you can use LyX's paragraph dialog
26460 when you have chosen an
26463 \begin_inset space ~
26471 \begin_layout Standard
26473 \begin_inset Box Boxed
26482 height_special "totalheight"
26485 \begin_layout Plain Layout
26490 \begin_layout Plain Layout
26495 \begin_layout Plain Layout
26505 \begin_layout Standard
26506 If you haven't set an
26509 \begin_inset space ~
26514 , you can align the box content horizontally in the box dialog.
26517 \begin_layout Standard
26519 \begin_inset Box Boxed
26528 height_special "totalheight"
26531 \begin_layout Plain Layout
26533 This box text is horizontally stretched.
26541 \begin_layout Subsection
26543 \begin_inset CommandInset label
26545 name "sec:Decoration"
26553 \begin_layout Plain Layout
26562 \begin_layout Standard
26563 The type of the box can be specified in the box-dialog in the drop-down
26569 The following types are possible:
26572 \begin_layout Description
26574 \begin_inset space ~
26578 \begin_inset space ~
26581 frame This draws a rectangle frame around the box.
26582 The frame line thickness has the size of
26590 \begin_inset Box Boxed
26599 height_special "totalheight"
26602 \begin_layout Plain Layout
26612 \begin_layout Description
26614 \begin_inset space ~
26618 \begin_inset space ~
26621 break When you use the decoration
26623 simple rectangular frame
26625 and no inner box, you can allow page breaks within a box.
26626 Note that then, in contrary to other framed boxes, the frame always uses
26627 the whole column width, the box is set as its own paragraph, and
26639 has no effect on this box type.
26640 The frame line thickness has the size of
26648 \begin_inset Box Framed
26657 height_special "totalheight"
26660 \begin_layout Plain Layout
26661 Allow page break box
26669 \begin_layout Description
26671 \begin_inset space ~
26675 \begin_inset space ~
26678 thin This draws an oval frame around the box.
26679 The frame line thickness has the size 0.4
26680 \begin_inset space \thinspace{}
26685 \begin_inset Box ovalbox
26694 height_special "totalheight"
26697 \begin_layout Plain Layout
26707 \begin_layout Description
26709 \begin_inset space ~
26713 \begin_inset space ~
26716 thick This draws an oval frame around the box.
26717 The frame line thickness has the size 0.8
26718 \begin_inset space \thinspace{}
26723 \begin_inset Box Ovalbox
26732 height_special "totalheight"
26735 \begin_layout Plain Layout
26745 \begin_layout Description
26747 \begin_inset space ~
26750 shadow This draws a rectangle frame with a shadow around the box.
26751 The frame line thickness has the size of
26757 , the shadow has a width of 4
26758 \begin_inset space \thinspace{}
26763 \begin_inset Box Shadowbox
26772 height_special "totalheight"
26775 \begin_layout Plain Layout
26785 \begin_layout Description
26787 \begin_inset space ~
26790 background This draws a box with red background color.
26791 In contrary to colored boxes
26795 \begin_layout Plain Layout
26797 \begin_inset space \thinspace{}
26801 \begin_inset CommandInset ref
26803 reference "sec:Colored-Boxes"
26812 , it always uses the whole column width and the box is set as its own paragraph.
26814 \begin_inset Box Shaded
26823 height_special "totalheight"
26826 \begin_layout Plain Layout
26827 Shaded background box
26835 \begin_layout Description
26837 \begin_inset space ~
26841 \begin_inset space ~
26844 frame This draws a double-line rectangle frame around the box.
26845 The line thickness of the inner frame is 0.75
26846 \begin_inset space \thinspace{}
26855 , the thickness of the outer frame is 1.5
26856 \begin_inset space \thinspace{}
26866 The distance between the lines is 1.5
26867 \begin_inset space \thinspace{}
26877 \begin_inset space \thinspace{}
26881 \begin_inset space \thinspace{}
26885 \begin_inset space \thinspace{}
26890 \begin_inset Box Doublebox
26899 height_special "totalheight"
26902 \begin_layout Plain Layout
26904 Double rectangular box
26912 \begin_layout Standard
26913 \begin_inset VSpace bigskip
26916 LyX's box label will reflect the different frame types.
26917 To be able to use all types, the LaTeX-package
26925 \begin_layout Plain Layout
26926 LaTeX-packages ! fancybox
26934 \begin_layout Section
26939 \begin_layout Plain Layout
26940 Boxes ! Customization
26948 \begin_layout Standard
26949 The default value for the size
26956 \begin_inset space \thinspace{}
26960 It can be changed with the following command in TeX-Code to e.
26961 \begin_inset space \thinspace{}
26965 \begin_inset space ~
26969 \begin_inset space \thinspace{}
26975 \begin_layout Standard
26985 \begin_layout Standard
26989 \begin_layout Plain Layout
27001 \begin_inset Box Boxed
27010 height_special "totalheight"
27013 \begin_layout Plain Layout
27015 Rectangular box with
27022 \begin_inset space \thinspace{}
27026 \begin_inset space \thinspace{}
27030 \begin_inset space \thinspace{}
27042 \begin_layout Plain Layout
27056 \begin_layout Standard
27057 \begin_inset VSpace bigskip
27060 The space between the frame and the box content is for all frame styles
27062 \begin_inset space \thinspace{}
27066 You can change it by setting the length
27073 For example the command
27076 \begin_layout Standard
27086 \begin_layout Standard
27087 sets the value to 10
27088 \begin_inset space \thinspace{}
27091 pt, like for the following box:
27094 \begin_layout Standard
27098 \begin_layout Plain Layout
27110 \begin_inset Box Boxed
27119 height_special "totalheight"
27122 \begin_layout Plain Layout
27124 Rectangular box with
27131 \begin_inset space \thinspace{}
27135 \begin_inset space \thinspace{}
27139 \begin_inset space \thinspace{}
27151 \begin_layout Plain Layout
27165 \begin_layout Standard
27166 \begin_inset VSpace bigskip
27169 The diameter of the round corners of the oval boxes can be set with the
27180 \begin_layout Standard
27188 \begin_layout Standard
27189 sets the diameter to 1
27190 \begin_inset space \thinspace{}
27197 \begin_layout Standard
27205 \begin_layout Standard
27206 sets the diameter to
27209 \begin_inset space \thinspace{}
27213 \begin_inset space \thinspace{}
27216 minimum(width and heigth of box)
27228 \begin_layout Standard
27232 \begin_layout Plain Layout
27242 \begin_inset Box Ovalbox
27251 height_special "totalheight"
27254 \begin_layout Plain Layout
27263 \begin_inset space \thinspace{}
27267 \begin_inset space \thinspace{}
27271 \begin_inset space \thinspace{}
27283 \begin_layout Plain Layout
27295 \begin_layout Standard
27296 \begin_inset VSpace bigskip
27299 The size of the shadow can be adjusted by changing the length
27307 \begin_inset space \thinspace{}
27310 pt for the following box by this command:
27313 \begin_layout Standard
27323 \begin_layout Standard
27327 \begin_layout Plain Layout
27339 \begin_inset Box Shadowbox
27348 height_special "totalheight"
27351 \begin_layout Plain Layout
27360 \begin_inset space \thinspace{}
27364 \begin_inset space \thinspace{}
27368 \begin_inset space \thinspace{}
27380 \begin_layout Plain Layout
27394 \begin_layout Standard
27395 \begin_inset VSpace bigskip
27401 \begin_layout Standard
27402 The default value for the size
27409 \begin_inset space \thinspace{}
27413 The default space between the note content and the frame is 9
27414 \begin_inset space \thinspace{}
27417 pt and can be changed with the value of
27424 For example the frame appearance of the following
27428 is set with the TeX-Code commands
27431 \begin_layout Standard
27439 \begin_inset Newline newline
27449 \begin_layout Standard
27453 \begin_layout Plain Layout
27462 \begin_layout Plain Layout
27474 \begin_inset Box Framed
27483 height_special "totalheight"
27486 \begin_layout Plain Layout
27500 \begin_layout Plain Layout
27509 \begin_layout Plain Layout
27523 \begin_layout Standard
27524 \begin_inset VSpace bigskip
27530 \begin_layout Standard
27535 boxes the default space between the box content and the box border is 3
27536 \begin_inset space \thinspace{}
27539 pt and can be changed with the value of
27546 The default background color red can either be changed locally with the
27551 definecolor{shadebox}
27553 or globally with the menu
27555 Tools\SpecialChar \menuseparator
27556 Preferences\SpecialChar \menuseparator
27557 Colors\SpecialChar \menuseparator
27559 \begin_inset space ~
27571 command is explained in section
27572 \begin_inset space ~
27576 \begin_inset CommandInset ref
27578 reference "sec:Colored-Tables"
27586 \begin_layout Plain Layout
27593 requires the LaTeX-package
27597 in the preamble, see section
27598 \begin_inset space ~
27602 \begin_inset CommandInset ref
27604 reference "sec:Colored-Boxes"
27613 For example the appearance of the following shaded background note is set
27614 with the TeX-Code commands
27617 \begin_layout Standard
27627 \begin_inset Newline newline
27634 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
27637 \begin_layout Standard
27641 \begin_layout Plain Layout
27650 \begin_layout Plain Layout
27654 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
27660 \begin_inset Box Shaded
27669 height_special "totalheight"
27672 \begin_layout Plain Layout
27675 This is yellow text in a
27685 box with dark green background.
27694 \begin_layout Plain Layout
27703 \begin_layout Plain Layout
27707 definecolor{shadecolor}{rgb}{1,0,0}
27715 \begin_layout Standard
27716 \begin_inset VSpace bigskip
27719 Changed lengths and widths are valid for all boxes following the commands
27723 \begin_layout Section
27725 \begin_inset CommandInset label
27727 name "sec:Minipages"
27735 \begin_layout Plain Layout
27744 \begin_layout Standard
27745 Minipages are treated by LaTeX as pages within pages and can therefore for
27746 example have their own footnotes.
27749 \begin_layout Standard
27750 Minipages are useful when you write documents with different languages.
27753 \begin_layout Standard
27754 Below are two example minipages side by side.
27755 Their width is set to 45
27756 \begin_inset space \thinspace{}
27759 col% and they are separated by a horizontal fill, that was inserted via
27762 Insert\SpecialChar \menuseparator
27764 \begin_inset space ~
27767 Formatting\SpecialChar \menuseparator
27769 \begin_inset space ~
27775 \begin_inset Newpage newpage
27781 \begin_layout Standard
27782 \begin_inset Box Frameless
27791 height_special "totalheight"
27794 \begin_layout Plain Layout
27797 Dies ist ein deutscher Text.
27798 Dies ist ein deutscher Text.
27799 Dies ist ein deutscher Text.
27800 Dies ist ein deutscher Text.
27801 Dies ist ein deutscher Text.
27802 Dies ist ein deutscher Text.
27803 Dies ist ein deutscher Text.
27804 Dies ist ein deutscher Text.
27805 Dies ist ein deutscher Text.
27806 Dies ist ein deutscher Text.
27807 Dies ist ein deutscher Text.
27808 Dies ist ein deutscher Text.
27809 Dies ist ein deutscher Text
27813 \begin_layout Plain Layout
27816 Dies ist eine deutsche Fußnote.
27822 Dies ist ein deutscher Text.
27823 Dies ist ein deutscher Text.
27829 \begin_inset space \hfill{}
27833 \begin_inset Box Frameless
27842 height_special "totalheight"
27845 \begin_layout Plain Layout
27846 This is an English Text.
27847 This is an English Text.
27848 This is an English Text.
27849 This is an English Text.
27850 This is an English Text.
27851 This is an English Text.
27852 This is an English Text.
27853 This is an English Text.
27854 This is an English Text.
27855 This is an English Text.
27856 This is an English Text.
27857 This is an English Text.
27858 This is an English Text.
27859 This is an English Text.
27860 This is an English Text.
27861 This is an English Text.
27865 \begin_layout Plain Layout
27866 This is an English footnote.
27871 This is an English Text.
27880 \begin_layout Standard
27881 \begin_inset VSpace bigskip
27884 Another application for minipages are footnotes within tables.
27885 Due to a LaTeX restriction footnotes within tables doesn't appear at the
27886 bottom of the current page.
27887 But when you put the table with the footnote to a minipage, the footnote
27888 will appear at its bottom, numbered with Latin letters.
27889 The footnote number is reset to 1 in every minipage but not outside the
27893 \begin_layout Standard
27894 The footnote of this table doesn't appear:
27895 \begin_inset Tabular
27896 <lyxtabular version="3" rows="3" columns="4">
27898 <column alignment="center" valignment="top" width="0pt">
27899 <column alignment="center" valignment="top" width="0pt">
27900 <column alignment="center" valignment="top" width="0pt">
27901 <column alignment="center" valignment="top" width="0pt">
27903 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27906 \begin_layout Plain Layout
27912 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27915 \begin_layout Plain Layout
27921 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27924 \begin_layout Plain Layout
27929 \begin_layout Plain Layout
27930 This is a footnote within a table.
27940 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27943 \begin_layout Plain Layout
27951 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27954 \begin_layout Plain Layout
27960 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27963 \begin_layout Plain Layout
27969 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27972 \begin_layout Plain Layout
27978 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27981 \begin_layout Plain Layout
27989 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27992 \begin_layout Plain Layout
27998 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28001 \begin_layout Plain Layout
28007 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28010 \begin_layout Plain Layout
28016 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28019 \begin_layout Plain Layout
28033 \begin_layout Standard
28035 \begin_inset Box Frameless
28044 height_special "totalheight"
28047 \begin_layout Plain Layout
28049 \begin_inset Tabular
28050 <lyxtabular version="3" rows="3" columns="4">
28052 <column alignment="center" valignment="top" width="0pt">
28053 <column alignment="center" valignment="top" width="0pt">
28054 <column alignment="center" valignment="top" width="0pt">
28055 <column alignment="center" valignment="top" width="0pt">
28057 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28060 \begin_layout Plain Layout
28066 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28069 \begin_layout Plain Layout
28075 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28078 \begin_layout Plain Layout
28083 \begin_layout Plain Layout
28084 This is a footnote within a table.
28094 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28097 \begin_layout Plain Layout
28105 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28108 \begin_layout Plain Layout
28114 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28117 \begin_layout Plain Layout
28123 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28126 \begin_layout Plain Layout
28132 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28135 \begin_layout Plain Layout
28143 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28146 \begin_layout Plain Layout
28152 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28155 \begin_layout Plain Layout
28161 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28164 \begin_layout Plain Layout
28170 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28173 \begin_layout Plain Layout
28192 \begin_layout Standard
28193 \begin_inset VSpace bigskip
28196 The document-wide paragraph settings are ignored within minipages.
28197 That means that there will be no space between paragraphs in minipages
28198 although you set it to e.
28199 \begin_inset space \thinspace{}
28203 \begin_inset space ~
28210 in the document settings.
28213 \begin_layout Standard
28214 Minipages can also be used to set a background color for text parts, see
28216 \begin_inset space ~
28220 \begin_inset CommandInset ref
28222 reference "sub:Color-for-Paragraphs"
28229 \begin_layout Standard
28230 \begin_inset Note Greyedout
28233 \begin_layout Plain Layout
28238 You cannot have floats or margin notes inside minipages but minipages can
28239 be used inside tables, floats, and other boxes.
28247 \begin_layout Section
28249 \begin_inset CommandInset label
28251 name "sec:Parboxes"
28259 \begin_layout Plain Layout
28268 \begin_layout Standard
28269 Parboxes are very similar to minipages with the difference that they cannot
28271 The main difference to minipages is that minipages are in contrary to parboxes
28272 no real boxes but LaTeX-environments.
28275 \begin_layout Standard
28277 \begin_inset Box Frameless
28286 height_special "totalheight"
28289 \begin_layout Plain Layout
28290 This a text within a parbox.
28291 This a text within a parbox.
28294 \begin_layout Plain Layout
28295 This footnote won't appear:
28299 \begin_layout Plain Layout
28300 This footnote is inside a parbox and will therefore not appear.
28313 \begin_layout Section
28314 Boxes for Words and Characters
28318 \begin_layout Plain Layout
28319 Boxes ! for Characters
28327 \begin_layout Subsection
28328 Prevent Hyphenation
28329 \begin_inset CommandInset label
28331 name "sec:Prevent-Hyphenation"
28339 \begin_layout Plain Layout
28340 Boxes ! to Prevent Hyphenation
28348 \begin_layout Standard
28349 You can use a special kind of boxes to prevent words or text to be hyphenated.
28350 \begin_inset Newline newline
28353 Here is an example text:
28356 \begin_layout Standard
28357 This line is an example to show how you can prevent the hyphenation of
28358 \begin_inset Quotes eld
28362 \begin_inset Quotes erd
28368 \begin_layout Standard
28369 To prevent the hyphenation of the word
28370 \begin_inset Quotes eld
28374 \begin_inset Quotes erd
28380 \begin_layout Standard
28388 \begin_layout Standard
28389 in TeX-Code before the word.
28390 Behind the word insert a closing brace
28391 \begin_inset Quotes eld
28399 \begin_inset Quotes erd
28405 \begin_layout Standard
28406 This is the result:
28409 \begin_layout Standard
28410 This line is an example to show how you can prevent the hyphenation of
28414 \begin_layout Plain Layout
28424 \begin_inset Quotes eld
28428 \begin_inset Quotes erd
28435 \begin_layout Plain Layout
28445 \begin_layout Standard
28446 You can alternatively set the command
28447 \begin_inset Quotes eld
28457 \begin_inset Quotes grd
28460 as TeX-Code directly before the word:
28463 \begin_layout Standard
28464 This line is an example to show how you can prevent the hyphenation of
28465 \begin_inset Quotes eld
28472 \begin_layout Plain Layout
28482 \begin_inset Quotes erd
28488 \begin_layout Standard
28489 Of course the word now protrudes over the side margin.
28490 To avoid this, add via the menu
28492 Insert\SpecialChar \menuseparator
28494 \begin_inset space ~
28497 Formatting\SpecialChar \menuseparator
28499 \begin_inset space ~
28507 arg "newline-insert newline"
28510 ) a line break before the word:
28513 \begin_layout Standard
28514 This line is an example to show how you can prevent the hyphenation of
28515 \begin_inset Newline newline
28522 \begin_layout Plain Layout
28532 \begin_inset Quotes eld
28536 \begin_inset Quotes erd
28543 \begin_layout Plain Layout
28553 \begin_layout Subsection
28555 \begin_inset CommandInset label
28557 name "sub:Vertical-Alignment"
28565 \begin_layout Plain Layout
28566 Boxes ! for Vertical Alignment
28575 \begin_layout Plain Layout
28584 \begin_layout Standard
28585 With the help of the command
28591 you can align words, characters or other boxes vertically to the surrounding
28599 is used with the following scheme:
28602 \begin_layout Standard
28607 raisebox{lift}[height][depth]{box content}
28610 \begin_layout Standard
28611 The lift can be a positive value to raise the box or a negative value to
28615 \begin_layout Standard
28616 To align for example the word
28617 \begin_inset Quotes eld
28621 \begin_inset Quotes erd
28624 so that the bottom of the
28625 \begin_inset Quotes eld
28629 \begin_inset Quotes erd
28633 \begin_inset Quotes eld
28637 \begin_inset Quotes erd
28640 is at the baseline, insert the command
28643 \begin_layout Standard
28653 \begin_layout Standard
28654 in TeX-Code before the word.
28655 Behind the word insert a closing brace
28656 \begin_inset Quotes eld
28664 \begin_inset Quotes erd
28668 \begin_inset Newline newline
28671 This is the result:
28674 \begin_layout Standard
28675 This is a text line with the word
28679 \begin_layout Plain Layout
28691 \begin_inset Quotes eld
28695 \begin_inset Quotes erd
28702 \begin_layout Plain Layout
28712 \begin_layout Standard
28713 \begin_inset VSpace bigskip
28716 When you raise or lower characters in a line, the line distance will be
28720 \begin_layout Standard
28721 This is a text line with the word
28725 \begin_layout Plain Layout
28737 \begin_inset Quotes eld
28741 \begin_inset Quotes erd
28748 \begin_layout Plain Layout
28756 \begin_inset Newline newline
28759 This is a text line with the word
28763 \begin_layout Plain Layout
28773 \begin_inset Quotes eld
28777 \begin_inset Quotes erd
28784 \begin_layout Plain Layout
28794 \begin_layout Standard
28795 If you want to prevent this for a certain reason, set the box height to
28800 \begin_layout Standard
28810 \begin_layout Standard
28811 This is a text line with the word
28815 \begin_layout Plain Layout
28827 \begin_inset Quotes eld
28831 \begin_inset Quotes erd
28838 \begin_layout Plain Layout
28846 \begin_inset Newline newline
28849 This is a text line with the word
28853 \begin_layout Plain Layout
28857 raisebox{0.5cm}[0pt]{
28863 \begin_inset Quotes eld
28867 \begin_inset Quotes erd
28874 \begin_layout Plain Layout
28884 \begin_layout Section
28886 \begin_inset CommandInset label
28888 name "sec:Colored-Boxes"
28896 \begin_layout Plain Layout
28905 \begin_layout Subsection
28910 \begin_layout Plain Layout
28919 \begin_layout Standard
28920 To color the background of text the text must be put into a so called
28921 \begin_inset Quotes eld
28925 \begin_inset Quotes erd
28929 This requires that the LaTeX-package
28937 \begin_layout Plain Layout
28938 LaTeX-packages ! color
28943 is loaded in the document preamble with the command
28946 \begin_layout Standard
28951 @ifundefined{textcolor}
28952 \begin_inset Newline newline
28959 \begin_layout Plain Layout
28970 usepackage{color}}{}
28973 \begin_layout Standard
28978 will be loaded automatically by LyX when you color text
28982 \begin_layout Plain Layout
28983 To avoid that it is loaded twice the command
28997 \begin_layout Standard
28998 \begin_inset VSpace medskip
29001 Colorboxes are created with the command
29008 This will be used with the following scheme:
29011 \begin_layout Standard
29016 colorbox{color}{box content}
29019 \begin_layout Standard
29020 The box content can also be a box and colorboxes can also be within other
29024 \begin_layout Standard
29025 The following colors are predefined:
29026 \begin_inset Newline newline
29065 \begin_inset Newline newline
29068 You can also define your own color as described in section
29069 \begin_inset space ~
29073 \begin_inset CommandInset ref
29075 reference "sec:Colored-Tables"
29082 \begin_layout Standard
29084 \begin_inset space \thinspace{}
29088 \begin_inset space ~
29091 a red background for a word, insert the command
29094 \begin_layout Standard
29102 \begin_layout Standard
29103 before the word in TeX-Code.
29104 Behind the word insert a closing brace
29105 \begin_inset Quotes eld
29113 \begin_inset Quotes erd
29117 \begin_inset Newline newline
29120 This is the result:
29123 \begin_layout Standard
29124 This is a line where the word
29128 \begin_layout Plain Layout
29138 \begin_inset Quotes eld
29142 \begin_inset Quotes erd
29149 \begin_layout Plain Layout
29156 has a red background.
29159 \begin_layout Standard
29160 \begin_inset VSpace bigskip
29163 If you would have the box frame in a different color, you can use the command
29170 with the following scheme:
29173 \begin_layout Standard
29178 fcolorbox{frame color}{box color}{box content}
29181 \begin_layout Standard
29195 The frame thickness and the space between the frame and the box content
29196 can be adjusted with the lengths
29208 , respectively, as described in section
29209 \begin_inset space ~
29213 \begin_inset CommandInset ref
29215 reference "sec:Decoration"
29222 \begin_layout Standard
29223 For the following example the command
29226 \begin_layout Standard
29231 fcolorbox{cyan}{magenta}{
29234 \begin_layout Standard
29238 \begin_layout Standard
29239 Here is an example where the frame line thickness was set to 1
29240 \begin_inset space \thinspace{}
29244 \begin_inset Newline newline
29251 \begin_layout Plain Layout
29266 \begin_layout Plain Layout
29270 fcolorbox{cyan}{magenta}{
29275 This is text within a colored, framed box.
29279 \begin_layout Plain Layout
29289 \begin_layout Standard
29290 \begin_inset VSpace bigskip
29293 Of course you can also have colored text inside a colorbox:
29294 \begin_inset Newline newline
29301 \begin_layout Plain Layout
29305 fcolorbox{cyan}{magenta}{
29312 This is colored text within a colored, framed box.
29318 \begin_layout Plain Layout
29329 \begin_layout Plain Layout
29343 \begin_layout Standard
29346 \begin_inset VSpace medskip
29352 \begin_layout Standard
29353 \begin_inset Note Greyedout
29356 \begin_layout Plain Layout
29361 Text in colorboxes cannot have line breaks.
29362 To color multiple text lines or paragraphs, use a box inside a colorbox
29363 as described in the following.
29371 \begin_layout Subsection
29372 Color for Paragraphs
29373 \begin_inset CommandInset label
29375 name "sub:Color-for-Paragraphs"
29383 \begin_layout Plain Layout
29384 Color ! for Paragraphs
29392 \begin_layout Standard
29393 To set the background color for more than one text line, put the text into
29395 Before the minipage insert the
29404 \begin_layout Standard
29412 \begin_layout Standard
29414 Behind the minipage insert a closing brace
29415 \begin_inset Quotes eld
29423 \begin_inset Quotes erd
29429 \begin_layout Standard
29433 \begin_layout Plain Layout
29437 colorbox{lightgrey}{
29443 \begin_inset Box Frameless
29452 height_special "totalheight"
29455 \begin_layout Plain Layout
29456 This is text with background color.
29457 This is text with background color.
29460 \begin_layout Plain Layout
29461 \begin_inset VSpace defskip
29464 The text can have footnotes
29468 \begin_layout Plain Layout
29469 Another example footnote
29474 and can include tables and figures.
29477 \begin_layout Plain Layout
29479 \begin_inset Tabular
29480 <lyxtabular version="3" rows="3" columns="3">
29482 <column alignment="center" valignment="top" width="0">
29483 <column alignment="center" valignment="top" width="0">
29484 <column alignment="center" valignment="top" width="0">
29486 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29489 \begin_layout Plain Layout
29495 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29498 \begin_layout Plain Layout
29504 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29507 \begin_layout Plain Layout
29515 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29518 \begin_layout Plain Layout
29524 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29527 \begin_layout Plain Layout
29529 \begin_inset Quotes erd
29537 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29540 \begin_layout Plain Layout
29548 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29551 \begin_layout Plain Layout
29557 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29560 \begin_layout Plain Layout
29566 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29569 \begin_layout Plain Layout
29589 \begin_layout Plain Layout
29599 \begin_layout Section
29600 Rotated and Scaled Boxes
29603 \begin_layout Standard
29604 To use the the commands described in this section, the LaTeX-package
29612 \begin_layout Plain Layout
29613 LaTeX-packages ! graphicx
29618 needs to be loaded in the document preamble with the command
29621 \begin_layout Standard
29626 @ifundefined{rotatebox}
29627 \begin_inset Newline newline
29634 \begin_layout Plain Layout
29645 usepackage{graphicx}}{}
29648 \begin_layout Standard
29649 \begin_inset Note Greyedout
29652 \begin_layout Plain Layout
29657 Some DVI-viewers can't display rotated or scaled material.
29665 \begin_layout Standard
29666 \begin_inset Note Greyedout
29669 \begin_layout Plain Layout
29674 Floats mustn't be inside a rotated or scaled box.
29682 \begin_layout Subsection
29687 \begin_layout Plain Layout
29697 \begin_layout Plain Layout
29707 \begin_layout Plain Layout
29717 \begin_layout Plain Layout
29718 Table Customization ! Rotating
29726 \begin_layout Standard
29727 To rotate material, you can put it into a rotated box.
29728 Such a box is created using the command
29734 in TeX-Code with the following scheme:
29737 \begin_layout Standard
29742 rotatebox[rotation origin]{rotation angle}{box content}
29745 \begin_layout Standard
29746 The rotation origin is specified in the form
29751 The following positions are possible:
29771 (top), and also expedient combinations of the four base positions.
29776 means, that the rotation origin is at the top left corner of the box.
29777 When no rotation origin is specified, the position
29782 The rotation angle is a number that can be negative that specifies the
29784 The rotation direction is counterclockwise.
29787 \begin_layout Standard
29788 In the following example the command
29792 rotatebox[origin=c]{60}{
29794 was inserted as TeX-Code before the text
29795 \begin_inset Quotes eld
29799 \begin_inset Quotes erd
29802 ; after the text the box was closed by a closing brace
29809 \begin_layout Standard
29814 \begin_layout Plain Layout
29818 rotatebox[origin=c]{60}{
29827 \begin_layout Plain Layout
29837 \begin_layout Standard
29838 The box content can also be another box or an inline formula:
29841 \begin_layout Standard
29846 \begin_layout Plain Layout
29850 rotatebox[origin=r]{-60}{
29856 \begin_inset Box Doublebox
29865 height_special "totalheight"
29868 \begin_layout Plain Layout
29878 \begin_layout Plain Layout
29889 \begin_layout Plain Layout
29893 rotatebox[origin=lb]{60}{
29899 \begin_inset Formula $\int A\,\mathrm{d}x=B$
29906 \begin_layout Plain Layout
29916 \begin_layout Standard
29917 or an image or table:
29920 \begin_layout Standard
29925 \begin_layout Plain Layout
29929 rotatebox[origin=lb]{90}{
29935 \begin_inset Graphics
29936 filename clipart/platypus.eps
29946 \begin_layout Plain Layout
29953 with a rotated image
29957 \begin_layout Plain Layout
29961 rotatebox[origin=l]{-90}{
29967 \begin_inset Tabular
29968 <lyxtabular version="3" rows="2" columns="2">
29970 <column alignment="center" valignment="top" width="0">
29971 <column alignment="center" valignment="top" width="0">
29973 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29976 \begin_layout Plain Layout
29982 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29985 \begin_layout Plain Layout
29993 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29996 \begin_layout Plain Layout
30002 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30005 \begin_layout Plain Layout
30020 \begin_layout Plain Layout
30030 \begin_layout Subsection
30035 \begin_layout Plain Layout
30045 \begin_layout Plain Layout
30055 \begin_layout Plain Layout
30065 \begin_layout Plain Layout
30066 Table Customization ! Scaling
30074 \begin_layout Standard
30075 To scale material the commands
30087 can be used as TeX-Code.
30090 \begin_layout Standard
30097 is used with the following scheme:
30100 \begin_layout Standard
30105 scalebox{horizontal}[vertical]{box content}
30108 \begin_layout Standard
30109 Horizontal and vertical are the corresponding scaling factors.
30110 If no vertical scaling factor is given, the horizontal factor will also
30111 be used as vertical one.
30114 \begin_layout Standard
30121 creates for example a double size
30125 \begin_layout Plain Layout
30138 \begin_layout Plain Layout
30145 , compared to the document text size.
30148 \begin_layout Standard
30153 scalebox{2}[1]{Hello}
30155 in contrary distorts the
30159 \begin_layout Plain Layout
30172 \begin_layout Plain Layout
30182 \begin_layout Standard
30183 If a the scaling factor is negative, the box content will be mirrored.
30184 Therefore the command
30188 scalebox{-1}[1]{Hello}
30190 can be used to create mirror writing:
30194 \begin_layout Plain Layout
30207 \begin_layout Plain Layout
30217 \begin_layout Standard
30222 scalebox{1}[-1]{Hello}
30228 \begin_layout Plain Layout
30241 \begin_layout Plain Layout
30251 \begin_layout Standard
30256 scalebox{-1}[1]{box content}
30258 there exists the command
30259 \begin_inset Newline newline
30266 reflectbox{box content}
30271 \begin_layout Standard
30272 \begin_inset VSpace bigskip
30281 is used to scale the box to a defined width and height.
30282 The command scheme is:
30285 \begin_layout Standard
30290 resizebox{width}{height}{box content}
30293 \begin_layout Standard
30294 Is one of the two command arguments given as exclamation mark
30298 , the size is set so that the aspect ratio of the box content is kept.
30301 \begin_layout Standard
30306 resizebox{2cm}{1cm}{Hello}
30312 \begin_layout Plain Layout
30316 resizebox{2cm}{1cm}{
30325 \begin_layout Plain Layout
30333 \begin_inset Newline newline
30340 resizebox{2cm}{!}{Hello}
30346 \begin_layout Plain Layout
30359 \begin_layout Plain Layout
30369 \begin_layout Standard
30370 \begin_inset VSpace bigskip
30374 \begin_inset Note Greyedout
30377 \begin_layout Plain Layout
30394 are set to zero, no LaTeX-errors occur when exporting the document but
30395 the exported files can not or only partly be displayed.
30403 \begin_layout Standard
30404 \begin_inset VSpace bigskip
30410 \begin_layout Standard
30411 The boxes can be combined in any order.
30413 \begin_inset space \thinspace{}
30417 \begin_inset space ~
30421 \begin_inset Newline newline
30428 rotatebox[origin=c]{-45}{
30432 reflectbox{Hello}}}
30433 \begin_inset Newline newline
30441 \begin_layout Standard
30446 \begin_layout Plain Layout
30450 rotatebox[origin=c]{-45}{
30463 \begin_layout Plain Layout
30473 \begin_layout Standard
30475 Images, tables, and inline formulas are allowed as box content:
30478 \begin_layout Standard
30483 \begin_layout Plain Layout
30487 rotatebox[origin=c]{-30}{
30497 \begin_inset Graphics
30498 filename clipart/platypus.eps
30508 \begin_layout Plain Layout
30519 \begin_layout Plain Layout
30523 rotatebox[origin=c]{-45}{
30533 \begin_inset Tabular
30534 <lyxtabular version="3" rows="2" columns="2">
30536 <column alignment="center" valignment="top" width="0">
30537 <column alignment="center" valignment="top" width="0">
30539 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30542 \begin_layout Plain Layout
30548 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30551 \begin_layout Plain Layout
30559 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30562 \begin_layout Plain Layout
30568 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30571 \begin_layout Plain Layout
30586 \begin_layout Plain Layout
30597 \begin_layout Plain Layout
30601 rotatebox[origin=c]{-45}{
30611 \begin_inset Formula $\int A\,\mathrm{d}x=B$
30618 \begin_layout Plain Layout
30628 \begin_layout Standard
30629 When the global formula style
30633 is used in the document
30637 \begin_layout Plain Layout
30639 \begin_inset Quotes eld
30643 \begin_inset Quotes erd
30646 is added to the document class options.
30651 , also display formulas can be scaled.
30654 \begin_layout Chapter
30659 \begin_layout Plain Layout
30668 \begin_layout Standard
30671 Insert\SpecialChar \menuseparator
30674 you can insert external material to your document.
30678 \begin_layout Description
30680 \begin_inset space ~
30683 Document Another LyX document; its content is directly inserted to your
30687 \begin_layout Description
30689 \begin_inset space ~
30692 Text A text document; every of its text lines is inserted to your document
30696 \begin_layout Description
30698 \begin_inset space ~
30702 \begin_inset space ~
30706 \begin_inset space ~
30709 Lines A text document; its text lines are inserted as they are.
30710 Empty text lines creates a new paragraph in your document.
30713 \begin_layout Description
30715 \begin_inset space ~
30718 Material Files in various formats.
30721 \begin_layout Description
30723 \begin_inset space ~
30726 Document LyX or LaTeX-documents.
30729 \begin_layout Section
30734 \begin_layout Plain Layout
30735 External Stuff ! External Material
30743 \begin_layout Standard
30744 The external material feature allows you to insert files to your document
30745 without converting them previously to a format that can be read by the
30746 document output format because LyX takes care of needed conversions.
30747 This is similar to images that can be inserted in various image formats
30751 \begin_layout Standard
30752 External material can be inserted via the
30756 dialog that is accessible with the menu
30758 Insert\SpecialChar \menuseparator
30759 File\SpecialChar \menuseparator
30761 \begin_inset space ~
30767 Currently the following file types (
30774 \begin_layout Description
30775 ChessDiagram This template supports chess position diagrams made with the
30779 \begin_inset CommandInset href
30782 target "http://en.wikipedia.org/wiki/XBoard"
30791 \begin_layout Description
30792 Date This inserts the date in the form
30797 This is a date inserted as external material:
30798 \begin_inset External
30805 \begin_inset space ~
30809 \begin_inset Note Note
30812 \begin_layout Plain Layout
30813 Remove the protected space when bug 4398 is fixed!
30819 \begin_inset Newline newline
30822 The date is not shown within LyX, only in the output.
30823 There are two other methods of inserting a date: Via menu
30825 Insert\SpecialChar \menuseparator
30828 and with the LaTeX command
30835 The different methods are compared in Table
30836 \begin_inset space ~
30840 \begin_inset CommandInset ref
30842 reference "tab:Comparison-of-the"
30849 \begin_layout Description
30850 LilyPond This template is used for music notation typeset with the program
30851 \begin_inset Newline linebreak
30857 \begin_inset CommandInset href
30860 target "http://en.wikipedia.org/wiki/LilyPond"
30869 \begin_layout Description
30870 PDFPages With this template you can insert PDF documents to your document.
30871 To insert certain or all pages of a PDF, use the
30881 LaTeX and LyX options
30883 tab according to the template description in the dialog.
30888 option is given, only the first page of the PDF will be inserted.
30891 \begin_layout Description
30892 RasterImage This can be used for bitmap images.
30893 Nearly all popular image formats are supported.
30894 The image can be treated in the
30898 dialog like the images that are usually included via the
30902 dialog as described in section
30903 \begin_inset space ~
30907 \begin_inset CommandInset ref
30909 reference "sec:Graphics-Dialog"
30914 The difference is that only raster images are allowed, that means that
30915 PDF and EPS-images are not supported.
30918 \begin_layout Description
30919 XFig This template supports images created with the program
30922 \begin_inset CommandInset href
30925 target "http://en.wikipedia.org/wiki/Xfig"
30934 \begin_layout Standard
30935 \begin_inset Float table
30941 \begin_layout Plain Layout
30942 \begin_inset Caption
30944 \begin_layout Plain Layout
30945 \begin_inset CommandInset label
30947 name "tab:Comparison-of-the"
30951 Comparison of the date input methods.
30959 \begin_layout Plain Layout
30961 \begin_inset Tabular
30962 <lyxtabular version="3" rows="4" columns="4">
30964 <column alignment="center" valignment="top" width="0">
30965 <column alignment="center" valignment="top" width="0">
30966 <column alignment="center" valignment="top" width="0">
30967 <column alignment="center" valignment="top" width="0">
30969 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30972 \begin_layout Plain Layout
30978 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30981 \begin_layout Plain Layout
30984 External Material\SpecialChar \menuseparator
30990 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30993 \begin_layout Plain Layout
30996 Insert\SpecialChar \menuseparator
31002 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31005 \begin_layout Plain Layout
31017 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31020 \begin_layout Plain Layout
31026 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31029 \begin_layout Plain Layout
31035 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31038 \begin_layout Plain Layout
31044 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31047 \begin_layout Plain Layout
31048 as TeX-Code inset box
31055 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31058 \begin_layout Plain Layout
31064 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31067 \begin_layout Plain Layout
31073 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31076 \begin_layout Plain Layout
31082 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31085 \begin_layout Plain Layout
31093 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31096 \begin_layout Plain Layout
31102 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31105 \begin_layout Plain Layout
31111 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31114 \begin_layout Plain Layout
31120 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31123 \begin_layout Plain Layout
31142 \begin_layout Standard
31143 When you use the option
31155 dialog, only the path to the inserted file is shown in the output.
31156 \begin_inset Newline newline
31159 External material is displayed in LyX either as box like this:
31160 \begin_inset Graphics
31161 filename clipart/ExternalMaterialQt4.png
31163 scaleBeforeRotation
31167 or as image, depending on the option
31173 LaTeX and LyX options
31178 \begin_layout Standard
31185 manual explains how you can define your own templates.
31188 \begin_layout Section
31190 \begin_inset CommandInset label
31192 name "sec:Child-Documents"
31200 \begin_layout Plain Layout
31201 External Stuff ! Child Documents
31210 \begin_layout Plain Layout
31219 \begin_layout Standard
31220 Child documents are used when you have a long document consisting of several
31221 larger parts or sections.
31222 For maintenance it is often useful and sometimes even required to split
31223 the document in several files that can be revised separately.
31224 The different documents are then the so called child documents and a master
31225 document connects them to print the full document or parts of it.
31228 \begin_layout Standard
31229 Included documents are displayed in LyX as a box like this:
31230 \begin_inset Graphics
31231 filename clipart/ChildDocumentQt4.png
31233 scaleBeforeRotation
31237 To include child documents to a master document use the menu
31239 Insert\SpecialChar \menuseparator
31240 File\SpecialChar \menuseparator
31242 \begin_inset space ~
31248 A dialog pops up where you can choose between four include methods:
31251 \begin_layout Description
31252 Include You can include LyX and LaTeX-documents.
31261 dialog, the included documents will be opened in LyX in a new file tab
31262 so that you can modify it.
31263 \begin_inset Newline newline
31269 \begin_layout Standard
31270 Here is a child document inserted using
31275 \begin_inset CommandInset include
31276 LatexCommand include
31277 filename "DummyDocument1.lyx"
31284 \begin_layout Standard
31285 The section numbering includes the sections of the included files in the
31286 order they are inserted in the master document.
31287 The included example document has for example a subsection that is numbered
31288 as subsection of this section.
31289 Labels of included documents can be referenced: Subsection
31290 \begin_inset space ~
31294 \begin_inset CommandInset ref
31296 reference "sub:External-Subsection-1"
31303 \begin_layout Standard
31304 The preamble of the child document is ignored, only the preamble of the
31305 master document is used.
31306 Included documents are inserted starting on a new page and end with a page
31310 \begin_layout Standard
31311 With the LaTeX-command
31317 you can specify which included child documents are processed when the output
31319 This is useful when you are perhaps only working on a certain chapter of
31320 your large document as this saves compiling time.
31327 is inserted to the master document preamble.
31328 It takes a comma-separated list of the filenames as argument, e.g.
31331 \begin_layout Standard
31336 includeonly{chapter1,chapter5}
31339 \begin_layout Standard
31340 will only process the included files named
31341 \begin_inset Quotes eld
31345 \begin_inset Quotes erd
31349 \begin_inset Quotes eld
31353 \begin_inset Quotes erd
31357 \begin_inset Quotes eld
31361 \begin_inset Quotes erd
31367 \begin_layout Standard
31368 \begin_inset Note Greyedout
31371 \begin_layout Plain Layout
31376 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
31377 w the document in case that the child document uses another document class
31378 than the master document as this will lead to unexpected outputs.
31386 \begin_layout Description
31387 Input This method is very similar to the Include method.
31388 The differences are:
31392 \begin_layout Itemize
31393 Input files don't start with a new page and don't end with a page break.
31396 \begin_layout Itemize
31397 Input files can be previewed in LyX when
31400 \begin_inset space ~
31405 is enabled in LyX's preferences under
31408 \begin_inset space ~
31412 \begin_inset space ~
31415 feel\SpecialChar \menuseparator
31421 \begin_layout Itemize
31432 \begin_layout Standard
31433 Here is a child document inserted using
31438 \begin_inset CommandInset include
31440 filename "DummyDocument2.lyx"
31447 \begin_layout Description
31448 Verbatim With this method every text file can be included.
31449 The file is shown in the output with its source code, no command used in
31450 the text is invoked.
31451 You can use the option
31453 Mark spaces in output
31455 that displays the character
31456 \begin_inset Quotes eld
31463 \begin_layout Plain Layout
31473 \begin_inset Quotes erd
31476 for every space character in the source code.
31477 The difference to the method via the menu
31479 Insert\SpecialChar \menuseparator
31480 File\SpecialChar \menuseparator
31482 \begin_inset space ~
31487 is that the document content is not shown in LyX.
31490 \begin_layout Standard
31491 Here is a child document inserted as Verbatim:
31492 \begin_inset CommandInset include
31493 LatexCommand verbatiminput
31494 filename "DummyTextDocument.txt"
31499 \begin_inset VSpace bigskip
31502 Here is a child document inserted as Verbatim using the
31504 Mark spaces in output
31507 \begin_inset CommandInset include
31508 LatexCommand verbatiminput*
31509 filename "DummyTextDocument.txt"
31516 \begin_layout Standard
31517 \begin_inset VSpace bigskip
31523 \begin_layout Standard
31524 \begin_inset Note Greyedout
31527 \begin_layout Plain Layout
31532 As you can see in the examples above, the text of the documents included
31537 is not broken at the end of the document lines.
31545 \begin_layout Description
31546 Listings This type is described in chapter
31547 \begin_inset space ~
31551 \begin_inset CommandInset ref
31553 reference "cha:Program-Code-Listings"
31560 \begin_layout Standard
31561 \begin_inset Note Greyedout
31564 \begin_layout Plain Layout
31569 Including the same document twice in a document using different methods
31570 could cause LaTeX-problems.
31578 \begin_layout Chapter
31579 Program Code Listings
31580 \begin_inset CommandInset label
31582 name "cha:Program-Code-Listings"
31590 \begin_layout Plain Layout
31600 \begin_layout Plain Layout
31610 \begin_layout Plain Layout
31619 \begin_layout Standard
31620 To include and typeset program code you can use the
31624 inset that can be inserted via the menu
31626 Insert\SpecialChar \menuseparator
31638 \begin_layout Plain Layout
31639 LaTeX-packages ! listings
31644 provides a powerful and flexible way to insert program source code to your
31648 \begin_layout Standard
31649 Right-clicking on a listings inset opens the context menu containing where
31650 you can set the listings format.
31653 \begin_layout Standard
31654 By default, a listing starts a new paragraph in the output.
31655 The placement option
31658 \begin_inset space ~
31663 prints the listing inline like this:
31664 \begin_inset listings
31665 lstparams "language={C++}"
31669 \begin_layout Plain Layout
31677 \begin_inset Newline newline
31684 creates a listings float where you can specify the placement options
31685 \begin_inset Quotes eld
31693 \begin_inset Quotes erd
31697 \begin_inset Quotes eld
31705 \begin_inset Quotes erd
31709 \begin_inset Quotes eld
31717 \begin_inset Quotes erd
31721 \begin_inset Quotes eld
31729 \begin_inset Quotes erd
31732 corresponding to the float placement options described in section
31733 \begin_inset space ~
31737 \begin_inset CommandInset ref
31739 reference "sec:Float-Placement"
31744 The placement options can be mixed and are inserted without any separation,
31746 \begin_inset space \thinspace{}
31750 \begin_inset space ~
31754 \begin_inset Quotes eld
31762 \begin_inset Quotes erd
31767 \begin_inset Quotes eld
31771 \begin_inset Quotes erd
31774 has sometimes no effect, but you don't need to use the
31778 option in this case as also non-float listings can have captions and be
31782 \begin_layout Standard
31783 You can add captions to listings with the menu
31785 Insert\SpecialChar \menuseparator
31789 Listings can be referenced like floats: Listing
31790 \begin_inset space ~
31794 \begin_inset CommandInset ref
31796 reference "lst:Example-Listing"
31803 \begin_layout Standard
31804 \begin_inset listings
31805 lstparams "language=Python"
31809 \begin_layout Plain Layout
31811 \begin_inset Caption
31813 \begin_layout Plain Layout
31814 \begin_inset CommandInset label
31816 name "lst:Example-Listing"
31820 Example Listing float
31825 # Example listing float
31828 \begin_layout Plain Layout
31833 \begin_layout Plain Layout
31835 'this is a python function'
31838 \begin_layout Plain Layout
31848 \begin_layout Standard
31849 When you have set a programming language in the listings dialog, the keywords
31850 of this language will be recognized and specially typeset in the output.
31851 In the example listings the Python keyword
31852 \begin_inset Quotes eld
31856 \begin_inset Quotes erd
31859 is recognized and printed bold in the output.
31862 \begin_layout Standard
31863 \begin_inset Note Greyedout
31866 \begin_layout Plain Layout
31871 If you don't get bold keywords when using typewriter fonts, your
31875 font probably doesn't provide a bold shape.
31876 In this case select a different one in the menu
31878 Document\SpecialChar \menuseparator
31879 Settings\SpecialChar \menuseparator
31891 provide bold shapes.)
31899 \begin_layout Standard
31903 \begin_inset space ~
31908 of the listings dialog you can specify the line numbering style.
31909 You can insert a number to specify which lines are numbered to the field
31915 When you insert e.g.
31917 \begin_inset Quotes eld
31921 \begin_inset Quotes erd
31924 , only every 3rd line will be numbered.
31927 \begin_layout Standard
31928 You can furthermore specify a range of lines, only these will then appear
31932 Extended character table
31934 should be used when you use national characters like the German umlauts
31936 \begin_inset Newline newline
31939 Here is an example listing with left line numbering, step
31940 \begin_inset Quotes eld
31944 \begin_inset Quotes erd
31948 \begin_inset Quotes eld
31952 \begin_inset Quotes erd
31956 \begin_inset Quotes eld
31959 Extended character table
31960 \begin_inset Quotes erd
31964 \begin_inset Quotes eld
31968 \begin_inset space ~
31972 \begin_inset space ~
31976 \begin_inset Quotes erd
31980 \begin_inset space \thinspace{}
31984 \begin_inset space \thinspace{}
31990 \begin_layout Standard
31991 \begin_inset listings
31992 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
31996 \begin_layout Plain Layout
32001 \begin_layout Plain Layout
32003 'this is a python function'
32006 \begin_layout Plain Layout
32011 \begin_layout Plain Layout
32016 \begin_layout Plain Layout
32018 'This is a German word: Tschüß'
32021 \begin_layout Plain Layout
32026 \begin_layout Plain Layout
32031 \begin_layout Plain Layout
32033 'this is a python function'
32036 \begin_layout Plain Layout
32046 \begin_layout Standard
32047 When you have tabulators in your listing, you can specify the number of
32048 characters that are spanned by a tabulator in the field
32051 \begin_inset space ~
32059 \begin_layout Standard
32060 \begin_inset Note Greyedout
32063 \begin_layout Plain Layout
32068 Due to a bug in the
32072 package the line numbering is shifted by a line by every previous listing.
32073 That's the reason why the lines 2 and 5 are numbered in the above listing
32074 and not the lines 3 and 6.
32082 \begin_layout Standard
32083 \begin_inset VSpace bigskip
32089 \begin_layout Standard
32090 It is also possible to print lines from a file as listing.
32091 To do this, use the menu
32093 Insert\SpecialChar \menuseparator
32094 File\SpecialChar \menuseparator
32097 and choose the type
32105 \begin_layout Plain Layout
32106 The other child document types are described in section
32107 \begin_inset space ~
32111 \begin_inset CommandInset ref
32113 reference "sec:Child-Documents"
32122 In the child document dialog you can specify the listing parameters in
32124 To show a list of all available parameters, type in a question mark
32125 \begin_inset Quotes eld
32129 \begin_inset Quotes erd
32135 \begin_layout Standard
32136 To reference child document listings, write a label text into the corresponding
32137 field of the child document dialog.
32138 The label can then be referenced using the menu
32140 Insert\SpecialChar \menuseparator
32146 \begin_layout Standard
32148 \begin_inset space ~
32152 \begin_inset CommandInset ref
32154 reference "lst:file-listing"
32158 is an example for a listing of a file; there the lines 10
32159 \begin_inset space \thinspace{}
32163 \begin_inset space \thinspace{}
32166 15 of this LyX file are listed.
32169 \begin_layout Standard
32170 \begin_inset CommandInset include
32171 LatexCommand lstinputlisting
32172 filename "EmbeddedObjects.lyx"
32173 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
32180 \begin_layout Standard
32181 \begin_inset VSpace bigskip
32187 \begin_layout Standard
32188 Global listings settings can be set in the
32190 Document\SpecialChar \menuseparator
32191 Settings\SpecialChar \menuseparator
32195 To get there a list of available options, type in a question mark
32196 \begin_inset Quotes eld
32200 \begin_inset Quotes erd
32206 \begin_inset space ~
32214 \begin_layout Standard
32215 For more information about the
32219 package, we refer to its documentation
32220 \begin_inset CommandInset citation
32229 \begin_layout Standard
32230 \begin_inset Newpage newpage
32236 \begin_layout Chapter
32238 Units available in LyX
32242 \begin_layout Plain Layout
32249 \begin_inset CommandInset label
32251 name "cha:Units-available-in"
32258 \begin_layout Standard
32259 To understand the units described in this documentation, Table
32260 \begin_inset space ~
32264 \begin_inset CommandInset ref
32266 reference "tab:Units"
32270 explains all units available in LyX.
32273 \begin_layout Standard
32274 \begin_inset Float table
32280 \begin_layout Plain Layout
32281 \begin_inset Caption
32283 \begin_layout Plain Layout
32284 \begin_inset CommandInset label
32298 \begin_layout Plain Layout
32299 \begin_inset VSpace medskip
32305 \begin_layout Plain Layout
32307 \begin_inset Tabular
32308 <lyxtabular version="3" rows="20" columns="2">
32310 <column alignment="center" valignment="top" width="0">
32311 <column alignment="center" valignment="top" width="0">
32313 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32316 \begin_layout Plain Layout
32322 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
32325 \begin_layout Plain Layout
32333 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32336 \begin_layout Plain Layout
32342 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32345 \begin_layout Plain Layout
32353 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32356 \begin_layout Plain Layout
32362 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32365 \begin_layout Plain Layout
32373 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32376 \begin_layout Plain Layout
32382 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32385 \begin_layout Plain Layout
32393 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32396 \begin_layout Plain Layout
32402 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32405 \begin_layout Plain Layout
32407 \begin_inset space \thinspace{}
32411 \begin_inset space \thinspace{}
32421 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32424 \begin_layout Plain Layout
32430 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32433 \begin_layout Plain Layout
32435 \begin_inset space \thinspace{}
32439 \begin_inset space \thinspace{}
32449 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32452 \begin_layout Plain Layout
32458 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32461 \begin_layout Plain Layout
32462 scaled point (65536
32463 \begin_inset space \thinspace{}
32467 \begin_inset space \thinspace{}
32477 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32480 \begin_layout Plain Layout
32486 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32489 \begin_layout Plain Layout
32491 \begin_inset space \thinspace{}
32495 \begin_inset space \thinspace{}
32505 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32508 \begin_layout Plain Layout
32514 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32517 \begin_layout Plain Layout
32519 \begin_inset space \thinspace{}
32523 \begin_inset Formula $\approx$
32527 \begin_inset space \thinspace{}
32537 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32540 \begin_layout Plain Layout
32546 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32549 \begin_layout Plain Layout
32551 \begin_inset space \thinspace{}
32555 \begin_inset space \thinspace{}
32565 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32568 \begin_layout Plain Layout
32574 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32577 \begin_layout Plain Layout
32578 % of original image width
32585 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32588 \begin_layout Plain Layout
32594 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32597 \begin_layout Plain Layout
32605 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32608 \begin_layout Plain Layout
32614 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32617 \begin_layout Plain Layout
32625 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32628 \begin_layout Plain Layout
32634 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32637 \begin_layout Plain Layout
32645 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32648 \begin_layout Plain Layout
32654 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32657 \begin_layout Plain Layout
32665 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32668 \begin_layout Plain Layout
32674 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32677 \begin_layout Plain Layout
32685 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32688 \begin_layout Plain Layout
32694 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32697 \begin_layout Plain Layout
32705 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32708 \begin_layout Plain Layout
32714 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32717 \begin_layout Plain Layout
32729 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32732 \begin_layout Plain Layout
32738 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32741 \begin_layout Plain Layout
32753 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32756 \begin_layout Plain Layout
32762 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
32765 \begin_layout Plain Layout
32767 \begin_inset space \thinspace{}
32771 \begin_inset space \thinspace{}
32792 \begin_layout Chapter
32793 Output File Formats with Graphics
32794 \begin_inset CommandInset label
32796 name "cha:Output-File-Formats"
32803 \begin_layout Section
32808 \begin_layout Plain Layout
32818 \begin_layout Plain Layout
32823 \begin_layout Plain Layout
32834 \begin_layout Plain Layout
32849 \begin_layout Standard
32850 This file type has the extension
32851 \begin_inset Quotes eld
32859 \begin_inset Quotes erd
32864 \begin_inset Quotes eld
32868 \begin_inset Quotes erd
32871 (DVI), because it is completely portable; you can move them from one machine
32872 to another without needing to do any sort of conversion.
32873 At the time when this file-format was developed, this was no matter of
32875 DVIs are used for quick previews and as pre-stage for other output formats,
32879 \begin_layout Standard
32880 \begin_inset Note Greyedout
32883 \begin_layout Plain Layout
32888 DVI-files doesn't contain images, they will only be a linked.
32893 So don't forget this, if you move your
32897 file to another computer.
32898 This property can also slow down your computer when you view the DVI.
32899 Because the DVI-viewer has to convert the image in the background to make
32900 it visible when you scroll in the DVI.
32901 So we recommend to use PDF for files with many images.
32904 \begin_layout Standard
32905 You can export your document to DVI by using the menu
32907 File\SpecialChar \menuseparator
32908 Export\SpecialChar \menuseparator
32912 You can view your document as DVI via the
32916 menu or by using the toolbar button
32917 \begin_inset Graphics
32918 filename ../images/buffer-view_dvi.png
32920 scaleBeforeRotation
32927 \begin_layout Section
32929 \begin_inset CommandInset label
32931 name "sec:PostScript"
32939 \begin_layout Plain Layout
32940 File Formats ! PostScript
32949 \begin_layout Plain Layout
32954 \begin_layout Plain Layout
32965 \begin_layout Plain Layout
32980 \begin_layout Standard
32981 This file type has the extension
32982 \begin_inset Quotes eld
32990 \begin_inset Quotes erd
32994 PostScript was developed by the company
32998 as printer language.
32999 The file contains therefore commands that the printer uses to print the
33001 PostScript can be seen as
33002 \begin_inset Quotes eld
33005 programming language
33006 \begin_inset Quotes erd
33009 ; you can calculate with it and draw diagrams and images
33013 \begin_layout Plain Layout
33014 If you are interested to learn more about this, have a look at the LaTeX-package
33020 \begin_inset CommandInset citation
33032 Due to this ability, the files are often bigger than PDFs.
33035 \begin_layout Standard
33036 PostScript can only contain images in the format
33037 \begin_inset Quotes eld
33040 Encapsulated PostScript
33041 \begin_inset Quotes erd
33044 (EPS, file extension
33045 \begin_inset Quotes eld
33053 \begin_inset Quotes erd
33057 As LyX allows you to use any known image format in your document, it has
33058 to convert images in the background to EPS.
33059 If you have e.g 50 images in your document, LyX has to do 50 conversions
33060 whenever you view or export your document.
33061 This will slow down your work flow with LyX drastically.
33062 So if you plan to use PostScript, you can insert your images directly as
33063 EPS to avoid this problem.
33066 \begin_layout Standard
33067 You can export your document to PostScript using the menu
33069 File\SpecialChar \menuseparator
33070 Export\SpecialChar \menuseparator
33074 You can view your document as PostScript via the
33078 menu or by using the toolbar button
33079 \begin_inset Graphics
33080 filename ../images/buffer-view_ps.png
33082 scaleBeforeRotation
33089 \begin_layout Section
33094 \begin_layout Plain Layout
33104 \begin_layout Plain Layout
33113 \begin_layout Standard
33114 This file type has the extension
33115 \begin_inset Quotes eld
33123 \begin_inset Quotes erd
33128 \begin_inset Quotes eld
33131 Portable Document Format
33132 \begin_inset Quotes erd
33135 (PDF) is developed by
33139 as derivative from PostScript.
33140 It is more compressed and it uses much less commands than PostScript.
33142 \begin_inset Quotes eld
33146 \begin_inset Quotes erd
33149 implies, it can be processed at any computer system and the printed output
33150 looks exactly the same.
33153 \begin_layout Standard
33154 PDF can contain images in its own PDF format, in the format
33155 \begin_inset Quotes eld
33158 Joint Photographic Experts Group
33159 \begin_inset Quotes erd
33162 (JPG, file extension
33163 \begin_inset Quotes eld
33171 \begin_inset Quotes erd
33175 \begin_inset Quotes eld
33183 \begin_inset Quotes erd
33186 ), and in the format
33187 \begin_inset Quotes eld
33190 Portable Network Graphics
33191 \begin_inset Quotes erd
33194 (PNG, file extension
33195 \begin_inset Quotes eld
33203 \begin_inset Quotes erd
33207 Nevertheless you can use any other image format, because LyX converts them
33208 in the background to one of these formats.
33209 But as described in the section about PostScript, the image conversion
33210 will slow down your work flow.
33211 So it is recommended to use images in one of the three mentioned formats.
33214 \begin_layout Standard
33215 You can export your document to PDF via the menu
33217 File\SpecialChar \menuseparator
33220 in three different ways:
33223 \begin_layout Description
33225 \begin_inset space ~
33228 (ps2pdf) This uses the program
33232 that creates a PDF from a PostScript-version of your file.
33233 The PostScript-version is produced by the program
33237 which uses a DVI-version as intermediate step.
33238 So this export variant consist of three conversions.
33241 \begin_layout Description
33243 \begin_inset space ~
33246 (dvipdfm) This uses the program
33250 that converts your file in the background to DVI and in a second step to
33254 \begin_layout Description
33256 \begin_inset space ~
33259 (pdflatex) This uses the program
33263 that converts your file directly to PDF.
33266 \begin_layout Standard
33267 It is recommended to use
33270 \begin_inset space ~
33279 supports all features of actual PDF-versions, is quick and works stable
33285 is not under development and therefore a bit outdated.
33288 \begin_layout Standard
33289 You can view your document as PDF via the
33293 menu or by using the toolbar button
33294 \begin_inset Graphics
33295 filename ../images/buffer-view_pdf2.png
33297 scaleBeforeRotation
33308 \begin_inset space ~
33316 \begin_layout Chapter
33317 Explanation of Equation
33318 \begin_inset space ~
33322 \begin_inset CommandInset ref
33329 \begin_inset CommandInset label
33331 name "cha:Explanation-of-Equation"
33338 \begin_layout Standard
33344 \begin_inset Formula $W_{\mathrm{tot\, n}}$
33347 can be calculated to
33350 \begin_layout Standard
33351 \begin_inset Formula \begin{equation}
33352 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}
33359 \begin_layout Standard
33361 \begin_inset Formula $W_{g\, n}$
33364 is the given width of all cells.
33371 is the LaTeX-length between the cell text and the cell border, its default
33373 \begin_inset space \thinspace{}
33383 is the thickness of the cell border line, the default is 0.4
33384 \begin_inset space \thinspace{}
33390 \begin_layout Standard
33392 \begin_inset space ~
33396 \begin_inset CommandInset ref
33398 reference "eq:Wtot_n"
33402 , the total width of a multicolumn
33403 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
33409 \begin_layout Standard
33410 \begin_inset Formula \begin{equation}
33411 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
33418 \begin_layout Standard
33419 By setting equation
33420 \begin_inset space ~
33424 \begin_inset CommandInset ref
33426 reference "eq:Wtot_n"
33431 \begin_inset CommandInset ref
33433 reference "eq:Wtot_mult"
33437 equal we can calculate the needed given width
33438 \begin_inset Formula $W_{g\, n}$
33445 columns are spanned, so that each column has a total width of
33446 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
33452 \begin_layout Standard
33453 \begin_inset Formula \begin{equation}
33454 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
33461 \begin_layout Bibliography
33462 \begin_inset CommandInset bibitem
33463 LatexCommand bibitem
33464 key "latexcompanion"
33468 Frank Mittelbach and Michel Goossens:
33470 The LaTeX Companion Second Edition.
33473 Addison-Wesley, 2004
33476 \begin_layout Bibliography
33477 \begin_inset CommandInset bibitem
33478 LatexCommand bibitem
33483 Helmut Kopka and Patrick W.
33486 A Guide to LaTeX Fourth Edition.
33489 Addison-Wesley, 2003
33492 \begin_layout Bibliography
33493 \begin_inset CommandInset bibitem
33494 LatexCommand bibitem
33501 LaTeX: A Document Preparation System.
33504 Addison-Wesley, second edition, 1994
33507 \begin_layout Bibliography
33508 \begin_inset CommandInset bibitem
33509 LatexCommand bibitem
33514 Documentation of the LaTeX-package
33517 \begin_inset CommandInset href
33520 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
33530 \begin_layout Plain Layout
33531 LaTeX-packages ! booktabs
33539 \begin_layout Bibliography
33540 \begin_inset CommandInset bibitem
33541 LatexCommand bibitem
33546 Documentation of the LaTeX-package
33549 \begin_inset CommandInset href
33552 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf"
33562 \begin_layout Plain Layout
33563 LaTeX-packages ! caption
33571 \begin_layout Bibliography
33572 \begin_inset CommandInset bibitem
33573 LatexCommand bibitem
33578 Documentation of the LaTeX-package
33581 \begin_inset CommandInset href
33584 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
33594 \begin_layout Plain Layout
33595 LaTeX-packages ! endfloat
33603 \begin_layout Bibliography
33604 \begin_inset CommandInset bibitem
33605 LatexCommand bibitem
33610 Documentation of the LaTeX-package
33613 \begin_inset CommandInset href
33616 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/wrapfig/wrapfig.sty"
33626 \begin_layout Plain Layout
33627 LaTeX-packages ! wrapfig
33631 \begin_layout Plain Layout
33648 \begin_layout Bibliography
33649 \begin_inset CommandInset bibitem
33650 LatexCommand bibitem
33655 Documentation of the LaTeX-package
33658 \begin_inset CommandInset href
33661 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
33671 \begin_layout Plain Layout
33672 LaTeX-packages ! footmisc
33680 \begin_layout Bibliography
33681 \begin_inset CommandInset bibitem
33682 LatexCommand bibitem
33687 Documentation of the LaTeX-package
33690 \begin_inset CommandInset href
33693 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
33703 \begin_layout Plain Layout
33704 LaTeX-packages ! hyperref
33712 \begin_layout Bibliography
33713 \begin_inset CommandInset bibitem
33714 LatexCommand bibitem
33719 Documentation of the LaTeX-package
33722 \begin_inset CommandInset href
33725 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
33735 \begin_layout Plain Layout
33736 LaTeX-packages ! hyperref
33744 \begin_layout Bibliography
33745 \begin_inset CommandInset bibitem
33746 LatexCommand bibitem
33751 Documentation of the LaTeX-package
33754 \begin_inset CommandInset href
33757 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf"
33767 \begin_layout Plain Layout
33768 LaTeX-packages ! koma-script
33776 \begin_layout Bibliography
33777 \begin_inset CommandInset bibitem
33778 LatexCommand bibitem
33783 Documentation of the LaTeX-package
33786 \begin_inset CommandInset href
33789 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
33799 \begin_layout Plain Layout
33800 LaTeX-packages ! listings
33808 \begin_layout Bibliography
33809 \begin_inset CommandInset bibitem
33810 LatexCommand bibitem
33815 Documentation of the LaTeX-package
33818 \begin_inset CommandInset href
33821 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
33831 \begin_layout Plain Layout
33832 LaTeX-packages ! marginnote
33840 \begin_layout Bibliography
33841 \begin_inset CommandInset bibitem
33842 LatexCommand bibitem
33847 Web page of the LaTeX-package
33850 \begin_inset CommandInset href
33853 target "http://tug.org/PSTricks/"
33863 \begin_layout Plain Layout
33864 LaTeX-packages ! PSTricks
33872 \begin_layout Bibliography
33873 \begin_inset CommandInset bibitem
33874 LatexCommand bibitem
33879 Documentation of the LaTeX-package
33882 \begin_inset CommandInset href
33885 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
33895 \begin_layout Plain Layout
33896 LaTeX-packages ! sidecap
33904 \begin_layout Bibliography
33905 \begin_inset CommandInset bibitem
33906 LatexCommand bibitem
33912 \begin_inset CommandInset href
33915 target "http://wiki.lyx.org/LyX/NewInLyX16"
33919 about new features in
33926 \begin_layout Standard
33927 \begin_inset CommandInset index_print
33928 LatexCommand printindex
33935 \begin_layout Standard
33936 \begin_inset FloatList figure
33943 \begin_layout Standard
33944 \begin_inset FloatList table
33951 \begin_layout Standard
33952 \begin_inset FloatList algorithm