1 #LyX 1.6.2svn created this file. For more info see http://www.lyx.org/
11 % set fonts for nicer pdf view
12 \IfFileExists{lmodern.sty}
13 {\usepackage{lmodern}}{}
15 \fi % end if pdflatex is used
17 % that links to image floats jumps
18 % to the beginning of the float and
20 \usepackage[figure]{hypcap}
22 % the pages of the TOC is numbered roman
23 % and a PDF-bookmark for the TOC is added
24 \let\myTOC\tableofcontents
25 \renewcommand\tableofcontents{%
27 \pdfbookmark[1]{\contentsname}{}
31 % provides caption formatting
32 \usepackage[labelfont={bf,sf}, tableposition=top]{caption}[2004/07/16]
34 % provides commands to set caption
35 % beside tables/images
38 \newcommand{\TabBesBeg}{%
40 \let\MyEndtable\endtable
41 \renewenvironment{table}{\begin{SCtable}}{\end{SCtable}}}
43 \newcommand{\TabBesEnd}{%
45 \let\endtable\MyEndtable}
47 \newcommand{\FigBesBeg}{%
49 \let\MyEndfigure\endfigure
50 \renewenvironment{figure}{\begin{SCfigure}}{\end{SCfigure}}}
52 \newcommand{\FigBesEnd}{%
54 \let\endfigure\MyEndfigure}
56 % enables calculation of values,
59 % provides special table cell alignments
62 % increase the bottom float placement fraction
63 \renewcommand{\bottomfraction}{0.5}
65 % avoids that floats are placed before their
66 % corresponding section starts
67 \let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
69 % speed up the longtable calculation
70 \setcounter{LTchunksize}{100}
72 % used for scaled and rotated boxes
73 \@ifundefined{rotatebox}{\usepackage{graphicx}}{}
75 % used for colored tables
76 \@ifundefined{textcolor}
77 {\usepackage{color}}{}
78 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
79 \definecolor{lightgrey}{gray}{0.8}
81 % check for package colortbl
82 % used for colored table cells
84 \IfFileExists{colortbl.sty}
85 {\usepackage{colortbl}
86 \setboolean{colortbl}{true}}
87 {\setboolean{colortbl}{false}}
91 %\renewcommand{\multirowsetup}{\centering}
93 % used for book-style tables
96 % used to have extra space in table cells
97 \@ifundefined{extrarowheight}
98 {\usepackage{array}}{}
99 \setlength{\extrarowheight}{2pt}
101 % used for customized tables
104 {>{\centering\hspace{0pt}}m{#1}}
107 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
110 {>{\columncolor{#1}\hspace{0pt}}c}
112 \newcolumntype{V}{!{\vrule width 1.5pt}}
114 \newcolumntype{W}{!{\color{green}\vline}}
117 % insert additional vertical space of
118 % 1.5 mm between footnotes
120 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
122 % number algorithm floats within chapters
123 \numberwithin{algorithm}{chapter}
125 % redefine the greyed out note
126 \renewenvironment{lyxgreyedout}
127 {\textcolor{blue}\bgroup}{\egroup}
129 % ------------------------------------
130 % used to check for needed LaTeX packages
133 % check for package arydshln
134 % used for tables with dashed lines
135 \newboolean{arydshln}
136 \IfFileExists{arydshln.sty}
137 {\usepackage{arydshln}
138 \setboolean{arydshln}{true}}
139 {\setboolean{arydshln}{false}}
141 % check for package marginnote
142 % used for margin notes
143 \newboolean{marginnote}
144 \IfFileExists{marginnote.sty}
145 {\usepackage{marginnote}
146 \let\marginpar\marginnote
147 \setboolean{marginnote}{true}}
148 {\setboolean{marginnote}{false}}
150 % check for package sidecap
151 % used for captions on the side
153 \IfFileExists{sidecap.sty}
154 {\usepackage{sidecap}
155 \let\marginpar\marginnote
156 \setboolean{sidecap}{true}}
157 {\setboolean{sidecap}{false}}
159 % redefine the \LyX macro for PDF bookmarks
160 \def\LyX{\texorpdfstring{%
161 L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
164 \options fleqn,liststotoc,bibtotoc,idxtotoc,BCOR7.5mm,titlepage,tablecaptionabove
165 \use_default_options false
170 \font_typewriter default
171 \font_default_family default
181 \pdf_title "LyX's Figure, Table, Floats, Notes, and Boxes manual"
182 \pdf_author "LyX Team, Uwe Stöhr"
183 \pdf_subject "LyX-documentation about figures, tables, floats, notes, and boxes"
184 \pdf_keywords "LyX, Tables, Figures, Floats, Boxes, Notes"
186 \pdf_bookmarksnumbered true
187 \pdf_bookmarksopen true
188 \pdf_bookmarksopenlevel 1
189 \pdf_breaklinks false
193 \pdf_pdfusetitle false
194 \pdf_quoted_options " linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false, pdfpagelabels"
201 \paperorientation portrait
204 \paragraph_separation skip
206 \quotes_language english
209 \paperpagestyle default
213 \tracking_changes false
214 \output_changes false
222 LyX's detailed Figure, Table, Floats, Notes, Boxes and External Material
231 \begin_layout Plain Layout
233 If you have comments or error corrections, please send them to the LyX Documenta
235 \begin_inset CommandInset href
237 name "lyx-docs@lists.lyx.org"
238 target "lyx-docs@lists.lyx.org?subject=EmbeddedObjects manual"
249 \begin_inset Note Note
252 \begin_layout Plain Layout
259 \begin_inset Newline newline
263 \begin_inset Newline newline
271 \begin_layout Standard
272 \begin_inset CommandInset toc
273 LatexCommand tableofcontents
280 \begin_layout Standard
281 \begin_inset Note Note
284 \begin_layout Plain Layout
285 To export all parts of this document to PDF, PS, or DVI the LaTeX-packages
303 If they are not installed you can export the document anyway but the sections
304 where the packages are required won't appear in the output.
307 \begin_layout Plain Layout
308 The latest PDF-version of this document can be found here:
309 \begin_inset Newline newline
314 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
322 \begin_layout Chapter
327 \begin_layout Plain Layout
337 \begin_layout Plain Layout
342 \begin_layout Plain Layout
353 \begin_layout Plain Layout
368 \begin_layout Section
373 \begin_layout Plain Layout
374 Figures ! Graphics Dialog
380 \begin_inset CommandInset label
382 name "sec:Graphics-Dialog"
389 \begin_layout Standard
390 To insert an image into your document, place the cursor at the text position
391 you want and click on the toolbar icon
392 \begin_inset Graphics
393 filename ../images/dialog-show-new-inset_graphics.png
401 Insert\SpecialChar \menuseparator
405 Then a dialog will appear to choose the file to load.
406 The image will appear in the output exactly at the position where it is
410 \begin_layout Standard
411 The graphics dialog can be called at any time by clicking on an image.
412 This dialog has three tabs:
415 \begin_layout Description
420 Here you can choose an image file and adjust its appearance in the output.
421 The available units for the image size are explained in appendix
426 \begin_inset CommandInset ref
428 reference "cha:Units-available-in"
433 \begin_inset Newline newline
440 \begin_layout Plain Layout
446 You can rotate images counter-clockwise by setting a rotation angle and
448 The image will also be rotated inside LyX.
449 \begin_inset Newline newline
456 \begin_layout Plain Layout
462 Images can be scaled by using a percentage value or by setting the width
463 and height explicitly.
464 If you set only the width or only the height, the other size will be determined
466 If you set both, then the image will be transformed to the given size,
467 possibly distorting it.
468 To prevent the image from distortion, use the option
470 Maintain aspect ratio
473 The image will then be scaled so that its width and height don't exceed
474 the specified dimensions.
475 \begin_inset Newline newline
478 Images can be opened in a program of your choice when pressing the
483 The program can be set for every image format in the file format settings
484 in LyX's preferences.
487 \begin_layout Description
492 Alternatively to the usage of scaling units it is possible to set image
493 coordinates to adjust the height and width of the image in the output.
494 The coordinates can also be calculated automatically by pressing the button
524 will only print the image region within the given coordinates.
525 Normally you don't need to take care about image coordinates and can ignore
529 \begin_layout Description
546 In this tab you can modify the appearance of the image within LyX and LaTeX
547 experts can specify additional LaTeX options.
548 \begin_inset Newline newline
559 makes the image appear in the output only as a frame with the size of the
561 \begin_inset Newline newline
580 option only affects zipped EPS-graphics, e.
581 \begin_inset space \thinspace{}
585 \begin_inset space \space{}
593 When the option is used the images will not be unzipped on export, since
594 LaTeX can handle them as they are.
595 \begin_inset Newline newline
598 Zipped EPS-graphics are useful to save disk space when you choose PostScript
599 as output format, see appendix
604 \begin_inset CommandInset ref
606 reference "sec:PostScript"
611 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
613 \begin_inset Newline newline
621 \begin_inset Newline newline
626 zgrep %%Bounding x.eps.gz > x.eps.bb
629 \begin_inset Newline newline
632 The second command creates the bounding box file
633 \begin_inset Quotes eld
637 \begin_inset Quotes erd
640 that is needed by LaTeX for zipped graphics.
641 \begin_inset Newline newline
656 allows you define or join an image settings group.
660 \begin_layout Plain Layout
661 Figures ! Settings grouping
666 Images within such a group share their settings, so adjusting one image
667 of the group automatically also adjusts all other images of the group in
669 So you can for example change the size for a bunch of images without the
670 need to manually change each of them.
671 Joining an existing group can also be done using the context menu of the
672 image by checking the name of the desired group.
675 \begin_layout Standard
676 \begin_inset VSpace bigskip
682 \begin_layout Standard
683 This is an example image in EPS format
687 \begin_layout Plain Layout
688 Image formats are explained in section
693 \begin_inset CommandInset ref
695 reference "sec:Image-Formats"
704 within a separate, horizontally centered paragraph:
707 \begin_layout Standard
709 \begin_inset Graphics
710 filename clipart/mobius.eps
720 \begin_layout Standard
721 This is the same image like the one above but in draft mode:
724 \begin_layout Standard
726 \begin_inset Graphics
727 filename clipart/mobius.eps
738 \begin_layout Standard
739 \begin_inset Newpage newpage
745 \begin_layout Section
747 \begin_inset CommandInset label
749 name "sec:Figure-Floats"
757 \begin_layout Plain Layout
767 \begin_layout Plain Layout
776 \begin_layout Standard
777 For general explanations about floats, have a look at section
782 \begin_inset CommandInset ref
784 reference "sec:FloatIntroduction"
791 \begin_layout Standard
793 \begin_inset Graphics
794 filename ../images/float-insert_figure.png
802 Insert\SpecialChar \menuseparator
803 Float\SpecialChar \menuseparator
806 inserts a float with a caption that has the label
807 \begin_inset Quotes eld
815 \begin_inset Quotes erd
818 (# is the actual number).
819 You can insert the image above the caption, like in Figure
824 \begin_inset CommandInset ref
826 reference "fig:kill-plat"
830 or below the caption, like in Figure
835 \begin_inset CommandInset ref
837 reference "fig:escher"
842 More about the caption placement is described in section
847 \begin_inset CommandInset ref
849 reference "sec:Caption-Placement"
856 \begin_layout Standard
857 \begin_inset Float figure
862 \begin_layout Plain Layout
864 \begin_inset Graphics
865 filename clipart/platypus.eps
875 \begin_layout Plain Layout
878 \begin_layout Plain Layout
879 \begin_inset CommandInset label
885 A severely distorted platypus in a float.
898 \begin_layout Standard
899 \begin_inset Float figure
904 \begin_layout Plain Layout
907 \begin_layout Plain Layout
908 \begin_inset CommandInset label
923 \begin_layout Plain Layout
925 \begin_inset Graphics
926 filename clipart/escher-lsd.eps
941 \begin_layout Standard
945 \begin_layout Plain Layout
946 References ! to Figures
956 \begin_inset CommandInset ref
958 reference "fig:kill-plat"
963 \begin_inset CommandInset ref
965 reference "fig:escher"
969 are examples of referenced figures.
970 Figures can be referenced in the text by referencing their label.
971 To do this insert a label in the caption using the menu
973 Insert\SpecialChar \menuseparator
976 or the toolbar button
977 \begin_inset Graphics
978 filename ../images/label-insert.png
985 You can now refer to the label using the menu
987 Insert\SpecialChar \menuseparator
994 or the toolbar button
995 \begin_inset Graphics
996 filename ../images/dialog-show-new-inset_ref.png
1003 It is important to use references to floats, rather than using vague references
1005 \begin_inset Quotes eld
1009 \begin_inset Quotes erd
1012 , because as LaTeX will reposition the floats in the final document, it
1014 \begin_inset Quotes eld
1018 \begin_inset Quotes erd
1022 \begin_inset Newline newline
1025 Referencing is explained in detail in section
1026 \begin_inset space ~
1030 \begin_inset CommandInset ref
1032 reference "sec:Referencing-Floats"
1039 \begin_layout Standard
1040 Normally only one image is inserted to a figure float, but sometimes you
1041 might want to use two images with separate subcaptions.
1042 This can be done by inserting image floats into existing image floats.
1043 Note that only the main caption of the float is added to the List of Figures.
1045 \begin_inset space ~
1049 \begin_inset CommandInset ref
1051 reference "fig:Two-distorted-images"
1055 is an example of a figure float with two images set side by side.
1056 You can also set the images one below the other.
1058 \begin_inset space ~
1062 \begin_inset CommandInset ref
1064 reference "fig:Undefinable-structure"
1069 \begin_inset CommandInset ref
1071 reference "fig:A-Platypus"
1078 \begin_layout Standard
1079 \begin_inset Float figure
1084 \begin_layout Plain Layout
1085 \begin_inset space \hfill{}
1089 \begin_inset Float figure
1094 \begin_layout Plain Layout
1095 \begin_inset Caption
1097 \begin_layout Plain Layout
1098 \begin_inset CommandInset label
1100 name "fig:Undefinable-structure"
1104 Undefinable structure.
1112 \begin_layout Plain Layout
1113 \begin_inset Graphics
1114 filename clipart/escher-lsd.eps
1127 \begin_inset space \hfill{}
1131 \begin_inset Float figure
1136 \begin_layout Plain Layout
1137 \begin_inset Caption
1139 \begin_layout Plain Layout
1140 \begin_inset CommandInset label
1142 name "fig:A-Platypus"
1154 \begin_layout Plain Layout
1155 \begin_inset Graphics
1156 filename clipart/platypus.eps
1169 \begin_inset space \hfill{}
1175 \begin_layout Plain Layout
1176 \begin_inset Caption
1178 \begin_layout Plain Layout
1179 \begin_inset CommandInset label
1181 name "fig:Two-distorted-images"
1185 Two distorted images.
1186 Both images are in the image settings group named
1187 \begin_inset Quotes eld
1191 \begin_inset Quotes erd
1207 \begin_layout Standard
1208 \begin_inset Newpage newpage
1214 \begin_layout Section
1216 \begin_inset CommandInset label
1218 name "sec:Image-Formats"
1226 \begin_layout Plain Layout
1236 \begin_layout Plain Layout
1237 Figures ! Image Formats
1245 \begin_layout Standard
1246 You can insert images in any known file format.
1247 But as explained in appendix
1248 \begin_inset space ~
1252 \begin_inset CommandInset ref
1254 reference "cha:Output-File-Formats"
1258 , every output document format allows only a few image formats.
1259 LyX uses therefore the program
1263 in the background to convert the images to the right format.
1264 To increase your work flow by avoiding these conversions in the background,
1265 you can use only the image formats that can directly be embedded in the
1267 The output file formats are explained in appendix
1268 \begin_inset space ~
1272 \begin_inset CommandInset ref
1274 reference "cha:Output-File-Formats"
1281 \begin_layout Standard
1282 Similar to fonts there are two types of image formats:
1285 \begin_layout Description
1287 \begin_inset space ~
1290 images consist of pixel values, often in a compressed form.
1291 They are therefore not fully scalable and look pixeled in large zooms.
1292 Well-known bitmap image formats are
1293 \begin_inset Quotes eld
1296 Graphics Interchange Format
1297 \begin_inset Quotes erd
1300 (GIF, file extension
1301 \begin_inset Quotes eld
1309 \begin_inset Quotes erd
1316 \begin_layout Plain Layout
1321 \begin_layout Plain Layout
1332 \begin_layout Plain Layout
1345 \begin_inset Quotes eld
1348 Portable Network Graphics
1349 \begin_inset Quotes erd
1352 (PNG, file extension
1353 \begin_inset Quotes eld
1361 \begin_inset Quotes erd
1368 \begin_layout Plain Layout
1373 \begin_layout Plain Layout
1384 \begin_layout Plain Layout
1397 \begin_inset Quotes eld
1400 Joint Photographic Experts Group
1401 \begin_inset Quotes erd
1404 (JPG, file extension
1405 \begin_inset Quotes eld
1413 \begin_inset Quotes erd
1417 \begin_inset Quotes eld
1425 \begin_inset Quotes erd
1432 \begin_layout Plain Layout
1437 \begin_layout Plain Layout
1448 \begin_layout Plain Layout
1463 \begin_layout Description
1465 \begin_inset space ~
1468 images consist of vectors and can therefore be scaled to any size without
1470 The scaling ability is necessary if you want to create presentations, because
1471 presentations are always scaled by the video projector.
1472 Scaling is also useful for online documents to let the user zoom into diagrams.
1473 \begin_inset Newline newline
1476 Well-known scalable image formats are
1477 \begin_inset Quotes eld
1480 Scalable Vector Graphics
1481 \begin_inset Quotes erd
1484 (SVG, file extension
1485 \begin_inset Quotes eld
1493 \begin_inset Quotes erd
1500 \begin_layout Plain Layout
1505 \begin_layout Plain Layout
1516 \begin_layout Plain Layout
1529 \begin_inset Quotes eld
1532 Encapsulated PostScript
1533 \begin_inset Quotes erd
1536 (EPS, file extension
1537 \begin_inset Quotes eld
1545 \begin_inset Quotes erd
1552 \begin_layout Plain Layout
1557 \begin_layout Plain Layout
1568 \begin_layout Plain Layout
1581 \begin_inset Quotes eld
1584 Portable Document Format
1585 \begin_inset Quotes erd
1588 (PDF, file extension
1589 \begin_inset Quotes eld
1597 \begin_inset Quotes erd
1604 \begin_layout Plain Layout
1611 \begin_inset Quotes eld
1615 \begin_inset Quotes erd
1618 (WMF, file extension
1619 \begin_inset Quotes eld
1627 \begin_inset Quotes erd
1634 \begin_layout Plain Layout
1639 \begin_layout Plain Layout
1650 \begin_layout Plain Layout
1664 \begin_inset Quotes eld
1668 \begin_inset Quotes erd
1671 , because you can convert any bitmap image to a PDF or EPS-image and the
1672 result will still be a bitmap image.
1673 In this cases only a header with the image properties is added to the original
1678 \begin_layout Plain Layout
1679 In the case of PDF, the original image is additionally compressed.
1685 The PDF-files generated by
1689 are for example bitmap images.
1692 \begin_layout Standard
1693 Normally it is not possible to convert a bitmap image into a scalable one,
1695 Only the image formats PDF and EPS can directly be embedded to PDF and
1696 PostScript output files, respectively.
1697 SVG and WMF-images are recalculated to bitmaps when the output file is
1698 generated because there is currently no adequate WMF/SVG
1699 \begin_inset Formula $\to$
1702 PDF/EPS converter available.
1705 \begin_layout Chapter
1710 \begin_layout Plain Layout
1719 \begin_layout Section
1724 \begin_layout Plain Layout
1725 Table ! Introduction
1733 \begin_layout Standard
1734 You can insert a table using either the toolbar button
1735 \begin_inset Graphics
1736 filename ../images/tabular-insert.png
1744 Insert\SpecialChar \menuseparator
1748 The toolbar button offers you a graphical selection: Move the mouse to
1749 set the column/row number of the table that should be created and then
1750 press a mouse button.
1751 When you use the menu to create a table, a dialog will appear, asking you
1752 for the number of rows and columns.
1753 \begin_inset Newline newline
1756 The default table has lines around any cell and the first row appears separated
1757 from the rest of the table.
1758 This separation occurs due to a double line: The cells of the first row
1759 have a line below them and the cells of the second row have a line above
1761 Here is an example table:
1764 \begin_layout Standard
1766 \begin_inset Tabular
1767 <lyxtabular version="3" rows="4" columns="4">
1769 <column alignment="center" valignment="top" width="0">
1770 <column alignment="center" valignment="top" width="0">
1771 <column alignment="center" valignment="top" width="0">
1772 <column alignment="center" valignment="top" width="0">
1774 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1777 \begin_layout Plain Layout
1783 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1786 \begin_layout Plain Layout
1801 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1804 \begin_layout Plain Layout
1810 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1813 \begin_layout Plain Layout
1821 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1824 \begin_layout Plain Layout
1839 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1842 \begin_layout Plain Layout
1848 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1851 \begin_layout Plain Layout
1857 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1860 \begin_layout Plain Layout
1868 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1871 \begin_layout Plain Layout
1886 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1889 \begin_layout Plain Layout
1895 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1898 \begin_layout Plain Layout
1904 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1907 \begin_layout Plain Layout
1915 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1918 \begin_layout Plain Layout
1933 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1936 \begin_layout Plain Layout
1942 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1945 \begin_layout Plain Layout
1951 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1954 \begin_layout Plain Layout
1968 \begin_layout Section
1973 \begin_layout Plain Layout
1982 \begin_layout Standard
1983 You can alter a table by clicking on it with the right mouse button, which
1984 brings up the table dialog.
1985 Here you can adjust the settings of that cell and row/column respectively
1986 where the cursor is currently placed.
1987 Most of the dialog options also work on selections.
1988 This means if you select more cells, columns or rows, the action is done
1989 for the whole selection.
1990 Note that there is a difference between selecting the
1994 of the cell, and the cell itself.
1995 You can alter tables with the following tabs of the table dialog:
1998 \begin_layout Description
2002 \begin_inset space ~
2007 Here you can set the horizontal alignment and the width of the current
2009 When you have set a width you can also adjust the vertical alignment of
2011 A given width will allow the cell to have line breaks and multiple paragraphs
2012 of text, see section
2013 \begin_inset space ~
2017 \begin_inset CommandInset ref
2019 reference "sub:Multiple-Lines-in"
2024 If you set no width, the column is as wide as their widest cell content
2026 \begin_inset Newline newline
2029 Furthermore, you can mark one or multiple cells of one row as a multicolumn
2031 \begin_inset space ~
2035 \begin_inset CommandInset ref
2037 reference "sub:Multicolumns"
2042 \begin_inset Newline newline
2045 The rotate check boxes rotates the current cell, a selection, or the whole
2046 table counter-clockwise by 90°.
2047 The rotation is not shown within LyX, only in the output.
2048 \begin_inset Newline newline
2052 \begin_inset Note Greyedout
2055 \begin_layout Plain Layout
2060 Not all DVI-viewers are able to display rotations.
2066 \begin_inset Newline newline
2069 It is also possible to enter a LaTeX-argument which is needed for special
2070 table formattings, see section
2071 \begin_inset space ~
2075 \begin_inset CommandInset ref
2077 reference "sub:Multicolumn-Calculations"
2082 \begin_inset CommandInset ref
2084 reference "sec:Colored-Tables"
2091 \begin_layout Description
2096 In this tab you can add and delete border lines for the current row/column.
2097 \begin_inset Newline newline
2100 Using the style option
2104 will convert the table to a formal table as described in section
2105 \begin_inset space ~
2109 \begin_inset CommandInset ref
2111 reference "sec:Formal-Tables"
2116 \begin_inset Newline newline
2119 You can also add here space to table rows as decribed in section
2120 \begin_inset space ~
2124 \begin_inset CommandInset ref
2126 reference "sub:Row-Spacing"
2133 \begin_layout Description
2138 This tab is to make a table a so called
2139 \begin_inset Quotes eld
2147 \begin_inset Quotes erd
2150 that can run over several pages.
2152 \begin_inset space ~
2156 \begin_inset CommandInset ref
2158 reference "sec:Longtables"
2163 \begin_inset CommandInset ref
2165 reference "sec:Special-Longtable-Issues"
2169 describe the longtable features in detail.
2172 \begin_layout Standard
2173 When the table toolbar is opened, you can move the cursor with the arrow
2174 keys from cell to cell and the property of the current cell will immediately
2175 be displayed in the dialog.
2178 \begin_layout Section
2183 \begin_layout Plain Layout
2192 \begin_layout Standard
2193 The table toolbar is an alternative to the table dialog to be able to alter
2195 It should normally appear at the bottom of LyX's main window when the cursor
2197 You can alternatively switch it on to appear always, by right-clicking
2198 in LyX's main menu bar.
2201 \begin_layout Standard
2202 The toolbar has the following icons:
2205 \begin_layout Labeling
2206 \labelwidthstring 00.00.0000
2207 \begin_inset Graphics
2208 filename ../images/tabular-feature_append-row.png
2213 adds a row below the current cell or selection
2216 \begin_layout Labeling
2217 \labelwidthstring 00.00.0000
2218 \begin_inset Graphics
2219 filename ../images/tabular-feature_append-column.png
2224 adds a column right beside the current cell or selection
2227 \begin_layout Labeling
2228 \labelwidthstring 00.00.0000
2229 \begin_inset Graphics
2230 filename ../images/tabular-feature_delete-row.png
2235 deletes the current row or selection
2238 \begin_layout Labeling
2239 \labelwidthstring 00.00.0000
2240 \begin_inset Graphics
2241 filename ../images/tabular-feature_delete-column.png
2246 deletes the current column or selection
2249 \begin_layout Labeling
2250 \labelwidthstring 00.00.0000
2251 \begin_inset Graphics
2252 filename ../images/tabular-feature_toggle-line-top.png
2257 adds a line at the top of the current cell / row or of a selection
2260 \begin_layout Labeling
2261 \labelwidthstring 00.00.0000
2262 \begin_inset Graphics
2263 filename ../images/tabular-feature_toggle-line-bottom.png
2268 adds a line at the bottom of the current cell / row or of a selection
2271 \begin_layout Labeling
2272 \labelwidthstring 00.00.0000
2273 \begin_inset Graphics
2274 filename ../images/tabular-feature_toggle-line-left.png
2279 adds a line at the left side of the current cell / row or of a selection
2282 \begin_layout Labeling
2283 \labelwidthstring 00.00.0000
2284 \begin_inset Graphics
2285 filename ../images/tabular-feature_toggle-line-right.png
2290 adds a line at the right side of the current cell / row or of a selection
2293 \begin_layout Labeling
2294 \labelwidthstring 00.00.0000
2295 \begin_inset Graphics
2296 filename ../images/tabular-feature_set-all-lines.png
2301 adds lines around the current or selected cells - if the current cell no
2302 multicolumn this also affects the current row and column
2305 \begin_layout Labeling
2306 \labelwidthstring 00.00.0000
2307 \begin_inset Graphics
2308 filename ../images/tabular-feature_unset-all-lines.png
2313 deletes all lines of the current or selected cells - if the current cell
2314 no multicolumn this also affects the current row and column
2317 \begin_layout Labeling
2318 \labelwidthstring 00.00.0000
2319 \begin_inset Graphics
2320 filename ../images/tabular-feature_align-left.png
2325 left-aligns the content of the current cell / column
2328 \begin_layout Labeling
2329 \labelwidthstring 00.00.0000
2330 \begin_inset Graphics
2331 filename ../images/tabular-feature_align-center.png
2336 centers the content of the current cell / column horizontally
2339 \begin_layout Labeling
2340 \labelwidthstring 00.00.0000
2341 \begin_inset Graphics
2342 filename ../images/tabular-feature_align-right.png
2347 right-aligns the content of the current cell / column
2350 \begin_layout Labeling
2351 \labelwidthstring 00.00.0000
2352 \begin_inset Graphics
2353 filename ../images/tabular-feature_valign-top.png
2358 aligns the content of the current cell vertically to the top
2361 \begin_layout Labeling
2362 \labelwidthstring 00.00.0000
2363 \begin_inset Graphics
2364 filename ../images/tabular-feature_valign-middle.png
2369 centers the content of the current cell vertically
2372 \begin_layout Labeling
2373 \labelwidthstring 00.00.0000
2374 \begin_inset Graphics
2375 filename ../images/tabular-feature_valign-bottom.png
2380 aligns the content of the current cell vertically to the bottom
2383 \begin_layout Labeling
2384 \labelwidthstring 00.00.0000
2385 \begin_inset Graphics
2386 filename ../images/tabular-feature_set-rotate-cell.png
2391 rotates the current cell or selection counter-clockwise by 90°
2394 \begin_layout Labeling
2395 \labelwidthstring 00.00.0000
2396 \begin_inset Graphics
2397 filename ../images/tabular-feature_set-rotate-tabular.png
2402 rotates the whole table counter-clockwise by 90°
2405 \begin_layout Labeling
2406 \labelwidthstring 00.00.0000
2407 \begin_inset Graphics
2408 filename ../images/tabular-feature_multicolumn.png
2413 sets the current cell or selection as a multicolumn
2416 \begin_layout Standard
2417 \begin_inset Note Greyedout
2420 \begin_layout Plain Layout
2425 For the output the vertical alignment of the first cell in a row is used
2426 for all following cells in the row.
2434 \begin_layout Section
2439 \begin_layout Plain Layout
2448 \begin_layout Standard
2449 Additionally to the table dialog and toolbar, the menu
2451 Edit\SpecialChar \menuseparator
2454 allows you to add and delete border lines for the current row/column and
2455 to set the current selection as multicolumn.
2456 The menu is only available when the cursor is inside a table.
2459 \begin_layout Section
2461 \begin_inset CommandInset label
2463 name "sec:Table-Floats"
2471 \begin_layout Plain Layout
2481 \begin_layout Plain Layout
2490 \begin_layout Standard
2491 For general explanations about floats, have a look at section
2492 \begin_inset space ~
2496 \begin_inset CommandInset ref
2498 reference "sec:FloatIntroduction"
2505 \begin_layout Standard
2506 \begin_inset Float table
2512 \begin_layout Plain Layout
2513 \begin_inset Caption
2515 \begin_layout Plain Layout
2516 \begin_inset CommandInset label
2518 name "tab:a table float"
2530 \begin_layout Plain Layout
2532 \begin_inset Tabular
2533 <lyxtabular version="3" rows="3" columns="3">
2535 <column alignment="center" valignment="top" width="0pt">
2536 <column alignment="center" valignment="top" width="0pt">
2537 <column alignment="center" valignment="top" width="0pt">
2539 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2542 \begin_layout Plain Layout
2557 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2560 \begin_layout Plain Layout
2575 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2578 \begin_layout Plain Layout
2595 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2598 \begin_layout Plain Layout
2613 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2616 \begin_layout Plain Layout
2631 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2634 \begin_layout Plain Layout
2651 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2654 \begin_layout Plain Layout
2664 \begin_inset Formula $\int x^{2}dx$
2672 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2675 \begin_layout Plain Layout
2685 \begin_inset Formula $\left[\begin{array}{cc}
2687 c & d\end{array}\right]$
2695 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2698 \begin_layout Plain Layout
2708 \begin_inset Formula $1+1=2$
2729 \begin_layout Standard
2730 Table floats can be inserted using the menu
2732 Insert\SpecialChar \menuseparator
2733 Float\SpecialChar \menuseparator
2736 or the toolbar button
2737 \begin_inset Graphics
2738 filename ../images/float-insert_table.png
2747 \begin_layout Standard
2748 The float appears as a collapsible box with a caption that has the label
2750 \begin_inset Quotes eld
2754 \begin_inset space ~
2758 \begin_inset Quotes erd
2761 (# is the actual table number).
2762 You can insert tables to the float above or below the caption.
2765 \begin_layout Standard
2767 \begin_inset space ~
2771 \begin_inset CommandInset ref
2773 reference "tab:a table float"
2777 is an example table within a table float.
2780 \begin_layout Standard
2781 Having the caption above the table is the common rule that is unfortunately
2782 not supported in LaTeX's standard classes.
2783 That means if you are using the document classes
2799 there will be no space between the caption and the table.
2800 To insert the needed space, add the following option to the load command
2801 of the LaTeX-package
2809 \begin_layout Plain Layout
2810 LaTeX-packages ! caption
2815 in your document preamble
2819 \begin_layout Plain Layout
2820 For more information have a look at section
2821 \begin_inset space ~
2825 \begin_inset CommandInset ref
2827 reference "sec:Caption-Placement"
2839 \begin_layout Standard
2845 \begin_layout Standard
2850 , which is described in section
2851 \begin_inset space ~
2855 \begin_inset CommandInset ref
2857 reference "sec:Caption-Formatting"
2861 , is used to adjust the caption format.
2864 \begin_layout Standard
2868 \begin_layout Plain Layout
2869 References ! to Tables
2874 Tables can be cross-referenced in the text by referencing their label.
2875 To do this insert a label in the caption using the menu
2877 Insert\SpecialChar \menuseparator
2880 or the toolbar button
2881 \begin_inset Graphics
2882 filename ../images/label-insert.png
2889 You can now refer to the label using the menu
2891 Insert\SpecialChar \menuseparator
2893 \begin_inset space ~
2898 or the toolbar button
2899 \begin_inset Graphics
2900 filename ../images/dialog-show-new-inset_ref.png
2907 \begin_inset Newline newline
2910 Referencing is explained in detail in section
2911 \begin_inset space ~
2915 \begin_inset CommandInset ref
2917 reference "sec:Referencing-Floats"
2924 \begin_layout Section
2926 \begin_inset CommandInset label
2928 name "sec:Longtables"
2936 \begin_layout Plain Layout
2946 \begin_layout Plain Layout
2955 \begin_layout Standard
2956 If the table is too long to fit on one page, you can use the option
2959 \begin_inset space ~
2963 \begin_inset space ~
2972 of the table dialog to split the table automatically over more pages.
2973 Doing this enables the following options:
2976 \begin_layout Description
2977 Header: The current row is defined to be a header row that appears on all
2978 pages of the longtable; except for the first page, if
2981 \begin_inset space ~
2987 This therefore called the main header.
2990 \begin_layout Description
2992 \begin_inset space ~
2995 header: The current row is defined to be a header row that appears on the
2996 first page of the longtable.
2999 \begin_layout Description
3000 Footer: The current row is defined to be a footer row that appears on all
3001 pages of the longtable; except for the last page, if
3004 \begin_inset space ~
3012 \begin_layout Description
3014 \begin_inset space ~
3017 footer: The current row is defined to be a footer row that appear on the
3018 last page of the longtable.
3021 \begin_layout Description
3022 Caption: The current row contains the table caption.
3023 The row is reset as single column and a caption is inserted.
3024 More about longtable captions is explained in sec.
3025 \begin_inset space \thinspace{}
3029 \begin_inset CommandInset ref
3031 reference "sub:Longtable-Captions"
3038 \begin_layout Standard
3039 You can also specify a row where the table is split.
3040 See the following longtable to see how it works:
3043 \begin_layout Standard
3045 \begin_inset Tabular
3046 <lyxtabular version="3" rows="69" columns="3">
3047 <features islongtable="true">
3048 <column alignment="left" valignment="top" width="0cm">
3049 <column alignment="left" valignment="top" width="0pt">
3050 <column alignment="center" valignment="top" width="0pt">
3051 <row endfirsthead="true">
3052 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3055 \begin_layout Plain Layout
3058 Example Phone List (ignore the names)
3063 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3066 \begin_layout Plain Layout
3072 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3075 \begin_layout Plain Layout
3082 <row endfirsthead="true">
3083 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3086 \begin_layout Plain Layout
3094 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3097 \begin_layout Plain Layout
3103 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3106 \begin_layout Plain Layout
3115 <row endhead="true">
3116 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3119 \begin_layout Plain Layout
3127 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3130 \begin_layout Plain Layout
3136 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3139 \begin_layout Plain Layout
3146 <row endhead="true">
3147 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3150 \begin_layout Plain Layout
3158 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3161 \begin_layout Plain Layout
3167 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3170 \begin_layout Plain Layout
3179 <row endfoot="true">
3180 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
3183 \begin_layout Plain Layout
3184 continued on next page
3189 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3192 \begin_layout Plain Layout
3198 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3201 \begin_layout Plain Layout
3209 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3212 \begin_layout Plain Layout
3220 <cell alignment="center" valignment="top" usebox="none">
3223 \begin_layout Plain Layout
3229 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3232 \begin_layout Plain Layout
3240 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3243 \begin_layout Plain Layout
3251 <cell alignment="center" valignment="top" usebox="none">
3254 \begin_layout Plain Layout
3260 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3263 \begin_layout Plain Layout
3271 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3274 \begin_layout Plain Layout
3282 <cell alignment="center" valignment="top" usebox="none">
3285 \begin_layout Plain Layout
3291 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3294 \begin_layout Plain Layout
3302 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3305 \begin_layout Plain Layout
3313 <cell alignment="center" valignment="top" usebox="none">
3316 \begin_layout Plain Layout
3322 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3325 \begin_layout Plain Layout
3333 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3336 \begin_layout Plain Layout
3344 <cell alignment="center" valignment="top" usebox="none">
3347 \begin_layout Plain Layout
3353 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3356 \begin_layout Plain Layout
3364 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3367 \begin_layout Plain Layout
3375 <cell alignment="center" valignment="top" usebox="none">
3378 \begin_layout Plain Layout
3384 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3387 \begin_layout Plain Layout
3395 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3398 \begin_layout Plain Layout
3406 <cell alignment="center" valignment="top" usebox="none">
3409 \begin_layout Plain Layout
3415 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3418 \begin_layout Plain Layout
3426 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3429 \begin_layout Plain Layout
3437 <cell alignment="center" valignment="top" usebox="none">
3440 \begin_layout Plain Layout
3446 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3449 \begin_layout Plain Layout
3457 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3460 \begin_layout Plain Layout
3468 <cell alignment="center" valignment="top" usebox="none">
3471 \begin_layout Plain Layout
3477 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3480 \begin_layout Plain Layout
3488 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3491 \begin_layout Plain Layout
3499 <cell alignment="center" valignment="top" usebox="none">
3502 \begin_layout Plain Layout
3508 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3511 \begin_layout Plain Layout
3519 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3522 \begin_layout Plain Layout
3530 <cell alignment="center" valignment="top" usebox="none">
3533 \begin_layout Plain Layout
3539 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3542 \begin_layout Plain Layout
3550 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3553 \begin_layout Plain Layout
3561 <cell alignment="center" valignment="top" usebox="none">
3564 \begin_layout Plain Layout
3570 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3573 \begin_layout Plain Layout
3581 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3584 \begin_layout Plain Layout
3592 <cell alignment="center" valignment="top" usebox="none">
3595 \begin_layout Plain Layout
3601 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3604 \begin_layout Plain Layout
3612 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3615 \begin_layout Plain Layout
3623 <cell alignment="center" valignment="top" usebox="none">
3626 \begin_layout Plain Layout
3632 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3635 \begin_layout Plain Layout
3643 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3646 \begin_layout Plain Layout
3654 <cell alignment="center" valignment="top" usebox="none">
3657 \begin_layout Plain Layout
3663 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3666 \begin_layout Plain Layout
3674 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3677 \begin_layout Plain Layout
3685 <cell alignment="center" valignment="top" usebox="none">
3688 \begin_layout Plain Layout
3694 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3697 \begin_layout Plain Layout
3705 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3708 \begin_layout Plain Layout
3716 <cell alignment="center" valignment="top" usebox="none">
3719 \begin_layout Plain Layout
3725 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3728 \begin_layout Plain Layout
3736 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3739 \begin_layout Plain Layout
3747 <cell alignment="center" valignment="top" usebox="none">
3750 \begin_layout Plain Layout
3756 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3759 \begin_layout Plain Layout
3767 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3770 \begin_layout Plain Layout
3778 <cell alignment="center" valignment="top" usebox="none">
3781 \begin_layout Plain Layout
3787 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3790 \begin_layout Plain Layout
3798 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3801 \begin_layout Plain Layout
3809 <cell alignment="center" valignment="top" usebox="none">
3812 \begin_layout Plain Layout
3818 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3821 \begin_layout Plain Layout
3829 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3832 \begin_layout Plain Layout
3840 <cell alignment="center" valignment="top" usebox="none">
3843 \begin_layout Plain Layout
3849 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3852 \begin_layout Plain Layout
3860 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3863 \begin_layout Plain Layout
3871 <cell alignment="center" valignment="top" usebox="none">
3874 \begin_layout Plain Layout
3880 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3883 \begin_layout Plain Layout
3891 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3894 \begin_layout Plain Layout
3902 <cell alignment="center" valignment="top" usebox="none">
3905 \begin_layout Plain Layout
3911 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3914 \begin_layout Plain Layout
3922 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3925 \begin_layout Plain Layout
3933 <cell alignment="center" valignment="top" usebox="none">
3936 \begin_layout Plain Layout
3942 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3945 \begin_layout Plain Layout
3953 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3956 \begin_layout Plain Layout
3964 <cell alignment="center" valignment="top" usebox="none">
3967 \begin_layout Plain Layout
3973 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3976 \begin_layout Plain Layout
3984 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3987 \begin_layout Plain Layout
3995 <cell alignment="center" valignment="top" usebox="none">
3998 \begin_layout Plain Layout
4004 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4007 \begin_layout Plain Layout
4015 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4018 \begin_layout Plain Layout
4026 <cell alignment="center" valignment="top" usebox="none">
4029 \begin_layout Plain Layout
4035 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4038 \begin_layout Plain Layout
4046 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4049 \begin_layout Plain Layout
4057 <cell alignment="center" valignment="top" usebox="none">
4060 \begin_layout Plain Layout
4066 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4069 \begin_layout Plain Layout
4077 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4080 \begin_layout Plain Layout
4088 <cell alignment="center" valignment="top" usebox="none">
4091 \begin_layout Plain Layout
4097 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4100 \begin_layout Plain Layout
4108 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4111 \begin_layout Plain Layout
4119 <cell alignment="center" valignment="top" usebox="none">
4122 \begin_layout Plain Layout
4128 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4131 \begin_layout Plain Layout
4139 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4142 \begin_layout Plain Layout
4150 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4153 \begin_layout Plain Layout
4159 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4162 \begin_layout Plain Layout
4170 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4173 \begin_layout Plain Layout
4179 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4182 \begin_layout Plain Layout
4188 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4191 \begin_layout Plain Layout
4199 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4202 \begin_layout Plain Layout
4210 <cell alignment="center" valignment="top" usebox="none">
4213 \begin_layout Plain Layout
4219 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4222 \begin_layout Plain Layout
4230 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4233 \begin_layout Plain Layout
4241 <cell alignment="center" valignment="top" usebox="none">
4244 \begin_layout Plain Layout
4250 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4253 \begin_layout Plain Layout
4261 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4264 \begin_layout Plain Layout
4272 <cell alignment="center" valignment="top" usebox="none">
4275 \begin_layout Plain Layout
4281 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4284 \begin_layout Plain Layout
4292 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4295 \begin_layout Plain Layout
4303 <cell alignment="center" valignment="top" usebox="none">
4306 \begin_layout Plain Layout
4312 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4315 \begin_layout Plain Layout
4323 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4326 \begin_layout Plain Layout
4334 <cell alignment="center" valignment="top" usebox="none">
4337 \begin_layout Plain Layout
4343 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4346 \begin_layout Plain Layout
4354 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4357 \begin_layout Plain Layout
4365 <cell alignment="center" valignment="top" usebox="none">
4368 \begin_layout Plain Layout
4374 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4377 \begin_layout Plain Layout
4385 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4388 \begin_layout Plain Layout
4396 <cell alignment="center" valignment="top" usebox="none">
4399 \begin_layout Plain Layout
4405 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4408 \begin_layout Plain Layout
4416 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4419 \begin_layout Plain Layout
4427 <cell alignment="center" valignment="top" usebox="none">
4430 \begin_layout Plain Layout
4436 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4439 \begin_layout Plain Layout
4447 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4450 \begin_layout Plain Layout
4458 <cell alignment="center" valignment="top" usebox="none">
4461 \begin_layout Plain Layout
4467 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4470 \begin_layout Plain Layout
4478 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4481 \begin_layout Plain Layout
4489 <cell alignment="center" valignment="top" usebox="none">
4492 \begin_layout Plain Layout
4498 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4501 \begin_layout Plain Layout
4509 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4512 \begin_layout Plain Layout
4520 <cell alignment="center" valignment="top" usebox="none">
4523 \begin_layout Plain Layout
4529 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4532 \begin_layout Plain Layout
4540 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4543 \begin_layout Plain Layout
4551 <cell alignment="center" valignment="top" usebox="none">
4554 \begin_layout Plain Layout
4560 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4563 \begin_layout Plain Layout
4571 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4574 \begin_layout Plain Layout
4582 <cell alignment="center" valignment="top" usebox="none">
4585 \begin_layout Plain Layout
4591 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4594 \begin_layout Plain Layout
4602 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4605 \begin_layout Plain Layout
4613 <cell alignment="center" valignment="top" usebox="none">
4616 \begin_layout Plain Layout
4622 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4625 \begin_layout Plain Layout
4633 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4636 \begin_layout Plain Layout
4644 <cell alignment="center" valignment="top" usebox="none">
4647 \begin_layout Plain Layout
4653 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4656 \begin_layout Plain Layout
4664 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4667 \begin_layout Plain Layout
4675 <cell alignment="center" valignment="top" usebox="none">
4678 \begin_layout Plain Layout
4684 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4687 \begin_layout Plain Layout
4695 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4698 \begin_layout Plain Layout
4706 <cell alignment="center" valignment="top" usebox="none">
4709 \begin_layout Plain Layout
4715 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4718 \begin_layout Plain Layout
4726 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4729 \begin_layout Plain Layout
4737 <cell alignment="center" valignment="top" usebox="none">
4740 \begin_layout Plain Layout
4746 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4749 \begin_layout Plain Layout
4757 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4760 \begin_layout Plain Layout
4768 <cell alignment="center" valignment="top" usebox="none">
4771 \begin_layout Plain Layout
4777 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4780 \begin_layout Plain Layout
4788 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4791 \begin_layout Plain Layout
4799 <cell alignment="center" valignment="top" usebox="none">
4802 \begin_layout Plain Layout
4808 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4811 \begin_layout Plain Layout
4819 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4822 \begin_layout Plain Layout
4830 <cell alignment="center" valignment="top" usebox="none">
4833 \begin_layout Plain Layout
4839 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4842 \begin_layout Plain Layout
4850 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4853 \begin_layout Plain Layout
4861 <cell alignment="center" valignment="top" usebox="none">
4864 \begin_layout Plain Layout
4870 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4873 \begin_layout Plain Layout
4881 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4884 \begin_layout Plain Layout
4892 <cell alignment="center" valignment="top" usebox="none">
4895 \begin_layout Plain Layout
4901 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4904 \begin_layout Plain Layout
4912 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4915 \begin_layout Plain Layout
4923 <cell alignment="center" valignment="top" usebox="none">
4926 \begin_layout Plain Layout
4932 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4935 \begin_layout Plain Layout
4943 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4946 \begin_layout Plain Layout
4954 <cell alignment="center" valignment="top" usebox="none">
4957 \begin_layout Plain Layout
4963 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4966 \begin_layout Plain Layout
4974 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4977 \begin_layout Plain Layout
4985 <cell alignment="center" valignment="top" usebox="none">
4988 \begin_layout Plain Layout
4994 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4997 \begin_layout Plain Layout
5005 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5008 \begin_layout Plain Layout
5016 <cell alignment="center" valignment="top" usebox="none">
5019 \begin_layout Plain Layout
5025 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5028 \begin_layout Plain Layout
5036 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5039 \begin_layout Plain Layout
5047 <cell alignment="center" valignment="top" usebox="none">
5050 \begin_layout Plain Layout
5056 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5059 \begin_layout Plain Layout
5067 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5070 \begin_layout Plain Layout
5078 <cell alignment="center" valignment="top" usebox="none">
5081 \begin_layout Plain Layout
5087 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5090 \begin_layout Plain Layout
5098 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5101 \begin_layout Plain Layout
5109 <cell alignment="center" valignment="top" usebox="none">
5112 \begin_layout Plain Layout
5118 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5121 \begin_layout Plain Layout
5129 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5132 \begin_layout Plain Layout
5140 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5143 \begin_layout Plain Layout
5149 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5152 \begin_layout Plain Layout
5159 <row endlastfoot="true">
5160 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5163 \begin_layout Plain Layout
5169 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5172 \begin_layout Plain Layout
5178 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5181 \begin_layout Plain Layout
5196 \begin_layout Plain Layout
5200 addtocounter{table}{-1}
5206 \begin_inset Note Note
5209 \begin_layout Plain Layout
5210 See the first greyed-out note in section
5211 \begin_inset space ~
5215 \begin_inset CommandInset ref
5217 reference "sub:Longtable-Captions"
5221 for an explanation of this command.
5229 \begin_layout Subsection
5230 Footnotes in Longtables
5231 \begin_inset CommandInset label
5233 name "sub:Footnotes-in-Longtables"
5241 \begin_layout Plain Layout
5242 Longtables ! Footnotes
5250 \begin_layout Standard
5251 Footnotes can be inserted to every longtable cell.
5252 They appear at the bottom of the page where the table cell with the footnote
5255 \begin_inset space ~
5259 \begin_inset CommandInset ref
5261 reference "tab:DiffCaptions"
5265 has for example a footnote.
5268 \begin_layout Subsection
5273 \begin_layout Plain Layout
5274 Longtables ! Alignment
5282 \begin_layout Standard
5283 Longtables are by default centered.
5284 In contrary to the alignment of the table columns and row, the table alignment
5285 can currently not be changed in the table dialog.
5286 To change the alignment of longtables you have to change the value of the
5299 by inserting this line as TeX-Code before the corresponding longtable:
5302 \begin_layout Standard
5312 \begin_layout Standard
5313 Where the value can have any of the units listed in Table
5314 \begin_inset space ~
5318 \begin_inset CommandInset ref
5320 reference "tab:Units"
5331 controls the horizontal distance from the left page border to the longtable,
5338 the distance from the right side.
5339 The default value for both lengths is
5345 , which is in this case the same as an horizontal fill in LyX.
5348 \begin_layout Standard
5349 The following longtable was left-aligned by setting
5356 \begin_inset space \thinspace{}
5363 \begin_layout Plain Layout
5377 \begin_layout Standard
5378 \begin_inset Tabular
5379 <lyxtabular version="3" rows="5" columns="5">
5380 <features islongtable="true">
5381 <column alignment="center" valignment="top" width="0">
5382 <column alignment="center" valignment="top" width="0">
5383 <column alignment="center" valignment="top" width="0">
5384 <column alignment="center" valignment="top" width="0">
5385 <column alignment="center" valignment="top" width="0">
5387 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5390 \begin_layout Plain Layout
5396 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5399 \begin_layout Plain Layout
5405 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5408 \begin_layout Plain Layout
5414 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5417 \begin_layout Plain Layout
5423 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5426 \begin_layout Plain Layout
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" bottomline="true" leftline="true" usebox="none">
5578 \begin_layout Plain Layout
5584 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5587 \begin_layout Plain Layout
5593 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5596 \begin_layout Plain Layout
5602 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5605 \begin_layout Plain Layout
5611 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5614 \begin_layout Plain Layout
5629 \begin_layout Plain Layout
5646 \begin_layout Plain Layout
5650 addtocounter{table}{-1}
5656 \begin_inset Note Note
5659 \begin_layout Plain Layout
5660 See the first greyed-out note in section
5661 \begin_inset space ~
5665 \begin_inset CommandInset ref
5667 reference "sub:Longtable-Captions"
5671 for an explanation of this command.
5679 \begin_layout Subsection
5684 \begin_layout Plain Layout
5685 Longtables ! Captions
5691 \begin_inset CommandInset label
5693 name "sub:Longtable-Captions"
5700 \begin_layout Standard
5701 A longtable cannot be put into a table float because floats can only be
5703 But the caption environment of floats can also be used for longtables when
5704 you use for a table row the longtable option
5708 as described in sec.
5709 \begin_inset space \thinspace{}
5713 \begin_inset CommandInset ref
5715 reference "sec:Longtables"
5720 Only one table row can contain the caption.
5723 \begin_layout Standard
5724 Here is a short longtable to see how it works:
5727 \begin_layout Standard
5728 \begin_inset Tabular
5729 <lyxtabular version="3" rows="6" columns="5">
5730 <features islongtable="true">
5731 <column alignment="center" valignment="top" width="0">
5732 <column alignment="center" valignment="top" width="0">
5733 <column alignment="center" valignment="top" width="0">
5734 <column alignment="center" valignment="top" width="0">
5735 <column alignment="center" valignment="top" width="0">
5736 <row caption="true">
5737 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
5740 \begin_layout Plain Layout
5741 \begin_inset Caption
5743 \begin_layout Plain Layout
5744 Longtable with caption
5748 \begin_layout Plain Layout
5764 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5767 \begin_layout Plain Layout
5773 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5776 \begin_layout Plain Layout
5782 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5785 \begin_layout Plain Layout
5791 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5794 \begin_layout Plain Layout
5802 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5805 \begin_layout Plain Layout
5811 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5814 \begin_layout Plain Layout
5820 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5823 \begin_layout Plain Layout
5829 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5832 \begin_layout Plain Layout
5838 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5841 \begin_layout Plain Layout
5849 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5852 \begin_layout Plain Layout
5858 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5861 \begin_layout Plain Layout
5867 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5870 \begin_layout Plain Layout
5876 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5879 \begin_layout Plain Layout
5885 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5888 \begin_layout Plain Layout
5896 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5899 \begin_layout Plain Layout
5905 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5908 \begin_layout Plain Layout
5914 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5917 \begin_layout Plain Layout
5923 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5926 \begin_layout Plain Layout
5932 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5935 \begin_layout Plain Layout
5943 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5946 \begin_layout Plain Layout
5952 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5955 \begin_layout Plain Layout
5961 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5964 \begin_layout Plain Layout
5970 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5973 \begin_layout Plain Layout
5979 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5982 \begin_layout Plain Layout
5990 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5993 \begin_layout Plain Layout
5999 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6002 \begin_layout Plain Layout
6008 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6011 \begin_layout Plain Layout
6017 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6020 \begin_layout Plain Layout
6026 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6029 \begin_layout Plain Layout
6043 \begin_layout Standard
6044 \begin_inset VSpace medskip
6048 \begin_inset Note Greyedout
6051 \begin_layout Plain Layout
6055 \begin_inset space ~
6060 The table number is increased for every longtable, also if you didn't set
6062 For this reason you could have the case that e.
6063 \begin_inset space \thinspace{}
6067 \begin_inset space \space{}
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}
6091 \begin_layout Plain Layout
6092 This is not needed when none of your longtables have a caption and you add
6093 the following code to the document preamble:
6096 \begin_layout Plain Layout
6106 \begin_inset Newline newline
6117 addtocounter{table}{-1}}
6125 \begin_layout Standard
6126 \begin_inset Note Greyedout
6129 \begin_layout Plain Layout
6133 \begin_inset space ~
6146 \begin_layout Plain Layout
6147 LaTeX-packages ! hyperref
6160 dialog to link cross-references, the link to a longtable caption will always
6161 point to the beginning of the document.
6169 \begin_layout Subsubsection
6170 References to Longtables
6174 \begin_layout Plain Layout
6175 Longtables ! References
6183 \begin_layout Standard
6184 \begin_inset Tabular
6185 <lyxtabular version="3" rows="6" columns="5">
6186 <features islongtable="true">
6187 <column alignment="center" valignment="top" width="0">
6188 <column alignment="center" valignment="top" width="0">
6189 <column alignment="center" valignment="top" width="0">
6190 <column alignment="center" valignment="top" width="0">
6191 <column alignment="center" valignment="top" width="0">
6192 <row caption="true">
6193 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6196 \begin_layout Plain Layout
6197 \begin_inset Caption
6199 \begin_layout Plain Layout
6200 Referenced longtable
6201 \begin_inset CommandInset label
6203 name "tab:RefExample"
6217 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6220 \begin_layout Plain Layout
6226 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6229 \begin_layout Plain Layout
6235 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6238 \begin_layout Plain Layout
6244 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6247 \begin_layout Plain Layout
6255 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6258 \begin_layout Plain Layout
6264 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6267 \begin_layout Plain Layout
6273 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6276 \begin_layout Plain Layout
6282 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6285 \begin_layout Plain Layout
6291 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6294 \begin_layout Plain Layout
6302 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6305 \begin_layout Plain Layout
6311 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6314 \begin_layout Plain Layout
6320 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6323 \begin_layout Plain Layout
6329 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6332 \begin_layout Plain Layout
6338 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6341 \begin_layout Plain Layout
6349 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6352 \begin_layout Plain Layout
6358 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6361 \begin_layout Plain Layout
6367 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6370 \begin_layout Plain Layout
6376 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6379 \begin_layout Plain Layout
6385 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6388 \begin_layout Plain Layout
6396 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6399 \begin_layout Plain Layout
6405 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6408 \begin_layout Plain Layout
6414 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6417 \begin_layout Plain Layout
6423 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6426 \begin_layout Plain Layout
6432 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6435 \begin_layout Plain Layout
6443 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6446 \begin_layout Plain Layout
6452 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6455 \begin_layout Plain Layout
6461 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6464 \begin_layout Plain Layout
6470 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6473 \begin_layout Plain Layout
6479 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6482 \begin_layout Plain Layout
6496 \begin_layout Standard
6497 To reference a longtable, insert a label into the caption.
6500 \begin_layout Standard
6501 This is a reference to Table
6502 \begin_inset space ~
6506 \begin_inset CommandInset ref
6508 reference "tab:RefExample"
6515 \begin_layout Standard
6516 The caption layout can be set together with all other captions of your document
6517 using the LaTeX-package
6525 \begin_layout Plain Layout
6526 LaTeX-packages ! caption
6532 \begin_inset space ~
6536 \begin_inset CommandInset ref
6538 reference "sec:Caption-Formatting"
6545 \begin_layout Subsubsection
6550 \begin_layout Plain Layout
6551 Longtables ! Caption Width
6559 \begin_layout Standard
6560 The maximal width of of caption lines is defined by the length
6567 Its default value is 4
6568 \begin_inset space \thinspace{}
6572 To change it add the following command to your document preamble or as
6573 TeX-Code into your document before the longtable that should be affected
6576 \begin_layout Standard
6586 \begin_layout Standard
6587 where the width could have one of the units listed in appendix
6588 \begin_inset space ~
6592 \begin_inset CommandInset ref
6594 reference "cha:Units-available-in"
6601 \begin_layout Standard
6602 The following tables show the difference:
6605 \begin_layout Standard
6606 \begin_inset Tabular
6607 <lyxtabular version="3" rows="6" columns="5">
6608 <features islongtable="true">
6609 <column alignment="center" valignment="top" width="0">
6610 <column alignment="center" valignment="top" width="0">
6611 <column alignment="center" valignment="top" width="0">
6612 <column alignment="center" valignment="top" width="0">
6613 <column alignment="center" valignment="top" width="0">
6614 <row caption="true">
6615 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6618 \begin_layout Plain Layout
6619 \begin_inset Caption
6621 \begin_layout Plain Layout
6622 long full title with default width long full title with default width long
6623 full title with default width
6627 \begin_layout Plain Layout
6628 caption with default width
6643 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6646 \begin_layout Plain Layout
6652 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6655 \begin_layout Plain Layout
6661 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6664 \begin_layout Plain Layout
6670 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6673 \begin_layout Plain Layout
6681 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6684 \begin_layout Plain Layout
6690 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6693 \begin_layout Plain Layout
6699 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6702 \begin_layout Plain Layout
6708 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6711 \begin_layout Plain Layout
6717 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6720 \begin_layout Plain Layout
6728 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6731 \begin_layout Plain Layout
6737 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6740 \begin_layout Plain Layout
6746 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6749 \begin_layout Plain Layout
6755 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6758 \begin_layout Plain Layout
6764 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6767 \begin_layout Plain Layout
6775 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6778 \begin_layout Plain Layout
6784 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6787 \begin_layout Plain Layout
6793 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6796 \begin_layout Plain Layout
6802 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6805 \begin_layout Plain Layout
6811 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6814 \begin_layout Plain Layout
6822 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6825 \begin_layout Plain Layout
6831 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6834 \begin_layout Plain Layout
6840 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6843 \begin_layout Plain Layout
6849 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6852 \begin_layout Plain Layout
6858 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6861 \begin_layout Plain Layout
6869 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6872 \begin_layout Plain Layout
6878 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6881 \begin_layout Plain Layout
6887 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6890 \begin_layout Plain Layout
6896 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6899 \begin_layout Plain Layout
6905 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6908 \begin_layout Plain Layout
6922 \begin_layout Standard
6926 \begin_layout Plain Layout
6938 \begin_inset Tabular
6939 <lyxtabular version="3" rows="6" columns="5">
6940 <features islongtable="true">
6941 <column alignment="center" valignment="top" width="0">
6942 <column alignment="center" valignment="top" width="0">
6943 <column alignment="center" valignment="top" width="0">
6944 <column alignment="center" valignment="top" width="0">
6945 <column alignment="center" valignment="top" width="0">
6946 <row caption="true">
6947 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6950 \begin_layout Plain Layout
6951 \begin_inset Caption
6953 \begin_layout Plain Layout
6954 long full title with width set to 5
6955 \begin_inset space \thinspace{}
6958 cm long full title with width set to 5
6959 \begin_inset space \thinspace{}
6962 cm long full title with width set to 5
6963 \begin_inset space \thinspace{}
6970 \begin_layout Plain Layout
6972 \begin_inset space \thinspace{}
6976 \begin_inset space \thinspace{}
6980 \begin_inset space \thinspace{}
6998 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7001 \begin_layout Plain Layout
7007 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7010 \begin_layout Plain Layout
7016 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7019 \begin_layout Plain Layout
7025 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7028 \begin_layout Plain Layout
7036 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7039 \begin_layout Plain Layout
7045 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7048 \begin_layout Plain Layout
7054 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7057 \begin_layout Plain Layout
7063 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7066 \begin_layout Plain Layout
7072 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7075 \begin_layout Plain Layout
7083 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7086 \begin_layout Plain Layout
7092 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7095 \begin_layout Plain Layout
7101 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7104 \begin_layout Plain Layout
7110 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7113 \begin_layout Plain Layout
7119 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7122 \begin_layout Plain Layout
7130 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7133 \begin_layout Plain Layout
7139 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7142 \begin_layout Plain Layout
7148 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7151 \begin_layout Plain Layout
7157 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7160 \begin_layout Plain Layout
7166 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7169 \begin_layout Plain Layout
7177 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7180 \begin_layout Plain Layout
7186 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7189 \begin_layout Plain Layout
7195 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7198 \begin_layout Plain Layout
7204 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7207 \begin_layout Plain Layout
7213 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7216 \begin_layout Plain Layout
7224 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7227 \begin_layout Plain Layout
7233 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7236 \begin_layout Plain Layout
7242 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7245 \begin_layout Plain Layout
7251 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7254 \begin_layout Plain Layout
7260 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7263 \begin_layout Plain Layout
7277 \begin_layout Standard
7281 \begin_layout Plain Layout
7295 \begin_layout Standard
7296 \begin_inset Note Greyedout
7299 \begin_layout Plain Layout
7304 When the LaTeX-package
7312 \begin_layout Plain Layout
7313 LaTeX-packages ! caption
7318 is used, as in this document, the full page width is used for the caption
7319 when you use the default value of 4
7320 \begin_inset space \thinspace{}
7330 To get in this case exactly a 4
7331 \begin_inset space \thinspace{}
7334 in wide caption, you can either use a value slightly different from 4.0
7335 \begin_inset space \thinspace{}
7339 \begin_inset space \thinspace{}
7343 \begin_inset space \space{}
7347 \begin_inset space \thinspace{}
7350 in, or the LaTeX-command
7354 captionsetup{width=value}
7356 that is provided by the
7368 \begin_layout Subsubsection
7369 Different Captions for Table Pages
7373 \begin_layout Plain Layout
7374 Longtables ! Different Captions for Pages
7382 \begin_layout Standard
7383 When the table captions for the following pages should differ from the one
7384 of the first table page, insert a caption with the TeX code command
7387 \begin_layout Standard
7392 caption*{caption text}
7399 \begin_layout Standard
7400 in a dummy caption row that is marked as header.
7402 \begin_inset space ~
7406 \begin_inset CommandInset ref
7408 reference "tab:DiffCaptions"
7412 is an example for a longtable with different heading where the second caption
7413 doesn't include the table number.
7416 \begin_layout Standard
7418 \begin_inset Tabular
7419 <lyxtabular version="3" rows="60" columns="3">
7420 <features islongtable="true">
7421 <column alignment="left" valignment="top" width="0cm">
7422 <column alignment="left" valignment="top" width="0pt">
7423 <column alignment="center" valignment="top" width="0pt">
7424 <row caption="true">
7425 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7428 \begin_layout Plain Layout
7429 \begin_inset Caption
7431 \begin_layout Plain Layout
7433 \begin_inset CommandInset label
7435 name "tab:DiffCaptions"
7443 \begin_layout Plain Layout
7459 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7462 \begin_layout Plain Layout
7468 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7471 \begin_layout Plain Layout
7478 <row endfirsthead="true">
7479 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7482 \begin_layout Plain Layout
7485 Example Phone List (ignore the names)
7490 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7493 \begin_layout Plain Layout
7499 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7502 \begin_layout Plain Layout
7509 <row endfirsthead="true">
7510 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7513 \begin_layout Plain Layout
7521 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7524 \begin_layout Plain Layout
7530 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7533 \begin_layout Plain Layout
7542 <row endhead="true">
7543 <cell alignment="left" valignment="top" leftline="true" usebox="none">
7546 \begin_layout Plain Layout
7550 \begin_layout Plain Layout
7554 caption*{Continued Example Phone List}
7568 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7571 \begin_layout Plain Layout
7577 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7580 \begin_layout Plain Layout
7587 <row endhead="true">
7588 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="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 multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7611 \begin_layout Plain Layout
7618 <row endhead="true">
7619 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7622 \begin_layout Plain Layout
7630 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7633 \begin_layout Plain Layout
7639 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7642 \begin_layout Plain Layout
7651 <row endfoot="true">
7652 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
7655 \begin_layout Plain Layout
7656 continued on next page
7661 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7664 \begin_layout Plain Layout
7670 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" 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="right" 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
8095 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8098 \begin_layout Plain Layout
8104 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8107 \begin_layout Plain Layout
8115 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8118 \begin_layout Plain Layout
8127 \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" leftline="true" usebox="none">
8595 \begin_layout Plain Layout
8603 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8606 \begin_layout Plain Layout
8612 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8615 \begin_layout Plain Layout
8623 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8626 \begin_layout Plain Layout
8634 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8637 \begin_layout Plain Layout
8643 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8646 \begin_layout Plain Layout
8654 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8657 \begin_layout Plain Layout
8663 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8666 \begin_layout Plain Layout
8672 <cell multicolumn="2" alignment="center" valignment="top" topline="true" 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" leftline="true" usebox="none">
9244 \begin_layout Plain Layout
9252 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9255 \begin_layout Plain Layout
9261 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9264 \begin_layout Plain Layout
9272 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9275 \begin_layout Plain Layout
9283 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9286 \begin_layout Plain Layout
9292 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9295 \begin_layout Plain Layout
9302 <row endlastfoot="true">
9303 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9306 \begin_layout Plain Layout
9312 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
9315 \begin_layout Plain Layout
9321 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9324 \begin_layout Plain Layout
9338 \begin_layout Section
9339 Special Longtable Issues
9340 \begin_inset CommandInset label
9342 name "sec:Special-Longtable-Issues"
9349 \begin_layout Subsection
9350 Longtable Calculation
9354 \begin_layout Plain Layout
9355 Longtables ! Calculation
9363 \begin_layout Standard
9364 LaTeX calculates the height of table pages and their page breaks using so
9366 Chunks are pieces of the tables that are at once in LaTeX's memory.
9367 The default value is historically set to only 20 table rows.
9368 If you are using longtables with many pages this may slow down the creation
9370 You can safely increase the chunk size to values of 100-1000 by adding
9371 this command line to your document preamble:
9374 \begin_layout Standard
9379 setcounter{LTchunksize}{100}
9382 \begin_layout Subsection
9383 Floats and Longtables
9387 \begin_layout Plain Layout
9396 \begin_layout Standard
9397 There might be problems when a float appears on the same page where a longtable
9399 To avoid such situation, add the command
9405 as TeX-Code before your longtable.
9408 \begin_layout Subsection
9413 \begin_layout Plain Layout
9414 Longtables ! Forced Page Breaks
9422 \begin_layout Standard
9423 By default tables are only broken between rows.
9424 If you have a cell with multiples lines and want to have a page break within
9425 the cell, insert the new line command
9426 \begin_inset Quotes eld
9438 \begin_inset Quotes erd
9441 as TeX-Code at this point of the cell where it can be broken.
9450 command you have to insert in TeX-Code so many
9451 \begin_inset Quotes eld
9459 \begin_inset Quotes erd
9462 characters like the number of the following table columns.
9467 is the character to separate table cells.
9468 Write in TeX-Code after each
9472 the content of the corresponding following cell and delete the content
9474 \begin_inset Newline newline
9485 command, insert so many
9489 characters like the number of table columns before the current column.
9491 \begin_inset space ~
9495 \begin_inset CommandInset ref
9497 reference "tab:ForcedPagebreak"
9501 the cell that should be broken is in the second column followed by another
9503 Therefore the following command was inserted in the cell as TeX-Code behind
9505 \begin_inset Quotes eld
9513 \begin_inset Quotes erd
9519 \begin_layout Standard
9529 \begin_inset Newline newline
9535 \begin_layout Standard
9537 \begin_inset Quotes eld
9541 \begin_inset Quotes erd
9544 in the third columns of the row was deleted.
9551 is only needed when a page break should definitively occur at this position,
9552 otherwise it is only a possibility to break.
9553 If your footer row of the longtable has for a certain reason no upper line
9554 but you would have a horizontal line where the cell is broken, use this
9558 \begin_layout Standard
9566 \begin_inset Newline newline
9574 \begin_layout Standard
9575 When the cell to be broken is in the last column, the command
9578 \begin_layout Standard
9588 \begin_layout Standard
9589 must be inserted as TeX-Code at the beginning of the cell.
9590 This assures that the part of the cell that will be displayed on the new
9591 page appears with the full width.
9594 \begin_layout Standard
9596 \begin_inset Tabular
9597 <lyxtabular version="3" rows="39" columns="3">
9598 <features islongtable="true">
9599 <column alignment="left" valignment="top" width="0cm">
9600 <column alignment="left" valignment="top" width="3cm">
9601 <column alignment="center" valignment="top" width="0pt">
9602 <row caption="true">
9603 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9606 \begin_layout Plain Layout
9607 \begin_inset Caption
9609 \begin_layout Plain Layout
9610 Table with forced page break in table cell
9611 \begin_inset CommandInset label
9613 name "tab:ForcedPagebreak"
9621 \begin_layout Plain Layout
9622 Table with forced page break in table cell
9637 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9640 \begin_layout Plain Layout
9646 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9649 \begin_layout Plain Layout
9656 <row endfirsthead="true">
9657 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9660 \begin_layout Plain Layout
9663 Example Phone List (ignore the names)
9668 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9671 \begin_layout Plain Layout
9677 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9680 \begin_layout Plain Layout
9687 <row endfirsthead="true">
9688 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9691 \begin_layout Plain Layout
9699 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9702 \begin_layout Plain Layout
9708 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9711 \begin_layout Plain Layout
9720 <row endhead="true">
9721 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9724 \begin_layout Plain Layout
9728 \begin_layout Plain Layout
9732 caption*{Continued Example Phone List}
9746 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9749 \begin_layout Plain Layout
9755 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9758 \begin_layout Plain Layout
9765 <row endhead="true">
9766 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9769 \begin_layout Plain Layout
9777 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9780 \begin_layout Plain Layout
9786 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9789 \begin_layout Plain Layout
9796 <row endhead="true">
9797 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9800 \begin_layout Plain Layout
9808 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9811 \begin_layout Plain Layout
9817 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9820 \begin_layout Plain Layout
9829 <row endfoot="true">
9830 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
9833 \begin_layout Plain Layout
9834 continued on next page
9839 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9842 \begin_layout Plain Layout
9848 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9851 \begin_layout Plain Layout
9859 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9862 \begin_layout Plain Layout
9870 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9873 \begin_layout Plain Layout
9879 <cell alignment="right" valignment="top" rightline="true" usebox="none">
9882 \begin_layout Plain Layout
9890 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9893 \begin_layout Plain Layout
9901 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9904 \begin_layout Plain Layout
9910 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9913 \begin_layout Plain Layout
9921 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9924 \begin_layout Plain Layout
9932 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9935 \begin_layout Plain Layout
9941 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9944 \begin_layout Plain Layout
9952 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9955 \begin_layout Plain Layout
9963 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9966 \begin_layout Plain Layout
9972 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9975 \begin_layout Plain Layout
9983 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9986 \begin_layout Plain Layout
9994 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9997 \begin_layout Plain Layout
10003 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10006 \begin_layout Plain Layout
10014 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10017 \begin_layout Plain Layout
10025 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10028 \begin_layout Plain Layout
10034 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10037 \begin_layout Plain Layout
10045 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10048 \begin_layout Plain Layout
10056 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10059 \begin_layout Plain Layout
10065 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10068 \begin_layout Plain Layout
10076 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10079 \begin_layout Plain Layout
10087 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10090 \begin_layout Plain Layout
10096 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10099 \begin_layout Plain Layout
10107 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10110 \begin_layout Plain Layout
10118 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10121 \begin_layout Plain Layout
10127 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10130 \begin_layout Plain Layout
10138 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10141 \begin_layout Plain Layout
10149 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10152 \begin_layout Plain Layout
10158 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10161 \begin_layout Plain Layout
10169 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10172 \begin_layout Plain Layout
10180 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10183 \begin_layout Plain Layout
10189 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10192 \begin_layout Plain Layout
10200 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10203 \begin_layout Plain Layout
10211 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10214 \begin_layout Plain Layout
10220 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10223 \begin_layout Plain Layout
10231 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10234 \begin_layout Plain Layout
10242 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10245 \begin_layout Plain Layout
10251 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10254 \begin_layout Plain Layout
10262 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10265 \begin_layout Plain Layout
10273 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10276 \begin_layout Plain Layout
10282 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10285 \begin_layout Plain Layout
10293 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10296 \begin_layout Plain Layout
10304 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10307 \begin_layout Plain Layout
10313 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10316 \begin_layout Plain Layout
10324 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10327 \begin_layout Plain Layout
10335 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10338 \begin_layout Plain Layout
10344 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10347 \begin_layout Plain Layout
10355 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10358 \begin_layout Plain Layout
10366 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10369 \begin_layout Plain Layout
10375 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10378 \begin_layout Plain Layout
10386 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10389 \begin_layout Plain Layout
10397 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10400 \begin_layout Plain Layout
10406 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10409 \begin_layout Plain Layout
10417 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10420 \begin_layout Plain Layout
10428 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10431 \begin_layout Plain Layout
10437 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10440 \begin_layout Plain Layout
10448 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10451 \begin_layout Plain Layout
10459 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10462 \begin_layout Plain Layout
10468 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10471 \begin_layout Plain Layout
10479 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10482 \begin_layout Plain Layout
10490 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10493 \begin_layout Plain Layout
10499 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10502 \begin_layout Plain Layout
10510 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10513 \begin_layout Plain Layout
10521 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10524 \begin_layout Plain Layout
10530 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10533 \begin_layout Plain Layout
10541 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10544 \begin_layout Plain Layout
10552 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10555 \begin_layout Plain Layout
10557 Fürst von Montecompatri, 11.
10558 Fürst von Sulmona und Vivaro, 10.
10559 Fürst von Rossano, 5.
10560 Herzog von Canemorte, 11.
10561 Herzog von Palombara, 5.
10562 Herzog von Castelchiodato,
10566 \begin_layout Plain Layout
10577 \begin_layout Plain Layout
10585 Herzog von Poggionativo, 11.
10586 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10587 Graf von Valinfreda, 11.
10588 Baron von Cropalati, 11.
10589 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10594 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10597 \begin_layout Plain Layout
10605 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10608 \begin_layout Plain Layout
10616 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10619 \begin_layout Plain Layout
10625 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10628 \begin_layout Plain Layout
10636 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10639 \begin_layout Plain Layout
10647 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10650 \begin_layout Plain Layout
10656 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10659 \begin_layout Plain Layout
10667 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10670 \begin_layout Plain Layout
10678 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10681 \begin_layout Plain Layout
10687 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10690 \begin_layout Plain Layout
10698 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10701 \begin_layout Plain Layout
10709 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10712 \begin_layout Plain Layout
10718 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10721 \begin_layout Plain Layout
10729 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10732 \begin_layout Plain Layout
10740 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10743 \begin_layout Plain Layout
10749 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10752 \begin_layout Plain Layout
10760 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10763 \begin_layout Plain Layout
10771 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10774 \begin_layout Plain Layout
10780 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10783 \begin_layout Plain Layout
10791 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10794 \begin_layout Plain Layout
10802 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10805 \begin_layout Plain Layout
10811 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10814 \begin_layout Plain Layout
10822 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10825 \begin_layout Plain Layout
10833 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
10836 \begin_layout Plain Layout
10842 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
10845 \begin_layout Plain Layout
10852 <row endlastfoot="true">
10853 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
10856 \begin_layout Plain Layout
10862 <cell multicolumn="2" alignment="center" valignment="top" rightline="true" usebox="none">
10865 \begin_layout Plain Layout
10871 <cell multicolumn="2" alignment="center" valignment="top" rightline="true" usebox="none">
10874 \begin_layout Plain Layout
10888 \begin_layout Section
10889 Multiple Lines Columns and Rows
10892 \begin_layout Subsection
10893 Multiple Lines in Table Cells
10894 \begin_inset CommandInset label
10896 name "sub:Multiple-Lines-in"
10904 \begin_layout Plain Layout
10905 Multiple Lines in Table Cells
10914 \begin_layout Plain Layout
10923 \begin_layout Standard
10925 \begin_inset Float table
10931 \begin_layout Plain Layout
10932 \begin_inset Caption
10934 \begin_layout Plain Layout
10935 \begin_inset CommandInset label
10937 name "tab:Table-with-multiple"
10941 Table with multiple lines in cells
10949 \begin_layout Plain Layout
10951 \begin_inset Tabular
10952 <lyxtabular version="3" rows="3" columns="3">
10954 <column alignment="center" valignment="middle" width="2.5cm">
10955 <column alignment="center" valignment="middle" width="0">
10956 <column alignment="center" valignment="middle" width="0">
10958 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10961 \begin_layout Plain Layout
10963 \begin_inset Newline linebreak
10971 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10974 \begin_layout Plain Layout
10980 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10983 \begin_layout Plain Layout
10991 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10994 \begin_layout Plain Layout
11000 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11003 \begin_layout Plain Layout
11009 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11012 \begin_layout Plain Layout
11020 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11023 \begin_layout Plain Layout
11029 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11032 \begin_layout Plain Layout
11038 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11041 \begin_layout Plain Layout
11060 \begin_layout Standard
11061 Adjusting a fixed width for a column, enables to enter text as a paragraph
11062 with multiple lines and hyphenations.
11065 \begin_layout Standard
11067 \begin_inset space ~
11071 \begin_inset CommandInset ref
11073 reference "tab:Table-with-multiple"
11077 , create a 3×3 table, mark the first cell and right-click on it.
11078 In the appearing table dialog we set a cell width of 2.5
11079 \begin_inset space \thinspace{}
11082 cm and choose centered for the vertical and horizontal alignment.
11083 The vertical alignment is used for all cells of the row.
11084 As our text is smaller than than 2.5
11085 \begin_inset space \thinspace{}
11088 cm, only one line will appear.
11089 To get two lines, a justified line break (shortcut
11092 arg "newline-insert linebreak"
11096 If the text is wider than the set cell width, it will automatically be
11097 broken to several lines.
11100 \begin_layout Standard
11101 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11102 by LaTeX if it is the first entry.
11103 Therefore you need to insert something, to make the word not being the
11105 So add a horizontal space of 0
11106 \begin_inset space \thinspace{}
11109 pt before the word.
11110 As the space is zero, it doesn't change the output.
11112 \begin_inset space ~
11116 \begin_inset CommandInset ref
11118 reference "tab:Table-with-and"
11125 \begin_layout Standard
11126 \begin_inset Float table
11132 \begin_layout Plain Layout
11133 \begin_inset Caption
11135 \begin_layout Plain Layout
11136 \begin_inset CommandInset label
11138 name "tab:Table-with-and"
11142 Table with and without hyphenation
11150 \begin_layout Plain Layout
11151 \begin_inset space \hfill{}
11155 \begin_inset Tabular
11156 <lyxtabular version="3" rows="3" columns="3">
11158 <column alignment="center" valignment="middle" width="2.5cm">
11159 <column alignment="center" valignment="middle" width="0">
11160 <column alignment="center" valignment="middle" width="0">
11162 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11165 \begin_layout Plain Layout
11166 verylongtablecellword
11171 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11174 \begin_layout Plain Layout
11180 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11183 \begin_layout Plain Layout
11191 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11194 \begin_layout Plain Layout
11200 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11203 \begin_layout Plain Layout
11209 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11212 \begin_layout Plain Layout
11220 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11223 \begin_layout Plain Layout
11229 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11232 \begin_layout Plain Layout
11238 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11241 \begin_layout Plain Layout
11253 \begin_inset space \hfill{}
11257 \begin_inset Tabular
11258 <lyxtabular version="3" rows="3" columns="3">
11260 <column alignment="center" valignment="middle" width="2.5cm">
11261 <column alignment="center" valignment="middle" width="0">
11262 <column alignment="center" valignment="middle" width="0">
11264 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11267 \begin_layout Plain Layout
11268 \begin_inset space \hspace{}
11272 verylongtablecellword
11277 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11280 \begin_layout Plain Layout
11286 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11289 \begin_layout Plain Layout
11297 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11300 \begin_layout Plain Layout
11306 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11309 \begin_layout Plain Layout
11315 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11318 \begin_layout Plain Layout
11326 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11329 \begin_layout Plain Layout
11335 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11338 \begin_layout Plain Layout
11344 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11347 \begin_layout Plain Layout
11359 \begin_inset space \hfill{}
11370 \begin_layout Subsection
11372 \begin_inset CommandInset label
11374 name "sub:Multicolumns"
11382 \begin_layout Plain Layout
11392 \begin_layout Plain Layout
11393 Table ! Multicolumns
11401 \begin_layout Subsubsection
11405 \begin_layout Standard
11406 To span a cell over multiple columns, mark as much cells within a line that
11407 should be one spanned cell and use either the table-toolbar button
11408 \begin_inset Graphics
11409 filename ../images/tabular-feature_multicolumn.png
11411 scaleBeforeRotation
11417 Edit\SpecialChar \menuseparator
11418 Table\SpecialChar \menuseparator
11421 , or right click on the marked cells and choose multicolumn in the appearing
11422 table dialog under the tab
11429 \begin_layout Standard
11430 Multicolumns have there own cell settings.
11431 That means changing cell borders, cell alignment, and the width only affects
11433 Here is an example table with a multicolumn cell in the first row and one
11434 in the last row without the upper border:
11437 \begin_layout Standard
11439 \begin_inset Tabular
11440 <lyxtabular version="3" rows="3" columns="4">
11441 <features firstHeadTopDL="true" firstHeadBottomDL="true">
11442 <column alignment="center" valignment="top" width="0pt">
11443 <column alignment="center" valignment="middle" width="0">
11444 <column alignment="center" valignment="top" width="0in">
11445 <column alignment="center" valignment="top" width="0pt">
11447 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11450 \begin_layout Plain Layout
11456 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11459 \begin_layout Plain Layout
11465 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11468 \begin_layout Plain Layout
11474 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11477 \begin_layout Plain Layout
11485 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11488 \begin_layout Plain Layout
11503 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11506 \begin_layout Plain Layout
11512 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11515 \begin_layout Plain Layout
11521 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11524 \begin_layout Plain Layout
11532 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11535 \begin_layout Plain Layout
11541 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11544 \begin_layout Plain Layout
11550 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11553 \begin_layout Plain Layout
11559 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11562 \begin_layout Plain Layout
11576 \begin_layout Subsubsection
11577 Multicolumn Calculations
11578 \begin_inset CommandInset label
11580 name "sub:Multicolumn-Calculations"
11588 \begin_layout Plain Layout
11589 Multicolumns ! Calculations
11597 \begin_layout Standard
11598 LyX supports multicolumns directly, but we have to take notice of the cell
11599 width of the columns spanned by the multicolumn cell.
11602 \begin_layout Standard
11603 \begin_inset Float table
11609 \begin_layout Plain Layout
11610 \begin_inset Caption
11612 \begin_layout Plain Layout
11613 \begin_inset CommandInset label
11615 name "tab:Table-with-centered"
11619 Table with centered multicolumn text above two columns that have exactly
11620 half the width of the multicolumn cell
11621 \begin_inset OptArg
11624 \begin_layout Plain Layout
11625 Perfect multicolumn table
11638 \begin_layout Plain Layout
11640 \begin_inset Tabular
11641 <lyxtabular version="3" rows="3" columns="3">
11643 <column alignment="center" valignment="middle" width="0" special=">{\centering}m{1.25cm-6.2pt}">
11644 <column alignment="center" valignment="middle" width="0">
11645 <column alignment="center" valignment="top" width="0">
11647 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11650 \begin_layout Plain Layout
11651 multiple lines multicolumn
11656 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11659 \begin_layout Plain Layout
11665 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11668 \begin_layout Plain Layout
11676 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11679 \begin_layout Plain Layout
11685 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11688 \begin_layout Plain Layout
11694 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11697 \begin_layout Plain Layout
11705 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11708 \begin_layout Plain Layout
11714 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11717 \begin_layout Plain Layout
11723 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11726 \begin_layout Plain Layout
11745 \begin_layout Standard
11746 To create for example Table
11747 \begin_inset space ~
11751 \begin_inset CommandInset ref
11753 reference "tab:Table-with-centered"
11757 , mark the first two cells in the first row of a 3×3 table and right-click
11759 Now choose for this cell
11768 \begin_inset space \thinspace{}
11771 cm in the table dialog.
11772 The spanned columns should have exactly half the width of the multicolumn
11773 cell, so that you would adjust a width of 1.25
11774 \begin_inset space \thinspace{}
11777 cm for the first column.
11778 The second column has then automatically a width of 1.25
11779 \begin_inset space \thinspace{}
11782 cm (multicolumn width - width of first column).
11783 This was done for Table
11784 \begin_inset space ~
11788 \begin_inset CommandInset ref
11790 reference "tab:Table-without-half"
11797 \begin_layout Standard
11798 \begin_inset Float table
11803 \begin_layout Plain Layout
11804 \begin_inset Caption
11806 \begin_layout Plain Layout
11807 \begin_inset CommandInset label
11809 name "tab:Table-without-half"
11813 Table where the spanned table columns have not exactly half the width of
11814 the multicolumn cell
11815 \begin_inset OptArg
11818 \begin_layout Plain Layout
11819 Imperfect multicolumn table
11832 \begin_layout Plain Layout
11834 \begin_inset Tabular
11835 <lyxtabular version="3" rows="3" columns="3">
11837 <column alignment="center" valignment="top" width="1.25cm">
11838 <column alignment="center" valignment="top" width="0">
11839 <column alignment="center" valignment="top" width="0">
11841 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
11844 \begin_layout Plain Layout
11845 multiple lines multicolumn
11850 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11853 \begin_layout Plain Layout
11859 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11862 \begin_layout Plain Layout
11870 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11873 \begin_layout Plain Layout
11879 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11882 \begin_layout Plain Layout
11888 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11891 \begin_layout Plain Layout
11899 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11902 \begin_layout Plain Layout
11908 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11911 \begin_layout Plain Layout
11917 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11920 \begin_layout Plain Layout
11939 \begin_layout Standard
11940 You can see that the first column has not the half width of the multicolumn
11941 cell, it is a bit bigger.
11942 The reason is that the given width of a cell
11943 \begin_inset Formula $W_{g}$
11946 is not its total width
11947 \begin_inset Formula $W_{\mathrm{tot}}$
11950 because a cell is always a bit larger than its given width.
11952 \begin_inset space ~
11956 \begin_inset CommandInset ref
11958 reference "cha:Explanation-of-Equation"
11962 explains it in detail.
11965 \begin_layout Standard
11966 The needed given width
11967 \begin_inset Formula $W_{g\, n}$
11974 columns are spanned can be calculated, so that each column has a total
11976 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
11980 \begin_inset Formula \begin{equation}
11981 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}\end{equation}
11988 \begin_layout Standard
11989 In our case we have
11990 \begin_inset Formula $n=2$
11994 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
11997 cm and the default values for the lengths, so that equation
11998 \begin_inset CommandInset ref
12005 \begin_inset Formula \begin{equation}
12006 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}\end{equation}
12013 \begin_layout Standard
12014 To enable calculations in LaTeX, the LaTeX-package
12018 must be loaded with the document preamble line
12022 \begin_layout Plain Layout
12023 LaTeX-packages ! calc
12031 \begin_layout Standard
12039 \begin_layout Standard
12040 LyX does not allow to calculate lengths in the width-field of the table
12042 Therefore you have to format the column by inserting a LaTeX-argument in
12044 Here is an overview about the arguments:
12047 \begin_layout Itemize
12052 creates cell with a fixed width, its text is vertically top-aligned
12055 \begin_layout Itemize
12060 creates cell with a fixed width, its text is vertically centered
12063 \begin_layout Itemize
12068 creates cell with a fixed width, its text is vertically bottom-aligned
12071 \begin_layout Standard
12072 By entering a LaTeX-argument, all cell settings set in the table dialog
12076 \begin_layout Standard
12077 \begin_inset Note Greyedout
12080 \begin_layout Plain Layout
12085 Due to a bug, LyX shows the overwritten settings anyway.
12093 \begin_layout Standard
12094 As the text should be horizontally centered, the command
12101 You can now enter the following LaTeX-argument for the first spanned column:
12104 \begin_layout Standard
12109 centering}m{1.25cm-6.2pt}
12112 \begin_layout Standard
12117 means, that the commands inside the braces are applied before the cell
12121 \begin_layout Standard
12122 Although we have chosen centered alignment for the text of the multicolumn
12123 cell, it is still left aligned.
12124 This is because LyX only applies the alignment to single columns.
12125 So we have to use for the multicolumn the LaTeX-argument
12128 \begin_layout Standard
12136 \begin_layout Subsection
12141 \begin_layout Plain Layout
12151 \begin_layout Plain Layout
12160 \begin_layout Standard
12161 In contrary to multicolumns multirows are not yet supported by LyX so a
12162 bit of TeX-Code needs to be used.
12163 To use multirows load the LaTeX-package
12171 \begin_layout Plain Layout
12172 LaTeX-packages ! multirow
12177 in your document preamble with the command
12180 \begin_layout Standard
12185 usepackage{multirow}
12188 \begin_layout Standard
12189 Multirows are created with the command
12192 \begin_layout Standard
12197 multirow{number of rows}{cell width}{cell entry}
12200 \begin_layout Standard
12201 To create the following table:
12204 \begin_layout Standard
12209 \begin_layout Plain Layout
12223 \begin_inset Tabular
12224 <lyxtabular version="3" rows="3" columns="3">
12226 <column alignment="center" valignment="top" width="0">
12227 <column alignment="center" valignment="top" width="0">
12228 <column alignment="center" valignment="top" width="0">
12230 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12233 \begin_layout Plain Layout
12239 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12242 \begin_layout Plain Layout
12248 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12251 \begin_layout Plain Layout
12259 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12262 \begin_layout Plain Layout
12266 \begin_layout Plain Layout
12270 multirow{2}{2.5cm}{
12279 \begin_layout Plain Layout
12291 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12294 \begin_layout Plain Layout
12300 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12303 \begin_layout Plain Layout
12311 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
12314 \begin_layout Plain Layout
12320 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12323 \begin_layout Plain Layout
12329 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12332 \begin_layout Plain Layout
12347 \begin_layout Plain Layout
12363 \begin_layout Standard
12364 create a 3×3 table.
12365 To get rid of the line above the last cell in the first column, the cell
12366 is marked as multicolumn and the upper border is unset.
12367 The multirow is now created in the second row of the first column by inserting
12371 \begin_layout Standard
12376 multirow{2}{2.5cm}{
12379 \begin_layout Standard
12381 According to the command parameters the multirow spans now two rows and
12383 \begin_inset space \thinspace{}
12387 The content of the multirow cell follows outside the TeX-Code box and the
12388 command is finished with a right brace
12392 in another TeX-Code-box behind the text.
12395 \begin_layout Standard
12402 left-aligns its content by default.
12403 To override the default, renew the command
12412 \begin_layout Standard
12424 \begin_layout Standard
12425 in TeX-Code in the document preamble.
12426 Then all entries of multirow cells in the document are centered.
12427 If centering is only needed for several tables, you can renew the command
12428 in an TeX-Code box just before the table instead of the preamble.
12429 If the text should be right-aligned, replace
12442 To return to left-alignment
12451 \begin_layout Section
12453 \begin_inset CommandInset label
12455 name "sec:Formal-Tables"
12463 \begin_layout Plain Layout
12472 \begin_layout Standard
12473 Tables are often typeset in books similar to Table
12474 \begin_inset space ~
12478 \begin_inset CommandInset ref
12480 reference "tab:Example-booktabs-table"
12485 This kind of tables is called
12486 \begin_inset Quotes eld
12494 \begin_inset Quotes erd
12498 To make a table a formal table use the option
12506 tab of the table dialog.
12509 \begin_layout Standard
12510 \begin_inset Float table
12516 \begin_layout Plain Layout
12517 \begin_inset Caption
12519 \begin_layout Plain Layout
12520 \begin_inset CommandInset label
12522 name "tab:Example-booktabs-table"
12526 Example booktabs-table
12534 \begin_layout Plain Layout
12536 \begin_inset Tabular
12537 <lyxtabular version="3" rows="8" columns="4">
12538 <features booktabs="true">
12539 <column alignment="center" valignment="top" width="0">
12540 <column alignment="center" valignment="top" width="0">
12541 <column alignment="center" valignment="top" width="0">
12542 <column alignment="center" valignment="top" width="0">
12544 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12547 \begin_layout Plain Layout
12553 <cell alignment="center" valignment="top" topline="true" usebox="none">
12556 \begin_layout Plain Layout
12558 \begin_inset space \thinspace{}
12566 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
12569 \begin_layout Plain Layout
12571 \begin_inset space \thinspace{}
12579 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12582 \begin_layout Plain Layout
12590 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12593 \begin_layout Plain Layout
12597 \begin_layout Plain Layout
12610 \begin_layout Plain Layout
12619 Detector thickness [µm]
12624 <cell alignment="center" valignment="top" usebox="none">
12627 \begin_layout Plain Layout
12633 <cell alignment="center" valignment="top" usebox="none">
12636 \begin_layout Plain Layout
12642 <cell alignment="center" valignment="top" usebox="none">
12645 \begin_layout Plain Layout
12653 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12656 \begin_layout Plain Layout
12662 <cell alignment="center" valignment="top" topline="true" usebox="none">
12665 \begin_layout Plain Layout
12671 <cell alignment="center" valignment="top" topline="true" usebox="none">
12674 \begin_layout Plain Layout
12680 <cell alignment="center" valignment="top" topline="true" usebox="none">
12683 \begin_layout Plain Layout
12690 <row topspace="default">
12691 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12694 \begin_layout Plain Layout
12695 Spatial resolution [µm]
12700 <cell alignment="center" valignment="top" usebox="none">
12703 \begin_layout Plain Layout
12709 <cell alignment="center" valignment="top" usebox="none">
12712 \begin_layout Plain Layout
12718 <cell alignment="center" valignment="top" usebox="none">
12721 \begin_layout Plain Layout
12728 <row topspace="default">
12729 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12732 \begin_layout Plain Layout
12734 \begin_inset Formula $f_{\mathrm{max}}$
12742 <cell alignment="center" valignment="top" usebox="none">
12745 \begin_layout Plain Layout
12751 <cell alignment="center" valignment="top" usebox="none">
12754 \begin_layout Plain Layout
12760 <cell alignment="center" valignment="top" usebox="none">
12763 \begin_layout Plain Layout
12770 <row topspace="default">
12771 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12774 \begin_layout Plain Layout
12778 \begin_layout Plain Layout
12782 cmidrule(l{10pt}){1-1}
12787 LSF-spatial resolution
12792 <cell alignment="center" valignment="top" usebox="none">
12795 \begin_layout Plain Layout
12801 <cell alignment="center" valignment="top" usebox="none">
12804 \begin_layout Plain Layout
12810 <cell alignment="center" valignment="top" usebox="none">
12813 \begin_layout Plain Layout
12821 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12824 \begin_layout Plain Layout
12830 <cell alignment="center" valignment="top" usebox="none">
12833 \begin_layout Plain Layout
12839 <cell alignment="center" valignment="top" usebox="none">
12842 \begin_layout Plain Layout
12848 <cell alignment="center" valignment="top" usebox="none">
12851 \begin_layout Plain Layout
12859 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
12862 \begin_layout Plain Layout
12868 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12871 \begin_layout Plain Layout
12877 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12880 \begin_layout Plain Layout
12886 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12889 \begin_layout Plain Layout
12908 \begin_layout Standard
12909 Spaces to table rows can be added using the
12913 tab of the table dialog as described in section
12914 \begin_inset space ~
12918 \begin_inset CommandInset ref
12920 reference "sub:Row-Spacing"
12927 \begin_layout Standard
12928 In contrary to normal tables, formal tables have no vertical table lines.
12929 The horizontal table lines can be set like for normal tables but they appear
12930 with different width in the output:
12931 \begin_inset Newline newline
12934 The first and the last table line have a default width of 0.08
12935 \begin_inset space \thinspace{}
12938 em while the other lines have a default width of 0.05
12939 \begin_inset space \thinspace{}
12945 \begin_layout Standard
12946 The default widths can be changed with the following preamble lines
12949 \begin_layout Standard
12959 \begin_inset Newline newline
12971 \begin_layout Standard
12972 This example is for the first line, the so called
12977 If you want to change the width for the last line, replace
12986 To change the width for the other lines replace
12995 You can use all units listed in appendix
12996 \begin_inset space ~
13000 \begin_inset CommandInset ref
13002 reference "cha:Units-available-in"
13009 \begin_layout Standard
13010 Lines that don't span over all table columns can be created by setting a
13011 table line for multicolumn cells.
13012 LyX will then internally use the command
13018 to create this line.
13022 \begin_layout Standard
13027 cmidrule[width](trim){startcol-endcol}
13030 \begin_layout Standard
13037 are are currently not supported by LyX so you have to use TeX-Code to be
13045 s can manually be created by inserting the command as TeX-Code as first
13046 cell entry of the first cell of a row.
13047 The line is then drawn in the output above the current row.
13050 \begin_layout Standard
13051 The default for the width is 0.03
13052 \begin_inset space \thinspace{}
13056 Startcol is the number of the column where the line starts and endcol the
13057 column number where the line ends.
13058 The endcol always needs to be specified, also when the line should span
13060 The optional parameter trim could be either
13068 where the trimwidth is also optional.
13069 Using for example the parameter
13073 means that the line is trimmed from its left end by 2
13074 \begin_inset space \thinspace{}
13078 If you don't specify the trimwidth the lines are trimmed by the default
13080 \begin_inset space \thinspace{}
13086 \begin_layout Standard
13087 \begin_inset VSpace bigskip
13091 \begin_inset space ~
13095 \begin_inset CommandInset ref
13097 reference "tab:Example-booktabs-table"
13101 was created using the commands
13104 \begin_layout Standard
13114 \begin_layout Standard
13115 at the beginning of the in the second row and
13118 \begin_layout Standard
13123 cmidrule(l{10pt}){1-1}
13126 \begin_layout Standard
13130 \begin_layout Standard
13131 \begin_inset VSpace bigskip
13137 \begin_layout Standard
13138 You might want to have overlapping
13145 \begin_inset space ~
13149 \begin_inset CommandInset ref
13151 reference "tab:Special-booktabs-table"
13156 This can be achieved with the TeX-Code command
13159 \begin_layout Standard
13167 \begin_layout Standard
13168 The command that was used for the second row of Table
13169 \begin_inset space ~
13173 \begin_inset CommandInset ref
13175 reference "tab:Special-booktabs-table"
13182 \begin_layout Standard
13196 \begin_layout Standard
13197 The command for the sixth row is
13200 \begin_layout Standard
13212 \begin_layout Standard
13213 \begin_inset VSpace bigskip
13219 \begin_layout Standard
13220 If you are anyway not satisfied with the border line spacing, you can use
13221 the following command to produce lines that span over all table columns
13226 \begin_layout Standard
13231 specialrule{width}{space above}{space below}
13234 \begin_layout Standard
13235 For more informations about these specialties, we refer to the manual of
13241 \begin_inset CommandInset citation
13251 \begin_layout Plain Layout
13252 LaTeX-packages ! booktabs
13260 \begin_layout Standard
13261 \begin_inset Float table
13267 \begin_layout Plain Layout
13268 \begin_inset Caption
13270 \begin_layout Plain Layout
13271 \begin_inset CommandInset label
13273 name "tab:Special-booktabs-table"
13277 Special booktabs-table
13285 \begin_layout Plain Layout
13287 \begin_inset Tabular
13288 <lyxtabular version="3" rows="8" columns="4">
13289 <features booktabs="true">
13290 <column alignment="center" valignment="top" width="0">
13291 <column alignment="center" valignment="top" width="0">
13292 <column alignment="center" valignment="top" width="0">
13293 <column alignment="center" valignment="top" width="0">
13295 <cell alignment="center" valignment="top" topline="true" usebox="none">
13298 \begin_layout Plain Layout
13304 <cell alignment="center" valignment="top" topline="true" usebox="none">
13307 \begin_layout Plain Layout
13309 \begin_inset space \thinspace{}
13317 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
13320 \begin_layout Plain Layout
13322 \begin_inset space \thinspace{}
13330 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13333 \begin_layout Plain Layout
13341 <cell alignment="center" valignment="top" usebox="none">
13344 \begin_layout Plain Layout
13348 \begin_layout Plain Layout
13361 \begin_layout Plain Layout
13374 \begin_layout Plain Layout
13387 \begin_layout Plain Layout
13396 Detector thickness [µm]
13401 <cell alignment="center" valignment="top" usebox="none">
13404 \begin_layout Plain Layout
13410 <cell alignment="center" valignment="top" usebox="none">
13413 \begin_layout Plain Layout
13419 <cell alignment="center" valignment="top" usebox="none">
13422 \begin_layout Plain Layout
13430 <cell alignment="center" valignment="top" topline="true" usebox="none">
13433 \begin_layout Plain Layout
13439 <cell alignment="center" valignment="top" topline="true" usebox="none">
13442 \begin_layout Plain Layout
13448 <cell alignment="center" valignment="top" topline="true" usebox="none">
13451 \begin_layout Plain Layout
13457 <cell alignment="center" valignment="top" topline="true" usebox="none">
13460 \begin_layout Plain Layout
13467 <row topspace="default">
13468 <cell alignment="center" valignment="top" usebox="none">
13471 \begin_layout Plain Layout
13472 Spatial resolution [µm]
13477 <cell alignment="center" valignment="top" usebox="none">
13480 \begin_layout Plain Layout
13486 <cell alignment="center" valignment="top" usebox="none">
13489 \begin_layout Plain Layout
13495 <cell alignment="center" valignment="top" usebox="none">
13498 \begin_layout Plain Layout
13505 <row topspace="default">
13506 <cell alignment="center" valignment="top" usebox="none">
13509 \begin_layout Plain Layout
13511 \begin_inset Formula $f_{\mathrm{max}}$
13519 <cell alignment="center" valignment="top" usebox="none">
13522 \begin_layout Plain Layout
13528 <cell alignment="center" valignment="top" usebox="none">
13531 \begin_layout Plain Layout
13537 <cell alignment="center" valignment="top" usebox="none">
13540 \begin_layout Plain Layout
13548 <cell alignment="center" valignment="top" topline="true" usebox="none">
13551 \begin_layout Plain Layout
13555 \begin_layout Plain Layout
13568 \begin_layout Plain Layout
13577 LSF-spatial resolution
13582 <cell alignment="center" valignment="top" topline="true" usebox="none">
13585 \begin_layout Plain Layout
13591 <cell alignment="center" valignment="top" topline="true" usebox="none">
13594 \begin_layout Plain Layout
13600 <cell alignment="center" valignment="top" topline="true" usebox="none">
13603 \begin_layout Plain Layout
13611 <cell alignment="center" valignment="top" usebox="none">
13614 \begin_layout Plain Layout
13620 <cell alignment="center" valignment="top" usebox="none">
13623 \begin_layout Plain Layout
13629 <cell alignment="center" valignment="top" usebox="none">
13632 \begin_layout Plain Layout
13638 <cell alignment="center" valignment="top" usebox="none">
13641 \begin_layout Plain Layout
13649 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13652 \begin_layout Plain Layout
13658 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13661 \begin_layout Plain Layout
13667 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13670 \begin_layout Plain Layout
13676 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13679 \begin_layout Plain Layout
13698 \begin_layout Section
13699 Vertical Table Alignment
13703 \begin_layout Plain Layout
13712 \begin_layout Standard
13713 To align tables vertically in a text line the table must be inside a box.
13714 The box can then be vertically aligned as described in section
13715 \begin_inset space ~
13719 \begin_inset CommandInset ref
13721 reference "sec:Box-Dialog"
13728 \begin_layout Standard
13729 In the following example the tables are inside a minipage
13733 \begin_layout Plain Layout
13734 Minipages are described in section
13735 \begin_inset space ~
13739 \begin_inset CommandInset ref
13741 reference "sec:Minipages"
13750 box that has a width of 15
13751 \begin_inset space \thinspace{}
13757 \begin_layout Itemize
13759 \begin_inset Box Frameless
13768 height_special "totalheight"
13771 \begin_layout Plain Layout
13772 \begin_inset Tabular
13773 <lyxtabular version="3" rows="3" columns="3">
13775 <column alignment="center" valignment="top" width="0">
13776 <column alignment="center" valignment="top" width="0">
13777 <column alignment="center" valignment="top" width="0">
13779 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13782 \begin_layout Plain Layout
13788 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13791 \begin_layout Plain Layout
13797 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13800 \begin_layout Plain Layout
13808 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13811 \begin_layout Plain Layout
13817 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13820 \begin_layout Plain Layout
13826 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13829 \begin_layout Plain Layout
13837 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13840 \begin_layout Plain Layout
13846 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13849 \begin_layout Plain Layout
13855 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13858 \begin_layout Plain Layout
13878 \begin_layout Plain Layout
13890 \begin_inset Box Frameless
13899 height_special "totalheight"
13902 \begin_layout Plain Layout
13903 \begin_inset Tabular
13904 <lyxtabular version="3" rows="3" columns="3">
13906 <column alignment="center" valignment="top" width="0">
13907 <column alignment="center" valignment="top" width="0">
13908 <column alignment="center" valignment="top" width="0">
13910 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13913 \begin_layout Plain Layout
13919 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13922 \begin_layout Plain Layout
13928 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13931 \begin_layout Plain Layout
13939 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13942 \begin_layout Plain Layout
13948 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13951 \begin_layout Plain Layout
13957 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13960 \begin_layout Plain Layout
13968 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13971 \begin_layout Plain Layout
13977 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13980 \begin_layout Plain Layout
13986 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13989 \begin_layout Plain Layout
14009 \begin_layout Plain Layout
14019 \begin_layout Itemize
14021 \begin_inset Box Frameless
14030 height_special "totalheight"
14033 \begin_layout Plain Layout
14034 \begin_inset Tabular
14035 <lyxtabular version="3" rows="3" columns="3">
14037 <column alignment="center" valignment="top" width="0">
14038 <column alignment="center" valignment="top" width="0">
14039 <column alignment="center" valignment="top" width="0">
14041 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14044 \begin_layout Plain Layout
14050 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14053 \begin_layout Plain Layout
14059 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14062 \begin_layout Plain Layout
14070 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14073 \begin_layout Plain Layout
14079 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14082 \begin_layout Plain Layout
14088 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14091 \begin_layout Plain Layout
14099 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14102 \begin_layout Plain Layout
14108 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14111 \begin_layout Plain Layout
14117 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14120 \begin_layout Plain Layout
14139 \begin_layout Itemize
14141 \begin_inset Box Frameless
14150 height_special "totalheight"
14153 \begin_layout Plain Layout
14154 \begin_inset Tabular
14155 <lyxtabular version="3" rows="3" columns="3">
14157 <column alignment="center" valignment="top" width="0">
14158 <column alignment="center" valignment="top" width="0">
14159 <column alignment="center" valignment="top" width="0">
14161 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14164 \begin_layout Plain Layout
14170 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14173 \begin_layout Plain Layout
14179 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14182 \begin_layout Plain Layout
14190 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14193 \begin_layout Plain Layout
14199 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14202 \begin_layout Plain Layout
14208 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14211 \begin_layout Plain Layout
14219 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14222 \begin_layout Plain Layout
14228 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14231 \begin_layout Plain Layout
14237 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14240 \begin_layout Plain Layout
14260 \begin_layout Plain Layout
14272 \begin_inset Box Frameless
14281 height_special "totalheight"
14284 \begin_layout Plain Layout
14285 \begin_inset Tabular
14286 <lyxtabular version="3" rows="3" columns="3">
14288 <column alignment="center" valignment="top" width="0">
14289 <column alignment="center" valignment="top" width="0">
14290 <column alignment="center" valignment="top" width="0">
14292 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14295 \begin_layout Plain Layout
14301 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14304 \begin_layout Plain Layout
14310 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14313 \begin_layout Plain Layout
14321 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14324 \begin_layout Plain Layout
14330 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14333 \begin_layout Plain Layout
14339 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14342 \begin_layout Plain Layout
14350 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14353 \begin_layout Plain Layout
14359 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14362 \begin_layout Plain Layout
14368 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14371 \begin_layout Plain Layout
14391 \begin_layout Plain Layout
14401 \begin_layout Standard
14402 As you can see, the content of the first and last table row is not correctly
14403 aligned with the text line where the table is in.
14404 To get this alignment, the minipage box must be set into a raisebox
14408 \begin_layout Plain Layout
14409 Raiseboxes are described in section
14410 \begin_inset space ~
14414 \begin_inset CommandInset ref
14416 reference "sub:Vertical-Alignment"
14426 In the example above the second table in the first item is aligned using
14427 the TeX-Code-command
14430 \begin_layout Standard
14440 \begin_layout Standard
14442 Behind the box the closing brace
14446 is inserted as TeX-Code.
14447 For the second table in the last item the command
14450 \begin_layout Standard
14460 \begin_layout Standard
14464 \begin_layout Standard
14465 \begin_inset Note Greyedout
14468 \begin_layout Plain Layout
14473 The alignment of the table row content to the surrounding text line is
14475 The needed factor of the
14481 command for this alignment depends on the document font, the font size,
14482 and the table line thickness.
14490 \begin_layout Section
14492 \begin_inset CommandInset label
14494 name "sec:Colored-Tables"
14502 \begin_layout Plain Layout
14511 \begin_layout Subsection
14516 \begin_layout Plain Layout
14517 Table Color ! for Cells
14526 \begin_layout Plain Layout
14527 Color ! for Table Cells
14535 \begin_layout Standard
14536 \begin_inset Float table
14542 \begin_layout Plain Layout
14543 \begin_inset Caption
14545 \begin_layout Plain Layout
14546 \begin_inset CommandInset label
14548 name "tab:Table-colored-without"
14552 Table colored without using the package
14557 \begin_inset OptArg
14560 \begin_layout Plain Layout
14561 Table without colortbl
14574 \begin_layout Plain Layout
14576 \begin_inset Tabular
14577 <lyxtabular version="3" rows="3" columns="3">
14579 <column alignment="center" valignment="top" width="0">
14580 <column alignment="center" valignment="top" width="0">
14581 <column alignment="center" valignment="top" width="0">
14583 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14586 \begin_layout Plain Layout
14594 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14597 \begin_layout Plain Layout
14605 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14608 \begin_layout Plain Layout
14618 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14621 \begin_layout Plain Layout
14629 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14632 \begin_layout Plain Layout
14640 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14643 \begin_layout Plain Layout
14653 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14656 \begin_layout Plain Layout
14664 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14667 \begin_layout Plain Layout
14675 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14678 \begin_layout Plain Layout
14699 \begin_layout Standard
14700 If you only need colored text, mark the cells and choose a color in the
14703 Edit\SpecialChar \menuseparator
14705 \begin_inset space ~
14711 This was used to create Table
14712 \begin_inset space ~
14716 \begin_inset CommandInset ref
14718 reference "tab:Table-colored-without"
14723 In any other case you have to use the LaTeX-package
14731 \begin_layout Plain Layout
14732 LaTeX-packages ! colortbl
14740 \begin_layout Standard
14744 \begin_layout Plain Layout
14754 \begin_inset Note Note
14757 \begin_layout Plain Layout
14758 The following section part will only be displayed when the LaTeX-package
14771 \begin_layout Standard
14772 To create colored tables,
14776 must be loaded in the preamble with the line
14779 \begin_layout Standard
14784 usepackage{colortbl}
14787 \begin_layout Standard
14788 The color of a column is adjusted with the command
14791 \begin_layout Standard
14796 columncolor{name of color}
14799 \begin_layout Standard
14805 More about the command
14809 is described in section
14810 \begin_inset space ~
14814 \begin_inset CommandInset ref
14816 reference "sub:Multicolumn-Calculations"
14823 \begin_layout Standard
14824 The following color names are predefined:
14827 \begin_layout Standard
14861 \begin_layout Standard
14862 \begin_inset VSpace medskip
14868 \begin_layout Standard
14869 You can also define your own color with the command
14872 \begin_layout Standard
14877 definecolor{color name}{color model}{color values}
14880 \begin_layout Standard
14881 The color model can be
14884 \begin_layout Labeling
14885 \labelwidthstring 00.00.0000
14886 cmyk: cyan, magenta, yellow, black
14889 \begin_layout Labeling
14890 \labelwidthstring 00.00.0000
14891 rgb: red, green blue
14894 \begin_layout Labeling
14895 \labelwidthstring 00.00.0000
14899 \begin_layout Standard
14900 and the color values are comma separated numbers between 0 and 1 describing
14901 the factor for the corresponding color of the color model.
14904 \begin_layout Standard
14906 \begin_inset space \thinspace{}
14910 \begin_inset space \space{}
14917 " in the preamble with
14920 \begin_layout Standard
14925 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
14928 \begin_layout Standard
14936 \begin_layout Standard
14941 definecolor{lightgray}{gray}{0.8}
14944 \begin_layout Standard
14945 \begin_inset VSpace medskip
14951 \begin_layout Standard
14952 Lines are colored with the command
14955 \begin_layout Standard
14960 rowcolor{name of color}
14963 \begin_layout Standard
14964 and cells are colored with the command
14967 \begin_layout Standard
14972 cellcolor{name of color}
14975 \begin_layout Standard
14976 Both commands are inserted at the beginning of a cell as TeX-Code.
14979 \begin_layout Standard
14980 To color characters in the table, mark the cells and use the LyX menu
14982 Edit\SpecialChar \menuseparator
14984 \begin_inset space ~
14990 If a cell contains TeX-Code mark only the characters, otherwise the colored
14991 TeX-Code will cause LaTeX-errors.
14994 \begin_layout Standard
14995 \begin_inset Note Greyedout
14998 \begin_layout Plain Layout
15003 Not all DVI-viewers are able to display self-defined colors.
15011 \begin_layout Standard
15012 \begin_inset VSpace bigskip
15018 \begin_layout Standard
15020 \begin_inset space ~
15024 \begin_inset CommandInset ref
15026 reference "tab:Table-colored-using"
15030 do the following: The color of the first column should be
15038 \begin_layout Standard
15043 columncolor{darkgreen}
15048 \begin_layout Standard
15049 as LaTeX-argument for this column.
15050 The first row should be blue, therefore the TeX-Code command
15053 \begin_layout Standard
15061 \begin_layout Standard
15062 is inserted to the first cell of this row.
15063 Note that this overwrites the column color for the first cell.
15064 The last cell of the last row is colored magenta by inserting the TeX-Code
15068 \begin_layout Standard
15076 \begin_layout Standard
15077 The characters could now be colored using the menu
15079 Edit\SpecialChar \menuseparator
15081 \begin_inset space ~
15089 \begin_layout Standard
15090 \begin_inset Float table
15096 \begin_layout Plain Layout
15097 \begin_inset Caption
15099 \begin_layout Plain Layout
15100 \begin_inset CommandInset label
15102 name "tab:Table-colored-using"
15106 Table colored using the package
15111 \begin_inset OptArg
15114 \begin_layout Plain Layout
15115 Table with colortbl
15128 \begin_layout Plain Layout
15130 \begin_inset Tabular
15131 <lyxtabular version="3" rows="3" columns="3">
15133 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
15134 <column alignment="center" valignment="top" width="0">
15135 <column alignment="center" valignment="top" width="0">
15137 <cell alignment="center" valignment="top" usebox="none">
15140 \begin_layout Plain Layout
15144 \begin_layout Plain Layout
15160 <cell alignment="center" valignment="top" usebox="none">
15163 \begin_layout Plain Layout
15171 <cell alignment="center" valignment="top" usebox="none">
15174 \begin_layout Plain Layout
15184 <cell alignment="center" valignment="top" usebox="none">
15187 \begin_layout Plain Layout
15195 <cell alignment="center" valignment="top" usebox="none">
15198 \begin_layout Plain Layout
15206 <cell alignment="center" valignment="top" usebox="none">
15209 \begin_layout Plain Layout
15219 <cell alignment="center" valignment="top" usebox="none">
15222 \begin_layout Plain Layout
15230 <cell alignment="center" valignment="top" usebox="none">
15233 \begin_layout Plain Layout
15241 <cell alignment="center" valignment="top" usebox="none">
15244 \begin_layout Plain Layout
15248 \begin_layout Plain Layout
15277 \begin_layout Standard
15281 \begin_layout Plain Layout
15291 \begin_inset Note Note
15294 \begin_layout Plain Layout
15295 The following will be displayed when the LaTeX-package
15307 \begin_layout Standard
15308 You need to install the package
15312 to see the content of this section in the output.
15315 \begin_layout Standard
15319 \begin_layout Plain Layout
15331 \begin_layout Subsection
15336 \begin_layout Plain Layout
15337 Table Color ! for Lines
15346 \begin_layout Plain Layout
15347 Color ! for Table Lines
15355 \begin_layout Standard
15356 As described in section
15357 \begin_inset space ~
15361 \begin_inset CommandInset ref
15363 reference "sub:Line-Thickness"
15367 , the line thickness for all lines in a table can be adjusted with the length
15376 \begin_inset space \thinspace{}
15379 pt for all tables of this section.
15383 \begin_layout Plain Layout
15389 arrayrulewidth}{1.5pt}
15397 \begin_layout Standard
15398 To color vertical lines for example with green, create the following column
15399 format in the document preamble, according to the description in section
15400 \begin_inset space ~
15404 \begin_inset CommandInset ref
15406 reference "sub:Customized-Format"
15413 \begin_layout Standard
15418 newcolumntype{W}{!{
15425 \begin_layout Standard
15427 \begin_inset space ~
15431 \begin_inset CommandInset ref
15433 reference "tab:Table-with-vertical-colored"
15441 was used for the last column and
15445 for the other columns.
15448 \begin_layout Standard
15449 If you want to have several colors, define more column formats.
15452 \begin_layout Standard
15453 \begin_inset Float table
15459 \begin_layout Plain Layout
15460 \begin_inset Caption
15462 \begin_layout Plain Layout
15463 \begin_inset CommandInset label
15465 name "tab:Table-with-vertical-colored"
15469 Table with colored vertical lines
15477 \begin_layout Plain Layout
15479 \begin_inset Tabular
15480 <lyxtabular version="3" rows="3" columns="3">
15482 <column alignment="center" valignment="top" width="0" special="Wc">
15483 <column alignment="center" valignment="top" width="0" special="Wc">
15484 <column alignment="center" valignment="top" width="0" special="WcW">
15486 <cell alignment="center" valignment="top" topline="true" usebox="none">
15489 \begin_layout Plain Layout
15495 <cell alignment="center" valignment="top" topline="true" usebox="none">
15498 \begin_layout Plain Layout
15504 <cell alignment="center" valignment="top" topline="true" usebox="none">
15507 \begin_layout Plain Layout
15515 <cell alignment="center" valignment="top" topline="true" usebox="none">
15518 \begin_layout Plain Layout
15524 <cell alignment="center" valignment="top" topline="true" usebox="none">
15527 \begin_layout Plain Layout
15533 <cell alignment="center" valignment="top" topline="true" usebox="none">
15536 \begin_layout Plain Layout
15544 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15547 \begin_layout Plain Layout
15553 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15556 \begin_layout Plain Layout
15562 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15565 \begin_layout Plain Layout
15584 \begin_layout Standard
15585 \begin_inset VSpace bigskip
15588 To color horizontal lines for example with red, like in Table
15589 \begin_inset space ~
15593 \begin_inset CommandInset ref
15595 reference "tab:Table-with-horizontal-colored"
15599 , insert these commands in TeX-Code before the table or table float:
15602 \begin_layout Standard
15612 \begin_inset Newline newline
15620 \begin_inset Newline newline
15627 \begin_layout Plain Layout
15638 arrayrulecolor{red}
15642 arrayrulecolor{black}}
15645 \begin_layout Standard
15649 \begin_layout Plain Layout
15660 \begin_layout Plain Layout
15669 \begin_layout Plain Layout
15673 arrayrulecolor{red}
15677 arrayrulecolor{black}}
15683 \begin_inset Float table
15689 \begin_layout Plain Layout
15690 \begin_inset Caption
15692 \begin_layout Plain Layout
15693 \begin_inset CommandInset label
15695 name "tab:Table-with-horizontal-colored"
15699 Table with colored horizontal lines
15707 \begin_layout Plain Layout
15709 \begin_inset Tabular
15710 <lyxtabular version="3" rows="3" columns="3">
15712 <column alignment="center" valignment="top" width="0">
15713 <column alignment="center" valignment="top" width="0">
15714 <column alignment="center" valignment="top" width="0">
15716 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15719 \begin_layout Plain Layout
15725 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15728 \begin_layout Plain Layout
15734 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15737 \begin_layout Plain Layout
15745 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15748 \begin_layout Plain Layout
15754 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15757 \begin_layout Plain Layout
15763 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15766 \begin_layout Plain Layout
15774 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15777 \begin_layout Plain Layout
15783 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15786 \begin_layout Plain Layout
15792 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
15795 \begin_layout Plain Layout
15814 \begin_layout Standard
15815 To return to the default line color black, insert this command in TeX-Code
15816 behind the table or table float:
15819 \begin_layout Standard
15831 \begin_layout Standard
15833 \begin_inset space ~
15837 \begin_inset CommandInset ref
15839 reference "tab:Table-with-colored"
15843 is an example with colored vertical and horizontal lines.
15846 \begin_layout Standard
15847 \begin_inset Float table
15853 \begin_layout Plain Layout
15854 \begin_inset Caption
15856 \begin_layout Plain Layout
15857 \begin_inset CommandInset label
15859 name "tab:Table-with-colored"
15863 Table with colored lines
15871 \begin_layout Plain Layout
15873 \begin_inset Tabular
15874 <lyxtabular version="3" rows="3" columns="3">
15876 <column alignment="center" valignment="top" width="0" special="Wc">
15877 <column alignment="center" valignment="top" width="0" special="Wc">
15878 <column alignment="center" valignment="top" width="0" special="WcW">
15880 <cell alignment="center" valignment="top" topline="true" usebox="none">
15883 \begin_layout Plain Layout
15889 <cell alignment="center" valignment="top" topline="true" usebox="none">
15892 \begin_layout Plain Layout
15898 <cell alignment="center" valignment="top" topline="true" usebox="none">
15901 \begin_layout Plain Layout
15909 <cell alignment="center" valignment="top" topline="true" usebox="none">
15912 \begin_layout Plain Layout
15918 <cell alignment="center" valignment="top" topline="true" usebox="none">
15921 \begin_layout Plain Layout
15927 <cell alignment="center" valignment="top" topline="true" usebox="none">
15930 \begin_layout Plain Layout
15937 <row topspace="default">
15938 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15941 \begin_layout Plain Layout
15947 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15950 \begin_layout Plain Layout
15956 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15959 \begin_layout Plain Layout
15978 \begin_layout Standard
15982 \begin_layout Plain Layout
15998 \begin_layout Standard
16002 \begin_layout Plain Layout
16008 arrayrulewidth}{0.4pt}
16016 \begin_layout Section
16017 Table Customization
16021 \begin_layout Plain Layout
16022 Table Customization
16031 \begin_layout Plain Layout
16032 Table ! Customization
16040 \begin_layout Subsection
16042 \begin_inset CommandInset label
16044 name "sub:Row-Spacing"
16052 \begin_layout Plain Layout
16053 Table Customization ! Row Spacing
16061 \begin_layout Standard
16062 You can add vertical space to table rows in the
16066 tab of the table dialog.
16067 You find there three possibilities:
16070 \begin_layout Description
16072 \begin_inset space ~
16076 \begin_inset space ~
16079 row will add space above the characters of the table row.
16080 If the table is a formal table
16084 \begin_layout Plain Layout
16085 Formal tables are explained in section
16086 \begin_inset space ~
16090 \begin_inset CommandInset ref
16092 reference "sec:Formal-Tables"
16101 LyX will insert as default 0.5
16102 \begin_inset space \thinspace{}
16106 For normal tables the inserted space will unfortunately destroy the vertical
16107 table lines as in the following table:
16108 \begin_inset VSpace medskip
16112 \begin_inset Newline newline
16116 \begin_inset space \hspace*{}
16121 \begin_inset space \hfill{}
16125 \begin_inset Tabular
16126 <lyxtabular version="3" rows="3" columns="1">
16128 <column alignment="center" valignment="top" width="0">
16130 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16133 \begin_layout Plain Layout
16140 <row topspace="3mm">
16141 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16144 \begin_layout Plain Layout
16146 \begin_inset space \thinspace{}
16149 mm space top of row
16156 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16159 \begin_layout Plain Layout
16171 \begin_inset space \hfill{}
16175 \begin_inset space \hspace*{}
16180 \begin_inset VSpace medskip
16184 \begin_inset Newline newline
16187 So inserting space to the top of row for normal tables is only useful when
16188 you don't have vertical lines.
16191 \begin_layout Description
16193 \begin_inset space ~
16197 \begin_inset space ~
16200 row will add space below the characters of the table row.
16201 If the table is a formal table LyX will insert as default 0.5
16202 \begin_inset space \thinspace{}
16205 em space, for normal tables the default size is 2
16206 \begin_inset space \thinspace{}
16212 \begin_layout Description
16214 \begin_inset space ~
16217 rows adds space between the current and the following row.
16218 If the table is a formal table LyX will insert as default 0.5
16219 \begin_inset space \thinspace{}
16223 For normal tables the inserted space will unfortunately destroy the vertical
16224 table lines as in the following table:
16225 \begin_inset VSpace medskip
16229 \begin_inset Newline newline
16233 \begin_inset space \hspace*{}
16238 \begin_inset space \hfill{}
16242 \begin_inset Tabular
16243 <lyxtabular version="3" rows="3" columns="1">
16245 <column alignment="center" valignment="top" width="0">
16247 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16250 \begin_layout Plain Layout
16257 <row interlinespace="3mm">
16258 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16261 \begin_layout Plain Layout
16262 \begin_inset Formula $\downarrow$
16266 \begin_inset space \thinspace{}
16269 mm space between row
16270 \begin_inset Formula $\downarrow$
16280 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16283 \begin_layout Plain Layout
16284 \begin_inset Formula $\uparrow$
16288 \begin_inset space \thinspace{}
16291 mm space between row
16292 \begin_inset Formula $\uparrow$
16306 \begin_inset space \hfill{}
16310 \begin_inset space \hspace*{}
16315 \begin_inset VSpace medskip
16319 \begin_inset Newline newline
16322 So inserting space between rows for normal tables is only useful when you
16323 don't have vertical lines.
16326 \begin_layout Standard
16327 \begin_inset VSpace bigskip
16330 When you want to add extra height to all cells of all tables, you can do
16331 this with the following preamble lines:
16334 \begin_layout Standard
16339 @ifundefined{extrarowheight}
16340 \begin_inset Newline newline
16347 \begin_layout Plain Layout
16358 usepackage{array}}{}
16359 \begin_inset Newline newline
16366 extrarowheight}{height}
16369 \begin_layout Standard
16370 But this has the disadvantage that the cell texts are no longer exactly
16371 vertically centered.
16376 will be loaded automatically by LyX when you use self defined table formats.
16377 To avoid that it is loaded twice the command
16383 is used in the above command.)
16386 \begin_layout Standard
16387 In case you are using font sizes larger than the normal size, the table
16388 borders are often too close to the letters.
16389 This can be corrected by inserting the command
16395 in TeX code at the beginning of a table row.
16397 \begin_inset space ~
16401 \begin_inset CommandInset ref
16403 reference "tab:Vertical-alignment-of"
16407 visualizes the effect.
16410 \begin_layout Standard
16412 \begin_inset Float table
16418 \begin_layout Plain Layout
16419 \begin_inset Caption
16421 \begin_layout Plain Layout
16422 \begin_inset CommandInset label
16424 name "tab:Vertical-alignment-of"
16428 Vertical alignment of text with large font sizes.
16436 \begin_layout Plain Layout
16437 \begin_inset space \hfill{}
16441 \begin_inset Float table
16446 \begin_layout Plain Layout
16447 \begin_inset Caption
16449 \begin_layout Plain Layout
16458 \begin_layout Plain Layout
16461 \begin_inset Tabular
16462 <lyxtabular version="3" rows="6" columns="1">
16464 <column alignment="left" valignment="top" width="0">
16466 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16469 \begin_layout Plain Layout
16477 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16480 \begin_layout Plain Layout
16490 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16493 \begin_layout Plain Layout
16503 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16506 \begin_layout Plain Layout
16516 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16519 \begin_layout Plain Layout
16529 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16532 \begin_layout Plain Layout
16551 \begin_inset space \hfill{}
16555 \begin_inset Float table
16560 \begin_layout Plain Layout
16561 \begin_inset Caption
16563 \begin_layout Plain Layout
16564 Table using the command
16578 \begin_layout Plain Layout
16581 \begin_inset Tabular
16582 <lyxtabular version="3" rows="6" columns="1">
16584 <column alignment="left" valignment="top" width="0">
16586 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16589 \begin_layout Plain Layout
16597 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16600 \begin_layout Plain Layout
16606 \begin_layout Plain Layout
16622 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16625 \begin_layout Plain Layout
16631 \begin_layout Plain Layout
16647 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16650 \begin_layout Plain Layout
16656 \begin_layout Plain Layout
16672 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16675 \begin_layout Plain Layout
16681 \begin_layout Plain Layout
16697 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16700 \begin_layout Plain Layout
16706 \begin_layout Plain Layout
16733 \begin_inset space \hfill{}
16744 \begin_layout Subsection
16745 Special Cell Alignment
16749 \begin_layout Plain Layout
16750 Table Customization ! Special Cell Alignment
16758 \begin_layout Standard
16759 Sometimes it looks better when the cell entries of a column are aligned
16760 with a special character, e.
16761 \begin_inset space \thinspace{}
16765 \begin_inset space \space{}
16768 with the decimal separator as in Table
16769 \begin_inset space ~
16773 \begin_inset CommandInset ref
16775 reference "tab:Table-cells-of"
16782 \begin_layout Standard
16783 \begin_inset Float table
16789 \begin_layout Plain Layout
16790 \begin_inset Caption
16792 \begin_layout Plain Layout
16793 \begin_inset CommandInset label
16795 name "tab:Table-cells-of"
16799 Table cells of a column aligned with the decimal separator.
16807 \begin_layout Plain Layout
16809 \begin_inset Tabular
16810 <lyxtabular version="3" rows="4" columns="2">
16812 <column alignment="right" valignment="top" width="0">
16813 <column alignment="left" valignment="top" width="0" special="@{}l">
16815 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16818 \begin_layout Plain Layout
16824 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16827 \begin_layout Plain Layout
16835 <cell alignment="center" valignment="top" usebox="none">
16838 \begin_layout Plain Layout
16844 <cell alignment="center" valignment="top" usebox="none">
16847 \begin_layout Plain Layout
16855 <cell alignment="center" valignment="top" usebox="none">
16858 \begin_layout Plain Layout
16864 <cell alignment="center" valignment="top" usebox="none">
16867 \begin_layout Plain Layout
16875 <cell alignment="center" valignment="top" usebox="none">
16878 \begin_layout Plain Layout
16884 <cell alignment="center" valignment="top" usebox="none">
16887 \begin_layout Plain Layout
16906 \begin_layout Standard
16907 This table was created with a 4×2 table.
16908 The heading is a centered multicolumn.
16909 The first column is right-aligned and contains the digits before the decimal
16910 point and the decimal point.
16911 The second column is left aligned and contains the digits after the decimal
16913 To omit the space that is normally between two table columns, use the following
16914 LaTeX-argument for the second column:
16917 \begin_layout Standard
16923 \begin_layout Standard
16925 \begin_inset space ~
16929 \begin_inset CommandInset ref
16931 reference "tab:Several-table-cell"
16935 shows some example alignments.
16936 For the alignment with the relation sign, you must add the second smallest
16937 math-space at the beginning of the last column to get the correct space
16938 surrounding the relation sign.
16941 \begin_layout Standard
16942 \begin_inset Float table
16947 \begin_layout Plain Layout
16948 \begin_inset Caption
16950 \begin_layout Plain Layout
16951 \begin_inset CommandInset label
16953 name "tab:Several-table-cell"
16957 Several table cell alignments.
16965 \begin_layout Plain Layout
16967 \begin_inset Tabular
16968 <lyxtabular version="3" rows="4" columns="6">
16970 <column alignment="right" valignment="top" width="0">
16971 <column alignment="left" valignment="top" width="0" special="@{}l">
16972 <column alignment="right" valignment="top" width="0">
16973 <column alignment="left" valignment="top" width="0" special="@{}l">
16974 <column alignment="right" valignment="top" width="0">
16975 <column alignment="left" valignment="top" width="0" special="@{}l">
16977 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16980 \begin_layout Plain Layout
16986 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16989 \begin_layout Plain Layout
16995 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16998 \begin_layout Plain Layout
17004 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17007 \begin_layout Plain Layout
17013 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
17016 \begin_layout Plain Layout
17022 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17025 \begin_layout Plain Layout
17033 <cell alignment="center" valignment="top" usebox="none">
17036 \begin_layout Plain Layout
17042 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17045 \begin_layout Plain Layout
17047 \begin_inset space \thinspace{}
17055 <cell alignment="center" valignment="top" usebox="none">
17058 \begin_layout Plain Layout
17059 \begin_inset Formula $10\cdot$
17067 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17070 \begin_layout Plain Layout
17071 \begin_inset Formula $10^{\mbox{-}17}$
17079 <cell alignment="center" valignment="top" usebox="none">
17082 \begin_layout Plain Layout
17083 \begin_inset Formula $\Gamma(t)\propto$
17091 <cell alignment="center" valignment="top" usebox="none">
17094 \begin_layout Plain Layout
17095 \begin_inset Formula $\:\Upsilon(t)$
17105 <cell alignment="center" valignment="top" usebox="none">
17108 \begin_layout Plain Layout
17114 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17117 \begin_layout Plain Layout
17119 \begin_inset space \thinspace{}
17127 <cell alignment="center" valignment="top" usebox="none">
17130 \begin_layout Plain Layout
17131 \begin_inset Formula $5.78\cdot$
17139 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17142 \begin_layout Plain Layout
17143 \begin_inset Formula $10^{7}$
17151 <cell alignment="center" valignment="top" usebox="none">
17154 \begin_layout Plain Layout
17155 \begin_inset Formula $A\ne$
17163 <cell alignment="center" valignment="top" usebox="none">
17166 \begin_layout Plain Layout
17167 \begin_inset Formula $\: B_{\mathrm{red}}$
17177 <cell alignment="center" valignment="top" usebox="none">
17180 \begin_layout Plain Layout
17186 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17189 \begin_layout Plain Layout
17191 \begin_inset space \thinspace{}
17199 <cell alignment="center" valignment="top" usebox="none">
17202 \begin_layout Plain Layout
17204 \begin_inset Formula $33.5\cdot$
17212 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17215 \begin_layout Plain Layout
17216 \begin_inset Formula $10^{4}$
17224 <cell alignment="center" valignment="top" usebox="none">
17227 \begin_layout Plain Layout
17228 \begin_inset Formula $\sin(\alpha)\ge$
17236 <cell alignment="center" valignment="top" usebox="none">
17239 \begin_layout Plain Layout
17240 \begin_inset Formula $\:\sin(\beta)$
17261 \begin_layout Standard
17262 \begin_inset VSpace bigskip
17265 There is also the LaTeX-package
17273 \begin_layout Plain Layout
17274 LaTeX-packages ! dcolumn
17279 that provides table cell alignments.
17280 But this unfortunately treats the cell entries as math and doesn't allow
17281 formulas in table cells: The first column of Table
17282 \begin_inset space ~
17286 \begin_inset CommandInset ref
17288 reference "tab:Several-table-cell"
17296 like the first column in Table
17297 \begin_inset space ~
17301 \begin_inset CommandInset ref
17303 reference "tab:Alignments-when"
17307 and only with some tricks like the expected.
17308 The alignment of the second and third column of Table
17309 \begin_inset space ~
17313 \begin_inset CommandInset ref
17315 reference "tab:Several-table-cell"
17319 is not possible with
17326 \begin_layout Standard
17327 \begin_inset Float table
17333 \begin_layout Plain Layout
17334 \begin_inset Caption
17336 \begin_layout Plain Layout
17337 \begin_inset CommandInset label
17339 name "tab:Alignments-when"
17343 Alignments when LaTeX-package dcolumn is used.
17344 For all column alignments tricks have to be used to get the output.
17352 \begin_layout Plain Layout
17354 \begin_inset Tabular
17355 <lyxtabular version="3" rows="4" columns="3">
17357 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{-1}">
17358 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{4.9}">
17359 <column alignment="center" valignment="top" width="0" special="D{~}{\,}{9.7}">
17361 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17364 \begin_layout Plain Layout
17370 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17373 \begin_layout Plain Layout
17379 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
17382 \begin_layout Plain Layout
17390 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17393 \begin_layout Plain Layout
17395 \begin_inset space \thinspace{}
17403 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17406 \begin_layout Plain Layout
17408 \begin_inset space \thinspace{}
17412 \begin_inset Formula $\mbox{bottles}$
17420 <cell alignment="center" valignment="top" usebox="none">
17423 \begin_layout Plain Layout
17428 \begin_layout Plain Layout
17438 \begin_inset Formula $\mbox{bottles}$
17448 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17451 \begin_layout Plain Layout
17453 \begin_inset space \thinspace{}
17461 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17464 \begin_layout Plain Layout
17466 \begin_inset space \thinspace{}
17470 \begin_inset Formula $\mbox{Pixels}$
17478 <cell alignment="center" valignment="top" usebox="none">
17481 \begin_layout Plain Layout
17486 \begin_layout Plain Layout
17496 \begin_inset Formula $\mbox{Pixels}$
17506 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17509 \begin_layout Plain Layout
17511 \begin_inset space \thinspace{}
17519 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17522 \begin_layout Plain Layout
17524 \begin_inset space \thinspace{}
17528 \begin_inset Formula $\mbox{cm}$
17536 <cell alignment="center" valignment="top" usebox="none">
17539 \begin_layout Plain Layout
17544 \begin_layout Plain Layout
17554 \begin_inset Formula $\mbox{cm}$
17575 \begin_layout Subsection
17576 Customized Cell/Column Format
17577 \begin_inset CommandInset label
17579 name "sub:Customized-Format"
17587 \begin_layout Plain Layout
17588 Table Customization ! Cell/Column Format
17596 \begin_layout Standard
17597 Calculating the needed width for spanned columns like in section
17598 \begin_inset space ~
17602 \begin_inset CommandInset ref
17604 reference "sub:Multicolumn-Calculations"
17608 is very annoying if you have several tables with multicolumn cells.
17609 To make life easier, you can define a cell/column format in the preamble,
17610 so that it can be used in all tables of the document.
17611 The format is defined with the command
17614 \begin_layout Standard
17619 newcolumntype{name of format}[number of arguments]{commands}
17622 \begin_layout Standard
17623 The format name may only consist of one letter.
17648 are predefined and cannot be used.
17649 But all letters are allowed as capitals.
17652 \begin_layout Standard
17653 \begin_inset VSpace medskip
17659 \begin_layout Standard
17660 For vertically and horizontally centered multicolumn cells with a fixed
17661 width you can define the cell format
17664 \begin_layout Standard
17669 newcolumntype{M}[1]{>{
17676 \begin_layout Standard
17683 avoids the problem of hyphenating the first word, as described in section
17684 \begin_inset space ~
17688 \begin_inset CommandInset ref
17690 reference "sub:Multiple-Lines-in"
17695 Now you can simply enter
17698 \begin_layout Standard
17704 \begin_layout Standard
17705 as LaTeX-argument in the table dialog to create a multicolumn.
17708 \begin_layout Standard
17709 \begin_inset VSpace bigskip
17715 \begin_layout Standard
17716 For cells spanned by a multicolumn cell, you can define the format
17719 \begin_layout Standard
17724 newcolumntype{S}[2]{>{
17729 \begin_inset Newline newline
17736 \begin_layout Plain Layout
17751 \begin_layout Plain Layout
17762 arrayrulewidth)*(1-#2))/#2}}
17765 \begin_layout Standard
17766 This format uses equation
17767 \begin_inset CommandInset ref
17773 to calculate the needed width so that each spanned cell has the same width.
17776 \begin_layout Standard
17780 \begin_layout Standard
17783 S{width of multicolumn cell}{number of spanned columns}
17786 \begin_layout Standard
17787 as LaTeX-argument of the column.
17790 \begin_layout Standard
17791 \begin_inset VSpace bigskip
17797 \begin_layout Standard
17798 For colored columns, you can define
17801 \begin_layout Standard
17806 newcolumntype{K}[1]{>{
17813 \begin_layout Standard
17815 \begin_inset Quotes eld
17819 \begin_inset Quotes erd
17822 at the end creates a column with a flexible width whose text is horizontally
17827 \begin_layout Standard
17833 \begin_layout Standard
17837 \begin_layout Standard
17838 \begin_inset VSpace bigskip
17844 \begin_layout Standard
17846 \begin_inset space ~
17850 \begin_inset CommandInset ref
17852 reference "tab:Table-using-user-defined"
17856 use the LaTeX-arguments
17859 \begin_layout Standard
17865 \begin_layout Standard
17866 for the first column and the multicolumn,
17869 \begin_layout Standard
17875 \begin_layout Standard
17876 for the the last column, and
17879 \begin_layout Standard
17885 \begin_layout Standard
17886 for the cells in the second column.
17889 \begin_layout Standard
17890 \begin_inset Float table
17896 \begin_layout Plain Layout
17897 \begin_inset Caption
17899 \begin_layout Plain Layout
17900 \begin_inset CommandInset label
17902 name "tab:Table-using-user-defined"
17906 Table using user-defined table formats
17914 \begin_layout Plain Layout
17916 \begin_inset Tabular
17917 <lyxtabular version="3" rows="3" columns="4">
17919 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
17920 <column alignment="center" valignment="middle" width="0" special="S{2.5cm}{2}">
17921 <column alignment="center" valignment="middle" width="0">
17922 <column alignment="center" valignment="middle" width="0" special="K{red}">
17924 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17927 \begin_layout Plain Layout
17928 verylongtablecellword
17933 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
17936 \begin_layout Plain Layout
17937 multiple lines multicolumn
17942 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17945 \begin_layout Plain Layout
17951 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17954 \begin_layout Plain Layout
17962 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17965 \begin_layout Plain Layout
17971 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17974 \begin_layout Plain Layout
17980 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17983 \begin_layout Plain Layout
17989 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17992 \begin_layout Plain Layout
18000 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18003 \begin_layout Plain Layout
18009 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18012 \begin_layout Plain Layout
18018 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18021 \begin_layout Plain Layout
18027 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18030 \begin_layout Plain Layout
18049 \begin_layout Subsection
18051 \begin_inset CommandInset label
18053 name "sub:Line-Thickness"
18061 \begin_layout Plain Layout
18062 Table Customization ! Line Thickness
18070 \begin_layout Standard
18071 The line thickness for all lines in a table can be adjusted with the length
18079 To set for example a line thickness of 1.5
18080 \begin_inset space \thinspace{}
18084 \begin_inset space ~
18088 \begin_inset CommandInset ref
18090 reference "tab:Table-with-1.5"
18094 , insert the command
18097 \begin_layout Standard
18104 arrayrulewidth}{1.5pt}
18107 \begin_layout Standard
18108 in TeX-Code before the table or table float.
18109 The changed thickness is valid for all following tables.
18110 To use the default value again, set
18117 \begin_inset space \thinspace{}
18120 pt in TeX-Code behind the table or table float.
18123 \begin_layout Standard
18127 \begin_layout Plain Layout
18133 arrayrulewidth}{1.5pt}
18139 \begin_inset Float table
18144 \begin_layout Plain Layout
18145 \begin_inset Caption
18147 \begin_layout Plain Layout
18148 \begin_inset CommandInset label
18150 name "tab:Table-with-1.5"
18155 \begin_inset space \thinspace{}
18166 \begin_layout Plain Layout
18168 \begin_inset Tabular
18169 <lyxtabular version="3" rows="3" columns="3">
18171 <column alignment="center" valignment="top" width="0">
18172 <column alignment="center" valignment="top" width="0">
18173 <column alignment="center" valignment="top" width="0">
18175 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18178 \begin_layout Plain Layout
18184 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18187 \begin_layout Plain Layout
18193 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18196 \begin_layout Plain Layout
18204 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18207 \begin_layout Plain Layout
18213 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18216 \begin_layout Plain Layout
18222 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18225 \begin_layout Plain Layout
18233 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18236 \begin_layout Plain Layout
18242 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18245 \begin_layout Plain Layout
18251 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18254 \begin_layout Plain Layout
18274 \begin_layout Plain Layout
18280 arrayrulewidth}{0.4pt}
18288 \begin_layout Standard
18289 \begin_inset VSpace bigskip
18292 To set the line thickness to 1.5
18293 \begin_inset space \thinspace{}
18296 pt only for horizontal lines, like in Table
18297 \begin_inset space ~
18301 \begin_inset CommandInset ref
18303 reference "tab:Table-with-horizontal"
18307 , insert these commands in TeX-Code before the table or table float:
18310 \begin_layout Standard
18320 \begin_inset Newline newline
18328 \begin_inset Newline newline
18337 arrayrulewidth 1.5pt}
18338 \begin_inset Newline newline
18349 arrayrulewidth 0.4pt}}
18352 \begin_layout Standard
18353 To return to the default line thickness, insert this command in TeX-Code
18354 behind the table or table float:
18357 \begin_layout Standard
18369 \begin_layout Standard
18373 \begin_layout Plain Layout
18384 \begin_layout Plain Layout
18393 \begin_layout Plain Layout
18401 arrayrulewidth 1.5pt}
18404 \begin_layout Plain Layout
18414 arrayrulewidth 0.4pt}}
18420 \begin_inset Float table
18425 \begin_layout Plain Layout
18426 \begin_inset Caption
18428 \begin_layout Plain Layout
18429 \begin_inset CommandInset label
18431 name "tab:Table-with-horizontal"
18436 \begin_inset space \thinspace{}
18439 pt thick horizontal lines
18447 \begin_layout Plain Layout
18449 \begin_inset Tabular
18450 <lyxtabular version="3" rows="3" columns="3">
18452 <column alignment="center" valignment="top" width="0">
18453 <column alignment="center" valignment="top" width="0">
18454 <column alignment="center" valignment="top" width="0">
18456 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18459 \begin_layout Plain Layout
18465 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18468 \begin_layout Plain Layout
18474 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18477 \begin_layout Plain Layout
18485 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18488 \begin_layout Plain Layout
18494 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18497 \begin_layout Plain Layout
18503 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18506 \begin_layout Plain Layout
18514 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18517 \begin_layout Plain Layout
18523 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18526 \begin_layout Plain Layout
18532 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18535 \begin_layout Plain Layout
18555 \begin_layout Plain Layout
18571 \begin_layout Standard
18572 \begin_inset VSpace bigskip
18575 To set the line thickness to 1.5
18576 \begin_inset space \thinspace{}
18579 pt only for vertical lines, create the following column format in the document
18580 preamble, according to the description in section
18581 \begin_inset space ~
18585 \begin_inset CommandInset ref
18587 reference "sub:Customized-Format"
18594 \begin_layout Standard
18599 newcolumntype{V}{!{
18601 vrule width 1.5pt}}
18604 \begin_layout Standard
18606 \begin_inset space ~
18610 \begin_inset CommandInset ref
18612 reference "tab:Table-with-vertical"
18619 \begin_layout Standard
18625 \begin_layout Standard
18626 was used for the last column and
18629 \begin_layout Standard
18635 \begin_layout Standard
18636 for the other columns.
18639 \begin_layout Standard
18640 \begin_inset Float table
18645 \begin_layout Plain Layout
18646 \begin_inset Caption
18648 \begin_layout Plain Layout
18649 \begin_inset CommandInset label
18651 name "tab:Table-with-vertical"
18656 \begin_inset space \thinspace{}
18659 pt thick vertical lines
18667 \begin_layout Plain Layout
18669 \begin_inset Tabular
18670 <lyxtabular version="3" rows="3" columns="3">
18672 <column alignment="center" valignment="top" width="0" special="Vc">
18673 <column alignment="center" valignment="top" width="0" special="Vc">
18674 <column alignment="center" valignment="top" width="0" special="VcV">
18676 <cell alignment="center" valignment="top" topline="true" usebox="none">
18679 \begin_layout Plain Layout
18685 <cell alignment="center" valignment="top" topline="true" usebox="none">
18688 \begin_layout Plain Layout
18694 <cell alignment="center" valignment="top" topline="true" usebox="none">
18697 \begin_layout Plain Layout
18705 <cell alignment="center" valignment="top" topline="true" usebox="none">
18708 \begin_layout Plain Layout
18714 <cell alignment="center" valignment="top" topline="true" usebox="none">
18717 \begin_layout Plain Layout
18723 <cell alignment="center" valignment="top" topline="true" usebox="none">
18726 \begin_layout Plain Layout
18734 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18737 \begin_layout Plain Layout
18743 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18746 \begin_layout Plain Layout
18752 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18755 \begin_layout Plain Layout
18774 \begin_layout Subsection
18779 \begin_layout Plain Layout
18780 Table Customization ! Dashed Lines
18788 \begin_layout Standard
18792 \begin_layout Plain Layout
18802 \begin_inset Note Note
18805 \begin_layout Plain Layout
18806 The following section will only be displayed when the LaTeX-package
18818 \begin_layout Standard
18819 \begin_inset Float table
18825 \begin_layout Plain Layout
18826 \begin_inset Caption
18828 \begin_layout Plain Layout
18829 \begin_inset CommandInset label
18831 name "tab:Table-with-dashed"
18835 Table with dashed lines
18843 \begin_layout Plain Layout
18845 \begin_inset Tabular
18846 <lyxtabular version="3" rows="5" columns="5">
18848 <column alignment="center" valignment="top" width="0">
18849 <column alignment="center" valignment="top" width="0">
18850 <column alignment="center" valignment="top" width="0" special=":c">
18851 <column alignment="center" valignment="top" width="0">
18852 <column alignment="center" valignment="top" width="0">
18854 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18857 \begin_layout Plain Layout
18863 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18866 \begin_layout Plain Layout
18872 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18875 \begin_layout Plain Layout
18881 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18884 \begin_layout Plain Layout
18890 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18893 \begin_layout Plain Layout
18901 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18904 \begin_layout Plain Layout
18910 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18913 \begin_layout Plain Layout
18919 <cell alignment="center" valignment="top" topline="true" usebox="none">
18922 \begin_layout Plain Layout
18928 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18931 \begin_layout Plain Layout
18937 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18940 \begin_layout Plain Layout
18948 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18951 \begin_layout Plain Layout
18955 \begin_layout Plain Layout
18969 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18972 \begin_layout Plain Layout
18978 <cell alignment="center" valignment="top" usebox="none">
18981 \begin_layout Plain Layout
18987 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18990 \begin_layout Plain Layout
18996 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
18999 \begin_layout Plain Layout
19007 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19010 \begin_layout Plain Layout
19014 \begin_layout Plain Layout
19028 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19031 \begin_layout Plain Layout
19037 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
19040 \begin_layout Plain Layout
19046 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none" special="c:">
19049 \begin_layout Plain Layout
19055 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19058 \begin_layout Plain Layout
19066 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19069 \begin_layout Plain Layout
19075 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19078 \begin_layout Plain Layout
19084 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19087 \begin_layout Plain Layout
19093 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19096 \begin_layout Plain Layout
19102 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19105 \begin_layout Plain Layout
19124 \begin_layout Standard
19125 LyX doesn't natively support dashed lines, so you have to use TeX-Code.
19126 As prerequisite the LaTeX-package
19134 \begin_layout Plain Layout
19135 LaTeX-packages ! arydshln
19140 must be loaded in the document preamble with the command
19143 \begin_layout Standard
19148 usepackage{arydshln}
19151 \begin_layout Standard
19152 To make a vertical line dashed, enter the colon
19153 \begin_inset Quotes eld
19157 \begin_inset Quotes erd
19160 together with the character for the horizontal alignment as LaTeX-argument
19161 in the table cell dialog.
19164 \begin_layout Standard
19165 For a horizontal dashed line add the command
19168 \begin_layout Standard
19176 \begin_layout Standard
19177 in TeX-Code as first element of the first cell in the table row.
19180 \begin_layout Standard
19181 For dashed multicolumn lines use the command
19184 \begin_layout Standard
19189 cdashline{line number
19194 \begin_layout Standard
19195 in TeX-Code as first element of the first cell in the table row.
19196 If you have for example a multicolumn spanning over columns 2 to 4 and
19197 you want to have a dashed line above, add the command
19200 \begin_layout Standard
19208 \begin_layout Standard
19209 as first element of the first cell in the row of the multicolumn.
19212 \begin_layout Standard
19213 \begin_inset VSpace bigskip
19219 \begin_layout Standard
19221 \begin_inset space ~
19225 \begin_inset CommandInset ref
19227 reference "tab:Table-with-dashed"
19232 \begin_inset Quotes eld
19240 \begin_inset Quotes erd
19243 as LaTeX-argument of the third column.
19244 The TeX-Code command
19250 was inserted to the first cell of the third row and the the TeX-Code command
19251 \begin_inset Newline newline
19260 was inserted to the first cell of the fourth row.
19263 \begin_layout Standard
19264 \begin_inset Note Greyedout
19267 \begin_layout Plain Layout
19272 The used LaTeX-package
19276 is apparently not compatible with the LaTeX-package
19284 \begin_layout Plain Layout
19285 LaTeX-packages ! colortbl
19290 that is used for colored tables in section
19291 \begin_inset space ~
19295 \begin_inset CommandInset ref
19297 reference "sec:Colored-Tables"
19302 That means colored tables cannot have dashed lines.
19310 \begin_layout Standard
19314 \begin_layout Plain Layout
19324 \begin_inset Note Note
19327 \begin_layout Plain Layout
19328 The following will be displayed when the LaTeX-package
19340 \begin_layout Standard
19341 You need to install the package
19345 to see the content of this section in the output.
19348 \begin_layout Standard
19352 \begin_layout Plain Layout
19364 \begin_layout Chapter
19369 \begin_layout Plain Layout
19378 \begin_layout Section
19380 \begin_inset CommandInset label
19382 name "sec:FloatIntroduction"
19390 \begin_layout Plain Layout
19391 Floats ! Introduction
19399 \begin_layout Standard
19400 A float is a block of text associated with some sort of label, which doesn't
19401 have a fixed location.
19403 \begin_inset Quotes eld
19407 \begin_inset Quotes erd
19410 forward or backward a page or two, to wherever it fits best.
19418 \begin_inset space ~
19423 are also floats, because they can float to the next page when there are
19424 too many notes at the page.
19427 \begin_layout Standard
19428 Floats allow a high quality layout.
19429 Images and tables can evenly be spread to the pages to avoid white space
19430 and pages without text.
19431 As the floating often destroys the context between the text and the image/table
19432 , every float can be referenced in the text.
19433 Floats are therefore numbered.
19434 Referencing is described in section
19435 \begin_inset space ~
19439 \begin_inset CommandInset ref
19441 reference "sec:Referencing-Floats"
19448 \begin_layout Standard
19449 To insert a float, use the menu
19451 Insert\SpecialChar \menuseparator
19459 inset, a box with a label.
19460 The label will automatically be translated to the document language in
19462 Behind the label you can insert the caption text.
19463 The image or table is inserted above or below the caption in a separate
19464 paragraph within the float.
19465 More about the caption placement is described in section
19466 \begin_inset space ~
19470 \begin_inset CommandInset ref
19472 reference "sec:Caption-Placement"
19477 To keep your LyX-document readable, you can open and close the float box
19478 by left-clicking on the box label.
19479 A closed float box looks like this:
19480 \begin_inset Graphics
19481 filename clipart/floatQt4.png
19483 scaleBeforeRotation
19487 – a gray button with a red label.
19490 \begin_layout Standard
19491 It is recommended to insert floats as a separate paragraph to avoid possible
19492 LaTeX-errors that can occur when the surrounding text is specially formatted.
19495 \begin_layout Standard
19496 Existing figures or tables can be put into a float by marking them and then
19497 pressing the corresponding toolbar button for a new float.
19500 \begin_layout Section
19504 \begin_layout Standard
19505 Besides figure and table floats that are described in section
19506 \begin_inset space ~
19510 \begin_inset CommandInset ref
19512 reference "sec:Figure-Floats"
19517 \begin_inset CommandInset ref
19519 reference "sec:Table-Floats"
19523 , respectively, LyX offers the float types
19534 \begin_layout Subsection
19539 \begin_layout Plain Layout
19540 Floats ! Algorithms
19548 \begin_layout Standard
19549 \begin_inset Float algorithm
19555 \begin_layout Plain Layout
19556 \begin_inset Caption
19558 \begin_layout Plain Layout
19559 \begin_inset CommandInset label
19561 name "alg:Example-Algorithm-float"
19565 Example Algorithm float
19573 \begin_layout LyX-Code
19575 \begin_inset Newline newline
19578 Sum:= Sum + A(I); /*comment*/
19579 \begin_inset Newline newline
19583 \begin_inset VSpace -4mm
19594 \begin_layout Standard
19595 This float type is inserted with the menu
19597 Insert\SpecialChar \menuseparator
19598 Floats\SpecialChar \menuseparator
19602 It is used for program codes and descriptions of algorithms.
19603 A possible environment for algorithms is the
19607 , described in LyX's
19613 \begin_inset space ~
19617 \begin_inset CommandInset ref
19619 reference "alg:Example-Algorithm-float"
19623 is an example of an algorithm float where -4
19624 \begin_inset space \thinspace{}
19627 mm vertical space was added at the end of the float to have the bottom rule
19628 exactly below the last text line.
19631 \begin_layout Standard
19632 The float label is not automatically translated into the document language.
19633 If your document is not in English, you have to do this manually by adding
19634 the following line to the document preamble
19639 \begin_layout Standard
19644 floatname{algorithm}{your
19645 \begin_inset space ~
19651 \begin_layout Standard
19655 \begin_inset space ~
19661 \begin_inset Quotes eld
19669 \begin_inset Quotes erd
19675 \begin_layout Standard
19676 To insert the list of algorithms you can not use the menu
19678 Insert\SpecialChar \menuseparator
19680 \begin_inset space \thinspace{}
19684 \begin_inset space \thinspace{}
19687 TOC\SpecialChar \menuseparator
19690 when your document is a non-English one.
19691 In this case use this command in TeX-Code instead:
19694 \begin_layout Standard
19699 listof{algorithm}{your
19700 \begin_inset space ~
19706 \begin_layout Standard
19710 \begin_inset space ~
19716 \begin_inset Quotes eld
19724 \begin_inset Quotes erd
19730 \begin_layout Standard
19731 Algorithm floats are not by default numbered in the scheme
19732 \begin_inset Quotes eld
19736 \begin_inset Quotes erd
19739 like it is the case for table and figure floats in many document-classes.
19740 To number algorithm floats in the same scheme, add this command to your
19744 \begin_layout Standard
19749 numberwithin{algorithm}{chapter}
19752 \begin_layout Standard
19753 To be able to use the command
19762 \begin_inset space ~
19767 in the document settings the option
19770 \begin_inset space ~
19774 \begin_inset space ~
19778 \begin_inset space ~
19786 \begin_layout Subsection
19791 \begin_layout Plain Layout
19792 Floats ! Wrap Floats
19800 \begin_layout Standard
19801 \begin_inset Wrap figure
19808 \begin_layout Plain Layout
19809 \begin_inset Graphics
19810 filename clipart/mobius.eps
19812 scaleBeforeRotation
19813 rotateOrigin center
19820 \begin_layout Plain Layout
19821 \begin_inset Caption
19823 \begin_layout Plain Layout
19824 \begin_inset CommandInset label
19826 name "fig:This-is-a"
19830 This is a figure wrap float.
19840 This float type is used if you want to wrap text around a figure or table
19841 so that it only occupies some fraction of the column width.
19842 It can be inserted using the menu
19844 Insert\SpecialChar \menuseparator
19845 Floats\SpecialChar \menuseparator
19847 \begin_inset space ~
19851 \begin_inset space ~
19859 \begin_inset space ~
19863 \begin_inset space ~
19868 if the LaTeX-package
19876 \begin_layout Plain Layout
19877 LaTeX-packages ! wrapfig
19881 \begin_layout Plain Layout
19899 \begin_layout Plain Layout
19900 Installing a LaTeX-package is explained it in the
19903 \begin_inset space ~
19913 The settings of the float can be modified by right-clicking on the float
19915 The mandatory settings are the float
19928 that specifies how much the float is set into the paragraph
19929 \begin_inset space \thinspace{}
19933 \begin_inset space \thinspace{}
19936 page margin, and the
19939 \begin_inset space ~
19944 that specifies how many text lines the float will approximately need.
19945 The line span is often hard to be approximated, so better only use it when
19946 you encounter float placement problems.
19947 You can furthermore decide if LaTeX is allowed to let the float float within
19948 the paragraph or to surrounding paragraphs.
19950 \begin_inset space ~
19954 \begin_inset CommandInset ref
19956 reference "fig:This-is-a"
19960 is an example text wrap float with a width of 40
19961 \begin_inset space \thinspace{}
19965 \begin_inset space \thinspace{}
19968 cm overhang, set to the left.
19972 \begin_layout Plain Layout
19973 Available units are explained in appendix
19974 \begin_inset space ~
19978 \begin_inset CommandInset ref
19980 reference "cha:Units-available-in"
19992 \begin_layout Standard
19993 \begin_inset Note Greyedout
19996 \begin_layout Plain Layout
20002 \begin_inset space ~
20005 wrap float floats are fragile! E.
20006 \begin_inset space \thinspace{}
20010 \begin_inset space \space{}
20013 having a figure too close to the bottom of the page can mess things up in
20014 the way that the float doesn't appear in the output or that it is placed
20015 over some other text.
20023 \begin_layout Standard
20027 \begin_layout Itemize
20028 Wrap floats should not be placed in paragraphs that run over a page break.
20029 That means that wrap floats should better be inserted to the exact place
20030 when the document is nearly finished and you are able to estimate where
20031 page breaks will appear.
20034 \begin_layout Itemize
20035 Wrap floats should either be placed in an own paragraph before the paragraph
20036 where they should wrap into or within a paragraph.
20039 \begin_layout Itemize
20040 Wrap floats in consecutive paragraphs may cause troubles, so assure that
20041 there is a text paragraph between them as separator.
20044 \begin_layout Itemize
20045 Wrap floats are not allowed in section headings or tables.
20048 \begin_layout Section
20053 \begin_layout Plain Layout
20062 \begin_layout Standard
20063 Floats are usually numbered either independent from the sections the floats
20064 are in, or in the scheme
20065 \begin_inset Quotes eld
20069 \begin_inset Quotes erd
20073 \begin_inset Quotes eld
20077 \begin_inset Quotes erd
20081 This depends on the used document class.
20084 \begin_layout Standard
20085 To change the section independent numbering, you can use this command in
20086 the document preamble:
20089 \begin_layout Standard
20101 \begin_layout Standard
20108 is the command that prints the table number, for figure floats, the command
20122 prints in the command above the table number as small roman number.
20125 \begin_layout Standard
20126 To change the numbering scheme for example to
20127 \begin_inset Quotes eld
20131 \begin_inset Quotes erd
20134 , use this command in the preamble:
20137 \begin_layout Standard
20142 numberwithin{table}{subsection}
20145 \begin_layout Standard
20146 To be able to use the command
20155 \begin_inset space ~
20160 in the document settings the option
20163 \begin_inset space ~
20167 \begin_inset space ~
20171 \begin_inset space ~
20179 \begin_layout Standard
20180 Please also have a look at section
20181 \begin_inset space ~
20185 \begin_inset CommandInset ref
20187 reference "sub:Footnote-Numbering"
20191 for the details and important notes about the numbering commands.
20194 \begin_layout Section
20196 \begin_inset CommandInset label
20198 name "sec:Referencing-Floats"
20206 \begin_layout Plain Layout
20207 Floats ! References
20216 \begin_layout Plain Layout
20217 References ! to Floats
20225 \begin_layout Standard
20226 To reference a float, insert a label into its caption using the menu
20228 Insert\SpecialChar \menuseparator
20231 or the toolbar button
20232 \begin_inset Graphics
20233 filename ../images/label-insert.png
20235 scaleBeforeRotation
20240 A grey label box like this one:
20241 \begin_inset Graphics
20242 filename clipart/labelQt4.png
20244 scaleBeforeRotation
20248 will be inserted and the label window pops up asking for the label text.
20249 LyX offers as text the first words of the caption with a prefix.
20250 The prefix depends on the float type, e.
20251 \begin_inset space \thinspace{}
20255 \begin_inset space \space{}
20258 for figure floats the prefix will be "
20265 \begin_layout Standard
20266 The label is used as anchor and name for the reference.
20267 You can refer to the label using the menu
20269 Insert\SpecialChar \menuseparator
20272 or the toolbar button
20273 \begin_inset Graphics
20274 filename ../images/dialog-show-new-inset_ref.png
20276 scaleBeforeRotation
20281 A grey cross-reference box like this one:
20282 \begin_inset Graphics
20283 filename clipart/referenceQt4.png
20285 scaleBeforeRotation
20289 will be inserted and the cross-reference window appear showing all labels
20291 If you have multiple LyX-documents opened, choose the one you are working
20292 on from the drop-list at the top of the dialog.
20293 You can now sort the labels alphabetically and then choose one.
20294 At the position of the cross-reference box the float number will appear
20298 \begin_layout Standard
20299 It is recommended to use a protected space between the cross-reference name
20300 and its number to avoid line breaks between them.
20301 If a cross-reference refers to a non-existing label, you will see two question
20302 marks in the output instead of the reference.
20305 \begin_layout Standard
20306 You can change labels at any time by clicking on the label box.
20307 References to the changed label will automatically change its link to the
20308 new label text, so that you don't need to take care about this.
20311 \begin_layout Standard
20315 \begin_inset space ~
20319 \begin_inset space ~
20324 in the cross-reference window sets the cursor before the referred label.
20325 The button text changes then to Go
20326 \begin_inset space ~
20329 Back and you can use it to set the cursor back to the cross-reference.
20330 Right-clicking on a cross-reference box also sets the cursor before the
20331 referenced label but without a possibility to go back.
20334 \begin_layout Subsection
20335 Cross-Reference Formats
20336 \begin_inset CommandInset label
20338 name "sub:Cross-Reference-Formats"
20346 \begin_layout Plain Layout
20347 References ! Formats
20355 \begin_layout Standard
20356 There are six varieties of cross-references:
20359 \begin_layout Description
20360 <reference>: prints the float number, this is the default:
20361 \begin_inset CommandInset ref
20363 reference "fig:Two-distorted-images"
20370 \begin_layout Description
20371 (<reference>): prints the float number within two parentheses, this is the
20372 style normally used to reference formulas, especially when the reference
20374 \begin_inset Quotes eld
20378 \begin_inset Quotes erd
20382 \begin_inset CommandInset ref
20391 \begin_layout Description
20392 <page>: prints the page number: Page
20393 \begin_inset space ~
20397 \begin_inset CommandInset ref
20398 LatexCommand pageref
20399 reference "fig:Two-distorted-images"
20406 \begin_layout Description
20408 \begin_inset space ~
20412 \begin_inset space ~
20415 <page>: prints the text "on page" and the page number:
20416 \begin_inset CommandInset ref
20417 LatexCommand vpageref
20418 reference "fig:Two-distorted-images"
20425 \begin_layout Description
20427 \begin_inset space ~
20431 \begin_inset space ~
20435 \begin_inset space ~
20438 <page>: prints the float number, the text "on page", and the page number:
20440 \begin_inset CommandInset ref
20442 reference "fig:Two-distorted-images"
20449 \begin_layout Description
20451 \begin_inset space ~
20454 reference: prints a self defined cross-reference format.
20456 \begin_inset Note Greyedout
20459 \begin_layout Plain Layout
20464 This feature is only available when you have the LaTeX-package
20476 \begin_layout Standard
20477 Note that the style <page> won't print the page number if the label is on
20478 the previous, the same, or the next page.
20480 \begin_inset space \thinspace{}
20484 \begin_inset space \space{}
20488 \begin_inset Quotes eld
20496 \begin_inset Quotes erd
20502 \begin_layout Standard
20503 The number and current page of the referred document part in the output,
20504 is automatically calculated by LaTeX.
20505 The varieties are adjusted in the field
20509 of the cross-reference window, that appear when you click on the cross-referenc
20513 \begin_layout Subsection
20514 Automatic Reference Naming
20518 \begin_layout Plain Layout
20519 References ! Automatic Reference Naming
20527 \begin_layout Standard
20536 \begin_layout Plain Layout
20537 LaTeX-packages ! hyperref
20542 , that is enabled in the
20550 dialog, provides a very useful feature that cross-references automatically
20551 include the name of the referenced floats (or text parts like
20556 So you will save to write e.
20557 \begin_inset space \thinspace{}
20561 \begin_inset space \space{}
20565 \begin_inset Quotes eld
20569 \begin_inset Quotes erd
20572 before every reference to a figure.
20573 To use this feature, enable
20577 and insert this line to the LaTeX preamble:
20580 \begin_layout Standard
20596 \begin_layout Standard
20597 When you prefer other reference names than the default ones, for example
20598 you want instead of
20599 \begin_inset Quotes eld
20603 \begin_inset Quotes erd
20607 \begin_inset Quotes eld
20611 \begin_inset space \thinspace{}
20615 \begin_inset Quotes eld
20618 , you can redefine the name by inserting this to the preamble:
20621 \begin_layout Standard
20632 sectionautorefname}
20633 \begin_inset Newline newline
20640 \begin_layout Plain Layout
20654 \begin_layout Standard
20655 When you are using another document language than English, replace
20656 \begin_inset Newline newline
20671 , where *** is the name of the used language.
20674 \begin_layout Standard
20675 To get automatic names, but not for certain reference types, for example
20676 not for equations, use this preamble code:
20679 \begin_layout Standard
20687 \begin_inset Newline newline
20697 \begin_inset Newline newline
20708 equationautorefname}
20709 \begin_inset Newline newline
20716 \begin_layout Plain Layout
20732 \begin_layout Standard
20733 More about this topic can be found in
20738 \begin_inset CommandInset citation
20747 \begin_layout Standard
20748 \begin_inset Note Greyedout
20751 \begin_layout Plain Layout
20756 Automatic reference naming cannot be used when you use cross-references
20760 \begin_inset space ~
20765 style, as described in section
20766 \begin_inset space ~
20770 \begin_inset CommandInset ref
20772 reference "sub:Cross-Reference-Formats"
20784 \begin_layout Standard
20789 manual is an example where automatic reference naming is used.
20792 \begin_layout Subsection
20794 \begin_inset CommandInset label
20796 name "sub:Reference-Position"
20804 \begin_layout Plain Layout
20805 References ! Reference Position
20813 \begin_layout Standard
20822 \begin_layout Plain Layout
20823 LaTeX-packages ! hyperref
20836 dialog to link cross-references in the output, you will see that clicking
20837 on an image float reference jumps to the image label.
20838 The caption will be the first text part on the screen, so that you cannot
20839 see the image without scrolling.
20840 This is because the reference link anchor is placed at the position of
20842 With the use of the package
20850 \begin_layout Plain Layout
20851 LaTeX-packages ! hypcap
20856 , which is part of the LaTeX-package
20864 \begin_layout Plain Layout
20865 LaTeX-packages ! oberdiek
20870 , the link anchor is placed at the beginning of a float.
20871 To use this feature for figure floats, load
20875 in the document preamble with the line
20878 \begin_layout Standard
20883 usepackage[figure]{hypcap}
20886 \begin_layout Standard
20891 for all float types but this is not recommended for stability reasons.
20892 For more informations, have a look at
20897 \begin_inset CommandInset citation
20906 \begin_layout Standard
20907 \begin_inset Note Greyedout
20910 \begin_layout Plain Layout
20919 has no effect for references to subfigures.
20927 \begin_layout Section
20929 \begin_inset CommandInset label
20931 name "sec:Float-Placement"
20939 \begin_layout Plain Layout
20948 \begin_layout Standard
20949 Right-clicking on a float-box opens a dialog where you can alter the placement
20950 options that LaTeX uses for positioning the float.
20951 \begin_inset Newline newline
20957 \begin_inset space ~
20962 is only useful for two-column documents: If you select it, the float will
20963 span across both columns on the page instead of being confined to just
20965 \begin_inset Newline newline
20971 \begin_inset space ~
20976 is used to rotate floats, see section
20977 \begin_inset CommandInset ref
20979 reference "sec:Rotated-Floats"
20986 \begin_layout Standard
20987 You can use one ore more of the following options in the float dialog to
20988 set the placement for a particular float when you uncheck the option
20991 \begin_inset space ~
20995 \begin_inset space ~
21003 \begin_layout Description
21005 \begin_inset space ~
21009 \begin_inset space ~
21012 possible try to place the float on the position where it is inserted
21015 \begin_layout Description
21017 \begin_inset space ~
21021 \begin_inset space ~
21024 page try to place the float on the top of the current page
21027 \begin_layout Description
21029 \begin_inset space ~
21033 \begin_inset space ~
21036 page try to place the float on the bottom of the current page
21039 \begin_layout Description
21041 \begin_inset space ~
21045 \begin_inset space ~
21048 floats try to place the float on an own page
21051 \begin_layout Standard
21052 The order of the above option is
21057 That means, if you use the default placement, LaTeX will first try out
21061 \begin_inset space ~
21065 \begin_inset space ~
21073 \begin_inset space ~
21077 \begin_inset space ~
21082 , and then the others.
21083 If you don't use the default, LaTeX will try only the checked options but
21085 If none of the 4 placements are possible the procedure is internally repeated
21086 but it is tried to put the float on the following page.
21089 \begin_layout Standard
21090 By default, each option has its own rules:
21093 \begin_layout Labeling
21094 \labelwidthstring 00.00.0000
21098 \begin_inset space ~
21102 \begin_inset space ~
21107 only floats occupying less than 70
21108 \begin_inset space \thinspace{}
21111 % of the page can be placed at the top of a page (
21120 \begin_layout Labeling
21121 \labelwidthstring 00.00.0000
21125 \begin_inset space ~
21129 \begin_inset space ~
21134 : only floats occupying less than 30
21135 \begin_inset space \thinspace{}
21138 % of the page can be placed at the bottom of a page.
21148 \begin_layout Labeling
21149 \labelwidthstring 00.00.0000
21153 \begin_inset space ~
21157 \begin_inset space ~
21162 : only if more than 50
21163 \begin_inset space \thinspace{}
21166 % of the page are occupied by floats, several floats can be set together
21177 \begin_layout Standard
21178 If you don't like these rules, you can ignore them by using the additional
21182 \begin_inset space ~
21186 \begin_inset space ~
21192 \begin_inset Newline newline
21195 You can also redefine the rules with LaTeX-commands that are given in parenthese
21196 s behind the rules description above.
21197 To increase for example the often too small default of the bottom-rule
21199 \begin_inset space \thinspace{}
21202 % of the page, add this line to your document preamble:
21205 \begin_layout Standard
21212 bottomfraction}{0.5}
21215 \begin_layout Standard
21216 Sometimes you might need, under all circumstances, a float to be placed
21217 exactly at the position where it is inserted.
21218 For this case you can use the option
21221 \begin_inset space ~
21227 Use this option very rarely and only if the document is nearly ready to
21229 Because the float is then no longer able to
21230 \begin_inset Quotes eld
21234 \begin_inset Quotes erd
21237 when you change your document and this will often destroy the page layout.
21240 \begin_layout Standard
21241 There are no placement options for text wrap floats, because they are always
21242 surrounded by the text of a certain paragraph.
21243 \begin_inset VSpace bigskip
21249 \begin_layout Standard
21250 Sometimes you have the problem that a float is placed at the top of a page
21251 while its corresponding section starts at the middle of the page, so that
21252 the reader could think the float is part of the previous section.
21253 To avoid this the LaTeX-command
21260 It suppresses a given float placement for the page where it is inserted
21261 and can therefore be used to avoid that floats could be set before a section
21263 To get this, add these commands to your document preamble:
21266 \begin_layout Standard
21276 \begin_inset Newline newline
21290 \begin_layout Standard
21291 You can define the same for all section headings, like chapters and subsections.
21292 This definition is not recommended to be used for small text parts like
21293 subsubsections because LaTeX may then have problems to find a suitable
21297 \begin_layout Standard
21298 \begin_inset VSpace bigskip
21301 In some cases it is required to have all figures/tables at the end of the
21303 For this purpose the LaTeX-package
21311 \begin_layout Plain Layout
21312 LaTeX-packages ! endfloat
21318 It puts all figure and table floats at the end of the document into own
21320 At the original float position a text hint like
21321 \begin_inset Quotes eld
21327 \begin_inset space ~
21333 \begin_inset Quotes erd
21337 The endfloat-package is loaded in the preamble with the line
21340 \begin_layout Standard
21345 usepackage[options]{endfloat}
21348 \begin_layout Standard
21349 There are various package options to format the created figure/table sections.
21350 For more information we refer to the
21355 \begin_inset CommandInset citation
21362 \begin_inset Newline newline
21366 \begin_inset Note Greyedout
21369 \begin_layout Plain Layout
21374 doesn't provide an automatic translation for the text hint, you have to
21375 do this manually, see section
21376 \begin_inset space ~
21380 \begin_inset CommandInset citation
21392 \begin_inset Newline newline
21396 \begin_inset Note Greyedout
21399 \begin_layout Plain Layout
21404 There is currently a bug in
21408 when the caption contains a German
21409 \begin_inset Quotes eld
21413 \begin_inset Quotes erd
21417 Use in this case the command
21418 \begin_inset Quotes eld
21428 \begin_inset Quotes erd
21431 in TeX-Code instead of
21432 \begin_inset Quotes eld
21436 \begin_inset Quotes erd
21447 \begin_layout Standard
21448 \begin_inset VSpace bigskip
21451 For more details about float placements, have a look at LaTeX books,
21452 \begin_inset CommandInset citation
21454 key "latexcompanion,latexguide,latexbook"
21461 \begin_layout Section
21463 \begin_inset CommandInset label
21465 name "sec:Rotated-Floats"
21473 \begin_layout Plain Layout
21482 \begin_layout Standard
21483 Especially for wide tables you might have floats rotated.
21484 To rotate a whole float including the caption, right-click on the float-box
21488 \begin_inset space ~
21496 \begin_layout Standard
21497 Rotated floats are always placed on its own page (or column, in case you
21498 have a multi-column document).
21499 You can let them span several columns using the float settings option
21502 \begin_inset space ~
21508 Floats are rotated so that you can read them from the outside margin.
21509 To force a certain rotation direction for all pages, you can add either
21518 to the document class options.
21521 \begin_layout Standard
21522 Referencing rotated floats is the same like for normal floats, the caption
21523 format is also the same: Table
21524 \begin_inset space ~
21528 \begin_inset CommandInset ref
21530 reference "tab:Rotated-table"
21534 is an example of a rotated table float.
21537 \begin_layout Standard
21538 \begin_inset Note Greyedout
21541 \begin_layout Plain Layout
21546 Not all DVI-viewers are able to display rotated floats.
21554 \begin_layout Standard
21555 \begin_inset Float table
21560 \begin_layout Plain Layout
21561 \begin_inset Caption
21563 \begin_layout Plain Layout
21564 \begin_inset CommandInset label
21566 name "tab:Rotated-table"
21578 \begin_layout Plain Layout
21580 \begin_inset Tabular
21581 <lyxtabular version="3" rows="1" columns="5">
21583 <column alignment="center" valignment="top" width="0">
21584 <column alignment="center" valignment="top" width="0">
21585 <column alignment="center" valignment="top" width="0">
21586 <column alignment="center" valignment="top" width="0">
21587 <column alignment="center" valignment="top" width="0">
21589 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21592 \begin_layout Plain Layout
21598 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21601 \begin_layout Plain Layout
21607 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21610 \begin_layout Plain Layout
21616 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21619 \begin_layout Plain Layout
21625 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21628 \begin_layout Plain Layout
21647 \begin_layout Section
21648 Floats Side by Side
21652 \begin_layout Plain Layout
21653 Floats ! Side by side
21661 \begin_layout Standard
21662 To place floats side by side, like for Figure
21663 \begin_inset space ~
21667 \begin_inset CommandInset ref
21669 reference "fig:Float-left"
21674 \begin_inset CommandInset ref
21676 reference "fig:Float-right"
21685 In it two minipage boxes are inserted.
21689 \begin_layout Plain Layout
21690 Minipages are explained in section
21691 \begin_inset space ~
21695 \begin_inset CommandInset ref
21697 reference "sec:Minipages"
21706 The width is set to 45
21707 \begin_inset space \thinspace{}
21711 \begin_inset space \thinspace{}
21714 column% and the box alignment to
21719 The minipage boxes contain the image and the caption in the same way as
21720 they are in a float.
21721 The only difference is that the image unit
21724 \begin_inset space ~
21728 \begin_inset space ~
21733 is now calculated according to the width of the minipage boxes.
21736 \begin_layout Standard
21737 \begin_inset Float figure
21742 \begin_layout Plain Layout
21743 \begin_inset Box Frameless
21752 height_special "totalheight"
21755 \begin_layout Plain Layout
21757 \begin_inset Graphics
21758 filename clipart/mobius.eps
21761 scaleBeforeRotation
21768 \begin_layout Plain Layout
21769 \begin_inset Caption
21771 \begin_layout Plain Layout
21772 \begin_inset CommandInset label
21774 name "fig:Float-left"
21778 Float on the left side.
21789 \begin_inset space \hfill{}
21793 \begin_inset Box Frameless
21802 height_special "totalheight"
21805 \begin_layout Plain Layout
21807 \begin_inset Graphics
21808 filename clipart/platypus.eps
21811 scaleBeforeRotation
21818 \begin_layout Plain Layout
21819 \begin_inset Caption
21821 \begin_layout Plain Layout
21822 \begin_inset CommandInset label
21824 name "fig:Float-right"
21828 Float on the right side.
21841 \begin_layout Plain Layout
21850 \begin_layout Section
21855 \begin_layout Plain Layout
21856 Caption ! Formatting
21865 \begin_layout Plain Layout
21866 Floats ! Caption Formatting
21872 \begin_inset CommandInset label
21874 name "sec:Caption-Formatting"
21881 \begin_layout Standard
21886 environment is the default paragraph environment for
21891 On the LyX screen captions appear as label, e.
21892 \begin_inset space \thinspace{}
21896 \begin_inset space \space{}
21900 \begin_inset Quotes eld
21908 \begin_inset Quotes erd
21911 followed by the caption text.
21913 \begin_inset Quotes eld
21917 \begin_inset Quotes erd
21920 is the actual reference number.
21921 By default the label and the number are in the same font as the caption
21922 text and a colon follows the number to divide the label from the text.
21923 This caption format is not suitable for all document formats.
21927 \begin_layout Standard
21928 To change the default caption format, load the LaTeX-package
21936 \begin_layout Plain Layout
21937 LaTeX-packages ! caption
21942 in the document preamble with this line:
21945 \begin_layout Standard
21950 usepackage[format definition]{caption}
21953 \begin_layout Standard
21954 To have for example the label and the number in sans-serif bold font and
21955 the table captions always above the table like in this document, use the
21959 \begin_layout Standard
21964 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
21967 \begin_layout Standard
21968 You can also define different caption formats for the different float types.
21969 In this case load the
21973 package without format specific options and define the different formats
21974 with the help of the command
21977 \begin_layout Standard
21982 captionsetup[float type]{format definition}
21985 \begin_layout Standard
21986 in the document preamble.
21987 For example the caption formats of Figure
21988 \begin_inset space ~
21992 \begin_inset CommandInset ref
21994 reference "fig:This-is-an-fig"
21999 \begin_inset space ~
22003 \begin_inset CommandInset ref
22005 reference "tab:This-is-an-tab"
22009 can be created using these commands in the document preamble:
22012 \begin_layout Standard
22017 usepackage[tableposition=top]{caption}
22020 \begin_inset Newline newline
22027 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
22028 \begin_inset Newline newline
22035 \begin_layout Plain Layout
22043 captionsetup[figure]
22051 \begin_inset Newline newline
22056 captionsetup[table]{labelfont={bf,sf}}
22059 \begin_layout Standard
22060 \begin_inset Note Greyedout
22063 \begin_layout Plain Layout
22072 has no effect when a
22080 \begin_layout Plain Layout
22081 LaTeX-packages ! koma-script
22086 document class is used.
22087 In this case the document class option
22099 \begin_layout Standard
22100 For more information about the package
22104 we refer to its documentation
22105 \begin_inset CommandInset citation
22114 \begin_layout Standard
22115 To change the label name from e.
22116 \begin_inset space \thinspace{}
22120 \begin_inset space \space{}
22124 \begin_inset Quotes eld
22128 \begin_inset Quotes erd
22132 \begin_inset Quotes eld
22136 \begin_inset Quotes erd
22139 use this preamble command:
22142 \begin_layout Standard
22149 fnum@figure}{Image~
22154 \begin_layout Standard
22161 inserts the figure number and
22164 \begin_inset Quotes eld
22170 \begin_inset Quotes erd
22173 creates a protected space.
22176 \begin_layout Standard
22177 \begin_inset VSpace bigskip
22188 \begin_layout Plain Layout
22189 LaTeX-packages ! koma-script
22196 article (koma-script)
22204 letter (koma-script)
22208 report (koma-script)
22211 \begin_inset space \thinspace{}
22214 ), you can alternatively to the
22222 's built-in command
22229 For example, to have the caption label in bold, add this command to your
22233 \begin_layout Standard
22238 setkomafont{captionlabel}{
22243 \begin_layout Standard
22244 For more information about
22255 \begin_inset CommandInset citation
22264 \begin_layout Standard
22268 \begin_layout Plain Layout
22272 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
22279 \begin_inset Note Note
22282 \begin_layout Plain Layout
22283 The caption format is changed only for this example.
22291 \begin_layout Standard
22292 \begin_inset Float figure
22298 \begin_layout Plain Layout
22300 \begin_inset Graphics
22301 filename clipart/mobius.eps
22304 scaleBeforeRotation
22311 \begin_layout Plain Layout
22312 \begin_inset Caption
22314 \begin_layout Plain Layout
22315 \begin_inset CommandInset label
22317 name "fig:This-is-an-fig"
22321 This is an example figure caption that is longer than one line to show the
22322 different caption format.
22323 Here a self-defined caption format is used.
22336 \begin_layout Standard
22340 \begin_layout Plain Layout
22344 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
22353 \begin_layout Standard
22354 \begin_inset Float table
22360 \begin_layout Plain Layout
22361 \begin_inset Caption
22363 \begin_layout Plain Layout
22364 \begin_inset CommandInset label
22366 name "tab:This-is-an-tab"
22370 This is an example table caption that is longer than one line to show the
22371 different caption format.
22372 Here the standard caption format for tables in this document is used.
22380 \begin_layout Plain Layout
22382 \begin_inset Tabular
22383 <lyxtabular version="3" rows="1" columns="5">
22385 <column alignment="center" valignment="top" width="0">
22386 <column alignment="center" valignment="top" width="0">
22387 <column alignment="center" valignment="top" width="0">
22388 <column alignment="center" valignment="top" width="0">
22389 <column alignment="center" valignment="top" width="0">
22391 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22394 \begin_layout Plain Layout
22400 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22403 \begin_layout Plain Layout
22409 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22412 \begin_layout Plain Layout
22418 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22421 \begin_layout Plain Layout
22427 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22430 \begin_layout Plain Layout
22449 \begin_layout Section
22454 \begin_layout Plain Layout
22455 Caption ! Placement
22464 \begin_layout Plain Layout
22465 Floats ! Caption Placement
22471 \begin_inset CommandInset label
22473 name "sec:Caption-Placement"
22480 \begin_layout Standard
22481 The common caption placement rule is:
22484 \begin_layout Description
22485 Figure: Caption is set below the figure
22488 \begin_layout Description
22489 Table: Caption is set above the table
22492 \begin_layout Standard
22493 Having the caption above the table is unfortunately not supported in LaTeX's
22495 That means if you are using the document classes
22511 there will be no space between the caption and the table.
22512 To insert the needed space, add the following option to the load command
22513 of the LaTeX-package
22517 in your document preamble
22521 \begin_layout Plain Layout
22523 \begin_inset space ~
22527 \begin_inset CommandInset ref
22529 reference "sec:Caption-Formatting"
22533 for more information of the package
22545 \begin_layout Standard
22551 \begin_layout Standard
22560 \begin_layout Plain Layout
22561 LaTeX-packages ! koma-script
22568 article (koma-script)
22576 letter (koma-script)
22580 report (koma-script)
22583 \begin_inset space \thinspace{}
22586 ), you can alternatively to the
22590 package set the document class option
22597 \begin_layout Standard
22598 \begin_inset VSpace bigskip
22601 It is also possible to set the caption beside a figure or table.
22602 To get this the LaTeX-package
22610 \begin_layout Plain Layout
22611 LaTeX-packages ! sidecap
22616 has to be loaded in the document preamble with the line
22619 \begin_layout Standard
22624 usepackage[option]{sidecap}
22627 \begin_layout Standard
22628 If you set no option, the caption is placed on the side of the outer page
22629 margin – to the right on odd pages, to the left on even pages.
22630 You can change the placement to inner margin with the option
22635 To force the placement always to the right or left, use the option
22646 \begin_layout Standard
22650 \begin_layout Plain Layout
22660 \begin_inset Note Note
22663 \begin_layout Plain Layout
22664 The following section will only be displayed when the LaTeX-package
22676 \begin_layout Standard
22677 To place in LyX the caption of a float on the side, it is necessary to add
22678 these commands to the document preamble:
22681 \begin_layout Standard
22687 \begin_layout Standard
22695 \begin_inset Newline newline
22702 \begin_layout Plain Layout
22718 \begin_inset Newline newline
22725 \begin_layout Plain Layout
22741 \begin_inset Newline newline
22748 \begin_layout Plain Layout
22759 renewenvironment{table}{
22766 \begin_layout Standard
22774 \begin_inset Newline newline
22781 \begin_layout Plain Layout
22797 \begin_inset Newline newline
22804 \begin_layout Plain Layout
22822 \begin_layout Standard
22830 \begin_inset Newline newline
22837 \begin_layout Plain Layout
22853 \begin_inset Newline newline
22860 \begin_layout Plain Layout
22876 \begin_inset Newline newline
22883 \begin_layout Plain Layout
22894 renewenvironment{figure}{
22901 \begin_layout Standard
22909 \begin_inset Newline newline
22916 \begin_layout Plain Layout
22932 \begin_inset Newline newline
22939 \begin_layout Plain Layout
22957 \begin_layout Standard
22963 \begin_layout Standard
22964 The commands allow you to redefine the floats so that the caption is set
22966 For figure floats use the command
22969 \begin_layout Standard
22977 \begin_layout Standard
22978 in TeX-Code before the float.
22979 Behind the float insert the command
22982 \begin_layout Standard
22990 \begin_layout Standard
22991 in TeX-Code to get back to the original float definition.
22994 \begin_layout Standard
22995 For table floats use the corresponding commands
22998 \begin_layout Standard
23012 \begin_layout Standard
23014 \begin_inset space ~
23018 \begin_inset CommandInset ref
23020 reference "fig:cap-beside-fig"
23025 \begin_inset space ~
23029 \begin_inset CommandInset ref
23031 reference "tab:cap-beside-tab"
23035 are examples where the caption is set beside.
23038 \begin_layout Standard
23039 You can see in the examples that the caption text appears at the top of
23040 the floats for table floats and at the bottom for figure floats.
23041 To change this, you can use the command
23044 \begin_layout Standard
23049 sidecaptionvpos{float type}{placement}
23052 \begin_layout Standard
23053 in the document preamble or in TeX-Code before the float.
23054 The float type is either
23062 , the placement can be
23063 \begin_inset Quotes eld
23071 \begin_inset Quotes erd
23075 \begin_inset Quotes eld
23083 \begin_inset Quotes erd
23087 \begin_inset Quotes eld
23095 \begin_inset Quotes erd
23099 To have for example the caption of figure floats vertically centered, use
23103 \begin_layout Standard
23108 sidecaptionvpos{figure}{c}
23111 \begin_layout Standard
23112 This was used for Figure
23113 \begin_inset space ~
23117 \begin_inset CommandInset ref
23119 reference "fig:cap-beside-fig-2"
23126 \begin_layout Standard
23127 \begin_inset VSpace medskip
23130 For more information about the package
23134 we refer to its documentation
23135 \begin_inset CommandInset citation
23144 \begin_layout Standard
23145 \begin_inset Note Greyedout
23148 \begin_layout Plain Layout
23161 \begin_layout Plain Layout
23162 LaTeX-packages ! hypcap
23167 , described in section
23168 \begin_inset space ~
23172 \begin_inset CommandInset ref
23174 reference "sub:Reference-Position"
23178 , has no effect on floats with the caption set beside.
23186 \begin_layout Standard
23190 \begin_layout Plain Layout
23202 \begin_layout Standard
23203 \begin_inset Float figure
23208 \begin_layout Plain Layout
23209 \begin_inset Graphics
23210 filename clipart/escher-lsd.eps
23212 scaleBeforeRotation
23219 \begin_layout Plain Layout
23220 \begin_inset Caption
23222 \begin_layout Plain Layout
23223 \begin_inset CommandInset label
23225 name "fig:cap-beside-fig"
23229 This is a caption beside a figure.
23242 \begin_layout Standard
23246 \begin_layout Plain Layout
23258 \begin_layout Standard
23259 \begin_inset Float table
23264 \begin_layout Plain Layout
23265 \begin_inset Caption
23267 \begin_layout Plain Layout
23268 \begin_inset CommandInset label
23270 name "tab:cap-beside-tab"
23274 This is a caption beside a table.
23282 \begin_layout Plain Layout
23283 \begin_inset Tabular
23284 <lyxtabular version="3" rows="4" columns="5">
23286 <column alignment="center" valignment="top" width="0">
23287 <column alignment="center" valignment="top" width="0">
23288 <column alignment="center" valignment="top" width="0">
23289 <column alignment="center" valignment="top" width="0">
23290 <column alignment="center" valignment="top" width="0">
23292 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23295 \begin_layout Plain Layout
23301 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23304 \begin_layout Plain Layout
23310 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23313 \begin_layout Plain Layout
23319 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23322 \begin_layout Plain Layout
23328 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23331 \begin_layout Plain Layout
23339 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23342 \begin_layout Plain Layout
23348 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23351 \begin_layout Plain Layout
23357 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23360 \begin_layout Plain Layout
23366 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23369 \begin_layout Plain Layout
23375 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23378 \begin_layout Plain Layout
23386 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23389 \begin_layout Plain Layout
23395 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23398 \begin_layout Plain Layout
23404 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23407 \begin_layout Plain Layout
23413 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23416 \begin_layout Plain Layout
23422 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23425 \begin_layout Plain Layout
23433 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23436 \begin_layout Plain Layout
23442 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23445 \begin_layout Plain Layout
23451 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23454 \begin_layout Plain Layout
23460 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23463 \begin_layout Plain Layout
23469 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23472 \begin_layout Plain Layout
23491 \begin_layout Standard
23495 \begin_layout Plain Layout
23507 \begin_layout Standard
23511 \begin_layout Plain Layout
23515 sidecaptionvpos{figure}{c}
23521 \begin_inset Float figure
23526 \begin_layout Plain Layout
23527 \begin_inset Graphics
23528 filename clipart/escher-lsd.eps
23530 scaleBeforeRotation
23537 \begin_layout Plain Layout
23538 \begin_inset Caption
23540 \begin_layout Plain Layout
23541 \begin_inset CommandInset label
23543 name "fig:cap-beside-fig-2"
23547 This is a vertically centered caption beside a figure.
23560 \begin_layout Standard
23564 \begin_layout Plain Layout
23576 \begin_layout Standard
23580 \begin_layout Plain Layout
23590 \begin_inset Note Note
23593 \begin_layout Plain Layout
23594 The following will be displayed when the LaTeX-package
23606 \begin_layout Standard
23607 You need to install the LaTeX-package
23611 to see the following part of this section in the output.
23614 \begin_layout Standard
23618 \begin_layout Plain Layout
23630 \begin_layout Section
23635 \begin_layout Plain Layout
23636 Floats ! Float Lists
23644 \begin_layout Standard
23645 Similar to the the table of contents where the sections of the document
23646 are listed, there are listings for all float types, like the figures of
23648 You can insert them via the
23650 Insert\SpecialChar \menuseparator
23652 \begin_inset space ~
23656 \begin_inset space ~
23664 \begin_layout Standard
23665 The list entries are the float captions or its short title, the float number,
23666 and the page number where they appear in the document.
23669 \begin_layout Standard
23670 You can find the list of figures and tables at the end of this document.
23673 \begin_layout Chapter
23677 \begin_layout Section
23682 \begin_layout Plain Layout
23691 \begin_layout Standard
23692 Notes are inserted with the toolbar button
23693 \begin_inset Graphics
23694 filename ../images/note-insert.png
23696 scaleBeforeRotation
23702 Insert\SpecialChar \menuseparator
23706 There are three types of notes:
23709 \begin_layout Description
23711 \begin_inset space ~
23714 Note This note type is for internal notes that won't appear in the output.
23715 Its note-box looks like this:
23716 \begin_inset Newline newline
23720 \begin_inset Newline newline
23724 \begin_inset Graphics
23725 filename clipart/LyXNoteImageQt4.png
23728 scaleBeforeRotation
23733 \begin_inset Note Note
23736 \begin_layout Plain Layout
23737 This is text in a note box that doesn't appear in the output.
23745 \begin_layout Description
23746 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
23747 ent, when you export the document to LaTeX via the menu
23749 File\SpecialChar \menuseparator
23750 Export\SpecialChar \menuseparator
23751 LaTeX (pdflatex) / (plain)
23754 Its note-box looks like this:
23755 \begin_inset Newline newline
23759 \begin_inset Newline newline
23763 \begin_inset Graphics
23764 filename clipart/CommentNoteImageQt4.png
23767 scaleBeforeRotation
23772 \begin_inset Note Comment
23775 \begin_layout Plain Layout
23776 This is text in a note box that only appears as comment in LaTeX-files.
23784 \begin_layout Description
23786 \begin_inset space ~
23789 Out This note will appear in the output as grey text.
23790 Its note-box looks like this:
23791 \begin_inset Newline newline
23795 \begin_inset Newline newline
23799 \begin_inset Graphics
23800 filename clipart/GreyedOutNoteImageQt4.png
23803 scaleBeforeRotation
23808 \begin_inset Newline newline
23815 \begin_layout Plain Layout
23819 renewenvironment{lyxgreyedout}
23822 \begin_layout Plain Layout
23826 textcolor[gray]{0.8}
23836 \begin_inset Note Greyedout
23839 \begin_layout Plain Layout
23844 \begin_layout Plain Layout
23845 This is an example footnote within a greyed out note.
23850 of a comment that appears in the output as grey text.
23859 \begin_layout Plain Layout
23863 renewenvironment{lyxgreyedout}
23866 \begin_layout Plain Layout
23880 \begin_inset Note Note
23883 \begin_layout Plain Layout
23884 The greyed out note is here redefined to show it with the original LyX definitio
23885 n because greyed out notes are redefined in the preamble of this document,
23886 as described below, to have blue text.
23892 \begin_inset Newline newline
23896 \begin_inset Newline newline
23899 As you can see in the example, the first line of greyed out notes is a bit
23900 indented and greyed out notes can have footnotes.
23903 \begin_layout Standard
23904 \begin_inset VSpace bigskip
23907 When you use the toolbar button
23908 \begin_inset Graphics
23909 filename ../images/note-insert.png
23911 scaleBeforeRotation
23918 \begin_inset space ~
23924 You can switch between the five note types by right-clicking on the note-box.
23929 If you want to turn existing text into a note, mark it and click on the
23943 To change a note to text, press the backspace key when the cursor is in
23944 the first position of a note, or press the deletey key when the cursor
23945 is in the very last position of the note, respectively.
23948 \begin_layout Standard
23949 \begin_inset VSpace bigskip
23952 You can change the text color of the greyed out notes in the preamble with
23953 the following command:
23956 \begin_layout Standard
23961 renewenvironment{lyxgreyedout}
23962 \begin_inset Newline newline
23969 \begin_layout Plain Layout
23987 \begin_layout Standard
23988 The available colors and the method to define own colors is explained in
23990 \begin_inset space ~
23994 \begin_inset CommandInset ref
23996 reference "sec:Colored-Tables"
24003 \begin_layout Standard
24004 Notes that appear in blue in this document are set using greyed out notes
24008 \begin_layout Section
24010 \begin_inset CommandInset label
24012 name "sec:Footnotes"
24020 \begin_layout Plain Layout
24030 \begin_layout Plain Layout
24039 \begin_layout Standard
24040 Footnotes can be inserted using the toolbar button
24041 \begin_inset Graphics
24042 filename ../images/footnote-insert.png
24044 scaleBeforeRotation
24050 Insert\SpecialChar \menuseparator
24062 then the following footnote-box:
24063 \begin_inset Graphics
24064 filename clipart/footnoteQt4.png
24066 scaleBeforeRotation
24074 where you can enter the footnote text.
24075 If you want to turn existing text into a footnote, mark it and click on
24097 to text, press the Backspace key when the cursor is in the first position
24106 , or press the Delete key when the cursor is in the very last position of
24118 \begin_layout Standard
24119 Here is an example footnote:
24127 \begin_layout Plain Layout
24128 \begin_inset CommandInset label
24130 name "foot:This-is-an"
24134 This is an example footnote.
24147 \begin_layout Plain Layout
24151 newcounter{MyRepeatFoot}
24154 \begin_layout Plain Layout
24158 setcounter{MyRepeatFoot}{
24168 \begin_layout Standard
24169 The footnote will appear in the output as a superscript number at the text
24170 position where the footnote box is placed.
24171 The footnote text is placed at the bottom of the current page.
24172 The footnote number is calculated by LaTeX, the numbers are consecutive.
24173 It depends on your document-class, if the footnote number is reset for
24177 \begin_layout Standard
24178 Footnotes can be referenced like floats: Insert a label into the footnote
24179 and cross-reference this label in the text as described in section
24180 \begin_inset space ~
24184 \begin_inset CommandInset ref
24186 reference "sec:Referencing-Floats"
24191 \begin_inset Newline newline
24194 This is a cross-reference of Footnote
24195 \begin_inset space ~
24199 \begin_inset CommandInset ref
24201 reference "foot:This-is-an"
24208 \begin_layout Standard
24209 \begin_inset VSpace defskip
24212 To use footnotes within tables, you have to use minipages, see section
24213 \begin_inset space ~
24217 \begin_inset CommandInset ref
24219 reference "sec:Minipages"
24224 Footnotes within longtables are described in section
24225 \begin_inset space ~
24229 \begin_inset CommandInset ref
24231 reference "sub:Footnotes-in-Longtables"
24238 \begin_layout Standard
24239 \begin_inset VSpace defskip
24242 To create only a mark for a footnote, use the command
24246 footnotemark[number]
24249 This is used when you have the same annotation several times in a text
24250 but doesn't want to print the footnote text every time.
24251 \begin_inset Newline newline
24254 As you don't know the number of the repeating footnote while you are writing
24255 the text, you have to store its number.
24256 For the following footnote mark example, these commands were inserted in
24257 TeX-Code behind Footnote
24258 \begin_inset space ~
24262 \begin_inset CommandInset ref
24264 reference "foot:This-is-an"
24268 to store the footnote number:
24271 \begin_layout Standard
24276 newcounter{MyRepeatFoot}
24277 \begin_inset Newline newline
24282 setcounter{MyRepeatFoot}{
24287 \begin_layout Standard
24288 The footnote mark was then created with this command:
24291 \begin_layout Standard
24301 \begin_layout Standard
24302 Here is an example footnote mark:
24310 \begin_layout Plain Layout
24324 \begin_layout Subsection
24326 \begin_inset CommandInset label
24328 name "sub:Footnote-Numbering"
24336 \begin_layout Plain Layout
24337 Footnotes ! Numbering
24345 \begin_layout Standard
24346 To reset the footnote number back to 1 after each section
24348 , add this command to your document preamble:
24351 \begin_layout Standard
24356 @addtoreset{footnote}{section}
24359 \begin_layout Standard
24360 \begin_inset VSpace bigskip
24363 The following preamble command changes the footnote numbering style to small
24367 \begin_layout Standard
24379 \begin_layout Standard
24383 \begin_layout Plain Layout
24396 This is a footnote with roman numbering:
24400 \begin_layout Plain Layout
24401 This is an example footnote with roman numbering.
24409 \begin_layout Standard
24410 To change the numbering style to capital roman numerals replace in the command
24425 \begin_inset Quotes eld
24429 \begin_inset Quotes erd
24432 footnotes with capital or small Latin letters use
24446 \begin_inset Quotes eld
24450 \begin_inset Quotes erd
24453 footnotes with symbols use
24462 \begin_layout Standard
24463 \begin_inset Note Greyedout
24466 \begin_layout Plain Layout
24471 You can only number 26 footnotes with Latin letters, because this numbering
24472 is limited to single letters.
24478 \begin_inset Newline newline
24482 \begin_inset Note Greyedout
24485 \begin_layout Plain Layout
24490 You can only number 9 footnotes with symbols.
24498 \begin_layout Standard
24499 To return to the default numbering style when you changed to another one,
24512 in the command above.
24516 \begin_layout Plain Layout
24532 \begin_layout Standard
24533 \begin_inset VSpace bigskip
24539 \begin_layout Standard
24540 If you want to have footnotes numbered in the scheme
24541 \begin_inset Quotes eld
24545 \begin_inset Quotes erd
24548 , add the following command to your document preamble:
24551 \begin_layout Standard
24556 numberwithin{footnote}{chapter}
24559 \begin_layout Standard
24560 To be able to use the command
24569 \begin_inset space ~
24574 in the document settings the option
24577 \begin_inset space ~
24581 \begin_inset space ~
24585 \begin_inset space ~
24593 \begin_layout Standard
24597 \begin_layout Plain Layout
24601 numberwithin{footnote}{chapter}
24606 This is another example footnote:
24612 \begin_layout Plain Layout
24613 This is a footnote numbered in the scheme
24614 \begin_inset Quotes eld
24618 \begin_inset Quotes erd
24632 \begin_layout Plain Layout
24648 \begin_layout Standard
24649 \begin_inset Note Greyedout
24652 \begin_layout Plain Layout
24663 always prints out the footnote number as arabic number; previous redefinitions
24664 to get non-arabic numbers are overwritten.
24672 \begin_layout Standard
24673 So to get for example the scheme
24674 \begin_inset Quotes eld
24680 \begin_inset Quotes erd
24683 , use this command instead of
24692 \begin_layout Standard
24706 \begin_layout Subsection
24711 \begin_layout Plain Layout
24712 Footnotes ! Placement
24720 \begin_layout Standard
24721 If you have several footnotes in one page, they appear without vertical
24722 space between them at the bottom of the page.
24723 To make them better readable you can e.
24724 \begin_inset space \thinspace{}
24728 \begin_inset space \space{}
24732 \begin_inset space \thinspace{}
24735 mm space with the following preamble command:
24738 \begin_layout Standard
24748 \begin_inset Newline newline
24762 \begin_layout Standard
24763 \begin_inset VSpace bigskip
24766 In a two-column document the footnotes appear at the bottom of every column,
24768 \begin_inset space ~
24772 \begin_inset CommandInset ref
24774 reference "fig:Standard-footnote-placement"
24779 If the footnotes should only appear at the bottom of the right column,
24781 \begin_inset space ~
24785 \begin_inset CommandInset ref
24787 reference "fig:Footnote-placement-in"
24791 , use the LaTeX-package
24799 \begin_layout Plain Layout
24800 LaTeX-packages ! ftnright
24805 with this command in the document preamble:
24808 \begin_layout Standard
24813 usepackage{ftnright}
24816 \begin_layout Standard
24817 \begin_inset Float figure
24823 \begin_layout Plain Layout
24827 \begin_layout Plain Layout
24837 \begin_inset Graphics
24838 filename clipart/without_fntright.pdf
24840 scaleBeforeRotation
24848 \begin_layout Plain Layout
24858 \begin_layout Plain Layout
24859 \begin_inset Caption
24861 \begin_layout Plain Layout
24862 \begin_inset CommandInset label
24864 name "fig:Standard-footnote-placement"
24868 Standard footnote placement in two-column documents.
24881 \begin_layout Standard
24882 \begin_inset Float figure
24888 \begin_layout Plain Layout
24892 \begin_layout Plain Layout
24902 \begin_inset Graphics
24903 filename clipart/with_fntright.pdf
24905 scaleBeforeRotation
24913 \begin_layout Plain Layout
24923 \begin_layout Plain Layout
24924 \begin_inset Caption
24926 \begin_layout Plain Layout
24927 \begin_inset CommandInset label
24929 name "fig:Footnote-placement-in"
24933 Footnote placement in two-column documents when the LaTeX-package
24950 \begin_layout Standard
24951 \begin_inset VSpace bigskip
24954 In some scientific literature it is usual to collect the footnotes and print
24955 them in a separate paragraph at the the end of a section, like in Figure
24956 \begin_inset space ~
24960 \begin_inset CommandInset ref
24962 reference "fig:Endnotes----footnotes"
24967 They are then so called
24968 \begin_inset Quotes eld
24972 \begin_inset Quotes erd
24979 \begin_layout Plain Layout
24985 To use endnotes instead of footnotes in your document, load the LaTeX-package
24994 \begin_layout Plain Layout
24995 LaTeX-packages ! endnotes
25000 with the document preamble lines
25003 \begin_layout Standard
25008 usepackage{endnotes}
25009 \begin_inset Newline newline
25021 \begin_layout Standard
25022 To insert the collected footnotes, insert the command
25025 \begin_layout Standard
25033 \begin_layout Standard
25034 in TeX-Code at the the end of a section or chapter.
25037 \begin_layout Standard
25038 \begin_inset Float figure
25043 \begin_layout Plain Layout
25048 \begin_layout Plain Layout
25058 \begin_inset Graphics
25059 filename clipart/endnotes.pdf
25060 scaleBeforeRotation
25068 \begin_layout Plain Layout
25078 \begin_layout Plain Layout
25079 \begin_inset Caption
25081 \begin_layout Plain Layout
25082 \begin_inset CommandInset label
25084 name "fig:Endnotes----footnotes"
25088 Endnotes – footnotes are printed in a separate paragraph at the end of sections
25102 \begin_layout Standard
25103 \begin_inset VSpace medskip
25106 The paragraph heading for the endnotes isn't automatically translated into
25107 the document language, this must be done manually.
25108 The following preamble command translate the default English name
25109 \begin_inset Quotes eld
25113 \begin_inset Quotes erd
25116 to the German translation
25117 \begin_inset Quotes eld
25121 \begin_inset Quotes erd
25127 \begin_layout Standard
25134 notesname}{Anmerkungen}
25137 \begin_layout Standard
25138 \begin_inset VSpace medskip
25141 The numbering of endnotes can be changed like the footnote numbering as
25142 described in section
25143 \begin_inset space ~
25147 \begin_inset CommandInset ref
25149 reference "sub:Footnote-Numbering"
25153 ; just replace the command
25166 To reset the endnote number use the command
25172 as described in section
25173 \begin_inset space ~
25177 \begin_inset CommandInset ref
25179 reference "sub:Footnote-Numbering"
25183 and replace the command parameter
25194 \begin_layout Standard
25195 To create only a mark for an endnote, use the command
25199 endnotemark[number]
25201 similar to the command
25207 , described in section
25208 \begin_inset space ~
25212 \begin_inset CommandInset ref
25214 reference "sec:Footnotes"
25221 \begin_layout Standard
25222 \begin_inset VSpace bigskip
25225 Footnotes can also be placed in the page margin and the footnote text alignment
25226 can be changed, see the LaTeX-package
25234 \begin_layout Plain Layout
25235 LaTeX-packages ! footmisc
25241 \begin_inset CommandInset citation
25247 for more information about this.
25250 \begin_layout Standard
25251 For various further footnote formatting issues have a look at LaTeX-books,
25253 \begin_inset CommandInset citation
25255 key "latexcompanion,latexguide,latexbook"
25262 \begin_layout Section
25267 \begin_layout Plain Layout
25268 Notes ! Margin Notes
25276 \begin_layout Standard
25277 Margin notes look and behave in LyX like footnotes.
25278 They are inserted via the menu
25280 Insert\SpecialChar \menuseparator
25282 \begin_inset space ~
25287 or the toolbar button
25288 \begin_inset Graphics
25289 filename ../images/marginalnote-insert.png
25291 scaleBeforeRotation
25306 \begin_inset Quotes eld
25310 \begin_inset Quotes erd
25313 appears where you can enter the text of the margin note.
25316 \begin_layout Standard
25317 At the side is an example margin note.
25322 \begin_inset Marginal
25325 \begin_layout Plain Layout
25326 This is a margin note.
25334 \begin_layout Standard
25335 Margin notes appear at the right side in single-sided documents.
25336 In double-sided documents they appear in the outer margin – left on even
25337 pages, right on odd pages.
25338 The text of margin notes is aligned opposite to the outer margin – right-aligne
25339 d when the note appears in the left margin.
25340 The first line of the margin note is placed at the position of the text
25341 line where it is inserted in the document.
25344 \begin_layout Standard
25345 \begin_inset VSpace bigskip
25348 To place the margin note in the inner margin, add the command
25351 \begin_layout Standard
25359 \begin_layout Standard
25360 in TeX-Code before a margin note.
25361 The new placement is valid for all following margin notes.
25366 \begin_layout Plain Layout
25376 \begin_inset Marginal
25379 \begin_layout Plain Layout
25380 This is a margin note in the inner margin.
25388 \begin_inset Newline newline
25394 \begin_inset Note Greyedout
25397 \begin_layout Plain Layout
25402 There is often not enough space in the inner margin so that the notes are
25403 not correctly displayed in the output.
25411 \begin_layout Standard
25412 To return to the default placement insert the command
25415 \begin_layout Standard
25423 \begin_layout Standard
25428 \begin_layout Plain Layout
25438 \begin_inset Note Greyedout
25441 \begin_layout Plain Layout
25446 The command is ignored when it is within a paragraph where also the command
25461 \begin_layout Standard
25462 \begin_inset VSpace bigskip
25469 \begin_inset Marginal
25472 \begin_layout Plain Layout
25473 AVeryLongMarginParWord that isn't hyphenated.
25481 Similar to the case described in section
25482 \begin_inset space ~
25486 \begin_inset CommandInset ref
25488 reference "sub:Multiple-Lines-in"
25492 , long words cannot be hyphenated when they are the first word in a margin
25494 To avoid this, insert 0
25495 \begin_inset space \thinspace{}
25498 pt horizontal space before the word
25503 \begin_inset Marginal
25506 \begin_layout Plain Layout
25507 \begin_inset space \hspace*{}
25511 AVeryLongMarginParWord that is hyphenated.
25519 \begin_layout Standard
25520 \begin_inset VSpace bigskip
25526 \begin_layout Standard
25527 \begin_inset Note Greyedout
25530 \begin_layout Plain Layout
25535 Margin notes can normally not be used inside tables, floats, and footnotes.
25543 \begin_layout Standard
25544 \begin_inset VSpace bigskip
25550 \begin_layout Standard
25554 \begin_layout Plain Layout
25564 \begin_inset Note Note
25567 \begin_layout Plain Layout
25568 The following section will only be displayed when the LaTeX-package
25580 \begin_layout Standard
25581 This restriction can be evaded by using the LaTeX-package
25589 \begin_layout Plain Layout
25590 LaTeX-packages ! marginnote
25596 By adding these two lines to your document preamble, the command used by
25597 LyX for margin notes is redefined to use the command provided by the
25604 \begin_layout Standard
25609 usepackage{marginnote}
25610 \begin_inset Newline newline
25622 \begin_layout Standard
25623 This is also used in this document because
25627 has another useful feature: You can set a vertical offset for the note.
25628 This is often needed when too many margin notes are too close together
25629 or for a better page layout.
25630 The offset is set in LyX as TeX-Code directly behind the margin note in
25634 \begin_layout Standard
25640 \begin_layout Standard
25641 where the offset is a length with one of the units listed in Table
25642 \begin_inset space ~
25646 \begin_inset CommandInset ref
25648 reference "tab:Units"
25653 A negative value shifts the note up, a positive value shifts it down.
25657 For example the margin note beside this text line is shifted up 1.5
25658 \begin_inset space \thinspace{}
25661 cm with the TeX-Code-command
25662 \begin_inset Quotes eld
25672 \begin_inset Quotes erd
25676 \begin_inset Marginal
25679 \begin_layout Plain Layout
25680 This margin note is shifted up 1.5
25681 \begin_inset space \thinspace{}
25684 cm from its original position.
25696 \begin_layout Plain Layout
25706 \begin_layout Standard
25707 \begin_inset VSpace medskip
25714 you can also change the alignment of the text in the margin note.
25715 For example the commands
25718 \begin_layout Standard
25725 raggedleftmarginnote}{
25728 \begin_inset Newline newline
25735 raggedrightmarginnote}{
25740 \begin_layout Standard
25741 set the alignment to centered.
25746 raggedleftmarginnote
25748 denotes margin notes that appear at the left side.
25755 \begin_layout Plain Layout
25761 raggedleftmarginnote}{
25766 \begin_layout Plain Layout
25772 raggedrightmarginnote}{
25780 \begin_inset Marginal
25783 \begin_layout Plain Layout
25784 The text of this margin note is centered.
25795 \begin_layout Standard
25802 raggedleftmarginnote}{
25805 \begin_inset Newline newline
25812 raggedrightmarginnote}{
25821 \begin_layout Plain Layout
25827 raggedleftmarginnote}{
25832 \begin_layout Plain Layout
25838 raggedrightmarginnote}{
25848 \begin_layout Standard
25849 \begin_inset VSpace medskip
25852 For the other features of
25856 we refer to its documentation
25857 \begin_inset CommandInset citation
25866 \begin_layout Standard
25867 \begin_inset VSpace bigskip
25870 You can adjust the layout of margin notes by changing its definition.
25871 To create for example a header for all margin notes with the underlined,
25872 sans-serif, and bold header text
25873 \begin_inset Quotes eld
25885 \begin_inset Quotes erd
25888 , add this to your document preamble:
25891 \begin_layout Standard
25901 \begin_inset Newline newline
25911 \begin_inset Newline newline
25918 \begin_layout Plain Layout
25935 underbar{Attention!}}}%
25936 \begin_inset Newline newline
25943 \begin_layout Plain Layout
25961 \begin_layout Standard
25968 \begin_layout Plain Layout
25979 \begin_layout Plain Layout
25990 \begin_layout Plain Layout
25998 underbar{Attention!}}}%
26001 \begin_layout Plain Layout
26015 \begin_inset Marginal
26018 \begin_layout Plain Layout
26019 This is a margin note with a defined heading.
26031 \begin_layout Plain Layout
26045 \begin_layout Plain Layout
26062 \begin_inset Note Note
26065 \begin_layout Plain Layout
26066 The margin note format is changed only for this example.
26074 \begin_layout Standard
26078 \begin_layout Plain Layout
26088 \begin_inset Note Note
26091 \begin_layout Plain Layout
26092 The following will be displayed when the LaTeX-package
26104 \begin_layout Standard
26105 You need to install the LaTeX-package
26109 to see the following part of this section in the output.
26112 \begin_layout Standard
26116 \begin_layout Plain Layout
26128 \begin_layout Chapter
26132 \begin_layout Section
26137 \begin_layout Plain Layout
26138 Boxes ! Introduction
26146 \begin_layout Standard
26147 Boxes are used to format a block of text.
26148 Boxes can be used to write documents with multiple languages, see section
26149 \begin_inset space ~
26153 \begin_inset CommandInset ref
26155 reference "sec:Minipages"
26159 , to frame texts, see section
26160 \begin_inset space ~
26164 \begin_inset CommandInset ref
26166 reference "sec:Decoration"
26170 , to prevent words to be hyphenated, see section
26171 \begin_inset space ~
26175 \begin_inset CommandInset ref
26177 reference "sec:Prevent-Hyphenation"
26181 , to align text, see section
26182 \begin_inset space ~
26186 \begin_inset CommandInset ref
26188 reference "sub:Vertical-Alignment"
26192 , or to set the background color of texts, see section
26193 \begin_inset space ~
26197 \begin_inset CommandInset ref
26199 reference "sec:Colored-Boxes"
26206 \begin_layout Standard
26207 Boxes can be inserted with the menu
26209 Insert\SpecialChar \menuseparator
26212 or the toolbar button
26213 \begin_inset Graphics
26214 filename ../images/box-insert.png
26216 scaleBeforeRotation
26221 A grey box with the label
26226 \begin_inset Graphics
26227 filename clipart/BoxInsetDefaultQt4.png
26229 scaleBeforeRotation
26234 The box type can be specified by right-clicking on the box.
26235 The appearing box dialog offers the
26238 \begin_inset space ~
26256 is the default for new boxes and is explained in section
26257 \begin_inset space ~
26261 \begin_inset CommandInset ref
26263 reference "sec:Minipages"
26271 is described in section
26272 \begin_inset space ~
26276 \begin_inset CommandInset ref
26278 reference "sec:Parboxes"
26285 \begin_layout Standard
26286 Boxes aren't numbered and can therefore not be referenced like floats or
26290 \begin_layout Standard
26291 \begin_inset Note Greyedout
26294 \begin_layout Plain Layout
26299 Boxes must not be the item in an
26315 \begin_layout Standard
26316 \begin_inset Note Greyedout
26319 \begin_layout Plain Layout
26324 For an unknown reason you can only set the
26327 \begin_inset space ~
26336 when you use a framed box.
26340 \begin_inset space ~
26345 type and without frames are explained in section
26346 \begin_inset space ~
26350 \begin_inset CommandInset ref
26352 reference "sec:Prevent-Hyphenation"
26364 \begin_layout Section
26366 \begin_inset CommandInset label
26368 name "sec:Box-Dialog"
26376 \begin_layout Plain Layout
26385 \begin_layout Subsection
26390 \begin_layout Plain Layout
26399 \begin_layout Standard
26400 In the box dialog you can adjust the box geometry in the fields
26409 The available units for the geometry are explained in Table
26410 \begin_inset space ~
26414 \begin_inset CommandInset ref
26416 reference "tab:Units"
26425 offers the following additional sizes:
26428 \begin_layout Description
26429 Depth This is the plain text
26430 \begin_inset Quotes eld
26434 \begin_inset Quotes erd
26438 It ignores the total depth when there are multiple text lines in the box:
26439 \begin_inset Newline newline
26443 \begin_inset Newline newline
26447 \begin_inset Newline newline
26451 \begin_inset Box Boxed
26460 height_special "depth"
26463 \begin_layout Plain Layout
26465 Box height set to 1
26466 \begin_inset space \thinspace{}
26475 \begin_inset Newline newline
26479 \begin_inset Newline newline
26485 \begin_layout Description
26486 Height This is the heigth of the text that is inside the box.
26488 \begin_inset space \thinspace{}
26492 \begin_inset space \space{}
26495 2 for this size will set the box heigth to 2 times the text height:
26496 \begin_inset Box Boxed
26505 height_special "height"
26508 \begin_layout Plain Layout
26510 Box height set to 2
26511 \begin_inset space \thinspace{}
26522 \begin_layout Description
26524 \begin_inset space ~
26527 Height This is the Height
26528 \begin_inset space \thinspace{}
26532 \begin_inset space \thinspace{}
26536 \begin_inset Box Boxed
26545 height_special "totalheight"
26548 \begin_layout Plain Layout
26550 Box height set to 1
26551 \begin_inset space \thinspace{}
26555 \begin_inset space ~
26566 \begin_layout Description
26567 Width This sets the width of the box as heigth:
26568 \begin_inset Box Boxed
26577 height_special "width"
26580 \begin_layout Plain Layout
26582 Box height set to 1
26583 \begin_inset space \thinspace{}
26594 \begin_layout Subsection
26599 \begin_layout Plain Layout
26608 \begin_layout Standard
26609 When you have chosen an
26612 \begin_inset space ~
26617 , the vertical box alignment can be:
26620 \begin_layout Description
26621 Top This is an example text line.
26623 \begin_inset Box Boxed
26632 height_special "totalheight"
26635 \begin_layout Plain Layout
26637 This box is top-aligned.
26642 This is an example text line.
26645 \begin_layout Description
26646 Middle This is an example text line.
26648 \begin_inset Box Boxed
26657 height_special "totalheight"
26660 \begin_layout Plain Layout
26662 This box is middle-aligned.
26667 This is an example text line.
26670 \begin_layout Description
26671 Bottom This is an example text line.
26673 \begin_inset Box Boxed
26682 height_special "totalheight"
26685 \begin_layout Plain Layout
26687 This box is bottom-aligned.
26692 This is an example text line.
26695 \begin_layout Standard
26696 \begin_inset Note Greyedout
26699 \begin_layout Plain Layout
26704 The vertical box aligment can be lost in the output when you have two boxes
26705 in a line and one has e.
26706 \begin_inset space \thinspace{}
26710 \begin_inset space \space{}
26713 a shadow and the other one not.
26721 \begin_layout Standard
26722 The horizontal box alignment can be set via LyX's paragraph dialog when
26723 you set the box into its own paragraph.
26726 \begin_layout Standard
26727 \begin_inset VSpace bigskip
26730 When you have chosen an
26733 \begin_inset space ~
26738 , the box content can be vertical aligned to:
26741 \begin_layout Description
26742 top This is an example text line.
26744 \begin_inset Box Boxed
26753 height_special "totalheight"
26756 \begin_layout Plain Layout
26758 This box text is top-aligned.
26763 This is an example text line.
26766 \begin_layout Description
26767 middle This is an example text line.
26769 \begin_inset Box Boxed
26778 height_special "totalheight"
26781 \begin_layout Plain Layout
26783 This box text is middle-aligned.
26788 This is an example text line.
26791 \begin_layout Description
26792 bottom This is an example text line.
26794 \begin_inset Box Boxed
26803 height_special "totalheight"
26806 \begin_layout Plain Layout
26808 This box text is bottom-aligned.
26813 This is an example text line.
26816 \begin_layout Description
26817 stretch This is an example text line.
26819 \begin_inset Box Boxed
26828 height_special "totalheight"
26831 \begin_layout Plain Layout
26836 \begin_layout Plain Layout
26841 \begin_layout Plain Layout
26848 This is an example text line.
26851 \begin_layout Standard
26852 To stretch the box content, it must consist of more than one paragraph.
26853 In the example above every text line is in an own paragraph.
26856 \begin_layout Standard
26857 \begin_inset VSpace bigskip
26860 To align the box content horizontally you can use LyX's paragraph dialog
26861 when you have chosen an
26864 \begin_inset space ~
26872 \begin_layout Standard
26874 \begin_inset Box Boxed
26883 height_special "totalheight"
26886 \begin_layout Plain Layout
26891 \begin_layout Plain Layout
26896 \begin_layout Plain Layout
26906 \begin_layout Standard
26907 If you haven't set an
26910 \begin_inset space ~
26915 , you can align the box content horizontally in the box dialog.
26918 \begin_layout Standard
26920 \begin_inset Box Boxed
26929 height_special "totalheight"
26932 \begin_layout Plain Layout
26934 This box text is horizontally stretched.
26942 \begin_layout Subsection
26944 \begin_inset CommandInset label
26946 name "sec:Decoration"
26954 \begin_layout Plain Layout
26963 \begin_layout Standard
26964 The type of the box can be specified in the box-dialog in the drop-down
26970 The following types are possible:
26973 \begin_layout Description
26975 \begin_inset space ~
26979 \begin_inset space ~
26982 frame This draws a rectangle frame around the box.
26983 The frame line thickness has the size of
26991 \begin_inset Box Boxed
27000 height_special "totalheight"
27003 \begin_layout Plain Layout
27013 \begin_layout Description
27015 \begin_inset space ~
27019 \begin_inset space ~
27022 break When you use the decoration
27024 simple rectangular frame
27026 and no inner box, you can allow page breaks within a box.
27027 Note that then, in contrary to other framed boxes, the frame always uses
27028 the whole column width, the box is set as its own paragraph, and
27040 has no effect on this box type.
27041 The frame line thickness has the size of
27049 \begin_inset Box Framed
27058 height_special "totalheight"
27061 \begin_layout Plain Layout
27062 Allow page break box
27070 \begin_layout Description
27072 \begin_inset space ~
27076 \begin_inset space ~
27079 thin This draws an oval frame around the box.
27080 The frame line thickness has the size 0.4
27081 \begin_inset space \thinspace{}
27086 \begin_inset Box ovalbox
27095 height_special "totalheight"
27098 \begin_layout Plain Layout
27108 \begin_layout Description
27110 \begin_inset space ~
27114 \begin_inset space ~
27117 thick This draws an oval frame around the box.
27118 The frame line thickness has the size 0.8
27119 \begin_inset space \thinspace{}
27124 \begin_inset Box Ovalbox
27133 height_special "totalheight"
27136 \begin_layout Plain Layout
27146 \begin_layout Description
27148 \begin_inset space ~
27151 shadow This draws a rectangle frame with a shadow around the box.
27152 The frame line thickness has the size of
27158 , the shadow has a width of 4
27159 \begin_inset space \thinspace{}
27164 \begin_inset Box Shadowbox
27173 height_special "totalheight"
27176 \begin_layout Plain Layout
27186 \begin_layout Description
27188 \begin_inset space ~
27191 background This draws a box with red background color.
27192 In contrary to colored boxes
27196 \begin_layout Plain Layout
27198 \begin_inset space \thinspace{}
27202 \begin_inset CommandInset ref
27204 reference "sec:Colored-Boxes"
27213 , it always uses the whole column width and the box is set as its own paragraph.
27215 \begin_inset Box Shaded
27224 height_special "totalheight"
27227 \begin_layout Plain Layout
27228 Shaded background box
27236 \begin_layout Description
27238 \begin_inset space ~
27242 \begin_inset space ~
27245 frame This draws a double-line rectangle frame around the box.
27246 The line thickness of the inner frame is 0.75
27247 \begin_inset space \thinspace{}
27256 , the thickness of the outer frame is 1.5
27257 \begin_inset space \thinspace{}
27267 The distance between the lines is 1.5
27268 \begin_inset space \thinspace{}
27278 \begin_inset space \thinspace{}
27282 \begin_inset space \thinspace{}
27286 \begin_inset space \thinspace{}
27291 \begin_inset Box Doublebox
27300 height_special "totalheight"
27303 \begin_layout Plain Layout
27305 Double rectangular box
27313 \begin_layout Standard
27314 \begin_inset VSpace bigskip
27317 LyX's box label will reflect the different frame types.
27318 To be able to use all types, the LaTeX-package
27326 \begin_layout Plain Layout
27327 LaTeX-packages ! fancybox
27335 \begin_layout Section
27340 \begin_layout Plain Layout
27341 Boxes ! Customization
27349 \begin_layout Standard
27350 The default value for the size
27357 \begin_inset space \thinspace{}
27361 It can be changed with the following command in TeX-Code to e.
27362 \begin_inset space \thinspace{}
27366 \begin_inset space \space{}
27370 \begin_inset space \thinspace{}
27376 \begin_layout Standard
27386 \begin_layout Standard
27390 \begin_layout Plain Layout
27402 \begin_inset Box Boxed
27411 height_special "totalheight"
27414 \begin_layout Plain Layout
27416 Rectangular box with
27423 \begin_inset space \thinspace{}
27427 \begin_inset space \thinspace{}
27431 \begin_inset space \thinspace{}
27443 \begin_layout Plain Layout
27457 \begin_layout Standard
27458 \begin_inset VSpace bigskip
27461 The space between the frame and the box content is for all frame styles
27463 \begin_inset space \thinspace{}
27467 You can change it by setting the length
27474 For example the command
27477 \begin_layout Standard
27487 \begin_layout Standard
27488 sets the value to 10
27489 \begin_inset space \thinspace{}
27492 pt, like for the following box:
27495 \begin_layout Standard
27499 \begin_layout Plain Layout
27511 \begin_inset Box Boxed
27520 height_special "totalheight"
27523 \begin_layout Plain Layout
27525 Rectangular box with
27532 \begin_inset space \thinspace{}
27536 \begin_inset space \thinspace{}
27540 \begin_inset space \thinspace{}
27552 \begin_layout Plain Layout
27566 \begin_layout Standard
27567 \begin_inset VSpace bigskip
27570 The diameter of the round corners of the oval boxes can be set with the
27581 \begin_layout Standard
27589 \begin_layout Standard
27590 sets the diameter to 1
27591 \begin_inset space \thinspace{}
27598 \begin_layout Standard
27606 \begin_layout Standard
27607 sets the diameter to
27610 \begin_inset space \thinspace{}
27614 \begin_inset space \thinspace{}
27617 minimum(width and heigth of box)
27629 \begin_layout Standard
27633 \begin_layout Plain Layout
27643 \begin_inset Box Ovalbox
27652 height_special "totalheight"
27655 \begin_layout Plain Layout
27664 \begin_inset space \thinspace{}
27668 \begin_inset space \thinspace{}
27672 \begin_inset space \thinspace{}
27684 \begin_layout Plain Layout
27696 \begin_layout Standard
27697 \begin_inset VSpace bigskip
27700 The size of the shadow can be adjusted by changing the length
27708 \begin_inset space \thinspace{}
27711 pt for the following box by this command:
27714 \begin_layout Standard
27724 \begin_layout Standard
27728 \begin_layout Plain Layout
27740 \begin_inset Box Shadowbox
27749 height_special "totalheight"
27752 \begin_layout Plain Layout
27761 \begin_inset space \thinspace{}
27765 \begin_inset space \thinspace{}
27769 \begin_inset space \thinspace{}
27781 \begin_layout Plain Layout
27795 \begin_layout Standard
27796 \begin_inset VSpace bigskip
27802 \begin_layout Standard
27803 The default value for the size
27810 \begin_inset space \thinspace{}
27814 The default space between the note content and the frame is 9
27815 \begin_inset space \thinspace{}
27818 pt and can be changed with the value of
27825 For example the frame appearance of the following
27829 is set with the TeX-Code commands
27832 \begin_layout Standard
27840 \begin_inset Newline newline
27850 \begin_layout Standard
27854 \begin_layout Plain Layout
27863 \begin_layout Plain Layout
27875 \begin_inset Box Framed
27884 height_special "totalheight"
27887 \begin_layout Plain Layout
27901 \begin_layout Plain Layout
27910 \begin_layout Plain Layout
27924 \begin_layout Standard
27925 \begin_inset VSpace bigskip
27931 \begin_layout Standard
27936 boxes the default space between the box content and the box border is 3
27937 \begin_inset space \thinspace{}
27940 pt and can be changed with the value of
27947 The default background color red can either be changed locally with the
27952 definecolor{shadebox}
27954 or globally with the menu
27956 Tools\SpecialChar \menuseparator
27957 Preferences\SpecialChar \menuseparator
27958 Colors\SpecialChar \menuseparator
27960 \begin_inset space ~
27972 command is explained in section
27973 \begin_inset space ~
27977 \begin_inset CommandInset ref
27979 reference "sec:Colored-Tables"
27987 \begin_layout Plain Layout
27994 requires the LaTeX-package
27998 in the preamble, see section
27999 \begin_inset space ~
28003 \begin_inset CommandInset ref
28005 reference "sec:Colored-Boxes"
28014 For example the appearance of the following shaded background note is set
28015 with the TeX-Code commands
28018 \begin_layout Standard
28028 \begin_inset Newline newline
28035 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
28038 \begin_layout Standard
28042 \begin_layout Plain Layout
28051 \begin_layout Plain Layout
28055 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
28061 \begin_inset Box Shaded
28070 height_special "totalheight"
28073 \begin_layout Plain Layout
28076 This is yellow text in a
28086 box with dark green background.
28095 \begin_layout Plain Layout
28104 \begin_layout Plain Layout
28108 definecolor{shadecolor}{rgb}{1,0,0}
28116 \begin_layout Standard
28117 \begin_inset VSpace bigskip
28120 Changed lengths and widths are valid for all boxes following the commands
28124 \begin_layout Section
28126 \begin_inset CommandInset label
28128 name "sec:Minipages"
28136 \begin_layout Plain Layout
28145 \begin_layout Standard
28146 Minipages are treated by LaTeX as pages within pages and can therefore for
28147 example have their own footnotes.
28150 \begin_layout Standard
28151 Minipages are useful when you write documents with different languages.
28154 \begin_layout Standard
28155 Below are two example minipages side by side.
28156 Their width is set to 45
28157 \begin_inset space \thinspace{}
28160 col% and they are separated by a horizontal fill, that was inserted via
28163 Insert\SpecialChar \menuseparator
28165 \begin_inset space ~
28168 Formatting\SpecialChar \menuseparator
28170 \begin_inset space ~
28176 \begin_inset Newpage newpage
28182 \begin_layout Standard
28183 \begin_inset Box Frameless
28192 height_special "totalheight"
28195 \begin_layout Plain Layout
28198 Dies ist ein deutscher Text.
28199 Dies ist ein deutscher Text.
28200 Dies ist ein deutscher Text.
28201 Dies ist ein deutscher Text.
28202 Dies ist ein deutscher Text.
28203 Dies ist ein deutscher Text.
28204 Dies ist ein deutscher Text.
28205 Dies ist ein deutscher Text.
28206 Dies ist ein deutscher Text.
28207 Dies ist ein deutscher Text.
28208 Dies ist ein deutscher Text.
28209 Dies ist ein deutscher Text.
28210 Dies ist ein deutscher Text
28214 \begin_layout Plain Layout
28217 Dies ist eine deutsche Fußnote.
28223 Dies ist ein deutscher Text.
28224 Dies ist ein deutscher Text.
28230 \begin_inset space \hfill{}
28234 \begin_inset Box Frameless
28243 height_special "totalheight"
28246 \begin_layout Plain Layout
28247 This is an English Text.
28248 This is an English Text.
28249 This is an English Text.
28250 This is an English Text.
28251 This is an English Text.
28252 This is an English Text.
28253 This is an English Text.
28254 This is an English Text.
28255 This is an English Text.
28256 This is an English Text.
28257 This is an English Text.
28258 This is an English Text.
28259 This is an English Text.
28260 This is an English Text.
28261 This is an English Text.
28262 This is an English Text.
28266 \begin_layout Plain Layout
28267 This is an English footnote.
28272 This is an English Text.
28281 \begin_layout Standard
28282 \begin_inset VSpace bigskip
28285 Another application for minipages are footnotes within tables.
28286 Due to a LaTeX restriction footnotes within tables doesn't appear at the
28287 bottom of the current page.
28288 But when you put the table with the footnote to a minipage, the footnote
28289 will appear at its bottom, numbered with Latin letters.
28290 The footnote number is reset to 1 in every minipage but not outside the
28294 \begin_layout Standard
28295 The footnote of this table doesn't appear:
28296 \begin_inset Tabular
28297 <lyxtabular version="3" rows="3" columns="4">
28299 <column alignment="center" valignment="top" width="0pt">
28300 <column alignment="center" valignment="top" width="0pt">
28301 <column alignment="center" valignment="top" width="0pt">
28302 <column alignment="center" valignment="top" width="0pt">
28304 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28307 \begin_layout Plain Layout
28313 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28316 \begin_layout Plain Layout
28322 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28325 \begin_layout Plain Layout
28330 \begin_layout Plain Layout
28331 This is a footnote within a table.
28341 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28344 \begin_layout Plain Layout
28352 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28355 \begin_layout Plain Layout
28361 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28364 \begin_layout Plain Layout
28370 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28373 \begin_layout Plain Layout
28379 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28382 \begin_layout Plain Layout
28390 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28393 \begin_layout Plain Layout
28399 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28402 \begin_layout Plain Layout
28408 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28411 \begin_layout Plain Layout
28417 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28420 \begin_layout Plain Layout
28434 \begin_layout Standard
28436 \begin_inset Box Frameless
28445 height_special "totalheight"
28448 \begin_layout Plain Layout
28450 \begin_inset Tabular
28451 <lyxtabular version="3" rows="3" columns="4">
28453 <column alignment="center" valignment="top" width="0pt">
28454 <column alignment="center" valignment="top" width="0pt">
28455 <column alignment="center" valignment="top" width="0pt">
28456 <column alignment="center" valignment="top" width="0pt">
28458 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28461 \begin_layout Plain Layout
28467 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28470 \begin_layout Plain Layout
28476 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28479 \begin_layout Plain Layout
28484 \begin_layout Plain Layout
28485 This is a footnote within a table.
28495 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28498 \begin_layout Plain Layout
28506 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28509 \begin_layout Plain Layout
28515 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28518 \begin_layout Plain Layout
28524 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28527 \begin_layout Plain Layout
28533 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28536 \begin_layout Plain Layout
28544 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28547 \begin_layout Plain Layout
28553 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28556 \begin_layout Plain Layout
28562 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28565 \begin_layout Plain Layout
28571 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28574 \begin_layout Plain Layout
28593 \begin_layout Standard
28594 \begin_inset VSpace bigskip
28597 The document-wide paragraph settings are ignored within minipages.
28598 That means that there will be no space between paragraphs in minipages
28599 although you set it to e.
28600 \begin_inset space \thinspace{}
28604 \begin_inset space \space{}
28611 in the document settings.
28614 \begin_layout Standard
28615 Minipages can also be used to set a background color for text parts, see
28617 \begin_inset space ~
28621 \begin_inset CommandInset ref
28623 reference "sub:Color-for-Paragraphs"
28630 \begin_layout Standard
28631 \begin_inset Note Greyedout
28634 \begin_layout Plain Layout
28639 You cannot have floats or margin notes inside minipages but minipages can
28640 be used inside tables, floats, and other boxes.
28648 \begin_layout Section
28650 \begin_inset CommandInset label
28652 name "sec:Parboxes"
28660 \begin_layout Plain Layout
28669 \begin_layout Standard
28670 Parboxes are very similar to minipages with the difference that they cannot
28672 The main difference to minipages is that minipages are in contrary to parboxes
28673 no real boxes but LaTeX-environments.
28676 \begin_layout Standard
28678 \begin_inset Box Frameless
28687 height_special "totalheight"
28690 \begin_layout Plain Layout
28691 This a text within a parbox.
28692 This a text within a parbox.
28695 \begin_layout Plain Layout
28696 This footnote won't appear:
28700 \begin_layout Plain Layout
28701 This footnote is inside a parbox and will therefore not appear.
28714 \begin_layout Section
28715 Boxes for Words and Characters
28719 \begin_layout Plain Layout
28720 Boxes ! for Characters
28728 \begin_layout Subsection
28729 Prevent Hyphenation
28730 \begin_inset CommandInset label
28732 name "sec:Prevent-Hyphenation"
28740 \begin_layout Plain Layout
28741 Boxes ! to Prevent Hyphenation
28749 \begin_layout Standard
28750 You can use a special kind of boxes to prevent words or text to be hyphenated.
28751 \begin_inset Newline newline
28754 Here is an example text:
28757 \begin_layout Standard
28758 This line is an example to show how you can prevent the hyphenation of
28759 \begin_inset Quotes eld
28763 \begin_inset Quotes erd
28769 \begin_layout Standard
28770 To prevent the hyphenation of the word
28771 \begin_inset Quotes eld
28775 \begin_inset Quotes erd
28781 \begin_layout Standard
28789 \begin_layout Standard
28790 in TeX-Code before the word.
28791 Behind the word insert a closing brace
28792 \begin_inset Quotes eld
28800 \begin_inset Quotes erd
28806 \begin_layout Standard
28807 This is the result:
28810 \begin_layout Standard
28811 This line is an example to show how you can prevent the hyphenation of
28815 \begin_layout Plain Layout
28825 \begin_inset Quotes eld
28829 \begin_inset Quotes erd
28836 \begin_layout Plain Layout
28846 \begin_layout Standard
28847 You can alternatively set the command
28848 \begin_inset Quotes eld
28858 \begin_inset Quotes grd
28861 as TeX-Code directly before the word:
28864 \begin_layout Standard
28865 This line is an example to show how you can prevent the hyphenation of
28866 \begin_inset Quotes eld
28873 \begin_layout Plain Layout
28883 \begin_inset Quotes erd
28889 \begin_layout Standard
28890 Of course the word now protrudes over the side margin.
28891 To avoid this, add via the menu
28893 Insert\SpecialChar \menuseparator
28895 \begin_inset space ~
28898 Formatting\SpecialChar \menuseparator
28900 \begin_inset space ~
28908 arg "newline-insert newline"
28911 ) a line break before the word:
28914 \begin_layout Standard
28915 This line is an example to show how you can prevent the hyphenation of
28916 \begin_inset Newline newline
28923 \begin_layout Plain Layout
28933 \begin_inset Quotes eld
28937 \begin_inset Quotes erd
28944 \begin_layout Plain Layout
28954 \begin_layout Subsection
28956 \begin_inset CommandInset label
28958 name "sub:Vertical-Alignment"
28966 \begin_layout Plain Layout
28967 Boxes ! for Vertical Alignment
28976 \begin_layout Plain Layout
28985 \begin_layout Standard
28986 With the help of the command
28992 you can align words, characters or other boxes vertically to the surrounding
29000 is used with the following scheme:
29003 \begin_layout Standard
29008 raisebox{lift}[height][depth]{box content}
29011 \begin_layout Standard
29012 The lift can be a positive value to raise the box or a negative value to
29016 \begin_layout Standard
29017 To align for example the word
29018 \begin_inset Quotes eld
29022 \begin_inset Quotes erd
29025 so that the bottom of the
29026 \begin_inset Quotes eld
29030 \begin_inset Quotes erd
29034 \begin_inset Quotes eld
29038 \begin_inset Quotes erd
29041 is at the baseline, insert the command
29044 \begin_layout Standard
29054 \begin_layout Standard
29055 in TeX-Code before the word.
29056 Behind the word insert a closing brace
29057 \begin_inset Quotes eld
29065 \begin_inset Quotes erd
29069 \begin_inset Newline newline
29072 This is the result:
29075 \begin_layout Standard
29076 This is a text line with the word
29080 \begin_layout Plain Layout
29092 \begin_inset Quotes eld
29096 \begin_inset Quotes erd
29103 \begin_layout Plain Layout
29113 \begin_layout Standard
29114 \begin_inset VSpace bigskip
29117 When you raise or lower characters in a line, the line distance will be
29121 \begin_layout Standard
29122 This is a text line with the word
29126 \begin_layout Plain Layout
29138 \begin_inset Quotes eld
29142 \begin_inset Quotes erd
29149 \begin_layout Plain Layout
29157 \begin_inset Newline newline
29160 This is a text line with the word
29164 \begin_layout Plain Layout
29174 \begin_inset Quotes eld
29178 \begin_inset Quotes erd
29185 \begin_layout Plain Layout
29195 \begin_layout Standard
29196 If you want to prevent this for a certain reason, set the box height to
29201 \begin_layout Standard
29211 \begin_layout Standard
29212 This is a text line with the word
29216 \begin_layout Plain Layout
29228 \begin_inset Quotes eld
29232 \begin_inset Quotes erd
29239 \begin_layout Plain Layout
29247 \begin_inset Newline newline
29250 This is a text line with the word
29254 \begin_layout Plain Layout
29258 raisebox{0.5cm}[0pt]{
29264 \begin_inset Quotes eld
29268 \begin_inset Quotes erd
29275 \begin_layout Plain Layout
29285 \begin_layout Section
29287 \begin_inset CommandInset label
29289 name "sec:Colored-Boxes"
29297 \begin_layout Plain Layout
29306 \begin_layout Subsection
29311 \begin_layout Plain Layout
29320 \begin_layout Standard
29321 To color the background of text the text must be put into a so called
29322 \begin_inset Quotes eld
29326 \begin_inset Quotes erd
29330 This requires that the LaTeX-package
29338 \begin_layout Plain Layout
29339 LaTeX-packages ! color
29344 is loaded in the document preamble with the command
29347 \begin_layout Standard
29352 @ifundefined{textcolor}
29353 \begin_inset Newline newline
29360 \begin_layout Plain Layout
29371 usepackage{color}}{}
29374 \begin_layout Standard
29379 will be loaded automatically by LyX when you color text
29383 \begin_layout Plain Layout
29384 To avoid that it is loaded twice the command
29398 \begin_layout Standard
29399 \begin_inset VSpace medskip
29402 Colorboxes are created with the command
29409 This will be used with the following scheme:
29412 \begin_layout Standard
29417 colorbox{color}{box content}
29420 \begin_layout Standard
29421 The box content can also be a box and colorboxes can also be within other
29425 \begin_layout Standard
29426 The following colors are predefined:
29427 \begin_inset Newline newline
29466 \begin_inset Newline newline
29469 You can also define your own color as described in section
29470 \begin_inset space ~
29474 \begin_inset CommandInset ref
29476 reference "sec:Colored-Tables"
29483 \begin_layout Standard
29485 \begin_inset space \thinspace{}
29489 \begin_inset space \space{}
29492 a red background for a word, insert the command
29495 \begin_layout Standard
29503 \begin_layout Standard
29504 before the word in TeX-Code.
29505 Behind the word insert a closing brace
29506 \begin_inset Quotes eld
29514 \begin_inset Quotes erd
29518 \begin_inset Newline newline
29521 This is the result:
29524 \begin_layout Standard
29525 This is a line where the word
29529 \begin_layout Plain Layout
29539 \begin_inset Quotes eld
29543 \begin_inset Quotes erd
29550 \begin_layout Plain Layout
29557 has a red background.
29560 \begin_layout Standard
29561 \begin_inset VSpace bigskip
29564 If you would have the box frame in a different color, you can use the command
29571 with the following scheme:
29574 \begin_layout Standard
29579 fcolorbox{frame color}{box color}{box content}
29582 \begin_layout Standard
29596 The frame thickness and the space between the frame and the box content
29597 can be adjusted with the lengths
29609 , respectively, as described in section
29610 \begin_inset space ~
29614 \begin_inset CommandInset ref
29616 reference "sec:Decoration"
29623 \begin_layout Standard
29624 For the following example the command
29627 \begin_layout Standard
29632 fcolorbox{cyan}{magenta}{
29635 \begin_layout Standard
29639 \begin_layout Standard
29640 Here is an example where the frame line thickness was set to 1
29641 \begin_inset space \thinspace{}
29645 \begin_inset Newline newline
29652 \begin_layout Plain Layout
29667 \begin_layout Plain Layout
29671 fcolorbox{cyan}{magenta}{
29676 This is text within a colored, framed box.
29680 \begin_layout Plain Layout
29690 \begin_layout Standard
29691 \begin_inset VSpace bigskip
29694 Of course you can also have colored text inside a colorbox:
29695 \begin_inset Newline newline
29702 \begin_layout Plain Layout
29706 fcolorbox{cyan}{magenta}{
29713 This is colored text within a colored, framed box.
29719 \begin_layout Plain Layout
29730 \begin_layout Plain Layout
29744 \begin_layout Standard
29747 \begin_inset VSpace medskip
29753 \begin_layout Standard
29754 \begin_inset Note Greyedout
29757 \begin_layout Plain Layout
29762 Text in colorboxes cannot have line breaks.
29763 To color multiple text lines or paragraphs, use a box inside a colorbox
29764 as described in the following.
29772 \begin_layout Subsection
29773 Color for Paragraphs
29774 \begin_inset CommandInset label
29776 name "sub:Color-for-Paragraphs"
29784 \begin_layout Plain Layout
29785 Color ! for Paragraphs
29793 \begin_layout Standard
29794 To set the background color for more than one text line, put the text into
29796 Before the minipage insert the
29805 \begin_layout Standard
29813 \begin_layout Standard
29815 Behind the minipage insert a closing brace
29816 \begin_inset Quotes eld
29824 \begin_inset Quotes erd
29830 \begin_layout Standard
29834 \begin_layout Plain Layout
29838 colorbox{lightgrey}{
29844 \begin_inset Box Frameless
29853 height_special "totalheight"
29856 \begin_layout Plain Layout
29857 This is text with background color.
29858 This is text with background color.
29861 \begin_layout Plain Layout
29862 \begin_inset VSpace defskip
29865 The text can have footnotes
29869 \begin_layout Plain Layout
29870 Another example footnote
29875 and can include tables and figures.
29878 \begin_layout Plain Layout
29880 \begin_inset Tabular
29881 <lyxtabular version="3" rows="3" columns="3">
29883 <column alignment="center" valignment="top" width="0">
29884 <column alignment="center" valignment="top" width="0">
29885 <column alignment="center" valignment="top" width="0">
29887 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29890 \begin_layout Plain Layout
29896 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29899 \begin_layout Plain Layout
29905 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29908 \begin_layout Plain Layout
29916 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29919 \begin_layout Plain Layout
29925 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29928 \begin_layout Plain Layout
29930 \begin_inset Quotes erd
29938 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29941 \begin_layout Plain Layout
29949 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29952 \begin_layout Plain Layout
29958 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29961 \begin_layout Plain Layout
29967 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29970 \begin_layout Plain Layout
29990 \begin_layout Plain Layout
30000 \begin_layout Section
30001 Rotated and Scaled Boxes
30004 \begin_layout Standard
30005 To use the the commands described in this section, the LaTeX-package
30013 \begin_layout Plain Layout
30014 LaTeX-packages ! graphicx
30019 needs to be loaded in the document preamble with the command
30022 \begin_layout Standard
30027 @ifundefined{rotatebox}
30028 \begin_inset Newline newline
30035 \begin_layout Plain Layout
30046 usepackage{graphicx}}{}
30049 \begin_layout Standard
30050 \begin_inset Note Greyedout
30053 \begin_layout Plain Layout
30058 Some DVI-viewers can't display rotated or scaled material.
30066 \begin_layout Standard
30067 \begin_inset Note Greyedout
30070 \begin_layout Plain Layout
30075 Floats mustn't be inside a rotated or scaled box.
30083 \begin_layout Subsection
30088 \begin_layout Plain Layout
30098 \begin_layout Plain Layout
30108 \begin_layout Plain Layout
30118 \begin_layout Plain Layout
30119 Table Customization ! Rotating
30127 \begin_layout Standard
30128 To rotate material, you can put it into a rotated box.
30129 Such a box is created using the command
30135 in TeX-Code with the following scheme:
30138 \begin_layout Standard
30143 rotatebox[rotation origin]{rotation angle}{box content}
30146 \begin_layout Standard
30147 The rotation origin is specified in the form
30152 The following positions are possible:
30172 (top), and also expedient combinations of the four base positions.
30177 means, that the rotation origin is at the top left corner of the box.
30178 When no rotation origin is specified, the position
30183 The rotation angle is a number that can be negative that specifies the
30185 The rotation direction is counterclockwise.
30188 \begin_layout Standard
30189 In the following example the command
30193 rotatebox[origin=c]{60}{
30195 was inserted as TeX-Code before the text
30196 \begin_inset Quotes eld
30200 \begin_inset Quotes erd
30203 ; after the text the box was closed by a closing brace
30210 \begin_layout Standard
30215 \begin_layout Plain Layout
30219 rotatebox[origin=c]{60}{
30228 \begin_layout Plain Layout
30238 \begin_layout Standard
30239 The box content can also be another box or an inline formula:
30242 \begin_layout Standard
30247 \begin_layout Plain Layout
30251 rotatebox[origin=r]{-60}{
30257 \begin_inset Box Doublebox
30266 height_special "totalheight"
30269 \begin_layout Plain Layout
30279 \begin_layout Plain Layout
30290 \begin_layout Plain Layout
30294 rotatebox[origin=lb]{60}{
30300 \begin_inset Formula $\int A\,\mathrm{d}x=B$
30307 \begin_layout Plain Layout
30317 \begin_layout Standard
30318 or an image or table:
30321 \begin_layout Standard
30326 \begin_layout Plain Layout
30330 rotatebox[origin=lb]{90}{
30336 \begin_inset Graphics
30337 filename clipart/platypus.eps
30347 \begin_layout Plain Layout
30354 with a rotated image
30358 \begin_layout Plain Layout
30362 rotatebox[origin=l]{-90}{
30368 \begin_inset Tabular
30369 <lyxtabular version="3" rows="2" columns="2">
30371 <column alignment="center" valignment="top" width="0">
30372 <column alignment="center" valignment="top" width="0">
30374 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30377 \begin_layout Plain Layout
30383 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30386 \begin_layout Plain Layout
30394 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30397 \begin_layout Plain Layout
30403 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30406 \begin_layout Plain Layout
30421 \begin_layout Plain Layout
30431 \begin_layout Subsection
30436 \begin_layout Plain Layout
30446 \begin_layout Plain Layout
30456 \begin_layout Plain Layout
30466 \begin_layout Plain Layout
30467 Table Customization ! Scaling
30475 \begin_layout Standard
30476 To scale material the commands
30488 can be used as TeX-Code.
30491 \begin_layout Standard
30498 is used with the following scheme:
30501 \begin_layout Standard
30506 scalebox{horizontal}[vertical]{box content}
30509 \begin_layout Standard
30510 Horizontal and vertical are the corresponding scaling factors.
30511 If no vertical scaling factor is given, the horizontal factor will also
30512 be used as vertical one.
30515 \begin_layout Standard
30522 creates for example a double size
30526 \begin_layout Plain Layout
30539 \begin_layout Plain Layout
30546 , compared to the document text size.
30549 \begin_layout Standard
30554 scalebox{2}[1]{Hello}
30556 in contrary distorts the
30560 \begin_layout Plain Layout
30573 \begin_layout Plain Layout
30583 \begin_layout Standard
30584 If a the scaling factor is negative, the box content will be mirrored.
30585 Therefore the command
30589 scalebox{-1}[1]{Hello}
30591 can be used to create mirror writing:
30595 \begin_layout Plain Layout
30608 \begin_layout Plain Layout
30618 \begin_layout Standard
30623 scalebox{1}[-1]{Hello}
30629 \begin_layout Plain Layout
30642 \begin_layout Plain Layout
30652 \begin_layout Standard
30657 scalebox{-1}[1]{box content}
30659 there exists the command
30660 \begin_inset Newline newline
30667 reflectbox{box content}
30672 \begin_layout Standard
30673 \begin_inset VSpace bigskip
30682 is used to scale the box to a defined width and height.
30683 The command scheme is:
30686 \begin_layout Standard
30691 resizebox{width}{height}{box content}
30694 \begin_layout Standard
30695 Is one of the two command arguments given as exclamation mark
30699 , the size is set so that the aspect ratio of the box content is kept.
30702 \begin_layout Standard
30707 resizebox{2cm}{1cm}{Hello}
30713 \begin_layout Plain Layout
30717 resizebox{2cm}{1cm}{
30726 \begin_layout Plain Layout
30734 \begin_inset Newline newline
30741 resizebox{2cm}{!}{Hello}
30747 \begin_layout Plain Layout
30760 \begin_layout Plain Layout
30770 \begin_layout Standard
30771 \begin_inset VSpace bigskip
30775 \begin_inset Note Greyedout
30778 \begin_layout Plain Layout
30795 are set to zero, no LaTeX-errors occur when exporting the document but
30796 the exported files can not or only partly be displayed.
30804 \begin_layout Standard
30805 \begin_inset VSpace bigskip
30811 \begin_layout Standard
30812 The boxes can be combined in any order.
30814 \begin_inset space \thinspace{}
30818 \begin_inset space \space{}
30822 \begin_inset Newline newline
30829 rotatebox[origin=c]{-45}{
30833 reflectbox{Hello}}}
30834 \begin_inset Newline newline
30842 \begin_layout Standard
30847 \begin_layout Plain Layout
30851 rotatebox[origin=c]{-45}{
30864 \begin_layout Plain Layout
30874 \begin_layout Standard
30876 Images, tables, and inline formulas are allowed as box content:
30879 \begin_layout Standard
30884 \begin_layout Plain Layout
30888 rotatebox[origin=c]{-30}{
30898 \begin_inset Graphics
30899 filename clipart/platypus.eps
30909 \begin_layout Plain Layout
30920 \begin_layout Plain Layout
30924 rotatebox[origin=c]{-45}{
30934 \begin_inset Tabular
30935 <lyxtabular version="3" rows="2" columns="2">
30937 <column alignment="center" valignment="top" width="0">
30938 <column alignment="center" valignment="top" width="0">
30940 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30943 \begin_layout Plain Layout
30949 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30952 \begin_layout Plain Layout
30960 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30963 \begin_layout Plain Layout
30969 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30972 \begin_layout Plain Layout
30987 \begin_layout Plain Layout
30998 \begin_layout Plain Layout
31002 rotatebox[origin=c]{-45}{
31012 \begin_inset Formula $\int A\,\mathrm{d}x=B$
31019 \begin_layout Plain Layout
31029 \begin_layout Standard
31030 When the global formula style
31034 is used in the document
31038 \begin_layout Plain Layout
31040 \begin_inset Quotes eld
31044 \begin_inset Quotes erd
31047 is added to the document class options.
31052 , also display formulas can be scaled.
31055 \begin_layout Chapter
31060 \begin_layout Plain Layout
31069 \begin_layout Standard
31072 Insert\SpecialChar \menuseparator
31075 you can insert external material to your document.
31079 \begin_layout Description
31081 \begin_inset space ~
31084 Document Another LyX document; its content is directly inserted to your
31088 \begin_layout Description
31090 \begin_inset space ~
31093 Text A text document; every of its text lines is inserted to your document
31097 \begin_layout Description
31099 \begin_inset space ~
31103 \begin_inset space ~
31107 \begin_inset space ~
31110 Lines A text document; its text lines are inserted as they are.
31111 Empty text lines creates a new paragraph in your document.
31114 \begin_layout Description
31116 \begin_inset space ~
31119 Material Files in various formats.
31122 \begin_layout Description
31124 \begin_inset space ~
31127 Document LyX or LaTeX-documents.
31130 \begin_layout Section
31135 \begin_layout Plain Layout
31136 External Stuff ! External Material
31144 \begin_layout Standard
31145 The external material feature allows you to insert files to your document
31146 without converting them previously to a format that can be read by the
31147 document output format because LyX takes care of needed conversions.
31148 This is similar to images that can be inserted in various image formats
31150 When you have enabled Instant Preview in LyX's preferences under
31153 \begin_inset space ~
31157 \begin_inset space ~
31160 feel\SpecialChar \menuseparator
31163 , the external material types Dia and Xfig is directly shown in LyX.
31166 \begin_layout Standard
31167 External material can be inserted via the
31171 dialog that is accessible with the menu
31173 Insert\SpecialChar \menuseparator
31174 File\SpecialChar \menuseparator
31176 \begin_inset space ~
31182 Currently the following file types (
31189 \begin_layout Description
31190 ChessDiagram This template supports chess position diagrams made with the
31194 \begin_inset CommandInset href
31197 target "http://en.wikipedia.org/wiki/XBoard"
31206 \begin_layout Description
31207 Date This inserts the date in the form
31212 This is a date inserted as external material:
31213 \begin_inset External
31220 \begin_inset space ~
31224 \begin_inset Note Note
31227 \begin_layout Plain Layout
31228 Remove the protected space when bug 4398 is fixed!
31234 \begin_inset Newline newline
31237 The date is not shown within LyX, only in the output.
31238 There are two other methods of inserting a date: Via menu
31240 Insert\SpecialChar \menuseparator
31243 and with the LaTeX command
31250 The different methods are compared in Table
31251 \begin_inset space ~
31255 \begin_inset CommandInset ref
31257 reference "tab:Comparison-of-the"
31264 \begin_layout Description
31265 Dia This template supports diagrams created with the program
31268 \begin_inset CommandInset href
31271 target "http://en.wikipedia.org/wiki/Dia_(software)"
31280 \begin_layout Description
31281 LilyPond This template is used for music notation typeset with the program
31282 \begin_inset Newline linebreak
31288 \begin_inset CommandInset href
31291 target "http://en.wikipedia.org/wiki/LilyPond"
31300 \begin_layout Description
31301 PDFPages With this template you can insert PDF documents to your document.
31302 To insert certain or all pages of a PDF, use the
31312 LaTeX and LyX options
31314 tab according to the template description in the dialog.
31319 option is given, only the first page of the PDF will be inserted.
31322 \begin_layout Description
31323 RasterImage This can be used for bitmap images.
31324 Nearly all popular image formats are supported.
31325 The image can be treated in the
31329 dialog like the images that are usually included via the
31333 dialog as described in section
31334 \begin_inset space ~
31338 \begin_inset CommandInset ref
31340 reference "sec:Graphics-Dialog"
31345 The difference is that only raster images are allowed, that means that
31346 PDF and EPS-images are not supported.
31349 \begin_layout Description
31350 XFig This template supports images created with the program
31353 \begin_inset CommandInset href
31356 target "http://en.wikipedia.org/wiki/Xfig"
31365 \begin_layout Standard
31366 \begin_inset Float table
31372 \begin_layout Plain Layout
31373 \begin_inset Caption
31375 \begin_layout Plain Layout
31376 \begin_inset CommandInset label
31378 name "tab:Comparison-of-the"
31382 Comparison of the date input methods.
31390 \begin_layout Plain Layout
31392 \begin_inset Tabular
31393 <lyxtabular version="3" rows="4" columns="4">
31395 <column alignment="center" valignment="top" width="0">
31396 <column alignment="center" valignment="top" width="0">
31397 <column alignment="center" valignment="top" width="0">
31398 <column alignment="center" valignment="top" width="0">
31400 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31403 \begin_layout Plain Layout
31409 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31412 \begin_layout Plain Layout
31415 External Material\SpecialChar \menuseparator
31421 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31424 \begin_layout Plain Layout
31427 Insert\SpecialChar \menuseparator
31433 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31436 \begin_layout Plain Layout
31448 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31451 \begin_layout Plain Layout
31457 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31460 \begin_layout Plain Layout
31466 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31469 \begin_layout Plain Layout
31475 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31478 \begin_layout Plain Layout
31479 as TeX-Code inset box
31486 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31489 \begin_layout Plain Layout
31495 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31498 \begin_layout Plain Layout
31504 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31507 \begin_layout Plain Layout
31513 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31516 \begin_layout Plain Layout
31524 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31527 \begin_layout Plain Layout
31533 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31536 \begin_layout Plain Layout
31542 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31545 \begin_layout Plain Layout
31551 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31554 \begin_layout Plain Layout
31573 \begin_layout Standard
31574 When you use the option
31586 dialog, only the path to the inserted file is shown in the output.
31587 \begin_inset Newline newline
31590 External material is displayed in LyX either as box like this:
31591 \begin_inset Graphics
31592 filename clipart/ExternalMaterialQt4.png
31594 scaleBeforeRotation
31598 or as image, depending on the option
31604 LaTeX and LyX options
31609 \begin_layout Standard
31616 manual explains how you can define your own templates.
31619 \begin_layout Section
31621 \begin_inset CommandInset label
31623 name "sec:Child-Documents"
31631 \begin_layout Plain Layout
31632 External Stuff ! Child Documents
31641 \begin_layout Plain Layout
31650 \begin_layout Standard
31651 Child documents are used when you have a long document consisting of several
31652 larger parts or sections.
31653 For maintenance it is often useful and sometimes even required to split
31654 the document in several files that can be revised separately.
31655 The different documents are then the so called child documents and a master
31656 document connects them to print the full document or parts of it.
31657 A child documents inherits contents of its master, for example the bibliography
31658 and the labels for cross-references.
31661 \begin_layout Standard
31662 To be able to work on child documents without the need to open its master,
31663 specify in the child document the master in the menu
31665 Document\SpecialChar \menuseparator
31666 Settings\SpecialChar \menuseparator
31668 \begin_inset space ~
31674 This master file will then be used in the background by LyX when you edit
31675 the child document.
31678 \begin_layout Standard
31679 Included documents are displayed in LyX as a box like this:
31680 \begin_inset Graphics
31681 filename clipart/ChildDocumentQt4.png
31683 scaleBeforeRotation
31687 To include child documents to a master document use the menu
31689 Insert\SpecialChar \menuseparator
31690 File\SpecialChar \menuseparator
31692 \begin_inset space ~
31698 A dialog pops up where you can choose between four include methods:
31701 \begin_layout Description
31702 Include You can include LyX and LaTeX-documents.
31711 dialog, the included documents will be opened in LyX in a new file tab
31712 so that you can modify it.
31713 \begin_inset Newline newline
31719 \begin_layout Standard
31720 Here is a child document inserted using
31725 \begin_inset CommandInset include
31726 LatexCommand include
31727 filename "DummyDocument1.lyx"
31734 \begin_layout Standard
31735 The section numbering includes the sections of the included files in the
31736 order they are inserted in the master document.
31737 The included example document has for example a subsection that is numbered
31738 as subsection of this section.
31739 Labels of included documents can be referenced: Subsection
31740 \begin_inset space ~
31744 \begin_inset CommandInset ref
31746 reference "sub:External-Subsection-1"
31753 \begin_layout Standard
31754 The preamble of the child document is ignored, only the preamble of the
31755 master document is used.
31756 Included documents are inserted starting on a new page and end with a page
31760 \begin_layout Standard
31761 With the LaTeX-command
31767 you can specify which included child documents are processed when the output
31769 This is useful when you are perhaps only working on a certain chapter of
31770 your large document as this saves compiling time.
31777 is inserted to the master document preamble.
31778 It takes a comma-separated list of the filenames as argument, e.
31779 \begin_inset space \thinspace{}
31785 \begin_layout Standard
31790 includeonly{chapter1,chapter5}
31793 \begin_layout Standard
31794 will only process the included files named
31795 \begin_inset Quotes eld
31799 \begin_inset Quotes erd
31803 \begin_inset Quotes eld
31807 \begin_inset Quotes erd
31811 \begin_inset Quotes eld
31815 \begin_inset Quotes erd
31821 \begin_layout Standard
31822 \begin_inset Note Greyedout
31825 \begin_layout Plain Layout
31830 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
31831 w the document in case that the child document uses another document class
31832 than the master document as this will lead to unexpected outputs.
31840 \begin_layout Description
31841 Input This method is very similar to the Include method.
31842 The differences are:
31846 \begin_layout Itemize
31847 Input files don't start with a new page and don't end with a page break.
31850 \begin_layout Itemize
31851 Input files can be previewed in LyX when
31854 \begin_inset space ~
31859 is enabled in LyX's preferences under
31862 \begin_inset space ~
31866 \begin_inset space ~
31869 feel\SpecialChar \menuseparator
31875 \begin_layout Itemize
31886 \begin_layout Standard
31887 Here is a child document inserted using
31892 \begin_inset CommandInset include
31894 filename "DummyDocument2.lyx"
31901 \begin_layout Description
31902 Verbatim With this method every text file can be included.
31903 The file is shown in the output with its source code, no command used in
31904 the text is invoked.
31905 You can use the option
31907 Mark spaces in output
31909 that displays the character
31910 \begin_inset Quotes eld
31917 \begin_layout Plain Layout
31927 \begin_inset Quotes erd
31930 for every space character in the source code.
31931 The difference to the method via the menu
31933 Insert\SpecialChar \menuseparator
31934 File\SpecialChar \menuseparator
31936 \begin_inset space ~
31941 is that the document content is not shown in LyX.
31944 \begin_layout Standard
31945 Here is a child document inserted as Verbatim:
31946 \begin_inset CommandInset include
31947 LatexCommand verbatiminput
31948 filename "DummyTextDocument.txt"
31953 \begin_inset VSpace bigskip
31956 Here is a child document inserted as Verbatim using the
31958 Mark spaces in output
31961 \begin_inset CommandInset include
31962 LatexCommand verbatiminput*
31963 filename "DummyTextDocument.txt"
31970 \begin_layout Standard
31971 \begin_inset VSpace bigskip
31977 \begin_layout Standard
31978 \begin_inset Note Greyedout
31981 \begin_layout Plain Layout
31986 As you can see in the examples above, the text of the documents included
31991 is not broken at the end of the document lines.
31999 \begin_layout Description
32000 Listings This type is described in chapter
32001 \begin_inset space ~
32005 \begin_inset CommandInset ref
32007 reference "cha:Program-Code-Listings"
32014 \begin_layout Standard
32015 \begin_inset Note Greyedout
32018 \begin_layout Plain Layout
32023 Including the same document twice in a document using different methods
32024 could cause LaTeX-problems.
32032 \begin_layout Chapter
32033 Program Code Listings
32034 \begin_inset CommandInset label
32036 name "cha:Program-Code-Listings"
32044 \begin_layout Plain Layout
32054 \begin_layout Plain Layout
32064 \begin_layout Plain Layout
32073 \begin_layout Standard
32074 To include and typeset program code you can use the
32078 inset that can be inserted via the menu
32080 Insert\SpecialChar \menuseparator
32092 \begin_layout Plain Layout
32093 LaTeX-packages ! listings
32098 provides a powerful and flexible way to insert program source code to your
32102 \begin_layout Standard
32103 Right-clicking on a listings inset opens the context menu containing where
32104 you can set the listings format.
32107 \begin_layout Standard
32108 By default, a listing starts a new paragraph in the output.
32109 The placement option
32112 \begin_inset space ~
32117 prints the listing inline like this:
32118 \begin_inset listings
32119 lstparams "language={C++}"
32123 \begin_layout Plain Layout
32131 \begin_inset Newline newline
32138 creates a listings float where you can specify the placement options
32139 \begin_inset Quotes eld
32147 \begin_inset Quotes erd
32151 \begin_inset Quotes eld
32159 \begin_inset Quotes erd
32163 \begin_inset Quotes eld
32171 \begin_inset Quotes erd
32175 \begin_inset Quotes eld
32183 \begin_inset Quotes erd
32186 corresponding to the float placement options described in section
32187 \begin_inset space ~
32191 \begin_inset CommandInset ref
32193 reference "sec:Float-Placement"
32198 The placement options can be mixed and are inserted without any separation,
32200 \begin_inset space \thinspace{}
32204 \begin_inset space \space{}
32208 \begin_inset Quotes eld
32216 \begin_inset Quotes erd
32221 \begin_inset Quotes eld
32225 \begin_inset Quotes erd
32228 has sometimes no effect, but you don't need to use the
32232 option in this case as also non-float listings can have captions and be
32236 \begin_layout Standard
32237 You can add captions to listings with the menu
32239 Insert\SpecialChar \menuseparator
32243 Listings can be referenced like floats: Listing
32244 \begin_inset space ~
32248 \begin_inset CommandInset ref
32250 reference "lst:Example-Listing"
32257 \begin_layout Standard
32258 \begin_inset listings
32259 lstparams "language=Python"
32263 \begin_layout Plain Layout
32265 \begin_inset Caption
32267 \begin_layout Plain Layout
32268 \begin_inset CommandInset label
32270 name "lst:Example-Listing"
32274 Example Listing float
32279 # Example listing float
32282 \begin_layout Plain Layout
32287 \begin_layout Plain Layout
32289 'this is a python function'
32292 \begin_layout Plain Layout
32302 \begin_layout Standard
32303 When you have set a programming language in the listings dialog, the keywords
32304 of this language will be recognized and specially typeset in the output.
32305 In the example listings the Python keyword
32306 \begin_inset Quotes eld
32310 \begin_inset Quotes erd
32313 is recognized and printed bold in the output.
32316 \begin_layout Standard
32317 \begin_inset Note Greyedout
32320 \begin_layout Plain Layout
32325 If you don't get bold keywords when using typewriter fonts, your
32329 font probably doesn't provide a bold shape.
32330 In this case select a different one in the menu
32332 Document\SpecialChar \menuseparator
32333 Settings\SpecialChar \menuseparator
32345 provide bold shapes.)
32353 \begin_layout Standard
32357 \begin_inset space ~
32362 of the listings dialog you can specify the line numbering style.
32363 You can insert a number to specify which lines are numbered to the field
32370 \begin_inset space \thinspace{}
32374 \begin_inset space \space{}
32378 \begin_inset Quotes eld
32382 \begin_inset Quotes erd
32385 , only every 3rd line will be numbered.
32388 \begin_layout Standard
32389 You can furthermore specify a range of lines, only these will then appear
32393 Extended character table
32395 should be used when you use national characters like the German umlauts
32397 \begin_inset Newline newline
32400 Here is an example listing with left line numbering, step
32401 \begin_inset Quotes eld
32405 \begin_inset Quotes erd
32409 \begin_inset Quotes eld
32413 \begin_inset Quotes erd
32417 \begin_inset Quotes eld
32420 Extended character table
32421 \begin_inset Quotes erd
32425 \begin_inset Quotes eld
32429 \begin_inset space ~
32433 \begin_inset space ~
32437 \begin_inset Quotes erd
32441 \begin_inset space \thinspace{}
32445 \begin_inset space \thinspace{}
32451 \begin_layout Standard
32452 \begin_inset listings
32453 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
32457 \begin_layout Plain Layout
32462 \begin_layout Plain Layout
32464 'this is a python function'
32467 \begin_layout Plain Layout
32472 \begin_layout Plain Layout
32477 \begin_layout Plain Layout
32479 'This is a German word: Tschüß'
32482 \begin_layout Plain Layout
32487 \begin_layout Plain Layout
32492 \begin_layout Plain Layout
32494 'this is a python function'
32497 \begin_layout Plain Layout
32507 \begin_layout Standard
32508 When you have tabulators in your listing, you can specify the number of
32509 characters that are spanned by a tabulator in the field
32512 \begin_inset space ~
32520 \begin_layout Standard
32521 \begin_inset Note Greyedout
32524 \begin_layout Plain Layout
32529 Due to a bug in the
32533 package the line numbering is shifted by a line by every previous listing.
32534 That's the reason why the lines 2 and 5 are numbered in the above listing
32535 and not the lines 3 and 6.
32543 \begin_layout Standard
32544 \begin_inset VSpace bigskip
32550 \begin_layout Standard
32551 It is also possible to print lines from a file as listing.
32552 To do this, use the menu
32554 Insert\SpecialChar \menuseparator
32555 File\SpecialChar \menuseparator
32558 and choose the type
32566 \begin_layout Plain Layout
32567 The other child document types are described in section
32568 \begin_inset space ~
32572 \begin_inset CommandInset ref
32574 reference "sec:Child-Documents"
32583 In the child document dialog you can specify the listing parameters in
32585 To show a list of all available parameters, type in a question mark
32586 \begin_inset Quotes eld
32590 \begin_inset Quotes erd
32596 \begin_layout Standard
32597 To reference child document listings, write a label text into the corresponding
32598 field of the child document dialog.
32599 The label can then be referenced using the menu
32601 Insert\SpecialChar \menuseparator
32607 \begin_layout Standard
32609 \begin_inset space ~
32613 \begin_inset CommandInset ref
32615 reference "lst:file-listing"
32619 is an example for a listing of a file; there the lines 10
32620 \begin_inset space \thinspace{}
32624 \begin_inset space \thinspace{}
32627 15 of this LyX file are listed.
32630 \begin_layout Standard
32631 \begin_inset CommandInset include
32632 LatexCommand lstinputlisting
32633 filename "EmbeddedObjects.lyx"
32634 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
32641 \begin_layout Standard
32642 \begin_inset VSpace bigskip
32648 \begin_layout Standard
32649 Global listings settings can be set in the
32651 Document\SpecialChar \menuseparator
32652 Settings\SpecialChar \menuseparator
32656 To get there a list of available options, type in a question mark
32657 \begin_inset Quotes eld
32661 \begin_inset Quotes erd
32667 \begin_inset space ~
32675 \begin_layout Standard
32676 For more information about the
32680 package, we refer to its documentation
32681 \begin_inset CommandInset citation
32690 \begin_layout Standard
32691 \begin_inset Newpage newpage
32697 \begin_layout Chapter
32699 Units available in LyX
32703 \begin_layout Plain Layout
32710 \begin_inset CommandInset label
32712 name "cha:Units-available-in"
32719 \begin_layout Standard
32720 To understand the units described in this documentation, Table
32721 \begin_inset space ~
32725 \begin_inset CommandInset ref
32727 reference "tab:Units"
32731 explains all units available in LyX.
32734 \begin_layout Standard
32735 \begin_inset Float table
32741 \begin_layout Plain Layout
32742 \begin_inset Caption
32744 \begin_layout Plain Layout
32745 \begin_inset CommandInset label
32759 \begin_layout Plain Layout
32760 \begin_inset VSpace medskip
32766 \begin_layout Plain Layout
32768 \begin_inset Tabular
32769 <lyxtabular version="3" rows="20" columns="2">
32771 <column alignment="center" valignment="top" width="0">
32772 <column alignment="center" valignment="top" width="0">
32774 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32777 \begin_layout Plain Layout
32783 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
32786 \begin_layout Plain Layout
32794 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32797 \begin_layout Plain Layout
32803 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32806 \begin_layout Plain Layout
32814 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32817 \begin_layout Plain Layout
32823 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32826 \begin_layout Plain Layout
32834 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32837 \begin_layout Plain Layout
32843 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32846 \begin_layout Plain Layout
32854 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32857 \begin_layout Plain Layout
32863 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32866 \begin_layout Plain Layout
32868 \begin_inset space \thinspace{}
32872 \begin_inset space \thinspace{}
32882 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32885 \begin_layout Plain Layout
32891 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32894 \begin_layout Plain Layout
32896 \begin_inset space \thinspace{}
32900 \begin_inset space \thinspace{}
32910 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32913 \begin_layout Plain Layout
32919 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32922 \begin_layout Plain Layout
32923 scaled point (65536
32924 \begin_inset space \thinspace{}
32928 \begin_inset space \thinspace{}
32938 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32941 \begin_layout Plain Layout
32947 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32950 \begin_layout Plain Layout
32952 \begin_inset space \thinspace{}
32956 \begin_inset space \thinspace{}
32966 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32969 \begin_layout Plain Layout
32975 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32978 \begin_layout Plain Layout
32980 \begin_inset space \thinspace{}
32984 \begin_inset Formula $\approx$
32988 \begin_inset space \thinspace{}
32998 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33001 \begin_layout Plain Layout
33007 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33010 \begin_layout Plain Layout
33012 \begin_inset space \thinspace{}
33016 \begin_inset space \thinspace{}
33026 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33029 \begin_layout Plain Layout
33035 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33038 \begin_layout Plain Layout
33039 % of original image width
33046 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33049 \begin_layout Plain Layout
33055 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33058 \begin_layout Plain Layout
33066 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33069 \begin_layout Plain Layout
33075 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33078 \begin_layout Plain Layout
33086 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33089 \begin_layout Plain Layout
33095 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33098 \begin_layout Plain Layout
33106 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33109 \begin_layout Plain Layout
33115 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33118 \begin_layout Plain Layout
33126 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33129 \begin_layout Plain Layout
33135 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33138 \begin_layout Plain Layout
33146 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33149 \begin_layout Plain Layout
33155 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33158 \begin_layout Plain Layout
33166 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33169 \begin_layout Plain Layout
33175 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33178 \begin_layout Plain Layout
33190 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33193 \begin_layout Plain Layout
33199 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33202 \begin_layout Plain Layout
33214 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
33217 \begin_layout Plain Layout
33223 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
33226 \begin_layout Plain Layout
33228 \begin_inset space \thinspace{}
33232 \begin_inset space \thinspace{}
33253 \begin_layout Chapter
33254 Output File Formats with Graphics
33255 \begin_inset CommandInset label
33257 name "cha:Output-File-Formats"
33264 \begin_layout Section
33269 \begin_layout Plain Layout
33279 \begin_layout Plain Layout
33284 \begin_layout Plain Layout
33295 \begin_layout Plain Layout
33310 \begin_layout Standard
33311 This file type has the extension
33312 \begin_inset Quotes eld
33320 \begin_inset Quotes erd
33325 \begin_inset Quotes eld
33329 \begin_inset Quotes erd
33332 (DVI), because it is completely portable; you can move them from one machine
33333 to another without needing to do any sort of conversion.
33334 At the time when this file-format was developed, this was no matter of
33336 DVIs are used for quick previews and as pre-stage for other output formats,
33340 \begin_layout Standard
33341 \begin_inset Note Greyedout
33344 \begin_layout Plain Layout
33349 DVI-files doesn't contain images, they will only be a linked.
33354 So don't forget this, if you move your
33358 file to another computer.
33359 This property can also slow down your computer when you view the DVI.
33360 Because the DVI-viewer has to convert the image in the background to make
33361 it visible when you scroll in the DVI.
33362 So we recommend to use PDF for files with many images.
33365 \begin_layout Standard
33366 You can export your document to DVI by using the menu
33368 File\SpecialChar \menuseparator
33369 Export\SpecialChar \menuseparator
33373 You can view your document as DVI via the
33377 menu or by using the toolbar button
33378 \begin_inset Graphics
33379 filename ../images/buffer-view_dvi.png
33381 scaleBeforeRotation
33388 \begin_layout Section
33390 \begin_inset CommandInset label
33392 name "sec:PostScript"
33400 \begin_layout Plain Layout
33401 File Formats ! PostScript
33410 \begin_layout Plain Layout
33415 \begin_layout Plain Layout
33426 \begin_layout Plain Layout
33441 \begin_layout Standard
33442 This file type has the extension
33443 \begin_inset Quotes eld
33451 \begin_inset Quotes erd
33455 PostScript was developed by the company
33459 as printer language.
33460 The file contains therefore commands that the printer uses to print the
33462 PostScript can be seen as
33463 \begin_inset Quotes eld
33466 programming language
33467 \begin_inset Quotes erd
33470 ; you can calculate with it and draw diagrams and images
33474 \begin_layout Plain Layout
33475 If you are interested to learn more about this, have a look at the LaTeX-package
33481 \begin_inset CommandInset citation
33493 Due to this ability, the files are often bigger than PDFs.
33496 \begin_layout Standard
33497 PostScript can only contain images in the format
33498 \begin_inset Quotes eld
33501 Encapsulated PostScript
33502 \begin_inset Quotes erd
33505 (EPS, file extension
33506 \begin_inset Quotes eld
33514 \begin_inset Quotes erd
33518 As LyX allows you to use any known image format in your document, it has
33519 to convert images in the background to EPS.
33520 If you have e.g 50 images in your document, LyX has to do 50 conversions
33521 whenever you view or export your document.
33522 This will slow down your work flow with LyX drastically.
33523 So if you plan to use PostScript, you can insert your images directly as
33524 EPS to avoid this problem.
33527 \begin_layout Standard
33528 You can export your document to PostScript using the menu
33530 File\SpecialChar \menuseparator
33531 Export\SpecialChar \menuseparator
33535 You can view your document as PostScript via the
33539 menu or by using the toolbar button
33540 \begin_inset Graphics
33541 filename ../images/buffer-view_ps.png
33543 scaleBeforeRotation
33550 \begin_layout Section
33555 \begin_layout Plain Layout
33565 \begin_layout Plain Layout
33574 \begin_layout Standard
33575 This file type has the extension
33576 \begin_inset Quotes eld
33584 \begin_inset Quotes erd
33589 \begin_inset Quotes eld
33592 Portable Document Format
33593 \begin_inset Quotes erd
33596 (PDF) is developed by
33600 as derivative from PostScript.
33601 It is more compressed and it uses much less commands than PostScript.
33603 \begin_inset Quotes eld
33607 \begin_inset Quotes erd
33610 implies, it can be processed at any computer system and the printed output
33611 looks exactly the same.
33614 \begin_layout Standard
33615 PDF can contain images in its own PDF format, in the format
33616 \begin_inset Quotes eld
33619 Joint Photographic Experts Group
33620 \begin_inset Quotes erd
33623 (JPG, file extension
33624 \begin_inset Quotes eld
33632 \begin_inset Quotes erd
33636 \begin_inset Quotes eld
33644 \begin_inset Quotes erd
33647 ), and in the format
33648 \begin_inset Quotes eld
33651 Portable Network Graphics
33652 \begin_inset Quotes erd
33655 (PNG, file extension
33656 \begin_inset Quotes eld
33664 \begin_inset Quotes erd
33668 Nevertheless you can use any other image format, because LyX converts them
33669 in the background to one of these formats.
33670 But as described in the section about PostScript, the image conversion
33671 will slow down your work flow.
33672 So it is recommended to use images in one of the three mentioned formats.
33675 \begin_layout Standard
33676 You can export your document to PDF via the menu
33678 File\SpecialChar \menuseparator
33681 in three different ways:
33684 \begin_layout Description
33686 \begin_inset space ~
33689 (ps2pdf) This uses the program
33693 that creates a PDF from a PostScript-version of your file.
33694 The PostScript-version is produced by the program
33698 which uses a DVI-version as intermediate step.
33699 So this export variant consist of three conversions.
33702 \begin_layout Description
33704 \begin_inset space ~
33707 (dvipdfm) This uses the program
33711 that converts your file in the background to DVI and in a second step to
33715 \begin_layout Description
33717 \begin_inset space ~
33720 (pdflatex) This uses the program
33724 that converts your file directly to PDF.
33727 \begin_layout Standard
33728 It is recommended to use
33731 \begin_inset space ~
33740 supports all features of actual PDF-versions, is quick and works stable
33746 is not under development and therefore a bit outdated.
33749 \begin_layout Standard
33750 You can view your document as PDF via the
33754 menu or by using the toolbar button
33755 \begin_inset Graphics
33756 filename ../images/buffer-view_pdf2.png
33758 scaleBeforeRotation
33769 \begin_inset space ~
33777 \begin_layout Chapter
33778 Explanation of Equation
33779 \begin_inset space ~
33783 \begin_inset CommandInset ref
33790 \begin_inset CommandInset label
33792 name "cha:Explanation-of-Equation"
33799 \begin_layout Standard
33805 \begin_inset Formula $W_{\mathrm{tot\, n}}$
33808 can be calculated to
33811 \begin_layout Standard
33812 \begin_inset Formula \begin{equation}
33813 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}
33820 \begin_layout Standard
33822 \begin_inset Formula $W_{g\, n}$
33825 is the given width of all cells.
33832 is the LaTeX-length between the cell text and the cell border, its default
33834 \begin_inset space \thinspace{}
33844 is the thickness of the cell border line, the default is 0.4
33845 \begin_inset space \thinspace{}
33851 \begin_layout Standard
33853 \begin_inset space ~
33857 \begin_inset CommandInset ref
33859 reference "eq:Wtot_n"
33863 , the total width of a multicolumn
33864 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
33870 \begin_layout Standard
33871 \begin_inset Formula \begin{equation}
33872 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
33879 \begin_layout Standard
33880 By setting equation
33881 \begin_inset space ~
33885 \begin_inset CommandInset ref
33887 reference "eq:Wtot_n"
33892 \begin_inset CommandInset ref
33894 reference "eq:Wtot_mult"
33898 equal we can calculate the needed given width
33899 \begin_inset Formula $W_{g\, n}$
33906 columns are spanned, so that each column has a total width of
33907 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
33913 \begin_layout Standard
33914 \begin_inset Formula \begin{equation}
33915 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
33922 \begin_layout Bibliography
33923 \begin_inset CommandInset bibitem
33924 LatexCommand bibitem
33925 key "latexcompanion"
33929 Frank Mittelbach and Michel Goossens:
33931 The LaTeX Companion Second Edition.
33934 Addison-Wesley, 2004
33937 \begin_layout Bibliography
33938 \begin_inset CommandInset bibitem
33939 LatexCommand bibitem
33944 Helmut Kopka and Patrick W.
33947 A Guide to LaTeX Fourth Edition.
33950 Addison-Wesley, 2003
33953 \begin_layout Bibliography
33954 \begin_inset CommandInset bibitem
33955 LatexCommand bibitem
33962 LaTeX: A Document Preparation System.
33965 Addison-Wesley, second edition, 1994
33968 \begin_layout Bibliography
33969 \begin_inset CommandInset bibitem
33970 LatexCommand bibitem
33975 Documentation of the LaTeX-package
33978 \begin_inset CommandInset href
33981 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
33991 \begin_layout Plain Layout
33992 LaTeX-packages ! booktabs
34000 \begin_layout Bibliography
34001 \begin_inset CommandInset bibitem
34002 LatexCommand bibitem
34007 Documentation of the LaTeX-package
34010 \begin_inset CommandInset href
34013 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf"
34023 \begin_layout Plain Layout
34024 LaTeX-packages ! caption
34032 \begin_layout Bibliography
34033 \begin_inset CommandInset bibitem
34034 LatexCommand bibitem
34039 Documentation of the LaTeX-package
34042 \begin_inset CommandInset href
34045 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
34055 \begin_layout Plain Layout
34056 LaTeX-packages ! endfloat
34064 \begin_layout Bibliography
34065 \begin_inset CommandInset bibitem
34066 LatexCommand bibitem
34071 Documentation of the LaTeX-package
34074 \begin_inset CommandInset href
34077 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/wrapfig/wrapfig.sty"
34087 \begin_layout Plain Layout
34088 LaTeX-packages ! wrapfig
34092 \begin_layout Plain Layout
34109 \begin_layout Bibliography
34110 \begin_inset CommandInset bibitem
34111 LatexCommand bibitem
34116 Documentation of the LaTeX-package
34119 \begin_inset CommandInset href
34122 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
34132 \begin_layout Plain Layout
34133 LaTeX-packages ! footmisc
34141 \begin_layout Bibliography
34142 \begin_inset CommandInset bibitem
34143 LatexCommand bibitem
34148 Documentation of the LaTeX-package
34151 \begin_inset CommandInset href
34154 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
34164 \begin_layout Plain Layout
34165 LaTeX-packages ! hyperref
34173 \begin_layout Bibliography
34174 \begin_inset CommandInset bibitem
34175 LatexCommand bibitem
34180 Documentation of the LaTeX-package
34183 \begin_inset CommandInset href
34186 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
34196 \begin_layout Plain Layout
34197 LaTeX-packages ! hyperref
34205 \begin_layout Bibliography
34206 \begin_inset CommandInset bibitem
34207 LatexCommand bibitem
34212 Documentation of the LaTeX-package
34215 \begin_inset CommandInset href
34218 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf"
34228 \begin_layout Plain Layout
34229 LaTeX-packages ! koma-script
34237 \begin_layout Bibliography
34238 \begin_inset CommandInset bibitem
34239 LatexCommand bibitem
34244 Documentation of the LaTeX-package
34247 \begin_inset CommandInset href
34250 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
34260 \begin_layout Plain Layout
34261 LaTeX-packages ! listings
34269 \begin_layout Bibliography
34270 \begin_inset CommandInset bibitem
34271 LatexCommand bibitem
34276 Documentation of the LaTeX-package
34279 \begin_inset CommandInset href
34282 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
34292 \begin_layout Plain Layout
34293 LaTeX-packages ! marginnote
34301 \begin_layout Bibliography
34302 \begin_inset CommandInset bibitem
34303 LatexCommand bibitem
34308 Web page of the LaTeX-package
34311 \begin_inset CommandInset href
34314 target "http://tug.org/PSTricks/"
34324 \begin_layout Plain Layout
34325 LaTeX-packages ! PSTricks
34333 \begin_layout Bibliography
34334 \begin_inset CommandInset bibitem
34335 LatexCommand bibitem
34340 Documentation of the LaTeX-package
34343 \begin_inset CommandInset href
34346 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
34356 \begin_layout Plain Layout
34357 LaTeX-packages ! sidecap
34365 \begin_layout Bibliography
34366 \begin_inset CommandInset bibitem
34367 LatexCommand bibitem
34373 \begin_inset CommandInset href
34376 target "http://wiki.lyx.org/LyX/NewInLyX16"
34380 about new features in
34387 \begin_layout Standard
34388 \begin_inset CommandInset index_print
34389 LatexCommand printindex
34396 \begin_layout Standard
34397 \begin_inset FloatList figure
34404 \begin_layout Standard
34405 \begin_inset FloatList table
34412 \begin_layout Standard
34413 \begin_inset FloatList algorithm